Preview one of the emails the notifications page configures
GET
/v1/tenants/me/settings/notification-previews/{kind}
const url = 'https://api.emite.cr/v1/tenants/me/settings/notification-previews/customer_accepted';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”kind
required
string
Responses
Section titled “Responses”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.