---
search:
  tags:
    - Themes
    - GET
seo:
  description: >-
    Earlier bodies of a template, newest first (up to… Reference for the GET
    /themes/{theme_id}/templates/{template_id}/versions endpoint in the Bolder
    API v2.
sidebar:
  label: List a template's versions
  badge: GET
title: List a template's versions
type: openapi-operation
---
Earlier bodies of a template, newest first (up to 10). A version is saved each time the body changes
(identical consecutive bodies are kept once), with the lines added and removed against the previous one.
Bodies are not included here; get one version for its body. Templates link here with `store:template_versions`.

`GET /themes/{theme_id}/templates/{template_id}/versions`

**Responses**

- `200` — Versions, newest first
- `401` — Unauthorized
- `403` — Access denied
- `404` — Template not found

Response example, 200:

```json
{
  "total_items": 0,
  "_embedded": {
    "items": [
      {
        "_links": {
          "property1": {
            "href": "string",
            "templated": true,
            "method": "get",
            "title": "string",
            "type": "string"
          },
          "property2": {
            "href": "string",
            "templated": true,
            "method": "get",
            "title": "string",
            "type": "string"
          }
        },
        "id": "string",
        "saved_on": "2019-08-24T14:15:22Z",
        "label": "before restore to 2026-11-24T10:00:00Z",
        "lines_added": 0,
        "lines_removed": 0,
        "content_hash": "string",
        "body": "string"
      }
    ]
  }
}
```
