GET
/templates/{id}Get a template
Retrieves a template by its ID or alias. Use the returned details to inspect the template content, variables, and publication status.
idstringrequired
The template ID or alias to retrieve.
200Returns the template object with its identifier, current version, name, alias, sender and reply-to details, content, variables, timestamps, publication status, and published timestamp.
objectstringoptional
The type of object.
idstringoptional
The ID of the template.
current_version_idstringoptional
The ID of the current version of the template.
namestringoptional
The name of the template.
aliasstringoptional
The alias of the template.
fromstringoptional
Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>".
subjectstringoptional
Email subject.
reply_toarrayoptional
Reply-to email addresses.
htmlstringoptional
The HTML version of the template.
textstringoptional
The plain text version of the template.
variablesarray<object>optional
created_atstringoptional
Timestamp indicating when the template was created.
updated_atstringoptional
Timestamp indicating when the template was last updated.
statusstringoptional
The publication status of the template.
published_atstringoptional
Timestamp indicating when the template was published.
has_unpublished_versionsbooleanoptional
Indicates whether the template has unpublished versions.
Error handling
The id path parameter must identify an existing template by ID or alias.