✦ Chattill
Browse documentation
Developers

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.

For Developers and integration administrators10 min readUpdated

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

bash
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."}'
FieldRequirement
toCustomer phone in E.164 format.
typetext, image, video, audio, document or template as supported.
bodyRequired for text; maximum WhatsApp-supported text length applies.
urlRequired for supported media and must be safely reachable by WhatsApp.
captionOptional 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.

Ready to use this in your workspace?

Sign in to continue setup, or review the tenant go-live checklist before sending live traffic.