Skip to main content
POST
Create a template and publish version 1

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string

Optional idempotency key for safe retries of side-effecting operations.

Maximum string length: 128

Body

application/json
slug
string
required
name
string
required
Minimum string length: 1
source
string
required

React Email TSX source for version 1.

description
string
subject
string
variables
object

JSON-Schema-lite variable contract: a flat map of variable name to declaration.

notes
string

Response

Success

template
object
required
version
object
required
warnings
string[]
required