WhatsAble

WhatsAble API v1

The public REST API of WhatsAble. Send WhatsApp messages and manage templates, contacts, broadcasts and AI bots from your own code.

What the API does

The API gives your code the same WhatsApp Business account that your team uses in WhatsAble.

  • Send WhatsApp messages: text, approved templates, images, video, audio, documents, stickers and reply buttons.
  • Read conversations, messages and their delivery status: sent, delivered, read or failed. Find a contact or a conversation by name, list who is waiting for an answer, and search the messages of one conversation. See Work the inbox.
  • Quote a customer's message in a reply, and pause the AI agent when your code answers a customer.
  • Mark a conversation read or unread, add and delete internal notes, and mark an AI message's unverified figures as checked.
  • Read the timeline of a conversation: what the customer, your team and the AI bot did, in order, and why the bot did it. See Read what happened in a conversation.
  • Find, create and label contacts.
  • Create templates and submit them to Meta for review, and delete the ones you no longer need. See Delete a template.
  • Count what happened in a period, as the Analytics page shows it: messages, template sends, conversations and response times, the AI bots' work, and broadcasts. See Analytics.
  • Read your plan and the features it includes, with GET /v1/me.
  • Read your team: each member's role and numbers, and the invitations not yet accepted. See Your team.
  • Schedule messages, with a condition such as "only if they have not replied", and launch, pause and resume broadcasts to many contacts.
  • Read the inbox's saved replies.
  • Configure AI bots, their knowledge documents, and the files they may send.
  • Switch the AI off in one conversation or choose which AI agent answers it, cancel a reply the agent is about to retry, or stop its follow-ups to one contact while it keeps answering.

The same API serves the WhatsAble apps for Make, Zapier and n8n, and the WhatsAble MCP server. A flow that one of them can build, your code can build too.

Each operation has its own page in this section. A page shows the method and the URL, the scope the key needs, the parameters, the request body fields, every response, and a request to copy. Each page also has a Markdown copy: add .md to its URL.

Base URL and the OpenAPI file

Every route starts with https://api.whatsable.app/v1. The API serves its OpenAPI 3.1 file at https://api.whatsable.app/v1/openapi.json. It needs no key (the route's page). Use the file to generate a client.

Authentication

Send your API key in the Authorization header as a bearer token:

curl https://api.whatsable.app/v1/me \
  -H 'Authorization: Bearer nfy_live_...'
  • Create a key in WhatsAble, under Settings > API keys. A key starts with nfy_live_.
  • The API refuses a key in any other place with 401 api_key_in_wrong_place.
  • A key from the legacy API does not work here. The API answers 401 legacy_api_key_not_accepted.
  • Each key has scopes. The page of each route names the scope it needs, from the route's x-required-scope in the OpenAPI file. A key without that scope gets 403 insufficient_scope.
  • A key can be limited to some of your numbers. A request for another number gets 403 number_not_allowed_for_key.
  • GET /v1/me returns the organization and the key behind a request, and the plan: its name, whether it is active, its contact limit and the features it includes, with no price. Use it as a connection test, and to check a feature before you call a route that needs it.

Keep the key on your server. Never put it in a browser, a mobile app or a public repository.

Request and response format

  • Bodies are JSON. Field names are snake_case.
  • Every resource has an object field, such as "message", and an id.
  • A field that does not apply is null. The API never omits it.
  • Phone numbers are E.164 with a leading +, such as +5491155550000.
  • Times are RFC 3339 in UTC, such as 2026-10-27T14:00:00Z.

Lists and pagination

A list route returns one page, newest first. The response has next_cursor. To get the next page, send that value as the cursor query parameter. On the last page, next_cursor is null. A cursor is valid for 24 hours.

Idempotency

Every POST that creates something accepts an Idempotency-Key header. The API remembers the key for 24 hours, per API key.

  • A retry with the same key and the same body gets the stored response. The header Idempotent-Replayed: true marks it. The API does not do the work twice.
  • A retry with the same key and another body gets 409 idempotency_key_reused.

Send a new key for each new request, and the same key for each retry of it.

Values that can grow

An enum marked x-open-enum: true in the OpenAPI file can gain new values within v1. Your code must accept a value it does not know.

Errors

Every 4xx and 5xx response has the same body. Branch on error.code, which is stable. The title and message are for people, and their wording can change. API v1 errors lists every code.

{
  "error": {
    "type": "permission",
    "code": "insufficient_scope",
    "title": "...",
    "message": "...",
    "how_to_fix": "...",
    "param": null,
    "source": "whatsable",
    "owner": "caller",
    "retryable": false,
    "docs_url": "...",
    "details": { "required_scope": "messages:send" },
    "request_id": "..."
  }
}
  • type follows the HTTP status: invalid_request 400, authentication 401, permission 403, not_found 404, conflict 409, precondition_failed 412, unprocessable 422, rate_limit 429, internal 500, unavailable 503.
  • owner says who must act: caller (change the request or the account), whatsable, or meta.
  • retryable says whether the same request can succeed later without a change.
  • request_id repeats the X-Request-Id header of the response. Give it to support when you ask about a request.

