# 我的 Workspace

`GET` `/v1/ai/workspaces`

获取当前账户加入的全部 Workspace 列表。Workspace 是 Agent 的组织单位，先通过本接口找到目标 Workspace，再用 [Workspace 下的 Agent](/zh-CN/docs/ai/workspace/agents) 查询其中可用的 Agent。

## Request Example

```bash
curl --request GET \
  --url 'https://openapi.longbridge.com/v1/ai/workspaces' \
  --header 'Authorization: Bearer <access_token>'
```

## Response

### Response Properties

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspaces` | object[] | No | 当前账户加入的 Workspace 列表 |
| `└ id` | string | No | 工作区 ID |
| `└ name` | string | No | Workspace 名称 |
| `└ created_at` | integer | No | 创建时间，Unix 时间戳（秒） |
| `└ updated_at` | integer | No | 最后更新时间，Unix 时间戳（秒） |

### Response JSON Example

```json
{
  "code": 0,
  "message": "success",
  "data": {
    "workspaces": [
      {
        "id": "1001",
        "name": "My Workspace",
        "created_at": 1742000000,
        "updated_at": 1742001000
      }
    ]
  }
}
```
