Handle your integration by
status, error, code and subCode. The message text is meant for humans and may change without notice.The three changes below went to production on November 18, 2026.After:After:When the source IP cannot be identified, After:After:After:After, on send:On edit (After:After:
Clearer errors for authentication, plan, QR code and disconnected channel
The errors below now carry amessage that says what happened, why and what to do. Three of them change status. Where there was already a text, it stays as the start of message.The status changes below —
400→401, 400→403 ip_not_allowed and 422→403 plan_required — are on the Omni API (https://api.omni.z-api.io/v1/...). On the compatible Z-API route (https://zapi.omni.z-api.io) authentication and the IP allow list have not changed: a refused credential stays 400/422 {"error": "Authorization invalid"} and an IP off the list stays 400 {"error": "<ip> not allowed"}.Secret key refused: 400 becomes 401
Applies to the Omni API (/v1/...) routes that accept the secret key. The message depends on the cause:<secret-key> is literal: the response never echoes the value you sent.Before:IP not allowed: 400 becomes 403
Before:message starts with ip not allowed: .Without the ENTERPRISE role: 422 becomes 403 plan_required
Applies to the six channel operations with the secret key: list, read, create, delete, subscribe and cancel the subscription. Each keeps its current text as the start ofmessage: Channel listing requires ENTERPRISE role (list and read), Channel creation requires ENTERPRISE role, Channel deletion requires ENTERPRISE role and Channel subscription requires ENTERPRISE role (subscribe and cancel).Before:Blocked workspace: same status, with message
Applies to sending, message editing and group routes, with the secret key or with an OAuth token.Before:QR code refused: same status and same error, with message
Applies toGET /v1/channels/{id}/zapi/qr-code and GET /v1/channels/{id}/zapi/qr-code/image, when the refusal comes with NEED_SIGN_ZAPI. The error object does not change, field by field. Other QR code refusals stay as they are today.Before:Disconnected channel: only the message changes
Applies toPOST /v1/channels/{id}/messages, to the /send-* routes and to PUT /v1/channels/{id}/messages/{messageId}. Status, timestamp, code and subCode do not change.Before:PUT .../messages/{messageId}), the text says the message was not edited and ends with and edit again. An edit made through POST .../messages with editMessageId gets the send text.What to do
- If your integration handles a refused credential by
status == 400, handle401instead. - If it handles an IP not on the list by
400, handle403witherrorip_not_allowed. - If it handles the missing
ENTERPRISErole by422, handle403witherrorplan_required. The old text lefterrorand is now the start ofmessage. - If it compares the IP or role
errorwith the exact text, compare withip_not_allowedandplan_required. - Blocked workspace, refused QR code and disconnected channel need no change: status,
error,codeandsubCodestay the same. - On the compatible Z-API route nothing changes here: a refused credential stays
400/422and an IP off the list stays400.
invalid_token, insufficient_scope and ip_not_allowed stay as they are today, and reading channels with the token still does not require the ENTERPRISE role. The Public Key used in the connection SDK does not change either.Webhooks in the Z_API format: notification at the callback root
For notification events (group, call, profile, newsletter and system messages), webhooks withpayloadFormat Z_API will deliver notification as a string and notificationParameters as an array, both at the root of the ReceivedCallback, as Z-API does. Today both arrive inside a notification object.Before:notificationParametersis only sent when the event has parameters. It can be empty ([]).- Pinned messages stay in
pinMessage, unchanged. - The
DEFAULTandCHATWOOTformats do not change. - On official API (Meta) channels, the
notificationvalue is still what Meta sends (for example,revoke). Only the field position changes.
What to do
If your integration readsnotification.notification or notification.notificationParameters, read notification and notificationParameters at the root instead. If you already follow the Z-API documentation, no change is needed. See Webhooks introduction./send-* routes now accept the Omni payload
ThePOST /v1/channels/{id}/send-* routes now accept the same body as POST /v1/channels/{id}/messages, {"recipient": {...}, "content": {...}}, and respond like it: 200 with {"messageId": "..."}. The message type comes from the route, so content.type is optional.Before, these routes forwarded the body without parsing it, and nothing was sent: the response was 502, 400 or 415, depending on the body.Before:Route and type
On
send-document/{extension}, the path segment is ignored: the extension goes in each attachment, as in /messages. send-template still accepts only official WhatsApp (Meta) channels. If the channel does not support the type, the refusal is the same as in /messages.Errors
The examples use
send-text, TEXT and send-poll. On each route, the text carries that route’s name and type.Routes with no equivalent type respond 422 with any credential or none, and do not count toward the app send limit: send-link-list, send-option-multi-list, send-button-pix, send-remove-reaction, send-poll, send-poll-vote, send-call, send-chat-expiration, send-text-status, send-image-status, send-video-status, send-order, send-request-payment, send-event, send-edit-event, send-event-response, send-comment, send-catalog, send-product and send-newsletter-admin-invite.The /send-* routes now exist only under /v1/channels/{id}. The variants /channels/{id}/send-*, /v1/instances/{id}/send-*, /instances/{id}/send-*, /v1/devices/{id}/send-* and /devices/{id}/send-* now respond 404. POST .../messages and PUT .../messages/{messageId} stay on every variant.With an OAuth token, the typed routes require the same messages:send scope as /messages and count toward the same daily app send limit.What to do
- To send through a
/send-*route, use thePOST /v1/channels/{id}/messagesbody, on the/v1/channels/{id}/send-*path. See Messages. - The body is still JSON. File upload through
multipart/form-datais not accepted: send the media by URL or Base64 inside the JSON. - If your integration uses the Z-API body (
phone,message), use the Z-API compatibility, athttps://zapi.omni.z-api.io, which accepts that format.