My Workspaces
List all Workspaces the current account belongs to. A Workspace is the organizational unit for Agents: find the target Workspace via this endpoint first, then use Agents in Workspace to list the Agents available in it.
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": "My Workspace",
"created_at": 1742000000,
"updated_at": 1742001000
}
]
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | Success | workspaces_response |
| 500 | Internal error | None |
Schemas
workspaces_response
| Name | Type | Required | Description |
|---|---|---|---|
| workspaces | object[] | true | Workspaces the current account belongs to |
| ∟ id | string | true | Workspace ID |
| ∟ name | string | true | Workspace name |
| ∟ created_at | int64 | false | Creation time, Unix timestamp in seconds |
| ∟ updated_at | int64 | false | Last updated time, Unix timestamp in seconds |