WhatsApp API for developers
Receive every message on your own webhook and reply from your own system, on the official WhatsApp Business Platform.
API version 1 · Documentation updated November 23, 2026 · Security status
On this page
- Getting started
- Security
- Endpoints
- API keys
- Send a message
- Message types
- Upload media
- After 24 hours: templates
- Safe retries
- Read messages and numbers
- Conversations and history
- Mark as read
- Webhooks
- Receiving attachments
- Verify the signature
- Webhook login
- Custom chatbot webhooks
- Group chats
- Bookings and orders API
- Errors and limits
- OpenAPI file
- Changelog
Getting started
- Create a SaleFlowPoint account and connect your WhatsApp Business number (WhatsApp > Numbers).
- Switch the number to API mode.
- In WhatsApp > API and webhooks, save your webhook URL and copy the signing secret.
- Create an API key. It is shown once; keep it on your server, never in a browser or app.
Base URL: https://saleflowpoint.com/api/v1/wa. Requests and answers are JSON. Each number costs $19 per month (or $199 per year) and includes API mode; Meta bills its own message charges to your WhatsApp account.
Security
What protects your integration today, what is being improved, and what is not offered. Each control is marked Implemented (available and enforced in production), In progress, Planned or Not supported. We update this list when a status changes.
Authentication and API keys
| Control | Status | Details |
|---|---|---|
| A valid API key on every endpoint (except the public OpenAPI file) | Implemented | Checked on the server; a missing, unknown or revoked key answers 401. |
| Keys stored as hashes | Implemented | A key is shown once when created; we keep only its SHA-256 hash. |
| Immediate revocation | Implemented | Revoke in WhatsApp › API and webhooks; the next request with that key answers 401. |
| Rotation | Implemented | Create a new key, switch your system over, then revoke the old one. |
| Rate limit per key | Implemented | 300 requests a minute per key; attachment downloads and uploads 120 a minute per company. |
| Key expiry dates | Implemented | Optional; after the date the key answers 401 api_key_expired. |
| Permission scopes per key | Implemented | Optional; a key without scopes has full access. A call outside the key's scopes answers 403 api_key_scope_missing. |
| IP allowlist per key | Implemented | Optional IPv4/IPv6 addresses and CIDR ranges; a call from any other address answers 403 api_key_ip_not_allowed. |
Company isolation
| Control | Status | Details |
|---|---|---|
| Company taken from the API key | Implemented | Every request runs as the company that owns the key. No request field can name another company. |
| Every query limited to the company | Implemented | Enforced by an automated check on all database code. |
| Another company's data | Implemented | A conversation, message or attachment id of another company answers 404 (never 403), so ids cannot be probed. |
| Automated cross-company tests | Implemented | Run before every release, with the rest of the test suite. |
Webhooks
| Control | Status | Details |
|---|---|---|
| HMAC-SHA256 signature with a timestamp | Implemented | See Verify the signature. |
| A secret per number | Implemented | Never shared between numbers or companies. |
| Secret rotation with 24 hours' overlap | Implemented | Both secrets sign during the overlap. |
| Unique event id | Implemented | X-SFP-Event-Id: use it to drop duplicates and replays. |
| Optional login on webhook calls | Implemented | A saved Connection, sent only to its own host. |
| Retries with backoff | Implemented | 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours, then failed (replayable). |
Files and outside addresses
| Control | Status | Details |
|---|---|---|
| Upload type and size limits | Implemented | See Upload media. |
| File contents checked against the type | Implemented | A file whose first bytes do not match its type is refused. |
| Uploads stored by SaleFlowPoint | Not supported | Uploads go straight to WhatsApp (Meta); we do not keep or run them. |
| Attachment downloads | Implemented | Streamed from Meta, never stored, only for attachments received on your own numbers. |
| Antivirus scanning | Not supported | Treat every attachment as untrusted (see Your responsibilities). |
| Media links fetched by Meta | Implemented | Links you send are fetched by Meta, not by our servers; https only. |
| Protection when our servers call outside addresses | Implemented | Your webhook and custom-chatbot URLs: https only; private, local and cloud-metadata addresses blocked; the checked DNS answer is pinned (no rebinding); no redirects followed; time and size limits. |
Data and credentials
| Control | Status | Details |
|---|---|---|
| Meta access tokens and secrets encrypted | Implemented | Authenticated encryption (Fernet: AES-128-CBC with HMAC-SHA256); keys kept in server configuration, not in the database. |
| Secrets kept out of logs | Implemented | Tokens and keys never appear in URLs, logs or error messages. |
| Encryption-key rotation | Planned | |
| Encrypted off-site database backups | Implemented | Off-site backups are encrypted with AES-256 before they leave the database server; the key stays on the database server, with an offline copy, and is never stored with the backups. |
| Backup retention period | Implemented | Off-site backups: one per day for 14 days and one per week for 4 weeks; older ones are deleted. |
| Company erasure | Implemented | Deletes the company's data from the live database. Copies in backups remain until those backups expire. |
Monitoring and testing
| Control | Status | Details |
|---|---|---|
| Audit log of administrative changes | Implemented | Sign-ins, API keys, webhooks, saved logins (Connections), roles and permissions; append-only. |
| Log of each failed API-key attempt | Planned | |
| Alerts on suspicious API use | Planned | |
| Security review and full test run before each release | Implemented | Internal; includes authorization and cross-company tests and dependency checks. |
| Independent penetration test | Planned | No third-party report is available yet. |
Who is responsible for what
| SaleFlowPoint | Meta (WhatsApp) | You (the integrator) |
|---|---|---|
| Checking API keys; keeping companies apart; signing webhooks; encrypting stored tokens and secrets; rate limits; safe outgoing calls. | Delivering messages; storing media (about 30 days); fetching media links you send; WhatsApp's own policies and number quality. | Keeping API keys and signing secrets on your server only (never in a browser or app); verifying every webhook signature and timestamp; dropping duplicate event ids; scanning attachments before opening them; your own customers' consent and data handling. |
Production checklist: store keys and secrets in a secrets manager or environment variables; use one key per system so you can revoke one alone; verify the signature on the raw body before parsing it; reject timestamps older than 5 minutes; keep event ids for at least 8 days; download attachments promptly and scan them before opening; back off on 429 using Retry-After.
Report a security issue: contact us and choose "Security". Please do not test against other companies' data.
Endpoints
Every endpoint has its own reference page with its parameters, examples in curl, Node.js, Python and PHP, errors, limits and a Try it panel. Paths are under https://saleflowpoint.com/api/v1/wa.
| Method | Path | What it does |
|---|---|---|
| POST | /messages | Send a message: Send text, media, a location, contacts, buttons, a list, a reaction or a template to a customer or a group. |
| GET | /messages/{message_id} | Get a message: Read one message, in either direction, by our id or by its WhatsApp wamid. |
| POST | /messages/{wamid}/read | Mark as read: Show the customer blue ticks on a message they sent you. |
| POST | /media | Upload media: Upload one file to WhatsApp and get an id to send it with. |
| GET | /media/{media_id} | Download media: Download an attachment a customer sent you (the file itself). |
| GET | /conversations | List conversations: Your chats on API-mode numbers, newest first, with the contact and whether the 24-hour window is open. |
| GET | /conversations/{conversation_id}/messages | Conversation messages: One chat's messages in both directions, newest first. |
| GET | /templates | List templates: Your approved message templates, with language, category, body and number of parameters. |
| GET | /numbers | List numbers: Your WhatsApp numbers in API mode; use their id as number_id when you have several. |
| POST | /groups | Create a group: Ask WhatsApp to make a group on one of your numbers; it answers 202 with status creating. |
| GET | /groups | List groups: Your groups on API-mode numbers, newest first. |
| GET | /groups/{group_id} | Get a group: One group, with its participants and their count as WhatsApp reports them now. |
| POST | /groups/{group_id} | Update a group: Change a group's subject and/or description. |
| DELETE | /groups/{group_id} | Delete a group: Delete a group for everyone; status deleting until WhatsApp confirms. |
| GET | /groups/{group_id}/invite-link | Get the invite link: The group's current invite link, read from WhatsApp. |
| POST | /groups/{group_id}/invite-link/reset | Reset the invite link: Make a new invite link; every earlier link stops working. |
| DELETE | /groups/{group_id}/participants/{participant} | Remove a participant: Remove one person from a group; they cannot rejoin by the invite link. |
| GET | /openapi.json | OpenAPI file: The whole API as an OpenAPI 3 file, for Postman, Insomnia or a generated client. No key needed. |
Events come to you by webhook: you do not poll for new messages.
API keys
Send the key in the Authorization header on every request: it is required on every endpoint except the public OpenAPI file. A missing, unknown or revoked key answers 401; the same answer for each, so a key cannot be guessed from the reply.
Authorization: Bearer sfp_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxLimits on a key: scopes, expiry and IP allowlist
When you make a key in WhatsApp › API and webhooks you can tick Set limits, and change them later with Limits on the key. All three are optional; a key without limits (every key made before limits existed) can use every endpoint, never expires and works from any address.
- Scopes:
wa:send(send messages, mark read),wa:read(numbers, messages, conversations),wa:media(upload and download attachments),wa:templates,wa:groups, and for the agent APIagent:bookings,agent:orders,agent:invoices,agent:payments,agent:purchases,agent:returns. A call outside the key's scopes answers403api_key_scope_missing. - Expiry date: the key stops at the end of that day (UTC) and then answers
401api_key_expired. Make the next key before the date and switch over. - IP allowlist: up to 20 IPv4 or IPv6 addresses or CIDR ranges (for example
203.0.113.0/24). We use the address your request reaches us from; a call from any other address answers403api_key_ip_not_allowed. An entry that is not a valid address or range is refused when you save, so a typo never opens the key.
Send a message
POST /messages. Free text can be sent while the 24-hour window is open: for 24 hours after the customer last wrote to you.
| Field | Type | Required | Description |
|---|---|---|---|
to | string | Yes | The customer's number: digits only, with the country code (15551234567). |
type | string | Yes | text, template, image, video, audio, document, sticker, location, contacts, buttons, list or reaction. |
text | string | For text | The message, up to 4,096 characters. |
template | object | For template | name, language and params; see After 24 hours. |
media / location / contacts / buttons / list / reaction | object | For that type | See Message types. |
reply_to | string | No | A wamid to quote: the customer sees your message as a reply to theirs. |
number_id | string | With several numbers | Which of your API numbers sends it (GET /numbers). |
Header Idempotency-Key (optional, recommended): see Safe retries.
curl -X POST https://saleflowpoint.com/api/v1/wa/messages \
-H "Authorization: Bearer sfp_live_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1042-ready" \
-d '{"to":"15551234567","type":"text","text":"Your order is ready for pickup."}'Responses
{
"id": "0193a7c2-…",
"wamid": "wamid.HBgL…",
"to": "15551234567",
"direction": "out",
"kind": "text",
"status": "sent",
"error": null,
"created_at": "2026-11-17T15:04:05Z"
}Message types
Inside the 24-hour window you can send any of these. We build WhatsApp's message from these fields; anything else is refused with 422 before it reaches WhatsApp.
{"to": "15551234567", "type": "document",
"media": {"link": "https://www.example.com/invoice-1042.pdf", "filename": "invoice-1042.pdf",
"caption": "Your invoice"}}
// Or a file you uploaded: "media": {"id": "1203456789012345"}
// image and video take a caption; audio and sticker take neither caption nor filename.A quoted reply or a reaction must point at a message in the same chat (404 otherwise).
Upload media
POST /media takes one file (multipart field file, and number_id if you have several numbers) and answers its id. Send it with "media": {"id": "…"}. WhatsApp keeps uploads about 30 days.
| Kind | Types | Largest |
|---|---|---|
| Image | JPEG, PNG | 5 MB |
| Sticker | WebP | 500 KB |
| Video | MP4, 3GPP | 16 MB |
| Audio | AAC, MP4, MPEG, AMR, OGG | 16 MB |
| Document | PDF, text, Word, Excel, PowerPoint | 20 MB (larger, up to 100 MB: send it by https link) |
curl -X POST https://saleflowpoint.com/api/v1/wa/media \
-H "Authorization: Bearer sfp_live_…" \
-F "file=@invoice-1042.pdf;type=application/pdf"
# -> {"id": "1203456789012345", "type": "document", "mime_type": "application/pdf", "size": 48213}After 24 hours: templates
Outside the window WhatsApp only allows approved templates. To get one approved:
- In Meta's WhatsApp Manager open Message templates and choose Create template.
- Pick a category (Utility for order and booking updates, Marketing for offers), a name such as
order_readyand a language. - Write the body with numbered placeholders, for example
Hi {{1}}, your order {{2}} is ready., and add a sample for each. - Submit. Meta usually decides within minutes to a day; GET
/templateslists it once it is approved.
params fills the body placeholders in order: the first value replaces {{1}}, the second {{2}}, and so on, as plain strings. language is the template's language code exactly as approved (en_US, en_GB).
{"to":"15551234567","type":"template",
"template":{"name":"order_ready","language":"en_US","params":["Emily","1042"]}}Sending anything but a template outside the window answers 409. GET /templates lists your approved templates with their language, category, body and number of parameters.
Safe retries
Send an Idempotency-Key header (up to 100 characters) with every send. Repeating the same request with the same key returns the first answer and never sends twice; the same key with a different body answers 409.
Read messages and numbers
Every message has two ids. id is ours, given when you send; wamid is WhatsApp's, and it is what webhooks, statuses, reply_to, reactions and mark-as-read use. GET /messages/{id} accepts either one, for messages in both directions; to is the customer's number on messages you sent.
GET /api/v1/wa/numbers -> [{ id, phone, label, status }]
GET /api/v1/wa/messages/0193a7c2-… -> { id, wamid, to, direction, kind, status, error, created_at }
GET /api/v1/wa/messages/wamid.HBgL… -> the same message, found by its wamidConversations and history
GET /conversations lists your chats on API-mode numbers, newest first, with the contact, the last message time and whether the 24-hour window is open. GET /conversations/{id}/messages lists one chat's messages in both directions, newest first. Both take limit (up to 200) and before (the time of the last item you have) to page back; has_more says whether there is more.
{
"items": [
{"id": "0193…", "number_id": "…", "contact": {"wa_id": "15551234567", "name": "Emily Carter"},
"last_message_at": "2026-11-17T15:04:05Z", "window_open": true,
"window_ends_at": "2026-11-18T15:04:05Z"}
],
"has_more": false
}Mark as read
POST /messages/{wamid}/read shows the customer blue ticks on a message they sent you. Answers 204; a message that is not yours answers 404.
Webhooks
Each API-mode number posts events to your https URL. Answer with any 2xx within 10 seconds. Events you do not answer in time are tried again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours, then marked failed; you can replay any of them from the delivery log. While a number is paused, events wait up to 7 days.
{
"id": "evt_0193...",
"type": "message.received",
"created_at": "2026-11-12T18:05:08Z",
"number": { "id": "…", "phone": "+1 555-010-4050" },
"contact": { "wa_id": "15551234567", "name": "Emily Carter" },
"message": {
"id": "wamid.…",
"kind": "text",
"text": "Hi, is my order ready?",
"media": null,
"caption": null,
"reply": null,
"context": null
},
"raw": { "field": "messages", "value": { "…": "…" } }
}Event types: message.received (a customer wrote), message.status (sent, delivered, read or failed for a message you sent), group.updated (a group changed; ticked separately, see Group chats) and test.ping (the "Send a test event" button).
message.kind is WhatsApp's message type: text, image, video, audio, document, sticker, location, contacts, interactive (a button or list reply), button (a template quick-reply), reaction, or another type WhatsApp adds. reply is set for button and list replies, context.id when the customer quoted a message, caption on media with a caption.
raw is the WhatsApp change object for this event ({"field": "messages", "value": …}, one item of Meta's entry[].changes[]), unchanged. Everything above is taken from it; use it for anything we do not copy out.
Handling events safely
- Verify first (below), on the raw body, before you parse it.
- Answer 2xx quickly and do the work afterwards (a queue), so a slow job never causes a retry.
- Duplicates: a retry sends the same event with the same
id(also inX-SFP-Event-Id). Keep handled ids for at least 8 days (retries run for about 33 hours, and a paused number holds events up to 7 days) and skip repeats. Pressing Replay in the delivery log resends the same id with a fresh timestamp, on purpose. - Order: events can arrive out of order (a retry, or WhatsApp itself), for example
readbeforedelivered. Usecreated_atand never move a status backwards (sent, then delivered, then read; failed is final). - Replays: refuse a timestamp more than 5 minutes old, and an id you have already seen.
Receiving attachments
When a customer sends a photo, video, voice note, sticker or file (PDF, Word, Excel and any other document WhatsApp allows), message.kind is image, video, audio, sticker or document and message.media holds its id and type, and message.caption its caption. A document's file name is in raw.
"message": {
"id": "wamid.…",
"kind": "document",
"text": null,
"media": { "id": "1203456789012345", "mime_type": "application/pdf" }
}Several files at once: WhatsApp sends each attachment as its own message, so three photos and a PDF arrive as four message.received events, each with its own media id. Group them by contact.wa_id and time if you need to.
GET /media/{media_id} answers the file itself, with its Content-Type and a download file name. Only a media id that came in on your own numbers is served (404 otherwise). Meta keeps attachments for about 30 days, so download them soon; files up to 100 MB.
curl -L https://saleflowpoint.com/api/v1/wa/media/1203456789012345 \
-H "Authorization: Bearer sfp_live_…" \
-o attachment.pdfVerify the signature
Every request carries X-SFP-Signature: t=<unix seconds>,v1=<hex>. Compute HMAC-SHA256 of t + "." + raw body with your signing secret, compare in constant time, and refuse timestamps older than 5 minutes.
// Express: use express.raw() so the body is the exact bytes
import crypto from "node:crypto";
function verify(rawBody, header, secret) {
if (typeof header !== "string" || !/^t=\d+(,v1=[0-9a-f]{64})+$/.test(header)) return false;
const t = header.slice(2, header.indexOf(","));
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false; // 5-minute window
const mac = crypto.createHmac("sha256", secret).update(t + ".").update(rawBody).digest("hex");
// During a secret rotation the header carries two v1 values: accept either.
return header.split(",").slice(1).some((p) => {
const sig = Buffer.from(p.slice(3), "hex");
return sig.length === 32 && crypto.timingSafeEqual(sig, Buffer.from(mac, "hex"));
});
}After you rotate the secret, the header carries two v1 values for 24 hours (new and old), so either secret verifies while you switch. Replays: after the signature passes, store X-SFP-Event-Id for at least 8 days and ignore an event whose id you have already handled; together with the 5-minute window this stops replayed and duplicated events.
Results to expect
- Header not in the
t=…,v1=…form, or no match: reject with 401 and log it. - Timestamp more than 5 minutes away from your clock: reject (keep your server clock in sync).
- Valid signature, event id already seen: answer 200 and do nothing (we stop retrying).
Rotating your secret without downtime
- Who signs: for 24 hours after you press Rotate, every event (retries too) is signed with both secrets, as two
v1values in one header. Each retry is signed when it is sent. - Your side needs one secret: whichever secret your server holds matches one of the two values, so the code above works unchanged. There is nothing to try in turn.
- After 24 hours the old secret signs nothing; a server still using it starts refusing our events, so switch within the 24 hours.
- Rotating again within the 24 hours keeps only the latest two secrets: the one before the previous stops signing at once. Finish one switch before you start another.
- Press Rotate in WhatsApp > API and webhooks and copy the new secret (shown once).
- Put the new secret in your server's configuration and deploy. Events keep verifying throughout.
- Press "Send a test event", check it verifies, then delete the old secret from your systems.
Webhook login
If your system also needs its own login on incoming requests, save it in WhatsApp > Connections (a bearer token, an API-key header or query value, Basic, or OAuth2) and choose it as the webhook's Login in WhatsApp > API and webhooks. We send it with every event, only to that login's own host, together with the signature: keep checking the signature as well.
Custom chatbot webhooks
A custom chatbot (an agent) posts events to webhooks you set up in WhatsApp › Webhooks and attach to the agent. Each webhook has its own signing secret, shown once when you add or rotate it, and may use a saved login. Requests carry X-Signature: t=<unix seconds>,v1=<hex>, the HMAC-SHA256 of t + "." + raw body, so the code above works with this header name. X-SFP-Event names the event and X-SFP-Event-Id is unique per event: use it to drop duplicates.
Events: chat.ended, variables.collected (the details the agent was asked to collect), handoff.requested (the customer asked for a person), url.failed, usage.limit_reached, and outcome.<name> for a task you named (for example outcome.order_confirmed).
Any 2xx answer counts as delivered. 410 stops the delivery. Anything else is tried again after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours, then marked failed; you can resend it from the agent's call log.
Group chats
Make WhatsApp groups on your number, share the invite link, and send and receive in them through the same API. A group is for a small circle (trade buyers, a class, a club): up to 8 participants.
- Which numbers: only numbers with an Official Business Account (the blue badge) on the WhatsApp Business Platform. A Coexistence number, one also used in the WhatsApp Business app, cannot use groups: group calls answer
409group_not_availablebefore WhatsApp is asked. - Joining: people join only by the group's invite link; you cannot add someone directly. You can remove a person, and they cannot rejoin by the link. Reset the link to stop an old one working.
- Making a group is asynchronous. POST /groups answers
202withstatus: "creating". When WhatsApp has made it, agroup.updatedevent withchange: "created"bringswa_group_idand theinvite_link. Until then other calls on it answer409group_not_ready. Deleting works the same way (deleting, thenchange: "deleted"). - Sending: POST /messages with
group_idinstead ofto. Allowed types:text,template,image,video,audioanddocument; other types answer422. There is no 24-hour window or STOP check in groups: WhatsApp decides. - Receiving: a message written in a group arrives as
message.receivedwithgroup(id,wa_group_id,subject) andsender(wa_id,user_id);contactis the person who wrote it. Mark it read as any other message. Group chats never get the AI chatbot or a custom chatbot and do not appear in the Inbox's contact list.
{
"id": "evt_0193...",
"type": "group.updated",
"created_at": "2026-11-23T15:04:20Z",
"number": { "id": "…", "phone": "+1 555-010-4050" },
"group": { "id": "0193b1d4-…", "wa_group_id": "120363025654321098",
"subject": "Harbor Office Supply - Wholesale buyers", "status": "active" },
"change": "created",
"invite_link": "https://chat.whatsapp.com/AbCdEfGhIjKlMnOpQrStUv",
"participants": [],
"initiated_by": null,
"reason": null,
"settings": null,
"error": null
}change is one of created (with invite_link), deleted, joined and left (with participants: wa_id, user_id, username), join_requested, join_request_revoked, settings (with settings.subject / settings.description: text and ok), suspended and suspension_cleared; anything new from WhatsApp comes as other. error (code, title) is set when making or deleting failed; the group's status is then failed. group.updated is off by default: tick it on your webhook in WhatsApp › API and webhooks.
| Status | When |
|---|---|
409 group_not_available | The number is a Coexistence number (no Official Business Account). |
409 group_not_ready | WhatsApp is still making the group; wait for group.updated. |
409 | The group is deleted or failed, WhatsApp refused (the message says "Meta error N"), or WhatsApp is paused for your account. |
404 | The group is not one of yours. |
422 | A message type groups do not allow, both to and group_id, or a participant that is not a phone number or WhatsApp user id. |
Not offered yet: approving join requests, group pictures, and pinning messages.
Bookings and orders API
The same key also books appointments and takes shop orders for your custom chatbot or your own system: services, free slots, bookings, products with stock, and draft orders the shop confirms. See the agent API docs.
Errors and limits
Every successful answer to a request with a valid key carries X-RateLimit-Limit (requests per minute for the key), X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds when the minute starts again). Error answers do not carry them; a 429 carries Retry-After.
Errors look like {"error": {"code": "conflict", "message": "…", "correlation_id": "…"}}. Quote the correlation_id when you contact us. Codes: invalid_credentials (401), api_key_expired (401), api_key_scope_missing (403), api_key_ip_not_allowed (403), not_found (404), conflict (409), validation_error (422), rate_limited (429).
HTTP/1.1 429 Too Many Requests
Retry-After: 12
{"error": {"code": "rate_limited", "message": "…", "correlation_id": "…"}}
// Wait Retry-After seconds, then retry; on repeated 429 or 5xx back off exponentially
// (for example 1 s, 2 s, 4 s … up to 60 s) and send the same Idempotency-Key so nothing is sent twice.| Status | When |
|---|---|
401 | The key is missing, unknown, revoked or past its expiry date, or WhatsApp is not available for the account. |
403 | The key's scopes do not cover this call, or the call came from an address outside the key's IP allowlist. |
404 | The number, message or attachment is not yours. |
409 | The 24-hour window is closed, the customer sent STOP, the Idempotency-Key was used for another request, WhatsApp is paused (the free trial ended unpaid), or Meta no longer has the attachment. |
422 | A field is missing or not valid. |
413 / 422 | An upload is too large or of a type WhatsApp does not allow. |
429 | More than 300 requests per minute on one key (120 attachment downloads per minute per company); wait for the seconds in Retry-After. |
OpenAPI file
https://saleflowpoint.com/api/v1/wa/openapi.json describes every call above as OpenAPI 3. Import it into Postman or Insomnia, or generate a client in your language. It needs no key.
Changelog
We only add to the API: new endpoints and new fields. A field or endpoint is never removed or changed in meaning without notice here at least 90 days before. Treat unknown fields as optional and ignore any you do not use.
- 2026-11-23: group chats:
/groupsendpoints (create, list, get, update, delete, invite link and reset, remove a participant), sending to a group withgroup_id,groupandsenderonmessage.received, the newgroup.updatedevent, andgroup_idon messages. A reference page with Try it for every endpoint. - 2026-11-18:
GET /messages/{id}also accepts a wamid and returnsto.message.receivedaddsreply,contextandcaption;message.statusaddserror. Buttons and lists take a textheader.X-RateLimit-*headers on successful answers. The delivery log shows the event id and the start of your server's answer. - 2026-11-17: every message type (media, location, contacts, buttons, list, reaction, quoted reply),
POST /media,GET /media/{id}, mark as read, conversations and history, templates list, the OpenAPI file, webhook login; both secrets sign during a rotation. - 2026-11-11: first version: API keys, text and template sending, webhooks for received messages and statuses.
Connect your WhatsApp number
7-day free trial, then $19 per number per month.

