Skip to main content
POST
Send a text message
The one you will use most. Order updates, OTPs, reminders, alerts.

Notes

  • text must not be blank, and is capped at 4,096 characters. Longer messages are rejected with 400 invalid_request rather than silently truncated.
  • WhatsApp’s own formatting works inside text: *bold*, _italic_, ~strikethrough~, and ```monospace```.
  • Line breaks are just \n in the JSON string.
  • Trailing blank space and newlines are removed before sending, so a message built by string concatenation does not arrive with empty lines at the bottom. Whitespace at the start is kept exactly as you sent it — a price list or order summary aligned with spaces keeps its shape.
  • Emoji are fine. Send them as normal UTF-8 characters.

Examples

Keep data.message_id from the response. It is what you need to react to this message or quote it in a reply.

Authorizations

apikey
string
header
required

Your API key, sent in an apikey request header. Never in the URL, never as a Bearer token.

Body

application/json
instance_id
string<uuid>
required

Which of your connected numbers to send FROM. Copy it from your numbers screen in the portal, or from GET /v1/instances. It must belong to your account.

Example:

"3f9c1a2b-7d4e-4c81-9f0a-2b6d5e8c1a34"

to
string
required

The recipient, with country code and no leading zero — for example 919876543210. Spaces, dashes, brackets and a leading + are accepted and stripped; 6 to 15 digits must remain.

Example:

"919876543210"

text
string
required

The message body. Must not be blank. Up to 4,096 characters. Trailing blank space and newlines are removed before sending; anything at the START of the message is kept exactly as you sent it, so a price list aligned with spaces keeps its shape.

Required string length: 1 - 4096
Example:

"Your order #2043 has shipped."

quoted_message_id
string

Send this message as a reply, quoting an earlier one. Use the data.message_id returned by a previous send.

Maximum string length: 128
Example:

"3EB0C1D2F4A5B6C7D8E9"

quoted_from_me
boolean
default:false

Set true when the quoted message is one you sent from this number. Only valid together with quoted_message_id.

Response

Accepted for delivery.

success
boolean
data
object
request_id
string<uuid>