Skip to main content
POST
Create a custom mailing template

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Body

application/json

Validated request fields for this operation.

name
string
required
Maximum string length: 191
Example:

"Education impact letter"

scope_type
enum<string>
required

Custom templates support donor or sponsorship; household is system-managed.

Available options:
donor,
sponsorship
Example:

"donor"

documents
object[]
required
Minimum array length: 1
preset_key
string | null

Custom preset; tax_summary is reserved.

Maximum string length: 64
render_strategy
string | null

Defaults unlayer_pdf; tax_summary is reserved.

Maximum string length: 32
Example:

"unlayer_pdf"

description
string | null
is_active
boolean | null
Example:

true

program_ids
integer[]

Organization-owned record identifier.

Response

Operation result.

data
object