---
title: "Get Agent"
method: GET
path: "/api/agents/{agent_id}"
tags: ["agents"]
---

# Get Agent

`GET /api/agents/{agent_id}`

Get agent details.

## Path parameters

- `agent_id` integer, required

## Response `200`

Successful Response

- AgentResponse — Response model for agent data.
  - `id` integer, required
  - `user_id` integer, required
  - `name` string, required
  - `description` string, nullable, required
  - `instructions` string, nullable, required
  - `execution_mode` string, required
  - `models` object, nullable, required
  - `knowledge_bases` string[], required
  - `skills` string[], required
  - `tool_categories` string[], required
  - `suggested_prompts` string[], required
  - `logo_url` string, nullable, required
  - `status` string, required
  - `published_at` string, nullable, required
  - `created_at` string, required
  - `updated_at` string, required
  - `widget_enabled` boolean, required
  - `allowed_domains` string[], required
  - `share_enabled` boolean, required
  - `share_updated_at` string, nullable, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-06-13** `33e4ba4936ad` — 2 info
  - added the required property `share_enabled` to the response with the `200` status
  - added the required property `share_updated_at` to the response with the `200` status
- **2026-05-01** `c9eb29ec9a1b` — 2 info
  - added the required property `allowed_domains` to the response with the `200` status
  - added the required property `widget_enabled` to the response with the `200` status

[Change history](https://skmtc.dev/xorbitsai/apis/xagent/changes/api/agents/:agent_id/get.md)

---

[API](https://skmtc.dev/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.dev/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
