Skip to main content
GET
/
v1
/
templates
/
{id}
Retrieve Template
curl --request GET \
  --url https://api.example.com/v1/templates/{id}
id
string
required
The ID of the template.

Request

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

Response

200
{
  "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"
}