# 我的 Workspace

`GET` `/v1/ai/workspaces`

獲取當前賬戶加入的全部 Workspace 列表。Workspace 是 Agent 的組織單位，先通過本接口找到目標 Workspace，再用 [Workspace 下的 Agent](/zh-HK/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
      }
    ]
  }
}
```
