/api/orgList the workspaces your key can reach
Returns every workspace the key's user is a member of, with your role and the agent count in each. Use the orgId field as X-Workspace-Id on all later calls.
Responses
{
"success": true,
"workspaces": [
{
"orgId": "a1013f16-7149-4f28-b190-c51a0fd29ed5",
"name": "Acme Workspace",
"slug": "acme-workspace",
"ownerId": "bbf36313-fad0-498d-b965-427568726d3d",
"members": [
{
"userId": "bbf36313-fad0-498d-b965-427568726d3d",
"email": "you@example.com",
"role": "owner",
"joinedAt": "2026-02-26T15:54:56.496Z"
}
],
"myRole": "owner",
"agentCount": 2
}
]
}curl -X GET "$BASE_URL/api/org" \
-H "Authorization: Bearer $API_KEY"