Skip to content

Preview one of the emails the notifications page configures

GET
/v1/tenants/me/settings/notification-previews/{kind}
curl --request GET \
--url https://api.emite.cr/v1/tenants/me/settings/notification-previews/customer_accepted \
--header 'Authorization: Bearer <token>'

Renders the email with the SAME template the real send uses and sample data (the customer email carries the company's own name as issuer), in the company's default language — the one its emails go out in. Sends nothing. kind is one of customer_accepted, accepted_each, accepted_daily, rejected, error, timeout, recipient_undeliverable, recurring_failed, scheduled_send_failed, acceptance_reminder, fiscal_reminder, import_completed, archive_reminder.

kind
required
string
Allowed values: customer_accepted accepted_each accepted_daily rejected error timeout recipient_undeliverable recurring_failed scheduled_send_failed acceptance_reminder fiscal_reminder import_completed archive_reminder
Media typeapplication/json
object
subject
required

Subject the email would carry.

string
html
required

Full HTML of the email, rendered with the SAME template the real send uses and sample data, in the language the company's emails go out in.

string
Examplegenerated
{
"subject": "example",
"html": "example"
}

NOTIFICATION_PREVIEW_KIND_INVALID — unknown kind.

Missing or invalid JWT / API key.