Preview an organisation's email as it would be sent

Needs permission organisation-settings:read.

The email exactly as it would be sent: subject, a whole HTML page and the plain-text version, with sample values (Jane Doe, Acme Ltd) and no attachment. Send wording in the same shape as a change to preview unsaved wording over what is saved. Logos are embedded in the page, so it can be shown in a sandboxed frame. Nothing is saved or sent. At most 30 previews a minute per person (429 preview_limit); API tokens cannot preview (403). 409 preview_no_template when the email is not set up; 502 preview_unavailable when the preview cannot be drawn just now. An organisation previews the published brand only: brand Draft answers 400 draft_preview_not_available.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The organisation to act on. It must be the one selected with X-Org-Id: a request naming two different organisations is refused with 403.

string
enum
required

The email, by the event name its webhook delivery events carry, as listed by the list operation: PayslipGeneratedEvent, P45GeneratedEvent, P60GeneratedEvent, EmployeePensionEnrolmentEvent, EmployeePensionReEnrolmentEvent, EmployeePensionPostponementEvent, EmployeePensionOptInInformationEvent, EmployeePensionOptInConfirmationEvent, EmployeePensionJoinConfirmationEvent, ReportReadyEvent.

Body Params

Both optional: no body previews what is saved, in the published brand.

wording
object | null

Absent: keep. null: clear and inherit. Text: set.

string
enum
Defaults to Live
Allowed:
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json