Template Quality
The payload structure for 'Template Quality' webhook is mentioned below as an example:
Payload
{
"eventCategory": "TEMPLATE_QUALITY",
"channel": "wa",
"timestamp": "abc",
"channelMetadata": {
"id": "10908...",
"changes": [
{
"value": {
"previous_quality_score": "<PREVIOUS_QUALITY_SCORE>",
"new_quality_score": "<NEW_QUALITY_SCORE>",
"message_template_name": "<TEMPLATE_NAME>",
"message_template_language": "<LANGUAGE_AND_LOCALE_CODE>"
},
"field": "message_template_quality_update"
}
]
}
}
The details are mentioned below:
Attribute | Description |
---|---|
type | Template_Quality. |
channel | WA |
timestamp | Timestamp value. |
channelMetadata(object) | Highlighting metadata of the event. |
The details of 'channelMetadata' object is as mentioned below:
Attribute | Description |
---|---|
id | WABA ID |
changes (object) | Highlighting the changes. |
The details of 'Changes' object is as mentioned below:
Attribute | Description |
---|---|
value(Object) | Highlighting changes details. |
field | Fixed Value: message_template_quality_update. |
The details of value object for 'Template Quality' is as mentioned below:
Attribute | Description |
---|---|
previous_quality_score | Previous quality score. |
new_quality_score | New quality score of the template. |
message_template_language | Template language code. |
message_template_name | Template name. |