Send WhatsApp messages programmatically on Vobiz - text, images, video, documents, and approved template messages over a single REST endpoint.
curl --request POST \
--url https://api.example.com/v1/messaging/messagesAuthentication:Documentation Index
Fetch the complete documentation index at: https://docs.vobiz.ai/llms.txt
Use this file to discover all available pages before exploring further.
X-Auth-ID, X-Auth-Token, Accept: application/json
POST https://api.vobiz.ai/v1/messaging/messages
| Property | Type | Description |
|---|---|---|
body | string | Message content (max 4,096 characters) |
preview_url | boolean | Show URL preview if message contains links (optional, default: false) |
curl -X POST \
"https://api.vobiz.ai/v1/messaging/messages" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}" \
-H "Content-Type: application/json" \
-d '{
"channel_id": "{channel_id}",
"to": "+919876543210",
"type": "text",
"text": { "body": "Hello from Vobiz!" }
}'
| Property | Type | Description |
|---|---|---|
url | string | Public URL of the media file |
caption | string | Optional caption (max 1,024 characters) |
filename | string | Optional filename (for documents) |
curl -X POST \
"https://api.vobiz.ai/v1/messaging/messages" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}" \
-H "Content-Type: application/json" \
-d '{
"channel_id": "{channel_id}",
"to": "+919876543210",
"type": "image",
"image": {
"url": "https://example.com/photo.jpg",
"caption": "Check this out!"
}
}'
| Property | Type | Description |
|---|---|---|
name | string | Template name from Meta Business Manager |
language | string | Language code (e.g., en, es, pt_BR) |
parameters | array | Array of parameter objects for template variables |
curl -X POST \
"https://api.vobiz.ai/v1/messaging/messages" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}" \
-H "Content-Type: application/json" \
-d '{
"channel_id": "{channel_id}",
"to": "+919876543210",
"type": "template",
"template": {
"name": "order_confirmation",
"language": { "code": "en_US" },
"components": [{
"type": "body",
"parameters": [
{ "type": "text", "text": "ORD-12345" },
{ "type": "text", "text": "March 15" }
]
}]
}
}'
{
"id": "msg_abc123def456",
"channel_id": "ch_xyz789",
"conversation_id": "conv_123abc",
"to": "+919876543210",
"type": "text",
"status": "sent",
"timestamp": "2026-03-19T10:30:00Z"
}
INVALID_NUMBER - Phone number format is invalid or not on WhatsApp.INVALID_CHANNEL - Channel ID does not exist or is not active.TEMPLATE_NOT_FOUND - Template does not exist or has not been approved.RATE_LIMIT_EXCEEDED - Too many messages sent, retry after cooldown.Was this page helpful?
curl --request POST \
--url https://api.example.com/v1/messaging/messages