Skip to main content
POST
Create a reusable letter template

Authorizations

Authorization
string
header
required

Dairo API key, e.g. dairo_test_... or dairo_live_...

Body

application/json
name
string
required
html
string
required

The branded letter HTML. Use {{placeholders}} where values vary per recipient and leave the recipient address window blank.

variables

Declared template variables: a JSON array of placeholder names or an object. Defaults to [].

status
enum<string>
Available options:
active,
archived

Response

Success

object
enum<string>
required
Available options:
letter_template
id
string
required
name
string
required
status
enum<string>
required
Available options:
active,
archived
html
string

The branded letter HTML with {{placeholders}} and a blank recipient address window. Omitted from list items.

variables

Declared template variables: a JSON array of placeholder names or an object. Defaults to [].

createdAt
string<date-time> | null
updatedAt
string<date-time> | null