---
title: "Get agent versions"
method: GET
path: "/v1/{organization}/organization/agent/{agent_id}/version"
tags: ["Organization"]
---

# Get agent versions

`GET /v1/{organization}/organization/agent/{agent_id}/version`

Retrieve the versions of an agent.

#### Permissions
This endpoint requires the following permissions:
* `Organization:GetAgent` for the agent to retrieve.

## Path parameters

- `agent_id` string, required — The ID of the agent.
- `organization` string, required

## Query parameters

- `version` string, nullable — The versions of the agent to retrieve. One can specify an exact version to retrieve, which is either the version number or `latest`, which retrieves the latest version. Alternatively, one can specify a range of inclusive lower and upper bound for the version number separated by `-`, and every version within the range would be retrieved.
- `limit` integer — The maximum number of agent versions to return.
- `continuation_token` integer — The continuation token from the previous request used to retrieve the next page of agent version.
- `sort_by` string[] — The fields to sort the versions by. Supported fields are `version`. Specify a `+` before the field name to indicate ascending sorting and `-` for descending sorting. Multiple fields can be specified to break ties.

## Headers

- `x-mongo-cluster-name` string, nullable — The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
- `Sec-WebSocket-Protocol` string[]

## Response `200`

Succeeded.

- SrcAppEndpointsOrganizationGetAgentVersionsResponse
  - `agent_versions` SrcAppEndpointsOrganizationGetAgentVersionsResponseAgentInstance[], required — The returned agent versions.
    - `org_id` string, required — The ID of the organization of this agent.
    - `agent_id` string, required — The ID of this agent.
    - `version` integer, required — The version of the agent.
    - `voice_config` VoiceConfigInstance, required
      - `voice_id` string, required — The Cartesia voice ID for this agent.
      - `stability` number
      - `similarity_boost` number
      - `style` number
    - `initials` string, required — The initials of the agent.
    - `identity` IdentityOutput, required
      - `name` string, required — A human friendly name of the agent.
      - `role` string, required — The agent's role within the organization.
      - `developed_by` string, required — A human-friendly name of the organization that developed this agent.
      - `default_spoken_language` string, required — The agent's primary language. This must be specified in the ISO 639-3 format.
      - `relationship_to_developer` RelationshipToDeveloperOutput, required
        - `ownership` string, required — The agent's belief of which entity owns it.
        - `type` string, required — The entity that the agent regards itself as.
        - `conversation_visibility` string, required — Whether the agent believes that its owner can see its conversations with clients.
        - `thought_visibility` string, required — Whether the agent believes that its owner can see its inner thoughts when engaging in conversations with its clients.
    - `background` string, required — A description of the `Agent`'s background.
    - `behaviors` string[], required — A list of behavioral guidelines that this `Agent` follows.
    - `communication_patterns` string[], required — A list of descriptions that illustrate the communication styles of this `Agent`.
    - `created_at` string, date-time, required — The time at which this version was created.
    - `creator` AmigoLibMongoCollectionsAgentAgentUserInfo, required
      - `org_id` string, required
      - `user_id` string, required
  - `has_more` boolean, required — Whether there are more agent versions to retrieve.
  - `continuation_token` integer, nullable, required — A token to supply to the next request to retrieve the next page of agent versions. Only populated if `has_more` is `True`.

## Other responses

- `401` — Invalid authorization credentials.
- `403` — Missing required permissions.
- `404` — Specified organization or agent is not found.
- `422` — Invalid request path parameter or request query parameter failed validation.
- `429` — The user has exceeded the rate limit of 20 requests per minute for this endpoint.
- `503` — The service is going through temporary maintenance.

---

[API](https://skmtc.net/amigo/apis/amigo-api.md) · [All operations](https://skmtc.net/amigo/apis/amigo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/amigo/amigo-api/revisions/f0f28319e448/schema)
