Skip to main content
GET
/
templates
/
{id}
Retrieve Template
curl --request GET \
  --url https://api.unosend.co/templates/{id} \
  --header 'Authorization: Bearer <token>'

Documentation Index

Fetch the complete documentation index at: https://docs.unosend.co/llms.txt

Use this file to discover all available pages before exploring further.

id
string
required
The ID of the template.

Request

curl https://api.unosend.co/templates/tpl_abc123 \
  -H "Authorization: Bearer un_xxxxxxxxxx"

Response

200
{
  "success": true,
  "data": {
    "id": "tpl_abc123",
    "name": "Welcome Email",
    "subject": "Welcome to {{company_name}}, {{first_name}}!",
    "html": "<h1>Welcome, {{first_name}}!</h1><p>Thanks for joining {{company_name}}.</p>",
    "created_at": "2024-01-15T10:30:00.000Z"
  }
}