How to Receive WhatsApp Delivery Reports via Webhook (New)

Please follow the steps below to configure the Webhook to receive real-time delivery reports (logs) on your Webhook (callback URL).

1. Go to MSG91 Dashboard » WhatsApp » Click on Webhook (New) » Click on Create Webhook.

image

2. Configure Your Webhook.

image

Step 1: Give your webhook a name for easy identification.

Step 2: Select WhatsApp Service & Event Type

For Outbound

On Outbound Request Received: Triggers when an outbound message request is sent from your account. Includes "Sent" status logs, but does not share any data on delivery/failure status.

On Outbound Report Received: Sends real-time delivery reports, including delivery status (Sent, Failed, Delivered, and Read) and other details for the outbound messages.

For Inbound

On Inbound Request Received: Triggers when an inbound message request is submitted.

On Inbound Report Received: Triggers when an inbound message request is successfully delivered.

Step 3: Enter Your Webhook (Callback) URL

  • When you send bulk WhatsApp messages, the webhook will still send one log (payload) per recipient number. This means for each mobile number, you will receive a separate webhook event, even if all messages are sent in a single batch.

  • The value of a few parameters ( such as messages, content, button etc)  is a stringified JSON array so make sure your Webhook is capable of receiving such data.

Step 4: The content type will be JSON. Make sure your endpoint can parse JSON data.

Step 5. Customize Parameters

Include only the fields that you want to receive on your Webhook. Below is the sample payload, which has all the parameters; you can remove the parameters that are not of your use.

Sample payload for Outbound messages with all the available parameters.

{

              "crqid": "{{crqid}}",

              "companyId": "{{companyId}}",

              "requestedAt": "{{requestedAt}}",

              "customerNumber": "{{customerNumber}}",

              "content": "{{content}}",

              "requestId": "{{requestId}}",

              "reason": "{{reason}}",

              "eventName": "{{eventName}}",

              "uuid": "{{uuid}}",

              "integratedNumber": "{{integratedNumber}}",

              "direction": "{{direction}}",

              "templateName": "{{templateName}}",

              "campaignName": "{{campaignName}}",

              "campaignRequestId": "{{campaignRequestId}}",

              "templateLanguage": "{{templateLanguage}}",

              "accountManagerEmailId": "{{accountManagerEmailId}}",

              "oneApiRequestId": "{{oneApiRequestId}}",

              "emailId": "{{emailId}}",

              "conversationExpTimestamp": "{{conversationExpTimestamp}}",

              "moengageMsgId": "{{moengageMsgId}}",

              "webengageMsgId": "{{webengageMsgId}}",

              "clevertapMsgId": "{{clevertapMsgId}}",

              "pluginsource": "{{pluginsource}}",

              "contentType": "{{contentType}}",

              "text": "{{text}}",

              "orders": "{{orders}}",

              "ts": "{{ts}}"

 }

Sample payload for Inbound messages with all the available parameters:

{

              "crqid": "{{crqid}}",

              "companyId": "{{companyId}}",

              "requestedAt": "{{requestedAt}}",

              "customerNumber": "{{customerNumber}}",

              "requestId": "{{requestId}}",

              "reason": "{{reason}}",

              "eventName": "{{eventName}}",

              "uuid": "{{uuid}}",

              "integratedNumber": "{{integratedNumber}}",

              "templateName": "{{templateName}}",

              "templateLanguage": "{{templateLanguage}}",

              "replyMsgId": "{{replyMsgId}}",

              "conversationExpTimestamp": "{{conversationExpTimestamp}}",

              "pluginsource": "{{pluginsource}}",

              "customerName": "{{customerName}}",

              "contentType": "{{contentType}}",

              "text": "{{text}}",

              "latitude": "{{latitude}}",

              "longitude": "{{longitude}}",

              "caption": "{{caption}}",

              "filename": "{{filename}}",

              "url": "{{url}}",

              "button": "{{button}}",

              "contacts": "{{contacts}}",

              "reaction": "{{reaction}}",

              "interactive": "{{interactive}}",

              "orders": "{{orders}}",

              "messages": "{{messages}}",

              "ts": "{{ts}}"

}

