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

# Get Agent Version

> Retrieve a published version by its semantic version.

### Overview

Returns the full snapshot of a version that has been published, resolved by the semantic version minted at publish time (for example `1.2.0`). Versions that were saved but never published have no semver; read those with [Get Latest Agent Version](/api-v2/get/agents-id-versions-latest). Find semvers with [List Agent Versions](/api-v2/get/agents-id-versions) or [List Agent Deployments](/api-v2/get/agents-id-deployments).

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

<ParamField path="semver" type="string" required>
  The version's semantic version in strict `MAJOR.MINOR.PATCH` form with numeric components, for example `1.2.0`. No `v` prefix and no prerelease or build suffix. Any other format returns `400 INVALID_VERSION`. A well-formed semver that was never minted for this agent returns `404 NOT_FOUND`.
</ParamField>

### Response

<ResponseField name="data" type="object">
  The published version, with its snapshot.

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

    <ResponseField name="org_id" type="string">
      The organization that owns the agent.
    </ResponseField>

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

    <ResponseField name="branch_id" type="string | null">
      The branch the version was saved onto, or `null` on the dev timeline.
    </ResponseField>

    <ResponseField name="snapshot" type="object">
      The saved configuration: `behavior` (the node and edge graph), `settings` (agent-wide options), `contact` (`inboundNumbers`), and `knowledge` (`kbIds`) when present.
    </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="revision" type="integer">
      Number of times an autosave rewrote this row in place before it was published.
    </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>
  </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": "791e3da4-c453-45cb-9b86-3a6ef7666d3e",
      "org_id": "5c51e1ad-bbd6-4f6f-a139-a308e7c26c05",
      "agent_id": "405c75d5-c228-462d-bfe4-c4ce0b5c9f7f",
      "branch_id": null,
      "snapshot": {
        "behavior": {
          "nodes": [
            {
              "id": "e4d8dda7-16cb-4999-a6b3-e107ac8d8a21",
              "type": "start",
              "position": { "x": 0, "y": 0 },
              "data": {}
            },
            {
              "id": "bb73b6ae-8a68-4836-a36a-215df13f7c85",
              "type": "scenario",
              "position": { "x": 320, "y": 0 },
              "data": {
                "name": "Book appointment",
                "rule": "Collect the caller's preferred date and time, then confirm the booking.",
                "target": { "kind": "dialogue", "label": "Book appointment" },
                "loopWhile": "",
                "variables": [],
                "entry": {
                  "mode": "llm",
                  "label": "Caller wants to book",
                  "description": "",
                  "alwaysPick": false,
                  "conditions": []
                }
              }
            }
          ],
          "edges": [
            {
              "id": "e51ac686-e907-472a-a2e1-df1ccf6ac0a3",
              "source": "e4d8dda7-16cb-4999-a6b3-e107ac8d8a21",
              "target": "bb73b6ae-8a68-4836-a36a-215df13f7c85"
            }
          ]
        },
        "settings": {
          "displayName": "Front desk",
          "systemPrompt": "You are the front desk assistant for a dental clinic.",
          "languages": ["en"],
          "enableMemory": false,
          "backgroundNoise": "off"
        },
        "contact": {
          "inboundNumbers": ["+14155550123"]
        },
        "knowledge": {
          "kbIds": []
        }
      },
      "name": "Adds booking flow",
      "created_via": "manual",
      "revision": 0,
      "created_by": "6d598dbb-36fc-4001-adab-8004fa6b230d",
      "created_at": "2026-09-10T23:02:11.418Z"
    },
    "errors": null
  }
  ```

  ```json Invalid Version theme={null}
  {
    "data": null,
    "errors": [
      {
        "error": "INVALID_VERSION",
        "message": "version must be a semantic version like 1.2.0"
      }
    ]
  }
  ```

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

***

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