Get session counts by status
PreviewManage execution sessions and rooms, and their files, tasks, storage, databases and managed sandboxes.
GET
/v1/sessions/statsSee authentication for credentials and permissions.
Responses
200Session statistics
Session statistics
Media typeapplication/json
Response for session statistics endpoint
object
active
required
Sessions with a turn currently running
integer format: int32
idle
required
Sessions waiting for next input
integer format: int32
started
required
Sessions just created, no turn executed yet
integer format: int32
total
required
Total number of sessions across all statuses
integer format: int32
waiting_for_tool_results
required
Sessions waiting for client-side tool results
integer format: int32
Example generated
{ "active": 1, "idle": 1, "started": 1, "total": 1, "waiting_for_tool_results": 1}500Internal server error
Internal server error