Get
Retrieve a template by ID or alias using the default context.Parameters
The template ID or alias.
Returns
Returns a*Template containing the full template details.
Example
GetWithContext
Retrieve a template by ID or alias with a custom context.Parameters
Context for the request, useful for timeouts and cancellation.
The template ID or alias.
Returns
Returns a*Template containing the full template details.
Example
Types
Template
Full template object returned by the Get endpoint.The object type, always “template”.
The unique identifier of the template.
The unique alias of the template.
The name of the template.
ISO 8601 timestamp of when the template was created.
ISO 8601 timestamp of when the template was last updated.
The status of the template (e.g., “draft”, “published”).
ISO 8601 timestamp of when the template was published.
The sender email address.
The email subject line.
Reply-to email address. Can be a string, array of strings, or null.
The HTML content of the email template.
The plain text version of the email template.
Array of variables defined in the template with their full details.
TemplateVariableResponse
Represents a variable in a template response with additional metadata.The unique identifier of the variable.
The variable name.
The type of the variable (“string” or “number”).
Default value to use if the variable is not provided.
ISO 8601 timestamp of when the variable was created.
ISO 8601 timestamp of when the variable was last updated.