---
title: "List template versions"
method: GET
path: "/v1/templates/{id}/versions"
tags: ["Templates"]
---

# List template versions

`GET /v1/templates/{id}/versions`

## Request

- Base URL: `https://api.volanea.com`
- URL: `https://api.volanea.com/v1/templates/{id}/versions`
- Auth: HTTP bearer

Every stored version of one template, newest version first.

Each row is the full content as it stood — subject, body, from address — not a diff. This is the list to read a `version` number out of before calling `POST /v1/templates/{id}/rollback`.

## Path parameters

- `id` string, required

## Response `200`

All snapshots, newest version first.

- object
  - `data` TemplateVersion[], required
    - `templateId` string, required
    - `version` integer, required
    - `subject` string, required
    - `body` string, required
    - `fromName` string, nullable
    - `fromEmail` string, email, required
    - `createdAt` string, date-time, required

## Other responses

- `401`: Missing or invalid API key.
- `404`: Not found.
- `422`: Request validation failed (code `validation_error`, 422).

---

[API](https://skmtc.dev/volanea/apis/volanea-api.md) · [All operations](https://skmtc.dev/volanea/apis/volanea-api/llms.txt) · [OpenAPI document](https://skmtc.dev/volanea/apis/volanea-api/revisions/9e187ae84fda?raw)
