# Retrieve email template API

> Retrieve email template API reference: GET /templates/:id returns a template by id or alias, with its current draft content, publishing status and live version.

Canonical: https://www.cresca.xyz/docs/api-reference/retrieve-template
Last updated: 2026-11-05

Use the retrieve email template API to get a template by id or alias, including its draft and publishing status.

GET https://api.cresca.xyz/api/v1/templates/:id

Requires a full-access key.

### Path parameters

id string required

The template id or alias.

## Retrieve email template API example

Request

```bash
curl -X GET 'https://api.cresca.xyz/api/v1/templates/password-reset' \
  -H 'Authorization: Bearer cr_live_xxxxxxxxx'
```

Response 200

```json
{
  "object": "template",
  "id": "6713b1f4c2a94e0012ab34cd",
  "name": "Password reset",
  "alias": "password-reset",
  "subject": "Reset your password",
  "from": "Acme <hello@acme.com>",
  "reply_to": null,
  "preview_text": "The link expires in 1 hour.",
  "html": "<p>Hi {{{NAME}}},</p><p><a href=\"{{{RESET_LINK}}}\">Reset your password</a>.</p>",
  "text": null,
  "variables": [
    {
      "key": "NAME",
      "type": "string",
      "fallback_value": "there"
    },
    {
      "key": "RESET_LINK",
      "type": "string",
      "fallback_value": null
    }
  ],
  "status": "published",
  "version": 2,
  "published_at": "2026-10-19T08:30:00.000Z",
  "created_at": "2026-10-18T16:02:11.000Z",
  "updated_at": "2026-10-19T08:30:00.000Z"
}
```

`html`, `subject` and the other content fields show the current **draft**. `status` is `draft` until the first publish, then `published`; `version` is the published version that sends use.

[Previous Create template](https://www.cresca.xyz/docs/api-reference/create-template) [Next List templates](https://www.cresca.xyz/docs/api-reference/list-templates)

Last updated November 5, 2026. Questions? [lalit@cresca.xyz](mailto:lalit@cresca.xyz)
