Skip to content

Get one template

projectId
required
string

Tenant project id (row-level isolation on every query).

templateId
required
string

Email template id.

Template.

Media typeapplication/json
object
template
object
id
string
projectId
string
name
string
category
string
Allowed values: transactional marketing
subject
string
previewText
string | null
editorDoc

TipTap canvas JSON (stored verbatim).

string | null
htmlBody
string
textBody
string | null
variables
Array<string>
status
string
Allowed values: draft active archived
attachments

Email_assets ids.

Array<string>
sourceLocale
string
createdAt
string format: date-time
updatedAt
string format: date-time

Not authenticated (no valid session/principal).

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}

Authenticated but lacks the required project role.

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}

Resource not found (or belongs to another project — indistinguishable).

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}