> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bland.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Agent Versions

> List an agent's saved versions, newest first.

### Overview

Returns version metadata for the agent's dev timeline, or for one branch's own saves when `branch` is set, ordered by `created_at` descending. Snapshots are omitted because they can be large; read one with [Get Latest Agent Version](https://docs.bland.ai/api-v2/get/agents-id-versions-latest.md) or, for a published version, [Get Agent Version](https://docs.bland.ai/api-v2/get/agents-id-versions-semver.md).

### Headers

**authorization** `string` *required*

Your API key for authentication.

### Path Parameters

**agent\_id** `string` *required*

The agent's unique identifier.

### Query Parameters

**limit** `integer` (default: 50)

Maximum number of versions to return. Minimum `1`, maximum `200`. Values outside that range are clamped; a non-numeric value falls back to the default.

**branch** `string`

A branch ID. When set, only that branch's own saves are listed (its base version is not included). When omitted, only dev-timeline versions are listed and branch saves are excluded. An unknown branch ID returns an empty array.

### Response

**data** `array`

Array of version metadata objects.

**version metadata object**

**id** `string`

Unique identifier for the version.

**agent\_id** `string`

The agent this version belongs to.

**name** `string | null`

The version's display name, or `null` if none was given.

**created\_via** `string`

`manual` or `autosave`.

**created\_by** `string | null`

ID of the user who saved the version, or `null` when saved with an org-level key.

**created\_at** `string`

ISO 8601 timestamp of the save.

**semver** `string | null`

The semantic version minted when this version was first published (for example `1.2.0`), or `null` if it has never been published.

**errors** `null | array`

`null` on success, or a list of error objects if the request failed.

```json Response theme={null}
{
  "data": [
    {
      "id": "93fcf9e7-a820-4355-a36b-266f0c0ad2f4",
      "agent_id": "475fd530-91f5-4fcf-8743-ab55966a7f86",
      "name": null,
      "created_via": "autosave",
      "created_by": "cefd689f-49e5-4ce7-ac04-393976a57961",
      "created_at": "2026-09-10T23:41:07.902Z",
      "semver": null
    },
    {
      "id": "b33360ee-7e59-46bb-a68a-d79102d1c9a0",
      "agent_id": "475fd530-91f5-4fcf-8743-ab55966a7f86",
      "name": "Adds booking flow",
      "created_via": "manual",
      "created_by": "cefd689f-49e5-4ce7-ac04-393976a57961",
      "created_at": "2026-09-10T23:02:11.418Z",
      "semver": "1.2.0"
    }
  ],
  "errors": null
}
```

```json Not Found theme={null}
{
  "data": null,
  "errors": [
    {
      "error": "NOT_FOUND",
      "message": "Agent not found"
    }
  ]
}
```

***

Docs for agents: [llms.txt](https://docs.bland.ai/llms.txt)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.