> ## 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](/api-v2/get/agents-id-versions-latest) or, for a published version, [Get Agent Version](/api-v2/get/agents-id-versions-semver).

### Headers

<ParamField header="authorization" type="string" required>
  Your API key for authentication.
</ParamField>

### Path Parameters

<ParamField path="agent_id" type="string" required>
  The agent's unique identifier.
</ParamField>

### Query Parameters

<ParamField query="limit" type="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.
</ParamField>

<ParamField query="branch" type="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.
</ParamField>

### Response

<ResponseField name="data" type="array">
  Array of version metadata objects.

  <Expandable title="version metadata object">
    <ResponseField name="id" type="string">
      Unique identifier for the version.
    </ResponseField>

    <ResponseField name="agent_id" type="string">
      The agent this version belongs to.
    </ResponseField>

    <ResponseField name="name" type="string | null">
      The version's display name, or `null` if none was given.
    </ResponseField>

    <ResponseField name="created_via" type="string">
      `manual` or `autosave`.
    </ResponseField>

    <ResponseField name="created_by" type="string | null">
      ID of the user who saved the version, or `null` when saved with an org-level key.
    </ResponseField>

    <ResponseField name="created_at" type="string">
      ISO 8601 timestamp of the save.
    </ResponseField>

    <ResponseField name="semver" type="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.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="errors" type="null | array">
  `null` on success, or a list of error objects if the request failed.
</ResponseField>

<ResponseExample>
  ```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"
      }
    ]
  }
  ```
</ResponseExample>

***

Docs for agents: [llms.txt](/llms.txt)
