RinghouseAPI reference
Get started

API Reference

Errors

Conventional HTTP status codes, and a body that names what went wrong.

Shape of an error

Errors return a single object with a machine-readable code, a human-readable message, and — for validation failures — the field at fault.

{
  "error": {
    "code": "invalid_request",
    "message": "to must be a phone number in E.164 format",
    "field": "to"
  }
}

Status codes

StatusCodeWhat it means
401unauthorizedThe API key is missing, malformed or revoked.
403forbiddenThe key is valid but lacks the scope for this call.
404not_foundNo resource with that id exists in your workspace.
422invalid_requestA field failed validation. The body names the field.
429rate_limitedYou exceeded the request rate. Retry after the header says when.
500server_errorSomething broke on our side. Safe to retry.

Retrying

Retry 429 and 5xx with exponential backoff and jitter. Never retry a 4xx below 429 — the request will fail the same way every time. For sends, pass an idempotency key so a retry cannot deliver twice.

Was this page helpful?