Skip to main content
POST
Create a template

Authorizations

Authorization
string
header
required

An API token. The "read" ability: GET routes only. "read + write": every route.

Headers

Idempotency-Key
string

Replay a write safely: the same key gives back the first answer for 24 hours (header Idempotent-Replay: true).

Maximum string length: 255

Body

application/json
name
string
required
editor
enum<string>
required
Available options:
blocks,
markdown,
html,
mjml
content
string | null
styles
string | null

CSS, 100,000 characters at most.

Response

The template that was created.

data
object