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://api.waclient.com/sendText
curl -X POST \
'https://api.waclient.com/send' \
-H 'Content-Type: application/json' \
--data '{
"number": "201234567890",
"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
curl -X POST \
'https://api.waclient.com/send' \
-H 'Content-Type: application/json' \
--data '{
"number": "201234567890",
"type": "link",
"message": "Visit us",
"url": "https://mustqr.com",
"instance_id": "6A4B02A1XXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'| Parameter | Description |
|---|---|
| number / chat_id | Provide one. number = digits only (201234567890). chat_id = JID with @ — Phone: [email protected]. Group: 120363…@g.us. Channel: 120363…@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 |