API Documentation

Sending Messages via API

Vinod Mar 14, 2026 18 views

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.

Webhooks

You can configure webhooks to receive real-time notifications when messages are received or when message statuses change (sent, delivered, read, failed). Configure your webhook URL in WhatsApp > Accounts settings.
Was this article helpful?
0% found this helpful
Still need help?

If this article didn't solve your issue, contact our support team.

Create Support Ticket