Basic Example
Send Text Message
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | Yes | Your WhatsApp phone number (E.164 format) |
to | string | Yes | Recipient’s WhatsApp number (E.164 format) |
type | string | Yes | Must be "text" |
text.body | string | Yes | The message text content |
replyTo | string | No | Message ID to reply to |
Response
Response
Replying to Messages
You can reply to a specific message by including thereplyTo parameter:
Reply to Message
Text Formatting
WhatsApp supports basic text formatting:| Format | Syntax | Example |
|---|---|---|
| Bold | *text* | text |
| Italic | _text_ | text |
| Strikethrough | ~text~ | |
| Monospace | `text` | text |
Formatted Text
Text messages are best for ongoing conversations where users have already messaged you first. For initiating contact with users, use Template Messages.