Description of the parameters:

  • reason
    If a message fails, this field shows the reason including error code and description.
    Example: "reason": "131049: This message was not delivered to maintain healthy ecosystem engagement."

  • button
    Response text for quick reply buttons.
    Example: "button": "{\"payload\":\"Stop\",\"text\":\"Stop\"}"

  • integratedNumber
    Your integrated WhatsApp business number.
    Example: "integratedNumber": "917316914325"

  • direction
    Message direction – 1 for Outbound, 0 for Inbound.
    Example: "direction": "0"

  • templateName
    Name of the WhatsApp message template used.
    Example: "templateName": "order_status"

  • crqid
    A custom parameter you can pass in the API payload. You will receive the same value in the webhook.
    Example: "crqid": "Inactive_users"

  • companyId
    Unique ID of your company for identifying your MSG91 account.
    Example: "companyId": "384905"

  • requestedAt
    Timestamp of when the message request was initiated from your end.
    Example: "requestedAt": "2025-07-08 08:20:26.259000"

  • uuid
    Unique ID for every message generated by Meta.
    Example: "uuid": "wamid.HBgMOTE3NzQ4ODQ3OTkwFQIAERgSMEE4MjFCNkI5QkU4RTY5NEM5AA=="

  • campaignName
    Name of your campaign if sent via MSG91’s Campaign service.
    Example: "campaignName": "jul8test1"

  • campaignRequestId
    Unique request ID of your campaign.
    Example: "campaignRequestId": "1751960463_0b863cfb12a2293657f1f46ebf1cc546"

  • templateLanguage
    Language of your WhatsApp template.
    Example: "templateLanguage": "en_US"

  • accountManagerEmailId
    Email ID of your MSG91 account manager.
    Example: "accountManagerEmailId": "[email protected]"

  • customerName
    Name of the customer who has sent the message.
    Example: "customerName": "Manas”

  • replyMsgId
    Unique WhatsApp message ID of the template the user replied to or interacted with.
    Example: "replyMsgId": "wamid.HBgMOTE3NzQ4ODQ3OTkwFQIAERgSRUJGN0JCOTBBMUY5RUJGMEY3AA=="

  • contentType
    Type of content received in inbound messages – text, image, interactive, etc.

  • contacts
    Contact details of the user stored in your Segmento phonebook.
    Example: "contacts": "[{\"profile\":{\"name\":\"Manas\"},\"wa_id\":\"91774884730\"}]"

  • text
    Exact text of the message received on your number.
    Example: "text": "Contact store"

  • latitude
    Latitude of the location shared in an inbound message.
    Example: "latitude": "22.7252947"

  • longitude
    Longitude of the location shared in an inbound message.
    Example: "longitude": "75.8905714"

  • filename
    The file name of the attachment.
    Example: "filename": Invoice June 2025"

  • reaction
    The user’s reaction to your message or template.

    The Emoji will be sent in Unicode, so please ensure your webhook is capable of receiving

    such data.
    Example: "reaction": "👍🏻"

  • emailId
    Registered email ID of your MSG91 account
    Example: “emailId": "[email protected]"

  • ts
    The timestamp and date when the status of your message was updated.
    Example: "ts": “2025-08-25T15:14:48+05:30"

  • oneApiRequestId
    Request ID if you sent it via One API.

  • webengageMsgId
    Unique ID of the message if the message was sent via WebEngage

  • clevertapMsgId
    Unique ID of the message if the message was sent via Clevertap.

  • moengageMsgId:
    Unique ID of the message if the message was sent via MoEngage.

Sample Webhook payload of an Outbound message:

{

  "crqid": "",

  "companyId": "384905",

  "requestedAt": "2025-08-25T15:14:43+05:30",

  "customerNumber": "917974565369",

  "content": "{\"body_1\":{\"type\":\"text\",\"text\":\"1234\"},\"button_1\":{\"subtype\":\"url\",\"type\":\"text\",\"text\":\"copycode\"}}",

  "requestId": "df09f35ace6b45b8b38768265774a5fb",

  "reason": "",

  "eventName": "delivered",

  "uuid": "wamid.HBgMOTE3OTc0NTY1MzY5FQIAERgSNjM5OTVDRUFGNjY2NkU5REEyAA==",

  "integratedNumber": "917316914325",

  "direction": "1",

  "templateName": "urlshort",

  "campaignName": "",

  "campaignRequestId": "",

  "templateLanguage": "en",

  "accountManagerEmailId": "[email protected]",

  "oneApiRequestId": "",

  "emailId": "[email protected]",

  "conversationExpTimestamp": "",

  "moengageMsgId": "",

  "webengageMsgId": "",

  "clevertapMsgId": "",

  "pluginsource": "",

  "contentType": "",

  "text": "",

  "orders": "",

  "ts": "2025-08-25T15:14:48+05:30"

}

Sample Webhook payload for an Inbound message:

{

  "crqid": "",

  "companyId": "384905",

  "requestedAt": "2025-08-25T15:25:55+05:30",

  "customerNumber": "917748847990",

  "requestId": "",

  "reason": "",

  "eventName": "delivered",

  "uuid": "wamid.HBgMOTE3NzQ4ODQ3OTkwFQIAEhggNkM2QjRBOTcxMkFGMTNDOERBMUY4MTI4RUY0MDQ2MzkA_hello",

  "integratedNumber": "917316914325",

  "templateName": "",

  "templateLanguage": "",

  "replyMsgId": "",

  "conversationExpTimestamp": "",

  "pluginsource": "",

  "customerName": "Manas",

  "contentType": "text",

  "text": "Hi",

  "latitude": "",

  "longitude": "",

  "caption": "",

  "filename": "",

  "url": "",

  "button": "",

  "contacts": "[{\"profile\":{\"name\":\"Manas\"},\"wa_id\":\"917748847990\"}]",

  "reaction": "",

  "interactive": "",

  "orders": "",

  "messages": "[{\"from\":\"917748847XXX\",\"id\":\"wamid.HBgMOTE3NzQ4ODQ3OTkwFQIAEhggNkM2QjRBOTcxMkFGMTNDOERBMUY4MTI4RUY0MDQ2MzkA\",\"timestamp\":\"1756115753\",\"text\":{\"body\":\"Hi\"},\"type\":\"text\"}]",

  "ts": "2025-08-25T15:25:55+05:30"

}

You can also add the Headers in the key-value pairs, and then we will send all the reports including these Headers:

Headers In Webhook.png

Step 6: Click Create to save your webhook configuration.

Still have questions?

Feel free to reach us at +91 8818888733 via call or WhatsApp or drop an email to [email protected].