# List a saved template's versions

> GET /api/v1/templates/{id}/versions: List a saved template's versions.

`GET https://appliflo.com/api/v1/templates/{id}/versions`

Finalised versions, newest first, with how many envelopes each sent. A Draft that was never finalised has none.

Send your API key in the `Authorization: Bearer` header. Every response is JSON: `{ success, data, error }`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | Saved template id (saved_templates[].template_id from GET /templates) |

## Responses

| Status | Description |
| --- | --- |
| 200 | Versions, newest first. |
| 401 | Missing or invalid API key, or `api_key_expired` for a key past its expiry. |
| 403 | The API key's workspace does not have access to this resource, or `insufficient_scope` (with `required_scope`) for a key without the scope this route needs. |
| 404 | Resource not found in this workspace. |
| 422 | Request failed validation. |
| 500 | Internal error. |

## 200 response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | true | yes |  |
| `data` | object | yes |  |
| `data.versions` | object[] | yes |  |
| `data.versions[].version` | integer | yes | At least 1 |
| `data.versions[].current` | boolean | yes |  |
| `data.versions[].note` | string \| null | yes |  |
| `data.versions[].field_count` | integer | yes | At least 0 |
| `data.versions[].envelope_count` | integer | yes | Envelopes sent from this version. At least 0 |
| `data.versions[].created_at` | string | yes | Format: date-time |

See also: [Errors](https://dev.appliflo.com/guides/errors), [Rate limits](https://dev.appliflo.com/guides/rate-limits), [Idempotency](https://dev.appliflo.com/guides/idempotency).
