# PUBLIC_EMAILER_TEMPLATE_NOT_FOUND: E-mail template does not exist or is inactive.

- Category: Public API
- HTTP status: 404
- Reference: https://docs.bizkithub.com/en/errors/PUBLIC_EMAILER_TEMPLATE_NOT_FOUND

## What happened

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

```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"
}
```
