WhatsApp Business

Send a message

v92 (beta): a real send. Within 24 hours of the customer's last message send text; otherwise only an approved template (template + variables). Marketing templates only to people who opted in. Response: message, chat. A request that breaks the rules returns 400 with the reason.

POST/api/v1/whatsapp/chats/{id}/messages

Authorization

Authorizationheaderrequired
Bearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Module: CustomersScope: crm.write

Path parameters

idintegerrequired
Conversation id.

Body application/json

textstringoptional
Message (max 4,096 characters; window open).
templatestringoptional
Approved template name.
variablesarrayoptional
Values for the template's {{1}}, {{2}} …, in order.

Errors

HTTPerrorMeaning
400invalidMissing or invalid field (`message` explains).
403moduleThe module is off in the licence or for the user.
404not_foundRecord not found.
Request
curl -X POST https://ornek.solk.app/api/v1/whatsapp/chats/{id}/messages \
  -H "Authorization: Bearer $SOLK_API_KEY"
Response