Skip to main content
POST
Create template

Authorizations

Authorization
string
header
required

API Key authentication. Secret keys (sk_*) are required for all endpoints except /v1/track. Public keys (pk_*) only work with the /v1/track endpoint for client-side event tracking. Workspaces can have multiple active keys, and sender-domain operations enforce per-key domain scope when configured.

Body

application/json
name
string
required
subject
string
required
body
string
required
type
enum<string>
required
Available options:
TRANSACTIONAL,
MARKETING

Response

201 - application/json

Template created

id
string
name
string
description
string | null
subject
string
body
string
text
string | null
from
string<email>
fromName
string | null
replyTo
string<email> | null
type
enum<string>
Available options:
TRANSACTIONAL,
MARKETING
projectId
string
createdAt
string<date-time>
updatedAt
string<date-time>