Skip to main content
TemplatesVersion: v3New

Get Email Template by ID

GET/emails/locations/{locationId}/templates/{templateId}

Get a single email template by its ID

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:emails/templates.readonly
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Path Parameters

locationIdstringrequired

Location ID

Example:ve9EPM428h8vShlRW1KT
templateIdstringrequired

Template ID

Example:507f1f77bcf86cd799439011

Query Parameters

includeContentboolean

Set to true to include the current editorContent (HTML string or design-editor JSON) in the response. Use before editing content so changes are applied to the latest version.

Default:false
Example:true

Response

Success

idstringrequired

Template ID

Example:507f1f77bcf86cd799439011
namestringrequired

Template name

Example:Newsletter Template
editorTypestringrequired

Editor type

Available optionshtmlbuildertext
Example:html
isPlainTextbooleanrequired

Whether template is plain text

Example:false
parentFolderIdstring

Parent folder ID

Example:67f15c2ae99226d5bcccb8f0
fromNamestring

Sender name

Example:John Doe
fromEmailstring

Sender email address

subjectstring

Email subject line

Example:Welcome to our newsletter
previewTextstring

Preview text

Example:Email preview text
editorContentUrlstring

URL to fetch the rendered template content as HTML. Issue a GET against this URL to retrieve the body.

Example:https://storage.googleapis.com/email-templates/abc123.html
editorContentobject

Current editor content, returned only when includeContent=true. A string (HTML or plain text) when editorType is html or text; the design-editor JSON (elements, attrs, templateSettings) when editorType is builder. Same shape the Update endpoint accepts, so it can be edited and sent back.

designEditorV2boolean

Returned as true with includeContent=true when the latest version was saved in the new design editor (DnD 2.0, block format). editorContent is then omitted: this API reads and writes only the classic design-editor JSON, and the stored classic version is older. A builder update through this API replaces the DnD 2.0 design.

Example:true
deletedbooleanrequired

Whether the template is deleted

Example:false
createdAtstring

Created timestamp

Example:2025-07-24T11:55:43.598Z
updatedAtstring

Updated timestamp

Example:2025-07-24T11:55:43.598Z
traceIdstring

Trace ID of request

Example:019e4ef5-a65e-4198-8cf9-8e93dca9bda4