Skip to content
Chatwise
Skip to Content
Developer docs

Every error

Every error the Chatwise API answers on purpose, by status, with its body and what to do.

View as Markdown

How errors are shaped, and which to retry, is in errors.

400

Validation failed

A parameter or body field is missing, unknown or malformed. errors lists each one.

{
  "message": "Validation failed",
  "errors": [
    {
      "path": "query.limit",
      "message": "Limit must be an integer between 1 and 100"
    }
  ]
}

From list conversations, get a conversation, list a conversation's messages, get a message, list or search messages, send a template by id, send a template by name, list WhatsApp templates, create a WhatsApp template, get a WhatsApp template, create a webhook endpoint, get a webhook endpoint, update a webhook endpoint, delete a webhook endpoint, send a test event, rotate the signing secret, list deliveries, get a delivery, and redeliver.

Invalid cursor or cursor does not match this request

The cursor isn't one this route returned, or the filters or order changed since.

{
  "object": "Pagination",
  "field": "cursor",
  "message": "Invalid cursor or cursor does not match this request"
}

From list conversations, list a conversation's messages, list or search messages, list WhatsApp templates, and list deliveries.

Malformed JSON

The request body isn't valid JSON. The message says where.

{
  "message": "Expected property name or '}' in JSON at position 1 (line 1 column 2)"
}

From send a template by id, send a template by name, create a WhatsApp template, create a webhook endpoint, and update a webhook endpoint.

Template must be approved to send messages

Meta hasn't approved the template, or paused or rejected it.

{
  "object": "Template",
  "field": "status",
  "message": "Template must be approved to send messages"
}

From send a template by id.

This template is on a different WhatsApp Business Account from the number in from

Use a from number on the template's WhatsApp Business Account.

{
  "object": "Template",
  "field": "templateId",
  "message": "This template is on a different WhatsApp Business Account from the number in from"
}

From send a template by id.

An OTP code is required for authentication templates

Send the code as templateParams with parameter_name set to otp.

{
  "object": "Template",
  "field": "templateParams",
  "message": "An OTP code is required for authentication templates"
}

From send a template by id and send a template by name.

Numbered template variables must start at 1 and include each position once

Number the variables from 1, each once.

{
  "object": "Template",
  "field": "templateParams",
  "message": "Numbered template variables must start at 1 and include each position once"
}

From send a template by id and send a template by name.

That WhatsApp number is not connected to this workspace

Use one of the workspace's connected numbers, digits only. data.accounts lists them.

{
  "object": "channelAccount",
  "field": "from",
  "message": "That WhatsApp number is not connected to this workspace",
  "data": {
    "accounts": [
      {
        "id": "11",
        "channel": "WHATSAPP",
        "connected": true,
        "needsReconnect": false,
        "phoneNumber": "+1 202-555-0199",
        "name": "Example Store",
        "waBusinessId": "100200300400500",
        "username": null,
        "pageId": null,
        "websiteId": null
      }
    ]
  }
}

From send a template by id and send a template by name.

Provide one sample value for each placeholder

The definition breaks one of WhatsApp's template rules. field and message say which.

{
  "object": "WhatsApp template",
  "field": "components.body.examples",
  "message": "Provide one sample value for each placeholder"
}

From create a WhatsApp template.

Meta rejected the template submission. Check the template details and try again

Meta refused the submission.

{
  "object": "WhatsApp template",
  "field": "body",
  "message": "Meta rejected the template submission. Check the template details and try again"
}

From create a WhatsApp template.

Use a public https:// URL on port 443, without a username, password or #fragment

The URL can't receive webhooks.

{
  "object": "Webhook endpoint",
  "field": "url",
  "message": "Use a public https:// URL on port 443, without a username, password or #fragment."
}

From create a webhook endpoint and update a webhook endpoint.

Every account id must be one of this workspace's connected accounts

An id in accountIds isn't one of the workspace's accounts.

{
  "object": "Webhook endpoint",
  "field": "accountIds",
  "message": "Every account id must be one of this workspace's connected accounts."
}

From create a webhook endpoint and update a webhook endpoint.

A workspace can have at most 10 webhook endpoints

Delete an endpoint you no longer use.

{
  "object": "Webhook endpoint",
  "field": "url",
  "message": "A workspace can have at most 10 webhook endpoints."
}

From create a webhook endpoint.

Message events need an API key with the messages:read scope too

The key lacks messages:read, which message.* events need.

{
  "object": "Webhook endpoint",
  "field": "events",
  "message": "Message events need an API key with the messages:read scope too."
}

From create a webhook endpoint and update a webhook endpoint.

This delivery is already waiting to be sent

It is PENDING or PROCESSING.

{
  "object": "Webhook delivery",
  "field": "id",
  "message": "This delivery is already waiting to be sent."
}

From redeliver.

The endpoint no longer subscribes

Subscribe the endpoint to the event again first.

{
  "object": "Webhook delivery",
  "field": "id",
  "message": "The endpoint no longer subscribes to message.received."
}

From redeliver.

