error code, a human-readable message, and optional details for validation issues. Where it helps, an error also says what to do: hint (one sentence) and docs_url (the page that explains it). Use error (not message or hint) for programmatic handling.
For every value of error with its HTTP status and when it is returned, see the error code catalogue.
Success
Client errors
Server errors
Retrying
A request that ended in a5xx (other than 503 not_available), a timeout or a network error was not necessarily carried out, and Arowana does not repeat it for you. Send it again — do not drop it.
- Backoff with jitter. Wait longer after each failure and add a random part: for example 1 s, 5 s, 30 s, 2 min, 10 min, then once an hour for up to 24 hours.
- Always with an idempotency key on mutating routes, so that a retry cannot do the work twice. Do not retry a mutating request that has no key.
- After a
429waitretry_afterseconds instead. A refused request does not count against the limit. - After a
500or a timeout theIdempotency-Keyof that attempt may answer409 conflictwithoriginal_status— see Idempotency for what each route does then.
POST /v1/events the full rules and a code example are in Send an event → Retrying.
Error envelope
What to do about it, in one sentence — on the errors where that helps (for example
401, 402, 403, 409, 422, 429, 503). Written for people, like message: it may change, so don’t branch on it.hint and docs_url were added next to the existing fields: no code, status or field was renamed or removed. Clients that ignore unknown fields need no change.
402 — Insufficient balance
The most actionable error: the free balance is below the hold amount needed for the operation.balance is the organisation’s balance and is included only for a key with organisation-level billing access (billing:read, created by an owner or admin — see Billing). Every key gets required_amount and topup_url.
Link to the billing page of the dashboard — Settings → Billing (under Organisation) of the key’s workspace, where an owner or admin of the organisation adds credit. The path contains the workspace’s slug.
RCS sends — what each refusal means
POST /v1/messages with an agent_id checks your key’s rate window and the body first (429, 400 validation_error), then the following, in this order, and stops at the first problem. Nothing is sent or charged on any of these answers.
Send
to in E.164 form without a trunk zero (+4917612345678, not +49017612345678): consent and opt-outs are looked up by the exact number of the contact, so a differently written number is checked as a new number — with no consent.
403 — Test Agent phone number
Test Agent sends return a generic 403 when the target number is not the verified phone number. The response does not reveal whether the number belongs to another account.Related
- Conventions — idempotency, rate limits, and retry patterns
- Billing API — proactive balance checks before large sends
- Our philosophy — why errors are designed to be actionable