---
title: "The kept versions of a template"
method: GET
path: "/api/templates/{id}/versions"
tags: ["Templates"]
---

# The kept versions of a template

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

## Request

- Base URL: `https://morfee.furo.solutions`
- URL: `https://morfee.furo.solutions/api/templates/{id}/versions`
- Auth: one of:
  - API key in header `X-Api-Key`
  - HTTP bearer

Every save keeps the previous body. Twenty are kept.

Any scope may call this: every key may read.

## Path parameters

- `id` string, required

## Response `200`

The versions, newest first.

- object
  - `versions` Version[]
    - `id` integer: Send this back as `version` to put it live.
    - `name` string
    - `created_by` string, nullable
    - `created_at` string, date-time
    - `bytes` integer: The size of the template body that was kept.

## Other responses

- `401`: No key, an unknown key or a revoked one.
- `404`: Not there, or not yours. Both give the same answer on purpose: a different one would let a caller find out which ids exist in another organization.

---

[API](https://skmtc.dev/furo/apis/morfee.md) · [All operations](https://skmtc.dev/furo/apis/morfee/llms.txt) · [OpenAPI document](https://skmtc.dev/furo/apis/morfee/revisions/83f95f89653f?raw)
