Errors
whatsapp_template_not_approved
The template is not approved.
| HTTP status | Type | Code |
|---|---|---|
| 409 | conflict_error | whatsapp_template_not_approved |
What it means
Only templates WhatsApp has approved can be sent. The message says the current status (for example PENDING, REJECTED or PAUSED). Wait for approval or fix the template, then retry.
How to handle it
Fetch the resource again to see its current state, then decide whether to retry.
Example response
{
"detail": "The template is not approved.",
"error": {
"type": "conflict_error",
"code": "whatsapp_template_not_approved",
"message": "The template is not approved.",
"param": null,
"docUrl": "https://docs.callmitra.ai/errors/whatsapp_template_not_approved",
"requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
}
}Branch on error.code; it never changes once published. The message text can change. See Errors for the envelope.
Returned by
POST /api/v1/whatsapp/messages— Send a WhatsApp message