Skip to content
All endpoints

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

NameInTypeRequiredDescription
Idempotency-KeyheaderstringNoUp to 100 characters.
buttonsbodyobjectNoUp to 3 reply buttons under a message; the customer's tap comes back as message.received.
contactsbodyarray of objectNoUp to 5 items.
group_idbodystringNoSend to a group instead (its id from POST /wa/groups). Up to 36 characters.
listbodyobjectNoA menu of up to 10 rows in up to 10 sections, opened by one button.
locationbodyobjectNo
mediabodyobjectNoA public https link Meta downloads, or the id from POST /media. Never both.
number_idbodystringNoUp to 36 characters.
reactionbodyobjectNo
reply_tobodystringNoA wamid to quote in the reply. Up to 250 characters.
templatebodyobjectNo
textbodystringNoUp to 4,096 characters.
tobodystringNoThe customer's WhatsApp number, digits only with country code, e.g. 15551234567.
typebodyenumYesOne 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

200 OK
{
  "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

StatusWhen
401The API key is missing, unknown or revoked, or WhatsApp is not available for the account.
404The number, group, or the message quoted by reply_to or a reaction is not yours.
409The 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).
422A field is missing or not valid.
429More 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.

Try it

This is real. It runs on your live WhatsApp number: messages are delivered and Meta may charge for them; group changes happen for everyone. Your key stays in this page's memory: it is sent only to this site's API, never saved, and is gone when you leave the page.

POST /api/v1/wa/messages
Loading SaleFlowPoint…