我的 Workspace
获取当前账户加入的全部 Workspace 列表。Workspace 是 Agent 的组织单位,先通过本接口找到目标 Workspace,再用 Workspace 下的 Agent 查询其中可用的 Agent。
SDK Links
Request
| HTTP Method | GET |
| HTTP URL | /v1/ai/workspaces |
Request Example
Response
Response Headers
- Content-Type: application/json
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"workspaces": [
{
"id": "1001",
"name": "我的工作空间",
"created_at": 1742000000,
"updated_at": 1742001000
}
]
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 返回成功 | workspaces_response |
| 500 | 内部错误 | None |
Schemas
workspaces_response
| Name | Type | Required | Description |
|---|---|---|---|
| workspaces | object[] | true | 当前账户加入的 Workspace 列表 |
| ∟ id | string | true | Workspace ID |
| ∟ name | string | true | Workspace 名称 |
| ∟ created_at | int64 | false | 创建时间,Unix 时间戳(秒) |
| ∟ updated_at | int64 | false | 最后更新时间,Unix 时间戳(秒) |