Email Templates

creates an htmlEmail template and adds it to the project.

post
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
Query parameters
metricsbooleanOptional

Include metrics in the response

Default: false
Body

Input fields for creating a new template.

editorstring · enumRequired

A string constant used to identify the editor that generated this content, and therefore to generate the editorUrl for this template.

Possible values:
defaultLocalestring · locale-bcp47Required
descriptionstringOptional
useCasestring · enum · nullableOptional

The use case of this template.

Possible values:
libraryTemplateIdstringOptional

The ID of the template in the library. If this is set, the template will be created with pre-populated content from the library template.

Responses
post
/workspaces/{workspaceId}/projects/{projectId}/html-emails

Lists htmlEmail templates in a specific project, sorts them in descending order.

get
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
Query parameters
metricsbooleanOptional

Include metrics in the response

Default: false
limitinteger · min: 1 · max: 100Optional

Limits the project of results to return

Default: 10
pageTokenstring · max: 8000Optional

Pagination token that keeps of track of the current position in the list

reversebooleanOptional

Order in which to retrieve the results

Default: false
Responses
chevron-right
200

OK

application/json
get
/workspaces/{workspaceId}/projects/{projectId}/html-emails

Returns a single html-email template.

get
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
templateIdstringRequired
Responses
chevron-right
200

OK

application/json
get
/workspaces/{workspaceId}/projects/{projectId}/html-emails/{templateId}

Activates and makes that html-email template immutable to be used for campaigns and other parts of Nest. Inactivates the previous active version that belongs to the same project.

post
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
templateIdstringRequired
Responses
chevron-right
200

Activated

application/json
post
/workspaces/{workspaceId}/projects/{projectId}/html-emails/{templateId}/activate

Deactivates an active template. Only a draft template can be deactivated at the moment. This is useful to deactivate an existing draft when a new draft cloned from an active/inactive template needs to be created, since there can be only one draft per project.

post
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
templateIdstringRequired
Responses
chevron-right
200

Deactivated

application/json
post
/workspaces/{workspaceId}/projects/{projectId}/html-emails/{templateId}/deactivate

Clones an existing html-email template and adds it to the same project.

post
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
templateIdstringRequired
Body

Input fields for cloning a template.

toProjectIdstring · uuid · nullableOptional

The ID of the project to which the template should be cloned. If not specified, the template will be cloned to the same project as the source template.

Responses
post
/workspaces/{workspaceId}/projects/{projectId}/html-emails/{templateId}/clone

Retrieves content for a template in a specific locale.

get
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
templateIdstringRequired
localestringRequired
Responses
chevron-right
200

OK

application/json
get
/workspaces/{workspaceId}/projects/{projectId}/html-emails/{templateId}/content/{locale}

Retrieves content for a template in a specific locale.

patch
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
templateIdstringRequired
localestringRequired
Body
and
Responses
chevron-right
200

OK

application/json
patch
/workspaces/{workspaceId}/projects/{projectId}/html-emails/{templateId}/content/{locale}

Deletes content for a template in a specific locale.

delete
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
templateIdstringRequired
localestringRequired
Responses
delete
/workspaces/{workspaceId}/projects/{projectId}/html-emails/{templateId}/content/{locale}

No content

Returns rendered HTML and variables to display a preview of an htmlEmail template for a specific locale.

get
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
templateIdstringRequired
localestringRequired
Responses
chevron-right
200

OK

application/json
get
/workspaces/{workspaceId}/projects/{projectId}/html-emails/{templateId}/render/{locale}

Last updated

Was this helpful?