Get Email Template by ID
GET/emails/locations/:locationId/templates/:templateId
Get a single email template by its ID
Request
Version stringrequired
API Version
Available options
v3locationId stringrequired
Location ID
templateId stringrequired
Template ID
Success
- application/json
- Schema
- Example (auto)
Schema
idstringrequired
Template ID
namestringrequired
Template name
editorTypestringrequired
Editor type
Available options
htmlbuildertextisPlainTextbooleanrequired
Whether template is plain text
parentFolderIdstring
Parent folder ID
fromNamestring
Sender name
fromEmailstring
Sender email address
subjectstring
Email subject line
previewTextstring
Preview text
editorContentUrlstring
URL to fetch the rendered template content as HTML. Issue a GET against this URL to retrieve the body.
deletedbooleanrequired
Whether the template is deleted
createdAtstring
Created timestamp
updatedAtstring
Updated timestamp
traceIdstring
Trace ID of request
{
"id": "507f1f77bcf86cd799439011",
"name": "Newsletter Template",
"editorType": "html",
"isPlainText": false,
"parentFolderId": "67f15c2ae99226d5bcccb8f0",
"fromName": "John Doe",
"subject": "Welcome to our newsletter",
"previewText": "Email preview text",
"editorContentUrl": "https://storage.googleapis.com/email-templates/abc123.html",
"deleted": false,
"createdAt": "2025-07-24T11:55:43.598Z",
"updatedAt": "2025-07-24T11:55:43.598Z",
"traceId": "019e4ef5-a65e-4198-8cf9-8e93dca9bda4"
}