> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ariacompute.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取智能体 - GET /v1/workspaces/:workspace_id/agents/:agent_id

> 通过 GET /v1/workspaces/:workspace_id/agents/:agent_id 返回单个智能体编队。最小角色 viewer。

返回单个智能体编队的完整信息。

## 接口

```http theme={null}
GET /v1/workspaces/:workspace_id/agents/:agent_id
```

## 认证

`Authorization: Bearer <jwt>` 或 `X-API-Key <sk_...>`。最小角色：**viewer**。

## 路径参数

<ParamField path="workspace_id" type="string" required>
  工作空间 id。
</ParamField>

<ParamField path="agent_id" type="string" required>
  智能体 id。
</ParamField>

## 响应

字段同[创建智能体](/api-reference/memo/agents/create)。

## 示例

<RequestExample>
  ```bash cURL theme={null}
  curl https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/agents/agent_01a2b3c4d5e6 \
    -H "Authorization: Bearer <jwt>"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "agent_01a2b3c4d5e6",
    "workspace_id": "ws_01a2b3c4d5e6",
    "owner_id": "usr_01a2b3c4d5e6",
    "name": "文档助手",
    "description": "基于知识库回答",
    "prompt": "你是一个文档助手。",
    "tools": ["rag"],
    "visibility": "private",
    "created_at": "2026-10-12T12:00:00Z",
    "updated_at": "2026-10-12T12:00:00Z"
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.