POST
Send Text
Send plain text or a link with preview. Use type text (default) or type link when you want URL preview.
API endpoint
https://waclient.com/api/sendText — type text
curl -X POST \
'https://waclient.com/api/send' \
-H 'Content-Type: application/json' \
--data '{
"number": "20100981XXXX",
"type": "text",
"message": "Hello from WhatsApp Web API",
"instance_id": "6A4B02A1XXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"message_payload": {
"key": {
"remoteJid": "[email protected]",
"fromMe": true,
"id": "ABC123"
},
"status": "PENDING"
}
}Link with preview — type link
curl -X POST \
'https://waclient.com/api/send' \
-H 'Content-Type: application/json' \
--data '{
"number": "20100981XXXX",
"type": "link",
"message": "Visit us",
"url": "https://mustqr.com",
"instance_id": "6A4B02A1XXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'| Parameter | Description |
|---|---|
| number / chat_id | Recipient phone number (e.g. 20100981XXXX) or chat_id (group: [email protected], channel: xxxx@newsletter) |
| type | text or link (link preview) |
| message | Text body (include URL for link type) |
| url | URL to preview — optional if URL is in message (Optional) |
| instance_id | Your instance ID |
| access_token | Your access token |