Rate limiting
Limits apply per API key and per group of endpoints. Each group has its own counter: at most this many requests in any 60-second sliding window.
These limits are fixed: they do not grow with volume or price tier. Requests without a valid API key are limited to 120 per 60 seconds per IP address. A bulk call (
POST /v1/contacts/bulk, up to 1,000 rows; POST /v1/rcs/capabilities:batch, up to 10,000 numbers) counts as one request.
Priority keeps one-time codes moving: an RCS message with traffic_type AUTHENTICATION or ACKNOWLEDGEMENT is counted in its own window instead of Send, so a marketing burst on the same key can use up Send but never the codes’ window. Which window a request counts in is decided from its body: a body with agent_id and one of those two traffic types counts as Priority.
Per-agent limits for RCS
On top of the key’s window, every RCS agent has two limits of its own, counted across all API keys of the workspace:
More keys don’t raise them. Only sends that pass every other check — agent, content, the agent’s launch and route, consent — count toward an agent’s lanes: a send refused for one of them uses up nothing. A request over an agent’s limit is refused with
429 rate_limit_exceeded and retry_after, like a key limit — nothing was sent or charged. A promotion burst fills only the standard lane, so codes through the same agent keep going out.
How the window works:
- Sliding, not fixed. A request counts for exactly 60 seconds after it was accepted. There is no minute boundary at which everything resets.
- Refused requests don’t count. A
429is not added to the window, so retrying afterretry_aftergets through — however often you were refused before. - Every accepted request counts, whatever its answer (
2xx,4xxor5xx).
Limits of the capability checks and the sandbox
These routes have limits of their own on top of the key’s window, counted across all API keys of the workspace. A refused call answers429 rate_limit_exceeded with retry_after.
The hour and day windows slide like the minute window. Details: Capabilities, RCS sandbox.
Response headers
When the limit is reached, the response is
429 Too Many Requests with a Retry-After header:
Seconds until the next request fits — the same moment as
X-RateLimit-Reset, rounded up (at least 1).Handling 429s
A request answered with429 was not carried out. Wait retry_after seconds, then send the request again — do not drop it. For bursts, back off with exponential jitter rather than retrying in a tight loop:
When the counter is unavailable
The counter runs on a fast store, with Arowana’s database as its fallback. If neither can be reached, each Arowana server counts on its own until they are back. Every route stays limited — a leaked or runaway key still meets429 once its band is full — and no request is refused just because the counter is down: sends go out, events are taken, reads and contact syncs keep working.
During such an outage the limit applies per server rather than across all of them, and responses carry X-RateLimit-Limit only; X-RateLimit-Remaining and X-RateLimit-Reset are left out rather than guessed. 429 still comes with Retry-After and retry_after.
Idempotency
ForPOST /v1/messages and other mutating routes, send an idempotency key so retries after timeouts do not create duplicate sends.
Use one key per logical operation, and the same key for every attempt of it. Pass the key in the
Idempotency-Key header on mutating routes (POST /v1/messages, billing top-ups, contact and consent writes, the bulk routes). Up to 255 characters.
- Derive it from your own data — the order, booking or job it belongs to (
order-1234-shipped,booking-8812-reminder-1) — or generate a UUID once and store it with the job before the first attempt. A key generated anew on every attempt ($(uuidgen)inline,crypto.randomUUID()inside the retry loop) protects nothing. - 24 hours. A retry with the same key within 24 hours replays the original successful answer (header
Idempotent-Replayed: true): no second send, no second charge. After 24 hours the key is forgotten and the same key starts a new operation. - Same key, different body →
409 conflict: a different message needs a different key. - Still running →
409 conflictwithRetry-After: wait, then send the same request with the same key. - A
4xxanswer frees the key: fix the request and send it again with the same key. - After a
5xxor a timeout, retry with the same key: sends and top-ups resolve to the original message or payment. On other routes the key then answers409 conflict(outcome unknown) — look the resource up, and use a new key only for a new attempt.
Idempotent-Replayed: true. Keys are kept for 24 hours. Only 2xx answers are stored; a request rejected with a 4xx frees its key. The same key with a different body answers 409 conflict, and so does a key whose first request is still running (with a Retry-After header).
After a server error
A request that ended in a5xx, or that never finished, may or may not have taken effect. Its key is not freed:
POST /v1/events also has a key of its own: the idempotency_key in the body stays with the event without a time limit, so the same event is recorded once however late it is sent again. See Send an event → Retrying.
A request refused with 429 was not carried out and does not use its key up.
Retrying
Arowana does not repeat a request that failed. After a5xx, a timeout or a network error, send it again with exponential backoff and jitter — for example after 1 s, 5 s, 30 s, 2 min and 10 min, then once an hour for up to 24 hours — and always with an idempotency key. After a 429, wait retry_after seconds. Do not retry other 4xx answers unchanged, and do not retry 503 not_available: that feature is not connected yet.
Polling for a result
Prefer webhooks for delivery results. If you poll, don’t loop per message every second: an RCS message to a phone that is offline can staySENT for days. A schedule such as 5 s, 30 s, 2 min, then every 15 minutes, stopping after 48 hours, stays well inside the Read window — or list many at once with GET /v1/messages?status=SENT&from=…. Statuses are upper case (QUEUED, SENT, DELIVERED, READ, BOUNCED, FAILED, REVOKED, …).
Dates and times
- All timestamps use ISO 8601 in UTC:
2026-03-28T14:30:00Z. Thetimestampof a webhook envelope also carries milliseconds (2026-03-28T14:30:00.123Z). - Durations use string form where documented. The
ttlof an RCS message is seconds with ans:"3600s"(at least6s, at most1296000s= 15 days).
Pagination
List endpoints page in one of two ways:
Offset results may skip or duplicate items if records are added or removed between pages.
Opaque token for the next page of transactions;
null on the last page. Pass it as the cursor query parameter.Error envelope
All errors share a consistent shape — see Errors for the full status code catalog.Correlation
Responses include anX-Request-Id header for support correlation. Include this value when filing bug reports or contacting support.
Content negotiation
Default content type isapplication/json. Binary or PDF responses (for example invoice downloads) return their Content-Type in the response header.