Panalk
LanguageEnglish
Download the OpenAPI document

Errors

Every failure uses one envelope. The HTTP status is what a client reacts to and the code is what an application branches on; the message is written in the language named by Accept-Language, and the code never changes.

The envelope

The error object carries a stable code, a message in the requested language, and a data object when there is detail. A validation failure puts field issues in data.issues; an issue message is a stable code, not prose.

{
  "error": {
    "code": "VALIDATION_FAILED",
    "message": "Some of what you sent was not accepted.",
    "data": {
      "issues": [{ "field": "body.recipient.phone", "message": "TOO_SMALL" }]
    }
  }
}

Each operation lists the failures its structure makes certain. Any other failure uses this same envelope, and the code inside it says what happened.

Statuses

401 is a credential that is missing or no longer valid, 403 is a source outside the allowlist or a key without the scope or a plan without API access, 404 is a record this organisation cannot see, 422 is a value that failed validation, and 429 is the plan rate limit.

Retrying

Retry a 429 after Retry-After. Retry a network failure or a 5xx with the same external_id; the second request returns the first delivery. Do not retry a 4xx unchanged.