Use the Chatber API to send WhatsApp messages programmatically from your own applications, CRM, or backend systems.
Send a Text Message
Endpoint: POST /api/v1/messages/send. Required fields: phone_number (with country code, e.g., 919876543210), message (the text content, maximum 4096 characters). Optional fields: type (default is 'text'). Note: The 24-hour window rule still applies. If the customer has not messaged within 24 hours, you must use a template message.
Send a Template Message
Endpoint: POST /api/v1/messages/send-template. Required fields: phone_number, template_name (the name of your approved template), language (e.g., 'en' or 'en_US'). Optional fields: variables (an array of variable values to fill in your template placeholders).
Response Format
Successful responses return a JSON object with success: true and a message_id. Failed responses include success: false and an error message describing the issue.