Skip to main content

WhatsApp API

Send and receive WhatsApp messages programmatically using Exotel's WhatsApp Business API. Supports text, media, templates, interactive messages, and payments.

Base URL

https://<api_key>:<api_token><subdomain>/v2/accounts/<account_sid>/messages

Regional Endpoints

RegionSubdomain
Singapore@api.exotel.com
Mumbai@api.in.exotel.com

Supported Message Types

TypeDescription
textPlain text messages
imageImage with optional caption
audioAudio files
videoVideo with optional caption
documentPDF, DOC, and other document types
stickerWhatsApp stickers
locationGeographic coordinates with address
contactContact cards (vCard)
interactiveButtons and list menus
templatePre-approved message templates

Key Features

  • Template Messages — Send pre-approved templates with dynamic parameters
  • Interactive Messages — Buttons, list menus, and call-to-action
  • Bulk Messaging — Up to 100 messages per API call
  • Payment Collection — Collect payments via WhatsApp (India, UPI/RazorPay/PayU)
  • Flows — Interactive multi-step forms (Beta)
  • Webhooks — Real-time delivery reports and inbound message notifications

Delivery Status Codes

CodeStatusDescription
30001SentMessage sent to WhatsApp
30002DeliveredMessage delivered to recipient
30003SeenRecipient read the message
30004–30041FailedVarious error conditions

Quick Start

  1. Get your API credentials from the Exotel Dashboard
  2. Get a WhatsApp-enabled phone number from Exotel
  3. Create message templates in the WhatsApp Business Manager
  4. Use the Send Message endpoint