White-label emails

Customize the emails we send to your customers on your behalf.

Customize the emails we send to your customers on your behalf.

Prerequisites

  • A bearer token in the Authorization header. Any endpoint that needs no token says so on its own page.
  • The id of each record the call targets. Every endpoint page lists the ids it needs.

Errors

StatusMeaning
401The bearer token is missing, expired or invalid
403The token is valid but the record sits outside your account
422The request failed validation — the response names the fields
500Unexpected server error

Individual endpoints may return more; each page lists its own.

Endpoints

MethodEndpointDescription
POSTList email typesList every email-template type from the catalog merged with the company's own override flags (enabled state, delivery method, logo visibility, customised flag).
POSTList an email's merge fieldsReturns the list of supported variable tokens (with sample values) usable in the header/body/footer/signature content for one template type.
POSTGet an email templateLoads the full editor payload for one template type: raw override regions (null = inherit), resolved effective content, catalog defaults, theme color, and current settings (enabled, delivery method, logo visibility).
POSTSave an email templateCreate or updates the company's content override for a template type.
POSTPreview an emailRenders the template with sample variable values and returns the resulting HTML + resolved subject.
POSTTurn an email type on or offEnable or disables sending for a template type.
POSTChoose who sends an emailSwitches a template type between Direct Send (email) and Webhook delivery.
POSTShow or hide your logo in emailsControls whether the white-label partner logo is shown in the email header for a template type (defaults to visible).
POSTSee email delivery historyReturns a paginated log of all email/webhook delivery attempts for the company, newest first, filterable by type, status, recipient, and date range.
POSTReset an email to the defaultClear the company's content overrides (header, body, footer, signature, subject_override) for a type, reverting to system/white-label defaults.
POSTSend a test emailSend a real test email (subject prefixed with [Test] ) to the authenticated user's own email address, using sample variable values and any posted draft regions.