GET/v1/emails/templates/{templateId}

Authorization

Bearer token

Authorizationrequiredheader

Send your API key as Bearer YOUR_API_KEY.

Permissionemail.full_access

Path parameters

templateIdrequiredstring

The template ID, as used in templateId when sending.

Response

application/json200 OK
idstring

Template ID.

namestring

Display name.

aliasstring

Template alias.

descriptionstring or null

Optional description.

categorystring or null

Optional category.

originstring

One of"custom""prebuilt"

published_version_idstring or null

The version sends use.

draft_version_idstring or null

The unpublished draft, if any.

archived_atstring or null

When the template was archived. Archived templates cannot be sent.

usage_countnumber

How many sends used the template.

last_used_atstring or null

When a send last used the template.

published_versionobject or null

The full published version.

draft_versionobject or null

The full draft version.

Each version has version_number, status, subject, html, text, preview_text, published_at, and variables. published_version.variables lists exactly the variables a send uses. A version's content is the dashboard editor's document; build on html and text instead.

Nexiom Connect
Open dashboard