# Get an AI agent version

```http
GET https://trydimmi.com/api/v1/ai/agents/{agent}/versions/{version}
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `ai:read`.

## Path parameters

- `agent` (string, required): Id of the AI agent, starting with aia_, such as aia_01jx2m8k4t. Find it with GET /ai/agents.
- `version` (integer, required): The version's number, such as 3. Find it with GET /ai/agents/{agent}/versions.

## Response 200 (OK)

- `data` (object, required)
  - `agent_id` (string, required): Id of the agent this is a version of (starts with aia_).
  - `change_note` (string | null, required): The publisher's note on what changed in this version. Null when none was given.
  - `definition` (object, required)
    - `action_scope` (object, required)
      - `ids` (string[] | null, required): With mode selected: ids of the procedures or actions the agent may use.
      - `mode` (string, required): all when the agent may use every one; selected when only the ones in ids.
    - `always_handoff_tag_ids` (string[] | null, required): Ids of the tags that always send a conversation to a person, each starting with tag_.
    - `answer_key_id` (string | null, required): Id of the provider key the agent answers with (starts with aik_). Null when it uses the key every agent shares.
    - `answer_model` (string | null, required): The model the agent answers with. Null when it uses the shared model.
    - `assigned_behavior` (string, required): What the agent does in a conversation a teammate holds: skip_when_human_active, never_when_assigned or always.
    - `default_language` (string, required): Language tag the agent answers in when the customer's language is unknown, such as en.
    - `description` (string, required): What the agent handles. Other agents read it to know when to pass a conversation to this one.
    - `enabled_channels` (string[] | null, required): The kinds of channel the agent answers on, such as widget, email and api.
    - `fallback_key_id` (string | null, required): Id of the provider key used when the answer key fails (starts with aik_). Null when there is none.
    - `fallback_model` (string | null, required): The model used when the answer model fails. Null when there is none.
    - `guidance` (string, required): How the agent talks and what it does, in the team's own words.
    - `handoff_mode` (string, required): full when the agent answers from the knowledge; triage_only when it only sorts the conversation and hands it to a person.
    - `handoff_team_id` (string | null, required): Id of the team a handed-over conversation goes to (starts with team_). Null when it goes to no team.
    - `include_contact_context` (string, required): How much of the customer's record the agent reads: none or basic.
    - `knowledge_scope` (object, required)
      - `help_center_ids` (string[] | null, required): With mode selected: ids of the help centers the agent may search, each starting with hc_.
      - `mode` (string, required): all when the agent may search every help center and knowledge source; selected when only the ones listed.
      - `source_ids` (string[] | null, required): With mode selected: ids of the knowledge sources the agent may search, each starting with ks_.
    - `languages` (string[] | null, required): Language tags the agent answers in, such as en or pt-BR.
    - `link_allowlist` (string[] | null, required): Hosts the agent may link to, such as example.com or *.example.com.
    - `max_ai_replies` (integer, required): Most replies the agent sends in one conversation before it hands over.
    - `name` (string, required): What the team calls the agent.
    - `pii_redaction` (boolean, required): true when personal data is masked in text before it is sent to the model provider.
    - `placement` (object, required)
      - `channel_connection_ids` (string[] | null, required): Ids of the channel connections whose new conversations the agent takes, each starting with chn_.
      - `channel_room_ids` (string[] | null, required): Ids of the Slack channels whose new conversations the agent takes, each starting with chr_.
      - `inbox_ids` (string[] | null, required): Ids of the inboxes whose new conversations the agent takes, each starting with inbox_.
    - `procedure_scope` (object, required)
      - `ids` (string[] | null, required): With mode selected: ids of the procedures or actions the agent may use.
      - `mode` (string, required): all when the agent may use every one; selected when only the ones in ids.
    - `product_name` (string | null, required): The product's name as the agent says it. Null when it uses the workspace's name.
    - `raise_priority_on_handoff` (boolean, required): true when a conversation becomes high priority as the agent hands it over.
    - `require_citations` (boolean, required): true when the agent answers only with what it can cite from the knowledge.
    - `schedule` (string, required): When the agent answers: always, outside_office_hours or inside_office_hours.
    - `streaming` (boolean, required): true when the agent's reply appears in the messenger as it is written.
    - `tone` (string, required): How the agent sounds: friendly, professional or concise.
    - `transfer_agent_ids` (string[] | null, required): Ids of the agents this one may pass a conversation to, each starting with aia_.
    - `unknown_behavior` (string, required): What the agent does when it cannot answer: offer_handoff, handoff or say_unknown.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `published_at` (string, required): When this version was published.
  - `published_by_member_id` (string | null, required): Id of the teammate who published this version. Null when they are no longer known.
  - `version` (integer, required): The version's number, counted from 1 for each agent.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request GET \
  --url 'https://trydimmi.com/api/v1/ai/agents/{agent}/versions/{version}' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": {
    "agent_id": "<string>",
    "change_note": "<string>",
    "definition": {
      "action_scope": {
        "ids": [
          "<string>"
        ],
        "mode": "<string>"
      },
      "always_handoff_tag_ids": [
        "<string>"
      ],
      "answer_key_id": "<string>",
      "answer_model": "<string>",
      "assigned_behavior": "<string>",
      "default_language": "<string>",
      "description": "<string>",
      "enabled_channels": [
        "<string>"
      ],
      "fallback_key_id": "<string>",
      "fallback_model": "<string>",
      "guidance": "<string>",
      "handoff_mode": "<string>",
      "handoff_team_id": "<string>",
      "include_contact_context": "<string>",
      "knowledge_scope": {
        "help_center_ids": [
          "<string>"
        ],
        "mode": "<string>",
        "source_ids": [
          "<string>"
        ]
      },
      "languages": [
        "<string>"
      ],
      "link_allowlist": [
        "<string>"
      ],
      "max_ai_replies": 123,
      "name": "<string>",
      "pii_redaction": true,
      "placement": {
        "channel_connection_ids": [
          "<string>"
        ],
        "channel_room_ids": [
          "<string>"
        ],
        "inbox_ids": [
          "<string>"
        ]
      },
      "procedure_scope": {
        "ids": [
          "<string>"
        ],
        "mode": "<string>"
      },
      "product_name": "<string>",
      "raise_priority_on_handoff": true,
      "require_citations": true,
      "schedule": "<string>",
      "streaming": true,
      "tone": "<string>",
      "transfer_agent_ids": [
        "<string>"
      ],
      "unknown_behavior": "<string>"
    },
    "id": "<string>",
    "object": "<string>",
    "published_at": "2026-11-01T09:30:00Z",
    "published_by_member_id": "<string>",
    "version": 123
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
