---
updatedAt: 2026-05-19T06:53:11.000Z
agentTools:
  projectIndex: https://docs.wati.io/llms.txt
---

# Template Message FAILED

Webhook event structure and field descriptions for template message failed events in WATI platform

```json
{
  "eventType": "templateMessageFailed",
  "statusString": "Failed",
  "localMessageId": "fd29c1f-9033-59b2-7d72-5ac964c4c8a7",
  "failedCode": "131026",
  "failedDetail": "Message undeliverable",
  "id": "66b2531d4931581381944612",
  "whatsappMessageId": "wamid.HBgMOAE4NjY4NDkzNjAxFAIAERgSOTEENzFCNjEwMkNDNENGQUJGAA==",
  "conversationId": "66b1fb044045cedb1f19538e",
  "ticketId": "66bdfba190194752bb7326d7",
  "text": null,
  "type": "template",
  "timestamp": "1665645642",
  "assigneeId": null,
  "operatorEmail": "hello@wati.io"
}
```

### Field Description

| Field             | Type   | Description                                                                |
| ----------------- | ------ | -------------------------------------------------------------------------- |
| eventType         | String | The type of webhook event that was triggered                               |
| statusString      | String | Human-readable status description of the message                           |
| localMessageId    | String | Local unique identifier for the message within WATI's system               |
| failedCode        | String | Error code indicating the specific reason for message failure              |
| failedDetail      | String | Detailed description of why the message failed to deliver                  |
| id                | String | Unique identifier for this message within the WATI system                  |
| whatsappMessageId | String | WhatsApp's internal message identifier                                     |
| conversationId    | String | Unique identifier for the conversation thread                              |
| ticketId          | String | Support ticket ID associated with this conversation                        |
| text              | String | The actual message content. `null` for template messages                   |
| type              | String | Message type classification                                                |
| timestamp         | String | Unix timestamp indicating when the message was processed                   |
| assigneeId        | String | ID of the agent assigned to handle this conversation. `null` if unassigned |
| operatorEmail     | String | Email address of the operator/agent who sent the message                   |

<br />