List templates
GET/api/v1/api/v1/templates
curl -X GET 'https://www.unitpost.com/api/v1/api/v1/templates' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"object": "list",
"has_more": false,
"data": [
{
"object": "template",
"id": "id_123",
"name": "Example",
"subject": "Welcome to Acme",
"mode": "code",
"status": "draft",
"design": "string",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}
]
}Retrieve a list of your email templates, cursor-paginated. List rows omit the full design document to keep responses small — fetch a single template with Retrieve a template to get it. Reference a template's id when sending with Send or schedule an email or when creating a campaign. Requires the templates:read capability.
Parameters3 fields
| Field | Type | Description |
|---|---|---|
limit | integer · query | Max rows to return (default 20, max 100). |
after | string · query | Return rows after this id (forward paging). |
before | string · query | Return rows before this id (backward paging). |
Response · 200 fields9 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
idrequired | string | — |
namerequired | string | — |
subjectrequired | object | — |
moderequired | enumcode | visual | — |
statusrequired | enumdraft | published | — |
design | object | — |
created_atrequired | string | — |
updated_atrequired | string | — |