Webhook Request about Changing WhatsApp Template Category
To receive webhook requests about changing the category of the WhatsApp template, go to Integration → Settings section of yout in edna Pulse account and specify the URL for webhook requests in the Webhook URL for WhatsApp template category changes, which is the endpoint of your system that will process incoming POST requests from edna Pulse.
Webhook Request Format
{
"payload":{
"id": integer,
"name": "string",
"channelType": "WHATSAPP",
"category": "MARKETING"
},
"type": "string",
"version": "string",
"timestamp": "string"
}
Webhook Request Example
{
"payload":{
"id": 123,
"name": "Promotion",
"channelType": "WHATSAPP",
"category": "MARKETING"
},
"type": "message_matcher.category_changed",
"version": "v1",
"timestamp": "2025-08-08T16:08:08.015356271Z"
}
Webhook Request Parameters
| Parameter | Data Type | Character | Description |
|---|---|---|---|
payload | object | Required | The type of event that the webhook is being sent about. |
payload.id | integer | Required | The template ID. To find out the template ID, use the API method to get a list of templates — the id parameter. Retrieving List of Templates |
payload.name | string | Required | The name of the template. To find out the name of the template, use the API method to get a list of templates — the name parameter. Retrieving List of Templates |
payload.channelType | string | Required | Channel type. Possible value is WHATSAPP (WhatsApp channel). |
payload.category | string | Required | Updated template category. Possible values for the WhatsApp channel: - MARKETING — marketing template; - UTILITY — service template; - AUTHORIZATION — authorization template. |
type | string | Required | The type of event that the webhook is being sent about. |
version | string | Required | The version of the API method. |
timestamp | string | Required | The time of updating the category in the WhatsApp template. Specified in the ISO 8601 format (for example, 2025-07-01T00:00:00Z). sentenz.github.io |
Response Format
In response to a webhook request from your server, the status of its execution with the code 200 should be returned.
If the code 200 does not arrive in response to the webhook request, edna Pulse performs 10 more request attempts with an interval of 2^X seconds between attempts (where X is the attempt number) until the code 200 arrives in response.
Therefore, if there is no response, the request is retried 4, 8, 16, 32, 64, 128, 256, 512, 1024, and 2048 seconds after the first attempt.