The message was unsent, deleted or hidden, so it can't be sent again

The message is no longer visible through the API either.

{
  "object": "Webhook delivery",
  "field": "id",
  "message": "The message was unsent, deleted or hidden, so it can't be sent again."
}

From redeliver.

401

A valid Bearer API key is required

The Authorization header is missing or isn't Bearer <API key>.

{
  "message": "A valid Bearer API key is required"
}

Any route.

Invalid or revoked API key

The key doesn't exist, was revoked, or has expired.

{
  "message": "Invalid or revoked API key"
}

Any route.

Invalid API key

Chatwise couldn't check the key. Try again.

{
  "message": "Invalid API key"
}

Any route.

402

ADMIN_SERVICES_BLOCKED

Sending is paused for the workspace. Contact support.

{
  "code": "ADMIN_SERVICES_BLOCKED",
  "message": "Chatwise services have been paused for this workspace by an administrator. Contact support to restore service."
}

From send a template by id and send a template by name.

403

API key does not have the required scope

The key lacks the route's scope. Create a key that has it.

{
  "message": "API key does not have the required scope: conversations:read"
}

Any route.

WHATSAPP_REAUTH_REQUIRED

Meta no longer accepts Chatwise's access to the number. Reconnect it in the dashboard. reason is expired, revoked or missing, and the message depends on it.

{
  "code": "WHATSAPP_REAUTH_REQUIRED",
  "message": "WhatsApp authorization has expired. Ask an administrator to reconnect WhatsApp in Settings.",
  "reason": "expired"
}

From send a template by id, send a template by name, and create a WhatsApp template.

The connected WhatsApp account is not authorized to create templates

The connected WhatsApp account can't create templates.

{
  "message": "The connected WhatsApp account is not authorized to create templates"
}

From create a WhatsApp template.

Changing an endpoint that receives message events needs an API key with the messages:read scope too

The endpoint has message.* events and the key lacks messages:read.

{
  "message": "Changing an endpoint that receives message events needs an API key with the messages:read scope too."
}

From update a webhook endpoint and rotate the signing secret.

Reading a message event's delivery needs an API key with the messages:read scope too

The delivery is for a message.* event and the key lacks messages:read.

{
  "message": "Reading a message event's delivery needs an API key with the messages:read scope too."
}

From get a delivery and redeliver.

404

Conversation not found

No conversation with this id in the key's workspace.

{
  "message": "Conversation not found"
}

From get a conversation, list a conversation's messages, and list or search messages.

Message not found

No visible message with this id in this conversation.

{
  "message": "Message not found"
}

From get a message.

Template not found

No such template in the key's workspace. Sending by name finds approved templates only.

{
  "message": "Template not found"
}

From send a template by id, send a template by name, and get a WhatsApp template.

Whatsapp account not found

The workspace has no connected WhatsApp number.

{
  "message": "Whatsapp account not found"
}

From send a template by id and send a template by name.

No connected WhatsApp number on this template's business account

Connect a number on the template's WhatsApp Business Account.

{
  "message": "No connected WhatsApp number on this template's business account"
}

From send a template by id and send a template by name.

WhatsApp ID not found

The workspace has no WhatsApp number.

{
  "message": "WhatsApp ID not found"
}

From send a template by name.

Active WhatsApp connection not found

Connect a WhatsApp number in the dashboard first.

{
  "message": "Active WhatsApp connection not found"
}

From create a WhatsApp template.

Template not found

The template this submission created was deleted since. Use a new Idempotency-Key.

{
  "message": "Template not found"
}

From create a WhatsApp template.

Webhook endpoint not found

No endpoint with this id in the key's workspace.

{
  "message": "Webhook endpoint not found"
}

From get a webhook endpoint, update a webhook endpoint, delete a webhook endpoint, send a test event, rotate the signing secret, and list deliveries.

Webhook delivery not found

No delivery with this id, or its endpoint was deleted, or it is older than 30 days.

{
  "message": "Webhook delivery not found"
}

From get a delivery and redeliver.

409

TEMPLATE_EXISTS

Use another name, or read the existing template.

{
  "code": "TEMPLATE_EXISTS",
  "message": "A WhatsApp template with this name and language already exists"
}

From create a WhatsApp template.

IDEMPOTENCY_KEY_REUSED

Use a new key for a new template.

{
  "code": "IDEMPOTENCY_KEY_REUSED",
  "message": "This Idempotency-Key was already used with different template details"
}

From create a WhatsApp template.

TEMPLATE_SUBMISSION_IN_PROGRESS

A submission of this name and language, with this key or another, is running or unconfirmed. Wait, then repeat the request with the key it was made with.

{
  "code": "TEMPLATE_SUBMISSION_IN_PROGRESS",
  "message": "A submission for this template name and language is already in progress"
}

From create a WhatsApp template.

TEMPLATE_SUBMISSION_UNCONFIRMED

Repeat the request later with the same key and body. If it keeps answering this, Meta doesn't have the template: submit it under another name.

