Send WhatsApp messages from another application
Use a dedicated inbound sender token to request tenant-scoped WhatsApp text, media or approved-template messages from an external system.
Create a dedicated sender token
Create the token from the authenticated Inbound Webhook Sender area. Copy it when shown and store it server-side. Rotate or revoke the token when ownership changes or exposure is suspected.
Send text
curl -X POST 'https://chattill.com/api/send' \
-H 'Authorization: Bearer YOUR_INBOUND_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"to":"+919876543210","type":"text","body":"Your order is ready."}'| Field | Requirement |
|---|---|
| to | Customer phone in E.164 format. |
| type | text, image, video, audio, document or template as supported. |
| body | Required for text; maximum WhatsApp-supported text length applies. |
| url | Required for supported media and must be safely reachable by WhatsApp. |
| caption | Optional for supported media. |
Send an approved template
Provide the exact Meta-approved template name, language code and component variables. The API does not turn an unapproved or mismatched template into a valid WhatsApp message.
Protect the calling system
Do not retry an uncertain mutating request in a tight loop. Record the response and message status, use bounded backoff, and reconcile before sending again to prevent duplicate customer messages.
Related guides
Ready to use this in your workspace?
Sign in to continue setup, or review the tenant go-live checklist before sending live traffic.