POST
Create an event-only custom email template

Authorizations

better-auth.session_token
string
cookie
required

Better Auth session cookie.

Path Parameters

eventId
string<uuid>
required

Body

application/json
name
string
required
Required string length: 1 - 200
subject
string
required
Required string length: 1 - 500
body
string
required
Required string length: 1 - 50000
trigger
enum<string>
required
Available options:
ON_REGISTER,
ON_WAITLIST,
ON_STATUS_CHANGE,
ON_PAYMENT_REQUIRED,
ON_TICKET_ISSUED,
ON_TICKET_PURCHASE,
ON_CHECK_IN,
ON_ATTENDANCE_CLOSEOUT,
ON_INVITE,
SCHEDULED,
MANUAL_PROMO
audience
enum<string>
Available options:
registrant,
organizers
scheduleAnchor
enum<string> | null
Available options:
event_start,
event_end,
null
scheduleOffsetMinutes
integer | null
enabled
boolean

Response

Created

source
enum<string>
required
Available options:
org,
event_custom
organizationTemplateId
string | null
required
eventTemplateId
string | null
required
overrideId
string | null
required
kind
enum<string>
required
Available options:
system,
custom
systemKey
string | null
required
name
string
required
subject
string
required
body
string
required
trigger
enum<string>
required
Available options:
ON_REGISTER,
ON_WAITLIST,
ON_STATUS_CHANGE,
ON_PAYMENT_REQUIRED,
ON_TICKET_ISSUED,
ON_TICKET_PURCHASE,
ON_CHECK_IN,
ON_ATTENDANCE_CLOSEOUT,
ON_INVITE,
SCHEDULED,
MANUAL_PROMO
scheduleAnchor
enum<string> | null
required
Available options:
event_start,
event_end,
null
scheduleOffsetMinutes
integer | null
required
audience
enum<string>
required
Available options:
registrant,
organizers
enabled
boolean
required
inherited
boolean
required