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.
请求头
Authorization
Bearer {access_token}
X-Workspace-Id
Workspace UUID
查询参数
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
允许的值:
sortDir
Sort direction
允许的值:
响应
data: list, meta: pagination
错误
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error