Errors
whatsapp_template_not_found
Template not found.
| HTTP status | Type | Code |
|---|---|---|
| 404 | not_found_error | whatsapp_template_not_found |
What it means
No template with this name and language exists on the WhatsApp Business account of the sending number. Check the exact name and language code with GET /whatsapp/message-templates; a template created in WhatsApp Manager appears there after a template sync in the console.
How to handle it
Check the ID in the path. It may be wrong, deleted, or belong to another workspace; the API answers 404 rather than revealing other workspaces’ data.
Example response
{
"detail": "Template not found.",
"error": {
"type": "not_found_error",
"code": "whatsapp_template_not_found",
"message": "Template not found.",
"param": null,
"docUrl": "https://docs.callmitra.ai/errors/whatsapp_template_not_found",
"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