List a template's versions
GET/api/v1/email/templates/{id}/versions
GET /email/templates/{id}/versions
curl -X GET 'https://www.unitpost.com/api/v1/email/templates/tmpl_123/versions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0'Response · 200
{
"object": "list",
"has_more": false,
"data": [
{
"object": "template_version",
"version": 0,
"subject": "Welcome to Acme",
"created_at": "2026-01-01T00:00:00.000Z"
}
]
}A template's history, newest first: a version is added on every publish and on every content save while it's published. Put one back with Restore a template version. Page with the last row's version as after. Requires the templates:read capability.
Parameters3 fields
| Field | Type | Description |
|---|---|---|
idrequired | string · path | — |
limit | integer · query | 1–100 (default 20). |
after | integer · query | The last `version` of the previous page. |
Response · 200 fields4 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
versionrequired | integer | 1 is the first publish; every publish, and every content save while published, adds one. |
subjectrequired | string | null | — |
created_atrequired | string | — |
200401403404422