Responses carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers. A 429 rate_limited response has Retry-After, in seconds.

A send that WhatsApp refuses still answers 201

A 201 Created from a send means that WhatsAble recorded the message. It does not mean that WhatsApp accepted it. Always read status in the body.

  • status: "sent": WhatsApp accepted the message. Delivery and read follow as status changes.
  • status: "failed" with error.retryable: true: WhatsApp refused the message for a reason that passes, such as a rate limit or an outage. Try again later with a new Idempotency-Key. The old key replays the failure.
  • status: "failed" with error.retryable: false: WhatsApp refused the message for good, or the result is unknown (timeout). Do not send it again. Show error.how_to_fix to the person who can fix the cause.
  • A 4xx status: WhatsAble refused the request before it called WhatsApp. Change the request or the account.

Every type except template is a session message. To a new contact, or to a conversation whose 24-hour window is closed, it answers 422 session_window_closed. Send a template instead. See Send a message.

Read what happened in a conversation

GET /v1/conversations/{id}/timeline returns the history of one conversation in one list: the messages, the internal notes of your team, each decision of the AI bot with its reasoning, the changes of the AI status and of the bot, and the labels that went on or came off the contact. See Read a conversation's timeline.

It answers the questions that a list of messages cannot:

  • Why did the bot hand this chat off to a person? The ai_decision entry has outcome: "handed_off", the reason code, and the bot's own words about why.
  • Who added the label "Lead", and when? The label_added entry names the bot, the teammate, the API key (named only when it is the key making the request) or the automation that added it.
  • Did the bot try to do something and fail? A decision lists every label the bot asked for and every file it asked to send, with what became of each one. Refused requests are included.
  • When did a teammate take over, and what did the team note about the customer?
  • Which follow-ups did the bot send after the customer went quiet, and which did it hold back?

Common uses:

  • Review the bot's work. Read the decisions of a day and find the replies and handoffs to improve in the bot's instructions.
  • Hand a chat over with context. Before a teammate or an AI assistant answers, it reads what the bot already said and why it stopped.
  • Audit. Answer "who changed this, and when?" for labels, the AI switch and the bot of a conversation.
  • Sync a CRM or a data warehouse. Poll with created_after and store each new entry.

How a page looks

The timeline is a list like every other list of the API: newest first, with limit, cursor and next_cursor. Filter with types, such as types=ai_decision,label_added.

{
  "object": "timeline_entry",
  "id": "dec_cm2v8d1a00001qz8h6n7o8p9q",
  "type": "ai_decision",
  "at": "2026-10-28T13:52:12Z",
  "actor": { "type": "ai_bot", "id": "cm2v8b1a00001qz8h3j4k5l6m", "name": "Sales" },
  "ai_decision": {
    "trigger": "reply",
    "outcome": "handed_off",
    "reason_code": "price_or_terms",
    "reasoning": "Asked for a discount, which only the team can give.",
    "labels": [],
    "files": [],
    "message_id": "cm2v8m1a00003qz8h9x8w7v6u",
    "attempt": null,
    "decided_at": "2026-10-28T13:52:05Z"
  }
}
  • type names the one payload key the entry carries: message, note, ai_decision, ai_status_changed, ai_bot_changed, label_added or label_removed. New types can appear. Skip a type you do not know.
  • actor says who made the entry happen: customer, member (a teammate, with their name), api_key, ai_bot, automation (a rule or a scheduled job) or system (WhatsAble or WhatsApp).
  • reasoning is the bot's own account of its decision. It is not a verified fact. Emails, phone numbers and WhatsApp user IDs in it are replaced with [redacted].
  • A page can be empty and still have has_more: true. Follow next_cursor as usual.

Scopes

The route needs the messages:read scope. Two kinds of entries need one more scope:

EntriesExtra scope
message, notenone
ai_decision, ai_status_changed, ai_bot_changedai:read
label_added, label_removedcontacts:read

Without the extra scope, a page leaves those entries out. A request that names them in types gets 403 insufficient_scope. The Full access, Send and read, and Read only presets hold all three scopes, so this matters only for a key with custom scopes. Use such a key when an integration may read the messages but must not see what the bot decided.

The route needs API access on your plan, and not the AI chatbot feature. The history of a bot stays readable after your plan stops including it.