{
  "code": "TEMPLATE_SUBMISSION_UNCONFIRMED",
  "message": "Meta has not confirmed this submission. Retry using the same Idempotency-Key"
}

From create a WhatsApp template.

WHATSAPP_CONNECTION_CHANGED

The workspace connected another WhatsApp Business Account since. Submit again with a new key.

{
  "code": "WHATSAPP_CONNECTION_CHANGED",
  "message": "The WhatsApp connection changed after this template was submitted"
}

From create a WhatsApp template.

413

request entity too large

The request body is larger than 100 KB.

{
  "message": "request entity too large"
}

From send a template by id, send a template by name, create a WhatsApp template, create a webhook endpoint, and update a webhook endpoint.

429

API key rate limit exceeded

Wait the number of seconds in the Retry-After header.

{
  "message": "API key rate limit exceeded"
}

Any route.

500

Internal server error

Something failed in Chatwise. Retry reads with backoff.

{
  "message": "Internal server error"
}

From list conversations, get a conversation, list a conversation's messages, get a message, list or search messages, list WhatsApp templates, get a WhatsApp template, list webhook endpoints, create a webhook endpoint, get a webhook endpoint, update a webhook endpoint, delete a webhook endpoint, send a test event, rotate the signing secret, list deliveries, get a delivery, redeliver, and list event types.

WhatsApp send failed

WhatsApp didn't accept the message. The number is Meta's HTTP status, and after it comes Meta's answer when that was JSON. A 429 can be tried later, after a 5xx check first, and for other statuses fix what the answer names.

{
  "message": "Internal server error: WhatsApp send failed: 400 {\"error\":{\"message\":\"(#132000) Number of parameters does not match the expected number of params\"}}",
  "errorId": "7b0c7f5e-2f0a-4c55-9a3e-0d8f4c1b2a6d"
}

From send a template by id and send a template by name.

Internal server error

Something failed in Chatwise. The message may have been sent, even if it isn't in the conversation. Quote errorId to support.

{
  "message": "Internal server error",
  "errorId": "7b0c7f5e-2f0a-4c55-9a3e-0d8f4c1b2a6d"
}

From send a template by id and send a template by name.

Internal server error

Something failed in Chatwise. Repeat the request with the same key and body.

{
  "message": "Internal server error"
}

From create a WhatsApp template.

502

WHATSAPP_LOOKUP_FAILED

Repeat the request with the same key and body.

{
  "code": "WHATSAPP_LOOKUP_FAILED",
  "message": "Could not check the WhatsApp template submission"
}

From create a WhatsApp template.

TEMPLATE_SUBMISSION_UNCONFIRMED

Repeat the request with the same key and body.

{
  "code": "TEMPLATE_SUBMISSION_UNCONFIRMED",
  "message": "The WhatsApp template submission could not be confirmed. Retry using the same Idempotency-Key"
}

From create a WhatsApp template.

503

WHATSAPP_RATE_LIMITED

Wait, then repeat the request with the same key and body.

{
  "code": "WHATSAPP_RATE_LIMITED",
  "message": "WhatsApp is rate limiting template submissions. Retry with the same Idempotency-Key"
}

From create a WhatsApp template.

On this page

400Validation failedInvalid cursor or cursor does not match this requestMalformed JSONTemplate must be approved to send messagesThis template is on a different WhatsApp Business Account from the number in fromAn OTP code is required for authentication templatesNumbered template variables must start at 1 and include each position onceThat WhatsApp number is not connected to this workspaceProvide one sample value for each placeholderMeta rejected the template submission. Check the template details and try againUse a public https:// URL on port 443, without a username, password or #fragmentEvery account id must be one of this workspace's connected accountsA workspace can have at most 10 webhook endpointsMessage events need an API key with the messages:read scope tooThis delivery is already waiting to be sentThe endpoint no longer subscribesThe message was unsent, deleted or hidden, so it can't be sent again401A valid Bearer API key is requiredInvalid or revoked API keyInvalid API key402ADMIN_SERVICES_BLOCKED403API key does not have the required scopeWHATSAPP_REAUTH_REQUIREDThe connected WhatsApp account is not authorized to create templatesChanging an endpoint that receives message events needs an API key with the messages:read scope tooReading a message event's delivery needs an API key with the messages:read scope too404Conversation not foundMessage not foundTemplate not foundWhatsapp account not foundNo connected WhatsApp number on this template's business accountWhatsApp ID not foundActive WhatsApp connection not foundTemplate not foundWebhook endpoint not foundWebhook delivery not found409TEMPLATE_EXISTSIDEMPOTENCY_KEY_REUSEDTEMPLATE_SUBMISSION_IN_PROGRESSTEMPLATE_SUBMISSION_UNCONFIRMEDWHATSAPP_CONNECTION_CHANGED413request entity too large429API key rate limit exceeded500Internal server errorWhatsApp send failedInternal server errorInternal server error502WHATSAPP_LOOKUP_FAILEDTEMPLATE_SUBMISSION_UNCONFIRMED503WHATSAPP_RATE_LIMITED