Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

Retrieve a single template

GET/templates/{id}Retrieve a single template

Parameters

idstringpathrequired

The Template ID or alias.

Responses

200OKapplication/json
objectTemplate
aliasstring

The alias of the template.

created_atstring · date-time

Timestamp indicating when the template was created.

current_version_idstring

The ID of the current version of the template.

fromstring

Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>".

has_unpublished_versionsboolean

Indicates whether the template has unpublished versions.

htmlstring

The HTML version of the template.

idstring

The ID of the template.

namestring

The name of the template.

objectstring

The type of object.

published_atnull | string · date-time

Timestamp indicating when the template was published.

reply_toarray of string

Reply-to email addresses.

Show child attributes
statusstring

The publication status of the template.

one of "draft", "published"

subjectstring

Email subject.

textstring

The plain text version of the template.

updated_atstring · date-time

Timestamp indicating when the template was last updated.

variablesarray of object
Show child attributes
Show array items
created_atstring · date-time

Timestamp indicating when the variable was created.

fallback_valuevalue

The fallback value of the variable.

Show child attributes
oneOf · 5 options
Option 1string
Option 2number
Option 3boolean
Option 4object
Option 5array of value
idstring

The ID of the template variable.

keystringrequired

The key of the variable.

typestringrequired

The type of the variable.

one of "string", "number", "boolean", "object", "list"

updated_atstring · date-time

Timestamp indicating when the variable was last updated.

Example response
{
  "alias": "string",
  "created_at": "2026-06-09T00:00:00Z",
  "current_version_id": "string",
  "from": "string",
  "has_unpublished_versions": true,
  "html": "string",
  "id": "string",
  "name": "string",
  "object": "template",
  "published_at": "2026-06-09T00:00:00Z",
  "reply_to": [
    "string"
  ],
  "status": "draft",
  "subject": "string",
  "text": "string",
  "updated_at": "2026-06-09T00:00:00Z",
  "variables": [
    {
      "created_at": "2026-06-09T00:00:00Z",
      "fallback_value": [
        null
      ],
      "id": "string",
      "key": "string",
      "type": "boolean",
      "updated_at": "2026-06-09T00:00:00Z"
    }
  ]
}
Documentation menu