PUBLIC_EMAILER_TEMPLATE_NOT_FOUNDE-mail template does not exist or is inactive.
From BizKitHub Docs, the API error code reference
HTTP 404Public API
No active template of type "Custom e-mail (sent via API)" with this code (template variant) exists in the organisation behind the API key.
How to resolve
- 1
In admin go to E-maily → Šablony, create a template of type "Vlastní e-mail (odesílaný přes API)" and set its variant to the code you send.
- 2
Check that the template is active and has a subject and a body.
Example response
The API answers with HTTP 404 and a JSON body. Match on errorCode, not on message. Messages may be reworded, codes are stable.
application/json
{
"state": "error",
"code": 404,
"message": "E-mail template does not exist or is inactive.",
"errorCode": "PUBLIC_EMAILER_TEMPLATE_NOT_FOUND",
"hint": "No active template of type \"Custom e-mail (sent via API)\" with this code (template variant) exists in the organisation behind the API key.",
"documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_EMAILER_TEMPLATE_NOT_FOUND"
}