Skip to Content

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.

Request

HTTP MethodGET
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

StatusDescriptionSchema
200Successworkspaces_response
500Internal errorNone

Schemas

workspaces_response

NameTypeRequiredDescription
workspacesobject[]trueWorkspaces the current account belongs to
∟ idstringtrueWorkspace ID
∟ namestringtrueWorkspace name
∟ created_atint64falseCreation time, Unix timestamp in seconds
∟ updated_atint64falseLast updated time, Unix timestamp in seconds