POST
Send Text
Send a plain text message via WhatsApp Cloud API.
API endpoint
https://waclient.com/api/sendExample:
curl -X POST \
'https://waclient.com/api/send' \
-H 'Content-Type: application/json' \
--data '{
"number": "20100981XXXX",
"type": "text",
"message": "Hello from Cloud API",
"instance_id": "META68B6ED90CXXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"message_payload": {
"messaging_product": "whatsapp",
"messages": [
{
"id": "wamid.xxx",
"message_status": "accepted"
}
]
}
}| Parameter | Description |
|---|---|
| number | Recipient phone number with country code |
| type | Must be text |
| message | Text message body |
| instance_id | Meta Cloud instance ID |
| access_token | Your access token |
Only delivers if the customer messaged you within the last 24 hours. Outside that window, use Meta Templates.