# Get one version of a saved template

> GET /api/v1/templates/{id}/versions/{n}: Get one version of a saved template.

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

Its roles in signing order, the boxes the sender fills (prefill keys) and the send settings. A finalised version never changes.

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) |
| `n` | path | yes | Version number |

## Responses

| Status | Description |
| --- | --- |
| 200 | The version. |
| 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.version` | object | yes |  |
| `data.version.template_id` | string | yes |  |
| `data.version.version` | integer | yes | At least 1 |
| `data.version.current` | boolean | yes |  |
| `data.version.note` | string \| null | yes |  |
| `data.version.field_count` | integer | yes | At least 0 |
| `data.version.created_at` | string | yes | Format: date-time |
| `data.version.roles` | object[] | yes |  |
| `data.version.roles[].key` | string | yes | The key send and bulk take in `people` / `recipients[].role`, e.g. "r1" |
| `data.version.roles[].label` | string | yes | The role's name, e.g. "Client" |
| `data.version.roles[].kind` | string | yes | signer: fills and signs; filler: fills only. One of: signer, filler |
| `data.version.roles[].order` | integer | yes | Signing order. At least 1 |
| `data.version.sender_fields` | object[] | yes |  |
| `data.version.sender_fields[].index` | integer | yes | The prefill key. At least 0 |
| `data.version.sender_fields[].label` | string \| null | yes |  |
| `data.version.sender_fields[].type` | string | yes | One of: text, checkbox, signature |
| `data.version.sender_fields[].semantic_type` | string | yes |  |
| `data.version.sender_fields[].group_key` | string \| null | yes | The choice question this box is an option of (answer with an option value) |
| `data.version.sender_fields[].option_value` | string \| null | yes |  |
| `data.version.sender_fields[].bulk` | boolean | yes | A plain text box a bulk row's prefill may set |
| `data.version.fixed_fields` | object[] | yes |  |
| `data.version.fixed_fields[].index` | integer | yes | The fixed_overrides key. At least 0 |
| `data.version.fixed_fields[].label` | string \| null | yes |  |
| `data.version.fixed_fields[].type` | string | yes | One of: text, checkbox, signature |
| `data.version.fixed_fields[].locked` | boolean | yes | True: set by the template, an override is 422 locked_field |
| `data.version.fixed_fields[].bulk` | boolean | yes | A Default text box a bulk row's prefill may set (its value becomes that row's override) |
| `data.version.routing` | string | yes | One of: sequential, parallel |
| `data.version.subject` | string | yes |  |
| `data.version.message` | string | yes |  |
| `data.version.cc` | object[] | yes |  |
| `data.version.cc[].email` | string | yes |  |
| `data.version.cc[].name` | string \| null | yes |  |
| `data.version.expiry_days` | integer \| null | yes |  |

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).
