Follow Avox Docs on Google
Pick Avox Docs as a preferred source and Google shows these pages more often when you search for help with Avox.
When a request to the Avox API or the builder API doesn't go through, the response always has the same shape, so your code can handle every failure the same way:
{
"ok": false,
"error": {
"code": "invalid_recipient",
"message": "The \"to\" number isn't valid. Use the full international number with country code, digits only, like 15551234567.",
"docs_url": "https://docs.theavoxai.com/api/errors#invalid_recipient",
"request_id": "req_4f1c9a0b7e2d36a8c5b1f0e9",
"details": [
{ "path": "to", "message": "Use the full international number, digits only, like 15551234567" }
]
}
}
Error responses also carry Retry-After (whole seconds) when waiting will fix the problem.
Every request made with one of your keys, successful or not, is on the API logs page in the dashboard (Admins and Managers can open it):
request_id (req_...) into the search box, or pick a code in the error code filter
(Any error code) to see every request that failed the same way. Narrow it down by key, mode
(Live only or Test only), connection or date.A key's latest requests are also under Recent requests when you expand it in Settings > API Keys. See API logs.
Requests that never named a real key - no Authorization header, a mistyped key, or a request
refused by the per-address limits before the key was checked - can't be tied to your account,
so they aren't listed. Log X-Request-Id on your side for those.
When you retry, send the same Idempotency-Key header as the first attempt so a message is never
sent twice - except after a refusal from WhatsApp, which is kept against that key. See
Idempotency and Rate limits.
Some problems are found by WhatsApp only after it accepts a message, so they arrive later as a
failed status on Logs instead of as an error here (see
Delivery statuses and replies). The status
carries WhatsApp's own code - look it up on Meta error codes.
HTTP 401. The request had no API key.
Authorization header is missing, or your HTTP tool dropped it. Signing in
to the dashboard doesn't count - this endpoint only accepts an API key, never a browser session.Authorization: Bearer avx_live_... on every request, with your key read
from an environment variable on your server. See Authentication.HTTP 401. The key you sent isn't a key Avox recognises.
Bearer .Many failed key attempts from the same address in a short time are temporarily refused with
rate_limited. Fix the key before retrying.
HTTP 401. This key worked once but has been revoked.
HTTP 401. This key had an end date, and it has passed.
HTTP 403. This key only works from certain IP addresses, and the request came from somewhere else.
HTTP 403. API access is switched off for this account.
HTTP 403. The account's plan doesn't include API access.
HTTP 403. The account this key belongs to is suspended, so nothing can be sent with it.
HTTP 402. The account doesn't have an active plan.
Every key belongs to exactly one WhatsApp number. These errors are about that number.
HTTP 404. The number this key was made for has been removed.
HTTP 409. The number is paused, so it can't send.
HTTP 409. The number isn't connected right now.
HTTP 409. The number needs to be reconnected before it can send.
Idempotency-Key, it's freed, so the retry runs as
a new request.HTTP 409. The WhatsApp number this key was made for is moving to another of your Switchboards, so nothing was sent.
Retry-After header, then send the same
request again. Send-only keys keep working once the move is done; keys that could change tables,
Flows, templates or automations are turned off by the move.HTTP 409. The Switchboard this key belongs to is paused, so nothing can be sent from it.
HTTP 422. The template you named is on a different WhatsApp account of your Switchboard from
the number this key sends from. WhatsApp keeps templates per WhatsApp account, so this number can't
send it. Avox checks this before anything is sent. details[0].code is
AVX-4853.
order_update becomes order_update_4321) and is reviewed by Meta;
send it by that name once it's approved. Or send with a key for a number on the template's
account.HTTP 429. Too many requests in a short time.
Retry-After header, then retry. For bulk
sends, spread messages out instead of sending them all at once. See
Rate limits.Retry-After.HTTP 429. This key has used up its daily allowance.
Retry-After says how many seconds that is. If you
regularly need more, contact Support. The key also shows Hit its daily limit in
Settings > API keys.HTTP 413. The request body is over the endpoint's limit: 64 KB for a message, and the size given on each builder API page (for example up to 1,000 rows, or an 8 MB CSV).
link or id rather than embedding it, and send one message
per request. For rows, split the work into requests of up to 1,000 rows.HTTP 400. The body isn't valid JSON, isn't a JSON object, or a field is missing, the wrong type, or too long.
Content-Type: application/json), a
missing type, a text message over 4096 characters, a caption or a button or list message's
text over 1024, a media message with
both id and link (or neither), or a template parameter over 1024 characters.details - each entry names the field (path) and what's wrong with it.
Every limit is on Message types.HTTP 400. The to number isn't a valid phone number.
0, letters, or a local-format number.15551234567 or +44 7700 900123.
Spaces, dashes, dots, brackets and a leading + are fine; they're removed before sending.HTTP 400. The type field isn't one the API sends.
text, template, image, video, audio, document,
sticker, location, contacts, interactive or reaction. See
Message types.HTTP 400. The Idempotency-Key header isn't usable.
HTTP 409. This Idempotency-Key was already used in the last 24 hours with this API key for a
different message, or (builder API) a different request.
Idempotency-Key.HTTP 409. A request with this Idempotency-Key is still being processed.
Retry-After delay, then retry with the same key - once the first
request finishes you'll get its result.Retry-After, with the same key.These mean the request passed every Avox check and was handed to WhatsApp, which refused it.
meta_code carries WhatsApp's own code when there is one. With an Idempotency-Key, these results
are kept for 24 hours, so a retry with the same key returns the same error.
HTTP 422. WhatsApp has no approved template with that name in that language.
en and en_US are different).HTTP 422. The template exists but WhatsApp has paused or disabled it, usually because of negative feedback from recipients.
HTTP 422. The values you sent don't fit the template.
components with the template's placeholders, in order. See
Message types.HTTP 422. It's been more than 24 hours since this person last messaged you, so WhatsApp only allows a template.
template message. Once they reply, you can send other types
again for 24 hours. See Messaging window.HTTP 403. This number is marked private in Avox (on the number this key sends from), so Avox won't send to it.
HTTP 409. You blocked this person on the WhatsApp number this key sends from, so Avox won't send to them (WhatsApp would refuse it too).
HTTP 422. Address requests (address_message, or content.kind: "address_request") are a
WhatsApp feature for India only: the business number and the customer must both be Indian (+91).
HTTP 422. WhatsApp couldn't deliver to this number.
HTTP 429. WhatsApp is limiting how fast this number can send, or how often you can message one person.
Retry-After delay. See
Quality and limits.Retry-After. Because this result is kept against an Idempotency-Key,
retry with a new key.HTTP 422. WhatsApp refused the message for another reason.
meta_code on Meta error codes. WhatsApp's own
wording isn't passed through, so meta_code is the detail to go on.HTTP 502. WhatsApp didn't answer in time, so it's unclear whether the message went out.
Idempotency-Key is freed, so a retry - even with the same
key - sends the message again. If a duplicate would matter, check Logs for a status on
the message, or check with the person, first.These come from the builder API (/api/v1: tables, rows, Flows,
templates, automations). The errors above (your key, your account, limits, the request itself)
apply to it too.
HTTP 403. The key doesn't have the permission this request needs. details names it (like
tables:write). Sending messages needs send.
HTTP 403. The key acts with the permissions of the person who last set its permissions, and
that person can't do this in the Switchboard any more. details says which permission is missing.
HTTP 403. This part of Avox is switched off for the account that set the key's permissions.
For example Tables (every tables and rows call), or only creating tables, Flows, templates or
automations. error.details names the switch.
HTTP 403. Test keys (avx_test_...) read and check, but never change anything.
validate, a CSV
import dry_run) work with a test key.HTTP 503. This part of the API isn't switched on yet. Sending messages works as before.
Retry-After.HTTP 429. The Switchboard has used today's builder API calls of this kind on its plan (reads
and writes are counted apart, for every key together). details says how many of how many.
Retry-After), use bulk requests (up to 1,000 rows
in one call), or move to a bigger plan on Billing. GET /api/v1/me and the
Avox-Daily-Remaining header show what's left.HTTP 403. The request needs more than your plan allows. details says which, with a short
code.
On the builder API, the change would go over one of your plan's limits: tables, rows per table, columns per table, Flows, templates, automations, or automations switched on at once. Nothing was saved (a bulk request is all or nothing).
On POST /api/messages/send it means:
shops: a product message (product, product_list or catalog_message) from a number whose
shop is over your plan's shops. The numbers that got their shop first keep sending, up to the
limit; the others can't send product messages. details[0].path is interactive.
rich_templates: a limited-time offer, carousel or multi-product template on a plan that
doesn't include them. Templates you made earlier stay, but they can't be sent until the plan
includes them. details[0].path is template.name.
How to fix it: archive or delete what you don't need, or add fewer rows. For shops,
disconnect the catalogue in WhatsApp Manager on a number you don't sell from (then press
Refresh on its Shop page), or remove that number from Avox. Or move to a bigger plan. See
Plans.
Retry: after making room.
HTTP 400. A query parameter isn't valid: an unknown parameter, a limit out of range, a
filters value that isn't a JSON array, a sort on a column that doesn't exist.
details and fix those parameters.HTTP 400. The cursor doesn't belong to this list and these filters.
next_cursor with the
same filters and limit.HTTP 404. Nothing with that id exists in this key's Switchboard: a table (by id or API name), column (by id or key), row, Flow, template, automation or run.
GET /api/v1/tables...) and use an id from there.HTTP 412. The item changed since you read it, so your change wasn't made. For rows,
details names each row that changed and its new updatedAt.
ETag (or updatedAt).HTTP 409. The name is already used: a table's API name, a column's name or key in its table,
or a template's name in that language. For templates, details includes a free name.
HTTP 409. Flows, automations, templates or formula columns use what you're deleting or
archiving. details lists them.
force: true (a table archive) or ?force=true
(a delete) to go ahead: they're marked as needing attention and stop finding it.force, after deciding it's what you want.HTTP 409. You tried to delete a template that something still needs: a Broadcast that hasn't
finished (scheduled, sending or paused), a smart link that can still be opened (live, scheduled or
paused) or an automation that is on. details lists each one with its kind (code), name, state and id.
Nothing was deleted, at WhatsApp or in Avox.
force for this one.HTTP 409. Changing a column's type would empty some values, or Flows, automations or
templates use the column. details says how many values and what uses it.
"confirm": true to go ahead, or keep the type.confirm, after deciding it's what you want.HTTP 409. The table is archived: it can be read, but its rows and columns can't change.
POST /api/v1/tables/{tableId}/restore, then try again.HTTP 422. Some values don't fit their columns, so nothing was saved. Each entry in details
names the row and column (rows[3].price) and why: required (a required column is empty),
unique (another row has this value), unknown_column, or the type's own reason (not a number,
not a date, not one of the choices...). Making a column unique while values repeat lists the
repeated values here too.
HTTP 422. The CSV can't be imported as it is: no rows, too many rows, a column mapped to one that doesn't exist, or rows with problems (each listed with its file row and column).
columns mapping, run a dry_run again, or send
skipInvalid: true to import only the good rows.HTTP 409. Making a Flow or a template needs a connected WhatsApp number with a working connection, and this Switchboard has none right now.
HTTP 409. Only a draft Flow can change, be published again, switch its live data source or be deleted. Deprecating needs a published Flow.
new_version); deprecate the old
one when the new one is live.HTTP 422. Avox found problems that stop the Flow working: its JSON's shape, or its live data
settings against your tables (a table or column that doesn't exist, a screen that doesn't declare
the data a step sends). details lists each one.
HTTP 409. A live Flow on Avox's endpoint needs that endpoint to be reachable by WhatsApp, and right now it isn't.
HTTP 409. These table links need the Flow's screens to declare new data, and a published Flow's JSON can't change.
POST /api/v1/flows/{flowId}/live/mode with "action": "new_version" and the
new config: a new Flow is published with them.HTTP 409. Live data needs one more thing first. details says which: a table made from a
premade table (create it with POST /api/v1/tables), the signing secret for your own server, or
switching the number back to Avox's key (both in the dashboard, on the Flow's live data panel).
details says.HTTP 409. The template can't be edited now. details says why: it's still in review
(pending), its status doesn't allow edits (not_editable), an approved template's category
can't change (category_locked), nothing changed (no_changes), or its kind can't be edited
this way (unsupported_type, predates).
HTTP 429. WhatsApp allows an approved template to be edited once every 24 hours and 10 times in 30 days.
Retry-After seconds, or create a new template.Retry-After.HTTP 422. A step uses a {{...}} value that doesn't exist at that point (for example a step
name used before its step, or a row value without a table trigger). details names the step and
field.
{{order.status|unknown}}.HTTP 409. The automation can't be switched on (or a premade can't be made) yet. details
lists each reason with its step and code: no steps, a table, column, app or Flow it uses that's
missing or broken (AVX codes like AVX-3589), a template that isn't approved, a Flow that isn't
published, or what a premade needs.
HTTP 422. WhatsApp refused the template or Flow. details carries WhatsApp's reason and,
for a Flow, its findings in the JSON (line, column and where).
HTTP 502. WhatsApp didn't answer in time, so it's unclear whether the change was made.
Idempotency-Key the retry runs again.HTTP 503. Avox has paused the API, or the part of it your request uses, for everyone for a short while. The API has three parts that can be paused one by one: sending messages, the builder API and message forwarding to your webhook address. Nothing was sent, read or changed.
Retry-After delay and try again. The
status page says when it's back.Retry-After, with the same Idempotency-Key.Paused answers carry a few extra fields in error, next to the usual ones:
{
"ok": false,
"error": {
"code": "api_paused",
"message": "Sending messages through the Avox API is paused for a short while, so this message wasn't sent and nothing was charged. Wait the number of seconds in the Retry-After header, then send it again. The Avox status page shows when it's back.",
"docs_url": "https://docs.theavoxai.com/api/errors#api_paused",
"request_id": "req_4f1c9a0b7e2d36a8c5b1f0e9",
"solution": "Wait the number of seconds in the Retry-After header, then send it again.",
"service": "api",
"part": "send",
"status_url": "https://status.theavoxai.com/",
"retry_after_seconds": 300
}
}
HTTP 503. Avox has paused sending WhatsApp messages for everyone for a short while. Nothing was
sent and nothing was charged. It carries the same extra fields as api_paused, with service
set to whatsapp.
Retry-After delay and send it again.
The status page says when it's back.Retry-After, with the same Idempotency-Key.HTTP 500. Something went wrong at Avox. Nothing was sent.
Idempotency-Key returns
idempotency_in_progress, wait the Retry-After delay and try again. If it keeps happening,
contact Support with the request_id.