Documentation

WhatsApp API through Zera: the Meta reference, in English.

The endpoint and payload reference is Meta's own, and it stays that way. This page keeps the part of it that does not depend on how Zera delivers the access: the first message, what coexistence changes on a number and the common Meta errors.

This documentation is available in Portuguese

How Zera delivers the WhatsApp API access and connects your number is described on the Portuguese page. If you prefer English, talk to Zera on WhatsApp.

The first message

One endpoint, one key, one minute. The address is Meta's own, and the message goes from your server straight there. Zera does not sit in the middle.

curl -X POST https://graph.facebook.com/v25.0/SEU_PHONE_NUMBER_ID/messages \
  -H "Authorization: Bearer SEU_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "messaging_product": "whatsapp",
    "to": "5545999999999",
    "type": "text",
    "text": { "body": "Hello!" }
  }'

Version v25.0 is the one in this example, and it is valid until 29 July 2028. Always sending the version in the URL is deliberate: a call without a version uses whatever is set in the app settings on Meta, and when a version expires Meta silently forwards to the next one, changing behaviour with no warning.

What changes on your number after coexistence

This list comes from the Meta table on onboarding Business app users, not from someone remembering. It is here because the difference between an informed developer and a support ticket is reading it beforehand.

  • Companion devices linked to the number are unlinked.
  • Broadcast lists are disabled. New ones cannot be created, and existing ones become read only.
  • Groups do not sync. They keep working only in the app.
  • Disappearing messages are disabled in one to one conversations.
  • View once is disabled in the same conversations.
  • Live location is disabled.
  • Voice and video calls stay in the app only.
  • Catalogue, orders and status stay in the app only.
  • Throughput is fixed at twenty messages per second.

Common Meta errors

These are Meta codes, and they show up both when connecting a number and in your own calls. The decision always comes from the code, never from the wording of the message: Meta itself recommends not relying on the text for logic, because it rewrites the text without notice.

Code What to do
133016 Number registration blew the budget and the number is locked for 72 hours. Do not insist: every extra attempt pushes the deadline further. Wait, and read the time in error_data.details.
133008 and 133009 A wait with a deadline. The time is written in error_data.details, in the response itself. Read it from there. Meta does not publish a fixed number for these two, and a guessed value either locks your number for too long or burns an attempt from the budget.
133005 The number already had two step verification, and the PIN is yours. The way out is turning verification off in WhatsApp Manager and connecting again. For numbers where Meta has already removed the two-step verification PIN, the option does not appear and there is nothing to turn off. Zera cannot unlock that from its side.
190 The token is no longer valid. Talk to Zera: the credential is delivered again in a new connection, on a call.
200 Missing permission for what was requested. Check that the token belongs to the right number.
368 Account restricted for a policy violation. Retrying does not unlock anything, and still generates calls on an already flagged account. The way out is resolving the restriction with Meta.
100 Invalid parameter. On reads it is usually a field requested in fields that does not exist in that Graph version, and in that case you lose the whole list over one optional field. On authorization calls it is usually one parameter too many.
4 A ceiling on the whole app, not on your number. Retrying does not help. If it shows up, every client of that app stopped at once.
1 and 2 Temporary unavailability at Meta. Trying again later is the right answer.
  • The exact meaning of each code belongs to Meta and lives in its error code reference. Repeating Meta text here from memory would be inventing.
  • A call that dies mid flight, or a 5xx with no body, is not a refusal from Meta: it is Meta not having answered. Those are different things, and the second one asks for a retry.