Skip to content
Get started
Esc
Making requests

Getting started

Updated 4 December 2026

Authentication

Every request carries the header Authorization: Bearer <key>. The examples have YOUR_API_KEY where the key goes. Read the key from an environment variable, for example AIRBOX_API_KEY, and never write it into code or commit it.

A live key starts with abx_live_ and sends real messages. A test key starts with abx_test_ and works on the simulator: nothing it does reaches customers or Meta.

A key belongs to one workspace and works only there. If you run several workspaces, create a key in each, under its API keys.

A key is a secret. Keep it on your server and never send it to a browser or a mobile app.

Rate limits

No more than 300 requests a minute per key. Every response to a request with a valid key where the API is open carries X-RateLimit-Limit and X-RateLimit-Remaining: the limit and how many requests are left this minute. Beyond the limit the response is 429 rate_limited, which also carries Retry-After and X-RateLimit-Reset: how many seconds to wait and when the limit renews, in Unix time.

Meta also limits sending per number: up to 80 messages a second leave it, and the rest wait in a queue and go in order.

Idempotency

Add an Idempotency-Key header to every ⁠POST /v1/messages, its own for each message, for example from the order id. A retry with the same key and body returns the first response with the header Idempotent-Replayed: true and does not send the message again. A key is remembered for 24 hours, and may be up to 255 characters, not blank.

Retry only after a network error, 429 or 5xx, with the same Idempotency-Key and a pause. Retrying after a 4xx response is pointless, so fix the request first.

Request IDs

Every response carries the X-Request-Id header with the request’s id, and an error body repeats it as request_id. Log it: with it we can find the request if something goes wrong. You may send your own id in the same header: Latin letters, digits and _ . : -, up to 128 characters.