Webhook
Incoming Messages
When a user sends a message to Business, it’s termed as Incoming Message for the business. Such messages are posted to Webhook at real time with a JSON Payload of predefined format.
Note: Both user-originated message or responses to business-originated messages are received through Webhook.
Standard JSON Format
Whether its user-initiated message or follow-up message from a user, incoming messages with different type of content will have common JSON format as given below:
{
"messageId": "{message id}",
"channel": "whatsapp",
"from": "{sender phone}",
"to": "{receiver phone}",
"receivedAt": "{ISO timestamp}",
"content": {
"contentType": "text",
"text": "X2"
},
"whatsapp": {
"senderName": "{sender name}"
},
"context": {
"messageId": "{message id}"
},
"timestamp": "{ISO timestamp}",
"event": "MoMessage",
"isin24window": true,
"isResponded": false,
"UserResponse": "X2"
}
JSON Explanation
| Key / Object | Data Type | Description |
|---|---|---|
| messageId | String | Unique ID of the message. |
| channel | String | Messaging platform (e.g. whatsapp). |
| from | String | Sender phone number including country code. |
| to | String | Business phone number receiving the message. |
| content | Object | Contains message type and actual message data. |
| Object | Platform specific metadata. | |
| timestamp | String | ISO timestamp when event occurred. |
| event | String | Event type (e.g. MoMessage). |
| isin24window | Boolean | Indicates if message is inside 24-hour session window. |
| isResponded | Boolean | Indicates if business responded to the message. |
Type of Incoming Messages
Read the following section to understand different types of incoming messages and related JSON received on Webhook.
Text Message
JSON Payload
{
"messageId": "{message id}",
"channel": "whatsapp",
"from": "{sender phone}",
"to": "{receiver phone}",
"receivedAt": "{ISO timestamp}",
"content": {
"contentType": "text",
"text": "{text content}"
},
"whatsapp": {
"senderName": "{sender name}"
},
"context": {
"messageId": "{message id}"
},
"timestamp": "{ISO timestamp}",
"event": "MoMessage",
"isin24window": true,
"isResponded": false,
"UserResponse": "{text content}"
}
JSON Explanation (Text Message)
| Key / Object | Data Type | Description |
|---|---|---|
| content.contentType | String | Defines message type. For text messages it will be “text”. |
| content.text | String | Actual text message sent by the user. |
| UserResponse | String | Represents the user’s response content. |
Message with Image
JSON Payload
{
"messageId": "{message id}",
"channel": "whatsapp",
"from": "{sender phone}",
"to": "{receiver phone}",
"receivedAt": "{ISO timestamp}",
"content": {
"contentType": "media",
"media": {
"type": "image",
"url": "{media url}"
}
},
"whatsapp": {
"senderName": "{sender name}"
},
"timestamp": "{ISO timestamp}",
"event": "MoMessage",
"isin24window": true,
"isResponded": false
}
JSON Explanation (Image Message)
| Key / Object | Data Type | Description | |
|---|---|---|---|
| content.contentType | String | For media messages this will be “media”. | |
| content.media | Object | Contains media-related information. | |
| content.media.type | String | Specifies media type. For this case it will be “image”. | |
| content.media.url | String | Public or internal URL where the uploaded image is stored. |
Message with Video
JSON Payload
{
"messageId": "{message id}",
"channel": "whatsapp",
"from": "{sender phone}",
"to": "{receiver phone}",
"receivedAt": "{ISO timestamp}",
"content": {
"contentType": "media",
"media": {
"type": "video",
"url": "{video url}"
}
},
"whatsapp": {
"senderName": "{sender name}"
},
"timestamp": "{ISO timestamp}",
"event": "MoMessage",
"isin24window": true,
"isResponded": false
}
JSON Explanation (Video Message)
| Key / Object | Data Type | Description |
|---|---|---|
| content.contentType | String | For media messages this will be “media”. |
| content.media | Object | Contains media-related information. |
| content.media.type | String | Specifies media type. For this case it will be “video”. |
| content.media.url | String | URL where the uploaded video file is stored. |
Message with Audio
JSON Payload
{
"messageId": "{message id}",
"channel": "whatsapp",
"from": "{sender phone}",
"to": "{receiver phone}",
"receivedAt": "{ISO timestamp}",
"content": {
"contentType": "media",
"media": {
"type": "audio",
"url": "{audio url}"
}
},
"whatsapp": {
"senderName": "{sender name}"
},
"timestamp": "{ISO timestamp}",
"event": "MoMessage",
"isin24window": true,
"isResponded": false
}
JSON Explanation (Audio Message)
| Key / Object | Data Type | Description |
|---|---|---|
| content.contentType | String | For media messages this will be “media”. |
| content.media.type | String | Specifies media type. For this case it will be “audio”. |
| content.media.url | String | URL where the uploaded audio file is stored (e.g. .mp3). |
Message with Voice
JSON Payload
{
"messageId": "{message id}",
"channel": "whatsapp",
"from": "{sender phone}",
"to": "{receiver phone}",
"receivedAt": "{ISO timestamp}",
"content": {
"contentType": "media",
"media": {
"type": "voice",
"url": "{voice url}"
}
},
"whatsapp": {
"senderName": "{sender name}"
},
"timestamp": "{ISO timestamp}",
"event": "MoMessage",
"isin24window": true,
"isResponded": false
}
JSON Explanation (Voice Message)
| Key / Object | Data Type | Description |
|---|---|---|
| content.contentType | String | For media messages this will be “media”. |
| content.media.type | String | Specifies media type. For this case it will be “voice”. |
| content.media.url | String | URL where the recorded voice note file is stored (typically .ogg). |
Message with Document
JSON Payload
{
"messageId": "{message id}",
"channel": "whatsapp",
"from": "{sender phone}",
"to": "{receiver phone}",
"receivedAt": "{ISO timestamp}",
"content": {
"contentType": "media",
"media": {
"type": "document",
"filename": "{file name with extension}",
"url": "{document url}"
}
},
"whatsapp": {
"senderName": "{sender name}"
},
"timestamp": "{ISO timestamp}",
"event": "MoMessage",
"isin24window": true,
"isResponded": false
}
JSON Explanation (Document Message)
| Key / Object | Data Type | Description |
|---|---|---|
| content.contentType | String | For media messages this will be “media”. |
| content.media.type | String | Specifies media type. For this case it will be “document”. |
| content.media.filename | String | Name of the uploaded document including file extension. |
| content.media.url | String | URL where the uploaded document file is stored. |
Message with Emoji
JSON Payload
{
"messageId": "{message id}",
"channel": "whatsapp",
"from": "{sender phone}",
"to": "{receiver phone}",
"receivedAt": "{ISO timestamp}",
"content": {
"contentType": "text",
"text": "😀"
},
"whatsapp": {
"senderName": "{sender name}"
},
"timestamp": "{ISO timestamp}",
"event": "MoMessage",
"isin24window": true,
"isResponded": false,
"UserResponse": "😀"
}
JSON Explanation (Emoji Message)
| Key / Object | Data Type | Description |
|---|---|---|
| content.contentType | String | For emoji messages this will be “text”. |
| content.text | String | Contains the emoji character. Emojis are standard Unicode text characters. |
| UserResponse | String | Stores the emoji sent by the user. |
Message with Template
JSON Payload
{
"messageId": "{message id}",
"channel": "whatsapp",
"from": "{sender phone}",
"to": "{receiver phone}",
"whatsapp": {
"text": "{button label}",
"senderName": "{sender name}"
},
"context": {
"messageId": "{parent message id}"
},
"postback": {
"data": "{postback payload id}"
},
"timestamp": "{unix timestamp}",
"event": "MoMessage::Postback",
"content": {
"contentType": "text",
"text": "{button label}"
},
"isin24window": true,
"isResponded": false,
"TemplateName": "{template name}",
"UserResponse": "{button label}"
}
JSON Explanation (Template)
| Key / Object | Data Type | Description |
|---|---|---|
| event | String | For template button clicks this will be “MoMessage::Postback”. |
| postback.data | String | Unique identifier associated with the template button. |
| TemplateName | String | Name of the WhatsApp template that generated the button. |
| whatsapp.text | String | Label of the button clicked by the user. |
| content.contentType | String | Will still be “text” because button click returns text. |
| content.text | String | Contains the button label selected by the user. |
| context.messageId | String | Refers to the original template message ID. |
Interactive Message
JSON Payload
{
"messageId": "{message id}",
"channel": "whatsapp",
"from": "{sender phone}",
"to": "{receiver phone}",
"whatsapp": {
"title": "{selected option title}",
"senderName": "{sender name}"
},
"context": {
"messageId": "{parent message id}"
},
"postback": {
"data": "{postback payload id}"
},
"timestamp": "{unix timestamp}",
"event": "MoMessage::Postback",
"content": {
"contentType": "text"
},
"isin24window": true,
"isResponded": false,
"InteractiveMessageTitle": "{interactive template name}"
}
JSON Explanation (Interactive)
| Key / Object | Data Type | Description |
|---|---|---|
| event | String | Will be “MoMessage::Postback” for interactive selections. |
| whatsapp.title | String | Title of the interactive option selected by the user. |
| postback.data | String | Unique identifier of the selected interactive option. |
| InteractiveMessageTitle | String | Name of the interactive message configuration. |
| context.messageId | String | Refers to the original interactive message sent by the business. |
Message Status Events
These events represent delivery lifecycle updates for outbound messages sent by the business.
{
"messageId": "{message id}",
"status": "accepted",
"timestamp": "{ISO timestamp}"
}
{
"messageId": "{message id}",
"status": "delivered",
"timestamp": "{ISO timestamp}"
}
{
"messageId": "{message id}",
"status": "seen",
"timestamp": "{ISO timestamp}"
}
{
"messageId": "{message id}",
"status": "failed",
"timestamp": "{ISO timestamp}"
}
JSON Explanation (Message Status)
| Key / Object | Data Type | Description |
|---|---|---|
| messageId | String | Unique identifier of the outbound message whose status is being updated. |
| status | String | Indicates delivery state. Possible values: “accepted”, “delivered”, “seen”, “failed”. |
| timestamp | String (ISO) | Time at which the status update occurred. |
Customer Create & Update Events
Overview
When a customer is created or updated in your 11za account, 11za sends an HTTP POST request to your webhook URL. The request body is JSON and the header Content-Type: application/json is always sent. Any custom headers you set for the webhook, such as x-api-key or Authorization , are sent with every request.
By default, only these customer fields are sent:
- name
- mobileNo
These fields are optional. They are sent only when they are enabled for your webhook:
- tags
- masterstatus-(Label)
- teamMemberEmail and teamMemberName
Customer Created
This example shows all keys. tags , masterstatus , teamMemberEmail and teamMemberName are sent only when they are enabled.
JSON PAYLOAD
{
"type": "insert",
"data": {
"name": "CustomerName",
"mobileNo": "MobileNo",
"updatedAt": "2026-10-23T10:15:30.000Z",
"tags": ["test", "CustomerName"],
"masterstatus": "New Lead",
"teamMemberEmail": "team member email",
"teamMemberName": "team member name"
},
"changedFields": {
"name": "Customer Name",
"tags": ["test", "Customer Name"],
"masterstatus": "New Lead",
"mobileNo": "Mobile Number"
}
}
Customer Updated
Default payload. In this example the customer’s name was changed. data has the current customer details, and changedFields has only the field that changed.
JSON PAYLOAD
{
"type": "update",
"data": {
"name": "Customer Name",
"mobileNo": "Mobile Number",
"updatedAt": "2026-10-23T11:20:10.000Z"
},
"changedFields": {
"name": "Customer Name"
}
}
Customer Updated (Tags, Status and Team Member Enabled)
When tags , masterstatus and team member details are enabled, they are also sent in data . In this example a new tag was added to the customer.
JSON PAYLOAD
{
"type": "update",
"data": {
"name": "Customer Name",
"mobileNo": "Mobile Number",
"updatedAt": "2026-10-23T11:40:05.000Z",
"tags": ["test", "Customer Name", "customer"],
"masterstatus": "Interested",
"teamMemberEmail": "Team Member Email",
"teamMemberName": "Team Member Name"
},
"changedFields": {
"tags": ["test", "Customer Name", "customer"]
}
}
Note: tags is a plain list of tag names (strings). Each tag is a text value such as “test” , not an object.
JSON Explanation (Customer Create & Update Events)
| Key / Object | Data Type | Description |
|---|---|---|
| type | String | Type of event. insert when a new customer is created, update when an existing customer is changed. |
| data | Object | Current details of the customer after the change. |
| data.name | String | Name of the customer. Empty string if not set. |
| data.mobileNo | String | Mobile number of the customer with country code. |
| data.updatedAt | String (ISO 8601) | Date and time when the customer was last updated. |
| data.tags | Array of String | All tag names currently assigned to the customer, for example [“test”, “vinay”] . Optional. Sent only when tags are enabled. |
| data.masterstatus | String | Name of the customer’s current status. Optional. Sent only when status is enabled and a status is assigned. |
| data.teamMemberEmail | String | Email of the team member assigned to the customer. Optional. Sent only when team member details are enabled and a team member is assigned. |
| data.teamMemberName | String | Name of the team member assigned to the customer. Sent with teamMemberEmail . |
| Key / Object | Data Type | Description |
|---|---|---|
| changedFields | Object | Fields that changed in this event, with their new values. For insert it has all tracked fields (by default name and mobileNo ). For update it has only the tracked fields that changed. |
JSON Explanation (Customer Create & Update Events)
| Item | Value | Description |
|---|---|---|
| Method | POST | The payload is sent as the JSON request body. |
| Success | HTTP 2xx | Your endpoint must reply with a 2xx status code within 10 seconds. |
| Retries | Up to 6 attempts | If a request fails or times out, it is retried after 5 seconds, 30 seconds, 2 minutes, 10 minutes and 30 minutes. Your webhook will become inactive after 6 retry attempts. |
| Duplicates | Possible | In rare cases the same event can arrive more than once. Use mobileNo and updatedAt to ignore duplicates. |
