Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jihvijhojhviihogyuvi/whatsapp-api/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/send is the primary way to send an outgoing WhatsApp text message. It accepts a phone number and a message string, normalizes the phone number to a WhatsApp chat ID, and delivers the message through the active Linked Devices session. On success it returns metadata about the delivered message including the WhatsApp chat ID, message ID, and a send timestamp.
Endpoint
Request Body
The recipient’s phone number, including the country code. Non-digit characters (spaces, dashes,
+, parentheses) are stripped automatically. The resulting digit string must be 8–15 digits long.Examples: "15551234567", "+44 7700 900123", "447700900123"The text message to send. Must be a non-empty string. Emoji, Unicode, and multi-line text are supported.
Response Fields
true on a successful send.The normalized phone number (digits only) that the message was sent to.
The WhatsApp chat identifier for the recipient, in the format
{phone}@c.us (e.g. "15551234567@c.us").The serialized WhatsApp message ID assigned by the server.
null if the ID could not be extracted from the response.ISO 8601 timestamp of when the send was initiated on the server (e.g.
"2024-06-01T14:23:05.123Z").Example Request
Example Response
The
ensureReady() wait applies to temporary in-progress states (e.g. starting, authenticated). If the client is in auth_failure or has never been started, the error is returned immediately without waiting the full timeout.