# List template versions

`opensend templates versions`

The versions of one template, newest first. Every publish that changes something makes one, and the last 50 are kept.

Needs the scope: `templates:read`

## Flags

- `<id>` (string, required): The id of the item. Up to 64 characters.
- `--limit` (integer): How many items to return, from 1 to 100. Without it you get 25.
- `--offset` (integer): How many items to skip. Use it with `limit` to read the next page. Default: `0`.

## Returns

The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. [Output and scripts](https://opensend.sh/docs/scripting) lists the codes.

- `object` ("list"): Always `list`.
- `data` (object[]): The items on this page.
- `data[].object` ("template_version"): Always `template_version`.
- `data[].templateId` (string): The id of the template it is a version of.
- `data[].version` (integer): The number of the version. The first publish is 1.
- `data[].subject` (string): The subject line of that version.
- `data[].publishedAt` (string): When that version was published.
- `data[].live` (boolean): `true` for the version emails are built from now.
- `total` (integer): How many items match in all, on every page together.
- `hasMore` (boolean): Whether more items follow this page.

## Example

CLI:

```bash
opensend templates versions tmpl_06
```

Answer:

```json
{
  "object": "list",
  "data": [
    {
      "object": "template_version",
      "templateId": "tmpl_06",
      "version": 1,
      "subject": "Welcome to Acme",
      "publishedAt": "2026-11-27T09:30:00.000Z",
      "live": true
    }
  ],
  "total": 1,
  "hasMore": false
}
```