How it fits with the rest of WhatsAble

  • Labels. Labels belong to the contact, and a contact has one conversation per number. A label change shows in the conversation where it happened: the bot's change in the conversation the bot answered, a teammate's change in the chat they changed it in, a keyword rule or a broadcast on its number. A change made on the contact itself, such as one through POST /v1/contacts/{id}/labels, shows in every conversation of the contact.
  • The team. A teammate's messages, notes and takeovers carry their name. The timeline is read with an API key, and only the owner and Admins create keys (API keys). Internal notes can be read and written through the API; a note written with a key carries the key's name.
  • The AI agent. The decisions are the same records that the inbox shows beside each bot reply (AI agents). A reply, a handoff, a discarded reply and each follow-up attempt are decisions. A handoff also shows as an ai_status_changed entry, and so does a teammate who pauses the bot.
  • The rest of the API. GET /v1/conversations/{id} is the conversation's current state, such as its 24-hour window and its AI status. GET /v1/messages/{id} is one message and its delivery. The timeline is how the conversation got there.
  • The MCP server. An AI assistant connected to WhatsAble reads the timeline with the read_conversation tool, as a transcript, oldest first. Ask it "what happened in this chat, and why?". The tool takes conversation_id, limit, cursor and types, but not created_after: polling is a job for the API.
  • Make, Zapier and n8n. The WhatsAble apps have no timeline module yet. Call the route with your API key from the HTTP module of Make, Webhooks by Zapier, or the HTTP Request node of n8n (Make, Zapier, n8n).

What it does not show

  • A reply the bot is still writing, or one waiting to retry. It appears when it settles.
  • AI decisions from before your account moved to the current WhatsAble platform.
  • Where an older label change happened. A change made before the timeline launched, by anyone but the bot, shows in every conversation of the contact, because its record does not say where it was made.

Work the inbox

The routes below do through the API what your team does in the inbox. Use them to build your own inbox view, to let a CRM or a helpdesk answer WhatsApp customers, or to give an AI assistant the whole inbox through the MCP server.

Find a person or a conversation by name

  • GET /v1/contacts?query=jose finds José Núñez: the search ignores case and accents, matches the start or the middle of a word, and every word you give must match, so query=perez ana finds Ana Pérez. It also matches a WhatsApp username, and the digits of a phone when a word has at least three. There is no typo tolerance: "Valeira" does not find Valeria. See List contacts.
  • GET /v1/conversations?query=… searches the same way by the contact, and also in the last message. See List conversations.

Read the inbox as your team sees it

