Get Template
GET/template/:templateId
Retrieves a specific saved template
Returns the template's name, subject, preview text, html, css and editor type.
Request
Path Parameters
templateId uuidrequired
ID of the template
Responses
- 200
- 412
successful operation
- application/json
- Schema
- Example (from schema)
Schema
id uuid
name string
subject stringnullable
previewText stringnullable
html string
css string
editorType string
Possible values: [DRAG_AND_DROP, HTML]
Editor the template opens in. Always HTML for templates created through the API.
createdAt int64
Creation time in epoch milliseconds
updatedAt int64
Last update time in epoch milliseconds
{
"id": "8a6e0f6c-2b7d-4a8e-9a5e-6f1d2c3b4a59",
"name": "Welcome Email",
"subject": "Welcome!",
"previewText": "Thanks for joining us",
"html": "<html><body><h1>Welcome</h1></body></html>",
"css": "h1 { color: #333333; }",
"editorType": "HTML",
"createdAt": 1790848800000,
"updatedAt": 1790848800000
}
Precondition Failed. The template was not found in your account.
- application/json
- Schema
- Example (from schema)
- Template not found
Schema
- Array [
- ]
message string
messageDetails string
errorCodes object[]
errorCode string
errorMessage string
{
"message": "Some error message",
"messageDetails": "string",
"errorCodes": [
{
"errorCode": "string",
"errorMessage": "string"
}
]
}
{
"message": "Template 8a6e0f6c-2b7d-4a8e-9a5e-6f1d2c3b4a59 not found"
}
Loading...