apicheats.dev resend/llms.txt Raw .md
GET

/templates/{id}

Resend API

Retrieve a single template

Base URL
https://api.resend.com
Auth
Authorization: Bearer <RESEND_API_KEY>
Last verified
2026-09-03 · upstream hash matched
Actions
Agents: curl -H "Accept: text/markdown" this URL
→ 162 tokens · Vary: Accept

Critical gotchas

All requests must include a User-Agent header (e.g. User-Agent: my-app/1.0) or the API returns HTTP 403.

The to field is an array of strings, even when sending to a single recipient.

cURL

curl -X GET 'https://api.resend.com/templates/id' \  -H "Authorization: Bearer $RESEND_API_KEY" \  -H 'User-Agent: my-app/1.0'
Get a free Resend API key → sponsored

Parameters

Name In Type Required Description
id path string Yes The Template ID or alias.

Response 200 OK

{
  "object": "template",
  "id": "string",
  "current_version_id": "string",
  "name": "string",
  "alias": "string",
  "from": "string",
  "subject": "string",
  "reply_to": [
    "string"
  ],
  "html": "string",
  "text": "string",
  "variables": [
    {
      "id": "string",
      "key": "string",
      "type": "string",
      "fallback_value": "string",
      "created_at": "2023-10-06 23:47:56.678+00",
      "updated_at": "2023-10-06 23:47:56.678+00"
    }
  ],
  "created_at": "2023-10-06 23:47:56.678+00",
  "updated_at": "2023-10-06 23:47:56.678+00",
  "status": "draft",
  "published_at": "2023-10-06 23:47:56.678+00",
  "has_unpublished_versions": true
}