Skip to main content
POST
Create an email template

Authorizations

X-API-Key
string
header
required

An organization API key, prefixed bk_live_. Takes precedence over Authorization when both are sent. The key is bound to one organization, and the scopes it was issued with are enforced per endpoint.

Headers

X-Organization-Id
string<uuid>

Required when authenticating with an access token. Optional with an API key, whose own organization binding is authoritative; a value contradicting it is refused with 403.

Body

application/json
name
string
required
Required string length: 1 - 255
subject
string
required
Minimum string length: 1
editorMode
enum<string>
required
Available options:
visual,
html,
plain
description
string
htmlContent
string
plainTextContent
string
builderData
category
string

Response

success
boolean
required
Example:

true

message
string
required
data
object
required