Help Center

Send & List WhatsApp Messages

Send text, template, media, location, and interactive WhatsApp messages via REST and retrieve delivery state.

Endpoints

Use the Message endpoints under /v1/Account/{auth_id}/ to queue outbound WhatsApp messages and inspect API-sent message history.

POST/v1/Account/{auth_id}/Message/Queue one or multiple WhatsApp messages (HTTP 202)
GET/v1/Account/{auth_id}/Message/List outbound API messages with pagination and filters
GET/v1/Account/{auth_id}/Message/{message_uuid}/Retrieve status and delivery details for a single message

Send Message Request Body

Every POST /Message/ request requires type set to "whatsapp", your connected WhatsApp Business number in src, one or more E.164 recipient numbers in dst (up to 20 numbers separated by <), and exactly one payload type: text, media_urls, template, interactive, or location.

FieldTypeDescription
typerequiredstringMust be "whatsapp".
srcrequiredstringYour connected WhatsApp Business phone number in E.164 or digit format.
dstrequiredstringSingle E.164 recipient number, or up to 20 numbers separated by '<' (each recipient receives its own message UUID).
textoptionalstringText message body (up to 4,096 characters), or optional caption when sent with media_urls.
media_urlsoptionalstring[]Array containing one public https:// media URL (images, video .mp4/.3gp/.mov, audio .mp3/.ogg/.aac/.m4a, or documents .pdf/.docx/.xlsx).
templateoptionalobjectApproved WhatsApp template object: { name, language, components? } with header, body, and button parameters.
locationoptionalobjectLocation pin object: { latitude, longitude, name, address } (all fields required).
interactiveoptionalobjectInteractive message payload supporting reply buttons (type: "button"), call-to-action links (type: "cta_url"), or option lists (type: "list").
urloptionalstringOptional per-message https:// callback URL overriding your credential's default Callback URL.
methodoptionalstringHTTP method for status callbacks: "POST" (default) or "GET".
bashSend an approved WhatsApp template message
curl -X POST "https://YOUR_API_HOST/v1/Account/YOUR_AUTH_ID/Message/" \
  -u "YOUR_AUTH_ID:YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "whatsapp",
    "src": "+919800000001",
    "dst": "+919811111111<+919822222222",
    "url": "https://example.com/webhooks/wbmsg-status",
    "method": "POST",
    "template": {
      "name": "order_shipped_update",
      "language": "en_US",
      "components": [
        {
          "type": "body",
          "parameters": [
            { "type": "text", "text": "Aarav" },
            { "type": "text", "text": "ORD-4821" }
          ]
        }
      ]
    }
  }'
jsonQueued response (HTTP 202 Accepted)
{
  "api_id": "2c8d8b7e-4b3b-42b0-9f5c-34b3d209c12a",
  "message": "message(s) queued",
  "message_uuid": [
    "f1c8f0ae-6e8b-4a34-bc95-93818b8d0101",
    "04d2c771-19cd-48ab-8c04-77a9e60a0102"
  ]
}

Session Text, Media, Location & Interactive Payloads

Non-template messages (text, media_urls, location, and interactive) require an active 24-hour customer service window on WhatsApp. Use approved template messages when starting a new conversation or messaging after 24 hours.

jsonText, Media, Location & Interactive JSON payloads
// 1. Session text message
{
  "type": "whatsapp",
  "src": "+919800000001",
  "dst": "+919811111111",
  "text": "Hi! Your support ticket #4821 has been updated."
}

// 2. Media message with caption
{
  "type": "whatsapp",
  "src": "+919800000001",
  "dst": "+919811111111",
  "media_urls": ["https://cdn.example.com/invoices/inv-4821.pdf"],
  "text": "Here is your invoice PDF."
}

// 3. Location message
{
  "type": "whatsapp",
  "src": "+919800000001",
  "dst": "+919811111111",
  "location": {
    "latitude": "19.0760",
    "longitude": "72.8777",
    "name": "WBMSG Mumbai Hub",
    "address": "Bandra Kurla Complex, Mumbai 400051"
  }
}

// 4. Interactive reply buttons
{
  "type": "whatsapp",
  "src": "+919800000001",
  "dst": "+919811111111",
  "interactive": {
    "type": "button",
    "body": { "text": "Would you like to reschedule your delivery?" },
    "footer": { "text": "Reply using a button below" },
    "action": {
      "buttons": [
        { "id": "reschedule_tomorrow", "title": "Tomorrow" },
        { "id": "keep_slot", "title": "Keep Today" }
      ]
    }
  }
}
💡When a status callback URL is configured, WBMSG emits a queued event immediately upon acceptance followed by sent, delivered, and read updates as Meta reports them.

Query & Retrieve Messages

Retrieve paginated outbound API messages with GET /Message/ (up to 20 records per page) or fetch a single message by UUID. Timestamp filters (message_time__gt and message_time__lt) expect UTC values formatted as yyyy-MM-dd HH:mm:ss.

FieldTypeDescription
limitoptionalintegerPage size from 1 to 20 (default: 20).
offsetoptionalintegerPagination offset (default: 0).
message_stateoptionalstringFilter by status: queued, sent, delivered, read, failed, or undelivered.
error_codeoptionalstringFilter by reported delivery error code (such as 380 or 131047).
message_time__gt / __ltoptionalstringUTC date-time bounds formatted as yyyy-MM-dd HH:mm:ss (for example, 2026-11-29 00:00:00).
jsonRetrieve single message response
{
  "api_id": "44c8044e-1988-46b2-bf44-1e919a502001",
  "message_uuid": "f1c8f0ae-6e8b-4a34-bc95-93818b8d0101",
  "message_direction": "outbound",
  "message_state": "delivered",
  "message_type": "whatsapp",
  "message_time": "2026-11-29 14:05:12+00:00",
  "from_number": "919800000001",
  "to_number": "919811111111",
  "units": 1,
  "total_rate": "0",
  "total_amount": "0",
  "error_code": null,
  "error_message": null,
  "conversation_id": null,
  "conversation_origin": null
}
Still need help with Developer API?
Start free with 500 monthly messages or message our team directly.