Skip to main content
POST
Create an email template

Authorizations

X-API-KEY
string
header
required

API key for authentication. Pass your key in the X-API-KEY header.

Headers

X-API-KEY
string | null
Authorization
string | null
X-Workspace-Id
string | null

Body

application/json

Request body for creating an email template.

template_key
enum<string>
required

Which email this template replaces. Cannot be changed later.

Available options:
WEB_INTERVIEW_INVITATION,
WEB_INTERVIEW_NUDGE,
WEB_INTERVIEW_FINAL_NUDGE,
RESUME_INVITATION,
RESUME_NUDGE,
FORM_INVITATION,
FORM_NUDGE,
SCHEDULING_LINK_EMAIL,
REPORT_READY_EMAIL,
RETAKE_AVAILABLE_EMAIL,
INTERVIEW_COMPLETION,
LLM_SCENARIO_INVITATION,
LLM_SCENARIO_NUDGE,
BOOKING_CONFIRMED_EMAIL,
BOOKING_RESCHEDULED_EMAIL,
BOOKING_CANCELLED_EMAIL,
BOOKING_REMINDER_EMAIL
Example:

"WEB_INTERVIEW_INVITATION"

name
string
required

Human-readable template name.

Required string length: 1 - 200
Example:

"Acme interview invitation"

subject
string
required

Email subject line. Supports {{variable}} placeholders such as {{candidate_name}}, {{job_title}} and {{company_name}}.

Required string length: 1 - 500
Example:

"Your interview for {{job_title}} at {{company_name}}"

content
string
required

Email HTML body. Supports {{variable}} placeholders; invitation emails should include {{interview_link}}. A template whose placeholders cannot be filled when sending falls back to HeyMilo's default email.

Required string length: 1 - 100000
Example:

"<p>Hi {{candidate_name}},</p><p>Start your interview here: <a href=\"{{interview_link}}\">{{interview_link}}</a></p>"

blackout_period
BlackoutPeriodInput · object | null

Optional window when this email is not sent.

Response

Successful Response

data
EmailTemplateResponse · object
required

A single email template used for candidate communications.

Templates define the subject line and HTML body for emails sent at various stages of the interview workflow (invitations, nudges, etc.).

meta
Meta · object | null

Optional metadata. Shape varies by endpoint.