List agents
List agents with optional filters (status, departmentId, projectId, unassigned, environment, search) and sorting (sortBy=name|createdAt, sortDir=asc|desc). projectId and unassigned are mutually exclusive. When Collector is configured, period cost/requests/tokens and meta.costBreakdown are merged from GET /v1/analytics/saas/costs-by-entities with entityType=agent. Owner, admin, viewer.
Headers
Authorization
Bearer {access_token}
X-Workspace-Id
Workspace UUID
Query parameters
page
Page number
pageSize
Items per page
status
active, inactive, archived
departmentId
Department UUID
projectId
Project UUID (mutually exclusive with unassigned)
unassigned
Only agents without a project (mutually exclusive with projectId)
environment
production, development, staging
search
Search name/description
sortBy
Sort field
Allowed values:
sortDir
Sort direction
Allowed values:
Response
data: list, meta: pagination
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error