# List template versions

`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`

## Arguments

- `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 answer comes back under `structuredContent`, with the same JSON as text in `content`. A call the API refuses comes back with `isError` set, and the code and the message under `structuredContent.error`. [MCP](https://opensend.sh/docs/mcp) shows how to connect a client.

- `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

MCP:

```json
{
  "name": "templates_versions",
  "arguments": {
    "id": "tmpl_06"
  }
}
```

Answer, under structuredContent:

```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
}
```
