To receive callbacks about changing the category of the WhatsApp template, set up the Callback URL for changing the category of the WhatsApp template in the section Integration → Settings in your edna Pulse account. When configuring, specify the endpoint of your system that will process incoming POST requests from edna Pulse.
Callback Request Format
{ "type": "string", "timestamp": "string", "payload": { "id": integer, "name": "string", "channelType": "WHATSAPP", "category": "MARKETING" } }
Callback Request Example
{ "type": "message_matcher.category_changed", "timestamp": "2025-06-16T12:34:56Z", "payload": { "id": 123, "name": "Promotion", "channelType": "WHATSAPP", "category": "MARKETING" } }
Callback Request Parameters
Parameter | Data type | Character | Description |
---|---|---|---|
type | string | Required | The type of event that the callback is being sent about. |
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). ISO 8601 – Convention |
payload | object | Required | Information about event types. |
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. |
Response Format
In response to a callback request from your server, the status code 200 should be returned.
If the 200 status is not returned in response to the callback request, edna Pulse performs 10 more attempts to send a callback request with an interval of 2 seconds between attempts (where X is the attempt number) until the 200 code is received in response (i.e. every 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048 seconds).