List a template's versions

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
FieldTypeDescription
idrequiredstring · path—
limitinteger · query1–100 (default 20).
afterinteger · queryThe last `version` of the previous page.
Response · 200 fields4 fields
FieldTypeDescription
objectrequiredstring—
versionrequiredinteger1 is the first publish; every publish, and every content save while published, adds one.
subjectrequiredstring | null—
created_atrequiredstring—
200401403404422

Search docs and guides

Search the docs and product guides.