Skip to content
WhatSync/DocsAPI v1

Errors, limits and retries

Keep retries safe and distinguish an accepted send from confirmed delivery.

Error responses

Code
{"error":{"code":"rate_limited","message":"Too many requests","retry_after":30}}
CodeHTTPNext step
invalid_api_key401Key is invalid, revoked, or account access is unavailable.
insufficient_permission403Grant the required scope.
plan_required403API keys and webhooks need the Max plan or higher. upgrade_url links to pricing.
payment_failed402The plan's renewal could not be charged 3 times, so API keys and webhooks are paused until the card is updated (billing_url). Messages still save. Stop and tell a person.
unknown_tool404Use a name from GET /api/v1/tools.
invalid_input400 / 415 / 413Validate JSON against the tool schema and size limits.
rate_limited429Wait for Retry-After; retain the same idempotency key.
daily_limit_reached429Nothing was sent: this personal WhatsApp number used its daily API sends. Retry-After counts to 00:00 UTC. Then send again with a new idempotency key.
new_people_limit429Nothing was sent: the number reached its limit for people it never chatted with. Wait for Retry-After, then send again with a new idempotency key.
sending_off409Nothing was sent: the owner turned sending off for this number. Stop and tell a person.
from_number_required422Nothing was sent: the account has several WhatsApp numbers. Pass fromNumber.
whatsapp_not_connected409Check /api/v1/me and reconnect the intended channel.
duplicate_message409Nothing was sent: the same text went to the same person or group within the hour. Send a different message, or wait.
number_without_plan403Nothing was sent: this number has no plan of its own and its free trial ended. Use fromNumber with a number that has a plan.
invalid_request422Nothing was done: the tool refused this input before changing anything (error.done is false). Fix the input; the same idempotency key may be reused.
not_found404Nothing was done: the campaign, webhook or other item is not on this account.
conflict409Nothing was done: the item is not in a state that allows this (for example a campaign that already started). Read it again first.
not_allowed403Nothing was done: this account's plan or settings do not allow it.
tool_error422 / 503Inspect the error and quote X-Request-Id to support.
outcome_unknown409Inspect get_operation or get_send_status. Do not send again with a new key. message ends with the last error seen, when there was one.

Recover without duplicate sends

Save the HTTP status, response body and X-Request-Id. For HTTP 429, wait the Retry-After seconds and reuse the same input and idempotency key. For a network timeout, HTTP 409 outcome_unknown or an uncertain provider result, do not create a new key. Use error.intent_id with get_send_status (intentId) or error.operation_id with get_operation (operationId). A timeout before an ID arrives is not evidence the action failed: send the identical request again with the same key, and WhatSync answers with the first send's result. Running WhatsApp unattended has every case, and safe send is a ready n8n and Make pattern for it.

Illustrative uncertain-operation error
{
  "error": {
    "code": "outcome_unknown",
    "message": "The action may have been accepted. Inspect the operation before retrying.",
    "operation_id": "00000000-0000-4000-8000-000000000001"
  }
}

Reads return the tool result directly. Most writes return operation_id, status and a nested result; send_message and send_whatsapp_form return intent_id instead; send_message to a group returns that group send's operation_id, result and group. get_operation returns the operation identifier as id. completed means the operation finished, not confirmed message delivery.

Limits

Read tools allow 600 requests per minute per key and write tools 120. Each account may have ten active keys and ten webhook endpoints. JSON request bodies are limited to 600,000 bytes. Webhook management is limited to 60 requests per minute per account; group tools also have a shared provider limit of 10 per minute.

Personal WhatsApp numbers can be banned by WhatsApp for sending too much, so sends through the API are capped per number at 200 messages a day on Max, 300 on Business, and 5 a minute. AI agents such as Claude and ChatGPT have their own budget on the same number: 15 a day on a free trial, 50 on a paid plan. Messages, files, reactions, polls and group messages all count. Counts reset at 00:00 UTC.

The official WhatsApp Business API has no WhatSync daily limit when you use an API key. Meta's own messaging limits and template rules still apply.

One intended action, one stable key

Idempotency keys are 8–128 characters: letters, numbers, period, underscore, colon or hyphen. A body idempotencyKey takes precedence over the header. Reuse exactly the same inputs and key for retries. When replying to a webhook, use its event ID. A different action requires a different key. Management operations may return an operation_id and a result envelope; use get_operation to inspect an uncertain outcome. Never treat a timeout as proof that nothing was sent.