error; message is for people and may change.
{
"error": "validation_error",
"message": "Request validation failed.",
"details": [
{ "field": "limit", "message": "Must be an integer between 1 and 200" }
]
}
error and message. They are listed in the Extra fields column. Where it helps, an error also carries hint (what to do, in one sentence) and docs_url — they are not repeated in the tables below. For what to do about each status — retries, backoff, the 402 body — see Errors.
Validation has two codes:
validation_error (400) for a request that is malformed, and validation_failed (422) for a well-formed request that cannot be applied. Check the status together with the code.400 Bad Request
error | When | Extra fields |
|---|---|---|
validation_error | The body is not valid JSON; a body field is missing, of the wrong type or outside its limits; a query parameter is not valid (limit, offset, a filter value, a date, a cursor); the Idempotency-Key is not 1–255 printable ASCII characters; or a field does not fit the resource it refers to (for example a channel_id of the wrong channel type). | details[] with field and message on most responses. A few answer with message only. |
401 Unauthorized
error | When | Extra fields |
|---|---|---|
unauthorized | No Authorization: Bearer <api_key> header, or the key is unknown or revoked. Keys of an archived workspace answer the same way. | — |
key_expired | The key has an end date and it has passed. Create a new key in Settings → API & webhooks. | expired_at |
402 Payment Required
error | When | Extra fields |
|---|---|---|
insufficient_balance | The free balance does not cover a send, or the estimated cost of a campaign run (trigger, resume). | required_amount, topup_url. balance only for a key with organisation-level billing access. |
403 Forbidden
error | When | Extra fields |
|---|---|---|
forbidden | The key lacks the permission the route needs (the message names it). | — |
forbidden | A route that reads or changes the organisation’s money, called with a key whose creator is not an owner or admin of the organisation. | — |
forbidden | A send through a channel that is not approved for sending. | channel_status |
forbidden | A send or a campaign run that a restriction on the workspace or on its billing account does not allow. The message says which. | — |
forbidden | A top-up, a new payment method or switching on auto-reload that the billing account cannot accept. The message says why. | — |
forbidden | POST /v1/test/messages to a number that is not the verified test number of the workspace. | — |
test_recipient_not_own_address | POST /v1/messages without channel_id (a test to yourself, before the workspace has an email sender ready) to an address that is not the Arowana account address of the person who created the key. The answer never names that address. Verify your domain first to send to anyone else — see the quickstart. | — |
test_sender_unavailable | POST /v1/messages without channel_id, but the Arowana test sender can’t send to the key’s creator: the key has no known creator, the creator can no longer send in the workspace (left it, or can only view it), it is a demo workspace, their account has no address that receives email, or this deployment’s allow-list leaves the address out. | reason: key_without_creator, not_member, demo, no_address, held |
agent_not_approved | An RCS send (or a capability check) with an agent that is not APPROVED by Arowana’s review. | agent_status on a send |
budget_reached | The workspace’s monthly budget is reached — on a send, or on a campaign trigger or resume. | reason: "workspace_budget_reached" |
404 Not Found
error | When | Extra fields |
|---|---|---|
not_found | The resource named in the path or body does not exist in the workspace, or its ID is not in a valid format: contact, consent record, message, channel, agent, template or template version, campaign, webhook endpoint, payment method. | — |
not_found | DELETE /v1/messages/{id} for a message that can no longer be revoked: an email or SMS that is no longer queued, or an RCS message after hand-over on an agent without revoke in features. | — |
not_found | POST /v1/test/verify for a phone number without a pending verification. | — |
409 Conflict
error | When | Extra fields |
|---|---|---|
conflict | A request with the same Idempotency-Key is still running. | Retry-After header |
conflict | The Idempotency-Key was already used for a request with a different body, or — on POST /v1/billing/topup — for a different top-up. | — |
conflict | An earlier request with the same Idempotency-Key ended in a server error or never finished, and the route cannot safely run it again. | original_status (null when the request never finished) |
conflict | A contact create or update with an email, phone number or external_id that belongs to another contact — or a create with external_id whose email (or phone) belongs to a contact that already has a different external_id. | — |
conflict | POST /v1/webhooks/{id}/deliveries/{delivery_id}/replay for a delivery that is still on its retry schedule or already succeeded. | current_status |
conflict | An RCS agent create or update with a display name another agent of the workspace already has (archived agents don’t count — archive the old one to reuse its name). | — |
conflict | A campaign trigger, pause or resume in a state that does not allow it. | current_status |
approval_required | POST /v1/campaigns/{id}/trigger for a campaign whose content was last changed by someone with the role Build drafts, and that version is not approved yet. Approve it in the dashboard, then trigger again. | — |
conflict | POST /v1/test/register or POST /v1/test/verify in a workspace that already has a verified test number (one per workspace, never changed); or a POST /v1/test/verify whose registration changed while the code was checked (check GET /v1/test/status). | — |
invalid_state | An RCS agent update or submit while the agent is neither DRAFT nor REJECTED; POST /v1/rcs/agents/{id}/withdraw for an agent that is not PENDING_REVIEW (decided or withdrawn already); POST /v1/rcs/agents/{id}/archive for an agent that is not DRAFT or REJECTED, or that a network has already seen. | current_status |
invalid_state | DELETE /v1/messages/{id} for an RCS message already handed to the network (agents with revoke in features) that the network did not take back — it was delivered, or the revoke wasn’t confirmed. Nothing changed; the message can still arrive. Also when its SMS fallback text is already being sent (or was sent): the message can no longer be taken back. | current_status |
agent_not_launched | An RCS send with an APPROVED agent that no German network has launched yet. GET /v1/rcs/agents/{id}/launch shows each network’s state. | — |
agent_not_registered | An RCS send (or capability check) with an approved agent whose registration with the networks isn’t finished yet. | — |
invalid_state | A send with a template that was rejected. | current_status: "REJECTED" |
consent_revoked | Recording GRANTED consent for a contact who opted out. | current_status: "REVOKED" |
audience_required | POST /v1/campaigns/{id}/trigger or /resume on a copied campaign whose audience hasn’t been chosen yet. Choose it in the dashboard. | — |
413 Payload Too Large
error | When | Extra fields |
|---|---|---|
payload_too_large | The request body is larger than 4 MB. Send fewer rows per request. | — |
422 Unprocessable
error | When | Extra fields |
|---|---|---|
validation_failed | The request is well-formed but cannot be applied: a phone number that cannot be stored; a contact create with only an external_id that no contact has yet (a new contact needs an email or phone); GRANTED consent without proof_text; a double opt-in for a contact without an address on the doi_channel, or without an approved email channel to send the confirmation from; an RCS agent submitted with missing or unusable profile fields; an event for a person who cannot be created as a contact; a wrong or expired test verification code, or a code whose 5 attempts are used up (retry_after says when it has run out and a new one helps); a capability check for a phone number outside the country codes +2, +3, +4 and +7 (details names each one: phone or phones[i]). | details[]; retry_after on a code with no attempts left |
limit_exceeded | A limit is reached; the message states it: contacts per import call, rows per bulk call (1,000), webhook endpoints per workspace, the 5 sandbox test messages of a workspace (POST /v1/test/messages — they can’t be reset), or a top-up that would lift the balance above its maximum. | — |
missing_consent | Email: a NEWSLETTER needs the newest consent record for email / NEWSLETTER to be GRANTED; a MESSAGE needs no opt-in (only a REVOKED newest record blocks it). RCS: decided by traffic_type — a PROMOTION needs a GRANTED marketing consent (NEWSLETTER, SMS / RCS) on the contact, whatever its message_type; a number that is no contact has none. | RCS: reason: "no_marketing_consent" |
recipient_suppressed | A send to a recipient who can’t get it. RCS: reason: "contact_blocked" (the contact is blocked), reason: "opted_out" (STOP, unsubscribe, erasure — after an opt-out only AUTHENTICATION goes out, ACKNOWLEDGEMENT as the one answer to the person’s keyword, and SERVICEREQUEST inside a conversation the person started since) or reason: "no_keyword_to_answer" (an ACKNOWLEDGEMENT that answers no keyword — STOP, START, HELP — the person sent to this agent within 24 hours; once per keyword, and Arowana already answers STOP and HELP itself). Email, or a status check at send time: reason: "contact_suppressed". A sandbox test number that said STOP to the Test Agent, or POST /v1/test/register for a number that opted out of Arowana’s own messages: reason: "opted_out". | reason |
no_active_session | An RCS CONVERSATION send to a phone that hasn’t written to this agent within the last 24 hours (a keyword such as STOP or HELP doesn’t count). No consent is needed inside such a conversation. | reason: "no_active_session" |
feature_not_available | RCS: message_type: NEWSLETTER (RCS newsletters aren’t offered — send a MESSAGE with traffic_type: PROMOTION); or GET /v1/rcs/capabilities / POST /v1/rcs/capabilities:batch with an agent that doesn’t have capability_check in its features. | feature (capability_check) on the capability routes |
double_opt_in_required | Recording GRANTED consent in a workspace that requires double opt-in for it. | — |
payment_failed | A top-up with a saved payment method that was declined, or that the bank wants confirmed by a person. | reason: "authentication_required" in the second case |
payment_method_required | Switching on auto-reload without a saved payment method. | — |
unsupported_step | A campaign run whose flow contains a step that cannot be run — for example an RCS step that doesn’t fit the use case its agent was registered with (a marketing step through an agent registered for codes or service messages). The message names the reason. | — |
not_ready | POST /v1/campaigns/{id}/trigger or /resume on a campaign that isn’t ready to send; the message says what is missing. | — |
billing_details_required | POST /v1/billing/topup while the organisation’s billing address is incomplete — VAT is worked out from it. | — |
429 Too Many Requests
error | When | Extra fields |
|---|---|---|
rate_limit_exceeded | Too many requests in the current window — per API key and endpoint group, per IP address for requests without a valid key, or per RCS agent (300 a minute per lane, across all keys of the workspace; only sends that pass the agent, content, route and consent checks count). Also the capability checks’ own limits (GET /v1/rcs/capabilities: 600 a minute per agent, 20,000 a day per workspace; POST /v1/rcs/capabilities:batch: 10 calls an hour per agent, 100,000 numbers a day per workspace) and the sandbox’s (POST /v1/test/register: 3 codes an hour per workspace, 3 an hour and 5 a day per phone number, 200 an hour across all workspaces; POST /v1/test/verify: 10 calls an hour per workspace). | retry_after in seconds, and a Retry-After header |
test_limit_reached | POST /v1/messages without channel_id: the test sender’s limits are reached — 10 tests an hour per person, 30 a day per workspace, counted together with the tests sent from the app. Nothing was sent or charged. | limit (per_person_hour or per_workspace_day), retry_at as an ISO 8601 timestamp. No Retry-After header. |
500 Internal Server Error
error | When | Extra fields |
|---|---|---|
internal_error | An unexpected failure on our side. The message contains the request ID from the X-Request-Id header — quote it when you contact support. | — |
503 Service Unavailable
error | When | Extra fields |
|---|---|---|
not_available | Something the request needs is switched off or not connected in this environment; the message names it. Nothing was sent or charged — don’t retry in a loop: it won’t change by itself within seconds. Returned by POST /v1/messages (RCS sending switched off here; an SMS channel — SMS is in closed beta and sending isn’t open yet; without channel_id when the deployment has no test sender), the RCS sandbox under /v1/test (no Test Agent here, or the verification code could not be sent), the RCS capability routes, POST /v1/contacts/{id}/consent with a doi_channel other than EMAIL, and billing writes (top-up, new payment method, switching on auto-reload). | — |
service_unavailable | GET /v1/rcs/capabilities / POST /v1/rcs/capabilities:batch: the networks didn’t answer in time. Retry shortly. | retry_after (10) |
service_unavailable | POST /v1/contacts/{id}/consent could not write the consent record or send the confirmation email. Retry with the same Idempotency-Key: the request runs again, sends the confirmation email if it has not gone out, and writes no second record. | — |
price_list_unavailable | GET /v1/billing/tier or GET /v1/billing/usage when the organisation’s prices can’t be read right now. Retry later. | — |
502, 503 and 504 without a code
A request can also end in502, 503 or 504 when the API could not be reached or did not answer in time. Such an answer may have no JSON body and no error code. Treat it like a 500: the request was not necessarily carried out, so send it again with backoff — see Errors.
Idempotent replays
A request repeated with the sameIdempotency-Key and body returns the stored response of the first attempt with the header Idempotent-Replayed: true. Only successful (2xx) responses are stored: an error is never replayed, and a request rejected with a 4xx frees its key.
A request that ended in a 5xx or never finished does not free its key. On POST /v1/messages, POST /v1/billing/topup, POST /v1/events, POST /v1/contacts/{id}/consent and POST /v1/contacts/consent/bulk a retry with the same key runs again and finds what the first attempt did. On every other route the key answers 409 conflict with original_status until it expires after 24 hours — see Idempotency.
Related
- Errors — status codes, the
402body and retry guidance - Conventions — rate limits and idempotency
- Authentication — API keys and permissions