Sendexa LogoDocs

Send WhatsApp Message

Send text, media, and template messages to any WhatsApp number with real-time delivery tracking and end-to-end encryption.

7 Message Types

Text, image, video, audio, document, interactive (buttons & lists), and template — all via a single endpoint

Global Reach

Deliver to any WhatsApp-enabled number worldwide with automatic E.164 number formatting

End-to-End Encryption

All WhatsApp messages are secured with end-to-end encryption by default

Instant Delivery

Real-time delivery with read receipts and status callbacks via webhooks

Avg Response Time

200ms

95th percentile

Cost per Message

₵0.05

1 credit = 1 message

Max Media Size

16MB

images, docs & video

Rate Limit

80/s

per API key

POST
/v1/whatsapp/send
Core
Stable

Request Body

application/json
JSON
{
"to": "233244000000",
"type": "text",
"text": {
"body": "Hello from Sendexa! Your order #ORD-12345 has been confirmed.",
"preview_url": true
}
}

Response

JSON
{
"success": true,
"message": "WhatsApp message sent successfully",
"data": {
"id": "wamid.HBgLMjMzNTU1MzM5NTIVAgARGBI2QzE5QUI3RjZENkI2QTU3NjQA",
"messageId": "exa_wa_123456789_abc123def",
"status": "sent",
"to": "233244000000",
"type": "text",
"cost": 1,
"timestamp": "2024-01-15T10:30:00Z"
}
}

Try It Yourself

POST
https://api.sendexa.co/v1/whatsapp/send

Code Examples

Bash
curl -X POST 'https://api.sendexa.co/v1/whatsapp/send' \
-H 'Content-Type: application/json' \
-H 'Authorization: Basic YOUR_DASHBOARD_BASE64_TOKEN' \
-d '{
"to": "233244000000",
"type": "text",
"text": { "body": "Hello from Sendexa WhatsApp API!" }
}'

Common Use Cases

Transactional

Order & Shipping Updates

Send real-time order confirmations and delivery notifications

Support

Customer Support

Respond to enquiries with rich media and documents

Marketing

Promotional Campaigns

Run opt-in campaigns with images and call-to-actions

HTTP Status Codes

CodeStatusDescription
200OKMessage sent successfully
400Bad RequestInvalid phone number or missing parameters
401UnauthorizedInvalid or missing API credentials
403ForbiddenPhone number not registered or insufficient credits
429Too Many RequestsRate limit exceeded