List Teams

List the teams conversations can be routed to in one workspace, ordered by name. The whole workspace is returned: there is no "teams I belong to" filter, because an API key carries no agent identity to resolve it against. The assignment engine's own configuration — the sweep interval and the auto-assignment strategy — is internal and not published; allowAutoAssign is the stable fact about whether work lands on a team automatically. Every operation is scoped by the required workspaceId. A workspace-scoped API key that names any other workspace is refused with 403 before any query runs, so a workspace key can only ever reach its own workspace.

GET/api/v1/chat/teams
X-API-Key<token>

Your Studio API key, personal or workspace-scoped. Generate one under Settings, then API Keys. Operations that reject workspace keys say so in their own description.

In: header

Query Parameters

page?integer

1-based page number. Defaults to 1.

Default1
Range1 <= value <= 9007199254740991
perPage?integer

Items per page, between 1 and 100. Defaults to 25.

Default25
Range1 <= value <= 100
workspaceId*string

Workspace whose teams are listed.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://agent-studio.seeyu.ai/api/v1/chat/teams?workspaceId=string" \  -H "X-API-Key: YOUR_API_KEY"
{
  "teams": [
    {
      "id": "tem_01J8F2K3N5PC",
      "workspaceId": "ws_01J8F2K3N5P7",
      "name": "Support",
      "description": "First line support",
      "allowAutoAssign": true,
      "workingHoursEnabled": true,
      "outOfOfficeMessage": "We are closed. We will reply on the next working day.",
      "timezone": "America/Sao_Paulo",
      "createdAt": "2026-07-24T11:02:19.000Z",
      "updatedAt": "2026-08-28T09:41:02.000Z"
    }
  ],
  "pagination": {
    "page": 1,
    "perPage": 25,
    "total": 1,
    "totalPages": 1
  }
}
{
  "error": "Invalid input: expected string, received undefined",
  "details": [
    {
      "code": "invalid_type",
      "expected": "string",
      "path": [
        "phone"
      ],
      "message": "Invalid input: expected string, received undefined"
    }
  ]
}
{
  "error": "Unauthorized"
}
{
  "error": "API key is not authorized for this workspace"
}
{
  "error": "Rate limit exceeded",
  "message": "API rate limit exceeded. Please retry after 2026-09-13T12:00:00.000Z",
  "retryAfter": 1789286400000
}
{
  "error": "Internal server error",
  "requestId": "req_01J9Z2K3M4N5P6Q7R8S9T0"
}