What has changed
Every change to version 1 of the API, newest first. Changes within a version only ever add; see the stability promise. This installation runs API version 1.3.1.
Version 1.3.1 #
The WhatsApp rules check. No endpoint or field has changed.
Messages
- AddedSending text can now answer
422 policy_violationwhen the text breaks Meta’s rules for WhatsApp: it asks for a full card number, password, one-time code or ID document, or promotes something Meta never allows. The error’smessagenames the rule. Nothing is sent and nothing is counted against your limit.
What to check in your code
- Treat
policy_violationlike other 422 answers: do not retry the same text. Change the wording.
Version 1.3.0 #
WhatsApp Pay. Everything that worked before works unchanged.
Orders
- AddedThe Order object has two new fields.
payment_methodsays how the order is paid:whatsapp_pay,payment_linkormanual.payment_referenceis the reference a WhatsApp Pay order was sent with, and null otherwise. - AddedOrders paid inside WhatsApp (India, in rupees) appear in List orders and fire the
order.paidwebhook exactly like orders paid by link. They have nopayment_url;payment_idis the payment gateway’s own payment id.
What to check in your code
- If you treat an order with no
payment_urlas "no online payment", readpayment_methodinstead.
Version 1.2.0 #
Pages and forms, and one-time codes. Everything that worked before works unchanged.
New endpoints
- AddedPages and forms: create, list, get, update and delete pages of every kind; list entries; get an entry by id or ticket code; check a ticket in; cancel an entry; add and list bills.
- AddedOne-time codes: send a code on WhatsApp or SMS and check it, for sign-in and checkout on your own website.
- AddedObjects: Page, PageEntry and Bill.
- AddedGuides: verify a phone number, send notifications from your website, build a form or page from code.
New behaviour
- ChangedAccount: a plan limit set to Unlimited is reported with
"unlimited": true, andlimitandremainingare null.
Version 1.1.0 #
The API grows from messaging into the whole product. Everything that worked before works unchanged.
New endpoints
- AddedContacts: update, delete and bulk create or update (up to 100 at a time).
- AddedTags and segments: create and delete tags; list segments and a segment’s contacts.
- AddedConversations: assign, close and reopen; list a conversation’s messages; list the team.
- AddedMessages: send images, videos, audio and documents by link; get one message to check its delivery status.
- AddedTemplates and channels: get a template with its text; list every connected channel.
- AddedBroadcasts: get one with delivery numbers, create, pause, resume and cancel.
- AddedProducts and orders: manage the product list; read orders and mark them fulfilled or cancelled.
- AddedBookings: services, free times, and creating, moving and cancelling bookings.
- AddedAccount: plan, limits, usage and the key’s scope.
- Addedopenapi.json: the whole API as an OpenAPI 3.1 document.
New behaviour
- AddedRead-only keys. A key can now be limited to
GETrequests. Existing keys keep full access. See scopes. - AddedRate-limit headers. Every response carries
X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Reset.Retry-Afteron a 429 is now the real number of seconds left rather than always 60. - AddedIdempotency-Key is honoured on every create and send, not only messages and notes.
- AddedSeven new events:
order.created,order.paid,order.fulfilled,order.cancelled,booking.created,booking.rescheduledandbooking.cancelled. See events and payloads. - AddedNew fields. Contacts gain
attributes,notes,opted_out_at,last_seen_atandupdated_at. Messages gainmedia. Broadcasts gaintemplate_id,number_id,scheduled_atandcreated_at. Paged lists gainlimitandhas_more.GET /megainskey. - AddedNew filters. Contacts by
segment_id,opted_inandupdated_since; conversations byassigned_toandactive_since; messages bycontact_id,statusandsince.
Changed
- ChangedA page past the end of a list is now empty. It used to repeat the last page, which made “read until nothing comes back” loop for ever. If you relied on
pagebeing corrected to the last page, readpagesinstead. - ChangedA text longer than 1,600 characters into an SMS conversation is refused with
invalid_textbefore sending, as it is in the inbox, instead of failing at the SMS provider.
Version 1.0.0 #
- API keys, sent as a Bearer token; 120 requests a minute per key.
- Contacts: list, find by phone or email, create or update, add and remove tags.
- Messages: send text and approved templates; list messages. Conversations: list and get; add internal notes.
- Lists of tags, templates, WhatsApp numbers, broadcasts and ad leads.
- REST hooks for Zapier, Make and n8n, with nine events and sample deliveries.
- Signed webhooks with three delivery attempts.