API Reference

Set WhatsApp Webhook (Panel)

You can set a webhook URL to receive real-time WhatsApp delivery reports as a JSON POST object on the provided URL.

Set the webhook here:

Visit Fast2SMS Dev API section: https://www.fast2sms.com/dashboard/dev-api → Select "API Webhook" and below the "WhatsApp Webhook" tab, paste your webhook URL, and click "Save".

Example JSON Response

{
  "whatsapp_reports": [
    {
      "type": "incoming_message",
      "message_id": "wamid.ABCD1234",
      "phone_number_id": "123456789012345",
      "from": "919876543210",
      "timestamp": 1726642924,
      "message_type": "text",
      "body": "Hello, this is a customer response",
      "context": {
        "replied_to_message_id": "wamid.EFGH5678"
      }
    },
    {
      "type": "status_update",
      "request_id": "wamid.ABCD1234",
      "phone_number_id": "123456789012345",
      "recipient_id": "919876543210",
      "status": "delivered",
      "timestamp": 1726643040,
      "errors": null
    }
  ]
}