Skip to Content

Error codes

The Partner API's own error codes, on top of the API's common ones.

Errors use the API's common envelope (see Responses and errors): {"error": {"code", "message", "details": [{"field", "code", "message"}]}}. These codes are the Partner API's own.

CodeStatusWhen
PARTNER_NOT_ENABLED403The workspace's plan does not include the partner feature (details: {"field": "feature", "code": "partner"}).
FORBIDDEN403The key lacks the operation's scope (partner.read, partner.manage or partner.send).
INSUFFICIENT_CREDITS402A send or a negative adjustment needs more than the available credits (details: the available amount).
MESSAGE_BALANCE_EXHAUSTED402A send from a number connected through Messora's Meta app while your workspace's message balance is used up. Top it up under Billing; the customer's credits are not touched.
CREDIT_EXPIRY_REQUIRED422A grant or positive adjustment without a future expires_at (at most ten years ahead).
PARTNER_CUSTOMER_SUSPENDED409A send for a suspended customer.
RECIPIENT_OPTED_OUT422A send to a recipient that opted out of every customer or of this one.
CONTACT_UNDELIVERABLE422Meta could not deliver to this number before (error 131026): nothing is sent until the recipient writes to you.
CONTACT_OPTED_OUT422The recipient opted out with your workspace itself, e.g. a stop word before any of your customers messaged them, or a change in the panel.
MARKETING_STOPPED422A marketing template to a recipient who chose "Stop" for your business in WhatsApp.
PARTNER_DAILY_LIMIT429A send over the customer's daily limit (details: daily_limit, resets_at; Retry-After header).
IDEMPOTENCY_KEY_REUSED409An Idempotency-Key used before for a different send or grant.
PARTNER_RESERVATION_SETTLED409A reservation settled a second time (internal; you do not see it from sends).
VALIDATION_ERROR422Invalid input, e.g. a template that is not approved, a missing variable, an unsupported template kind, a usage range longer than 366 days.
NOT_FOUND404An unknown customer, send or opt-out (also another provider's: providers never see each other's data).

Retry 429 after Retry-After; never retry 402, 409 or 422 unchanged. A send retried with the same Idempotency-Key after a timeout is always safe.