A conversation carries contact_name, last_message_preview, last_outbound_at, awaiting_reply (the customer wrote last), marked_unread and figures_to_check. Filter the list with unread=true (unread messages, or marked unread, as the inbox's Unread counts), awaiting_reply=true, window_open=true or false, figures_to_check=true and label_id. So "who is waiting for an answer on the VIP label" is one request: GET /v1/conversations?awaiting_reply=true&label_id=<VIP's id>.

GET /v1/messages takes created_before beside created_after, to read one period, and query to search the text of messages. A query needs conversation_id or contact_id: it searches one conversation's history, not the whole organization. See List messages.

Reply, quote and pause the AI agent

  • reply_to_message_id on a text or media send quotes that message, as Reply does in the inbox. A message object shows its reply_to and the customer's emoji reactions. A message that is not in the conversation answers 404 message_not_found; one WhatsApp never accepted answers 422 reply_target_not_quotable.
  • pause_ai: true on a send pauses the AI agent in that conversation, as a reply typed in the inbox does, and the agent resumes by its own Once you reply by hand setting. It is false unless you send it, so an automation that sends notifications never silences the agent. The pause needs only messages:send. A scheduled message never pauses the agent. See Send a message.

Send later, only if it still makes sense

send_if on POST /v1/scheduled-messages is the inbox's Send only if and Only if labels match: no_reply (since_last_message, never_replied, or a time such as 24h after your last message) and labels (include any of, or exclude all of, label ids or names). The condition is checked when the message is due: a message whose condition fails ends suppressed with the reason. A text still needs the 24-hour window when it fires, so a follow-up after the window should be a template. An unknown label answers 404 label_not_found before anything is scheduled. See Schedule a message.

For example, "remind Maria on Friday at 10:00 with the payment_reminder template, but only if she has not replied" is one request with send_if: { "no_reply": "since_last_message" }.

The conversation actions

RouteWhat it doesScope
PATCH /v1/conversations/{id}/unreadMark it unread, so it stands out in the inbox, or read. Reading through the API never marks anything readmessages:send
POST /v1/conversations/{id}/notesAdd an internal note: your team sees it in the inbox, with the key's name; the customer never doesmessages:send
DELETE /v1/conversations/{id}/notes/{note_id}Delete an internal notemessages:send
PATCH /v1/conversations/{id}/aiSwitch the AI agent off or on, or choose which agent answers with bot_id (null is the number's default)ai:write
POST /v1/conversations/{id}/ai/retry/cancelStop a reply the agent is about to retry after an errorai:write
POST /v1/messages/{id}/figures-checkedMark an AI message's unverified figures as checked, as Mark as checked does. A message with no figures answers 422 message_has_no_figuresmessages:send
GET /v1/saved-repliesThe inbox's saved replies, most used first. Send one with POST /v1/messagesmessages:read
PATCH /v1/broadcasts/{id}Pause a broadcast that is sending (status: "paused") or resume it ("running"). Any other state answers 422 broadcast_not_pausable or broadcast_not_resumablebroadcasts:write

The inbox has no assignment of a conversation to a teammate, and no closed conversations, so neither does the API. To route chats, use labels and chat assignment.

How it fits with the rest of WhatsAble

  • Labels. A label filters the conversation list, and it is a send condition. The API matches a label name ignoring case and accents, as the inbox does, and stores the condition by name. So a rename after scheduling changes the outcome: an include condition no longer finds the label and stops the message, and an exclude condition no longer finds it either and lets the message send.
  • The AI agent. pause_ai and the bot choice are the same controls as the contact panel's AI agent section. A paused agent shows as ai.status: "paused_by_human" on the conversation.
  • The team. A note, an unread mark and a figure check made with a key show in the inbox at once, and the note and the check carry the key's name.
  • The MCP server. Each route is a tool. An MCP send pauses the agent by default and tells the assistant, which tells you. See the MCP server.
  • Make, Zapier and n8n. The WhatsAble apps do not have these modules yet. Call the routes from the HTTP module of Make, Webhooks by Zapier, or the HTTP Request node of n8n.

Analytics

Five routes read the numbers of the Analytics page in WhatsAble, for a period of up to 90 days. Use them for a daily or weekly report, a dashboard of your own, or a check that a campaign worked.

RouteWhat it countsScope
GET /v1/analytics/messagesMessages sent, delivered, read, failed and received, by day or week, by sender, and the top failure codesmessages:read
GET /v1/analytics/templatesEach template's sends and its read ratetemplates:read
GET /v1/analytics/conversationsNew conversations and contacts, and how fast the customer got a first answer, and from whommessages:read
GET /v1/analytics/aiThe AI bots' turns, handoffs, reply times, labels applied and follow-upsai:read
GET /v1/analytics/broadcastsThe broadcasts started in the period and how each didbroadcasts:read
  • The period. Pass from and to as calendar days, YYYY-MM-DD, and time_zone as an IANA name such as America/Argentina/Buenos_Aires. The days are read in that zone, both included. Up to 31 days come back by day, a longer period by week.
  • The numbers. A key on every number may leave out number_id and counts the whole organization. A key limited to some numbers must name one of them in number_id, otherwise 403 number_not_allowed_for_key: a total for the whole organization would count numbers the key may not read.
  • The plan. The routes need the Analytics feature, as the Analytics page does. Without it they answer 403 feature_not_in_plan.
  • The same numbers. The routes read the same records as the Analytics page, so the two always agree. A broadcast's counts are its counts now, not on the day to.
  • With the MCP server. An AI assistant reads the same numbers with get_message_analytics, get_template_analytics, get_conversation_analytics, get_ai_analytics and get_broadcast_analytics. Ask it for "a report on last week".

Your team

GET /v1/members returns everyone in the organization, with their name, email, role and the numbers they may use, and the invitations not yet accepted, as the Team page in Settings shows them. It needs the members:read scope, which the Read only and Send and read presets hold.

The route is read only. Inviting someone, changing a role and removing someone need a person signed in to WhatsAble, under Settings > Team: a seat is billed, and a role grants privileges. A key made with the Read only or Send and read preset before members:read existed keeps its scopes and shows as Custom. To read the team with it, create a new key.

Delete a template

DELETE /v1/templates/{id} deletes a template at Meta and in WhatsAble. It cannot be undone, and a send or a broadcast that uses the template can no longer use it. It needs the templates:write scope.

  • Every number of the account. A template belongs to a WhatsApp Business Account, which several of your numbers can share. Deleting it removes it for all of them, so a key limited to some numbers can delete it only when it may use every connected number of that account. Otherwise the answer is 403 number_not_allowed_for_key.
  • When nothing is deleted. A template that any broadcast has used, finished ones included, answers 409 template_used_by_broadcast. A broadcast keeps the template it sent, so the template cannot be deleted; to change what it says, create a new template. When no number of the template's account is connected, WhatsAble cannot ask Meta, and the answer is 409 template_waba_not_connected: connect a number of that account again, or remove the template from WhatsAble only under Templates in the dashboard, which asks you to confirm.
  • With the MCP server. The delete_template tool does the same. The assistant confirms the template's name and language with you first.