All endpoints
- Overview
Messages
Media
Conversations
Templates
Numbers
Groups
Reference
Send a message
POST /api/v1/wa/messages
Send text, media, a location, contacts, buttons, a list, a reaction or a template to a customer or a group.
Give to (a customer's number) or group_id (one of your groups), never both. Free text and media to a customer need the 24-hour window to be open (the customer wrote to you in the last 24 hours); outside it send an approved template.
To a group you can send text, template, image, video, audio and document; other types answer 422. Group sends have no 24-hour window or STOP check: WhatsApp decides.
Send an Idempotency-Key header on every send: repeating the same request with the same key returns the first answer and never sends twice.
Authentication
Header Authorization: Bearer sfp_live_… with an API key from WhatsApp > API and webhooks. Keep keys on your server, never in a browser or app. See API keys.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | No | Up to 100 characters. |
buttons | body | object | No | Up to 3 reply buttons under a message; the customer's tap comes back as message.received. |
contacts | body | array of object | No | Up to 5 items. |
group_id | body | string | No | Send to a group instead (its id from POST /wa/groups). Up to 36 characters. |
list | body | object | No | A menu of up to 10 rows in up to 10 sections, opened by one button. |
location | body | object | No | |
media | body | object | No | A public https link Meta downloads, or the id from POST /media. Never both. |
number_id | body | string | No | Up to 36 characters. |
reaction | body | object | No | |
reply_to | body | string | No | A wamid to quote in the reply. Up to 250 characters. |
template | body | object | No | |
text | body | string | No | Up to 4,096 characters. |
to | body | string | No | The customer's WhatsApp number, digits only with country code, e.g. 15551234567. |
type | body | enum | Yes | One of: text, template, image, video, audio, document, sticker, location, contacts, buttons, list, reaction. |
Header Idempotency-Key (optional, up to 100 characters, recommended): a retry with the same key and body returns the first answer and does nothing twice.
Request
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."}'Response
{
"id": "0193a7c2-5b1e-7c3a-9d41-6f2e8a0b1c22",
"wamid": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBI…",
"to": "15551234567",
"direction": "out",
"kind": "text",
"status": "sent",
"error": null,
"group_id": null,
"created_at": "2026-11-23T15:04:05Z"
}Errors
| Status | When |
|---|---|
401 | The API key is missing, unknown or revoked, or WhatsApp is not available for the account. |
404 | The number, group, or the message quoted by reply_to or a reaction is not yours. |
409 | The 24-hour window is closed, the customer sent STOP, the Idempotency-Key was used for a different body, or WhatsApp is paused for your account (the free trial ended unpaid). |
422 | A field is missing or not valid. |
429 | More than the rate limit; wait the seconds in Retry-After. |
Every error looks like {"error": {"code", "message", "correlation_id"}}; quote the correlation_id when you contact us. See Errors and limits.
Rate limits
300 requests a minute per API key, shared by every endpoint. Successful answers carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; a 429 carries Retry-After.

