AI Agent

My Workspaces

GEThttps://openapi.longbridge.com/v1/ai/workspaces

Authorization

Signed mode: every request is signed with your App Key/Secret. Header set:

NameTypeRequiredDescription
Authorizationstring · headerRequiredThe account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation.
X-Api-Keystring · headerRequiredYour App Key.
X-Timestampstring · headerRequiredRequest timestamp in seconds (Unix epoch).
X-Api-Signaturestring · headerRequiredHMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=.

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

This endpoint takes no request parameters.

Response

Response properties

NameTypeRequiredDescription
workspacesobject[]OptionalWorkspaces the current account belongs to
└ idstringOptionalWorkspace ID
└ namestringOptionalWorkspace name
└ created_atintegerOptionalCreation time, Unix timestamp in seconds
└ updated_atintegerOptionalLast updated time, Unix timestamp in seconds

Response JSON example

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

Error code

See the Error Codes page for the full list of error codes.