Rensei docs
API ReferenceSessions ( Public)

Real-time fleet statistics (org-scoped)

Returns live worker fleet and session queue metrics for the active org. Requires a session cookie or `rsk_` API key - despite the `/api/public` prefix, this endpoint is not anonymous.

GET
/api/public/stats

Authorization

headerAuthorizationBearer <rsk_live_*>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

Response Body

Fleet stats.

application/json
  1. response
workersOnline*integer
agentsWorking*integer
queueDepth*integer
completedToday*integer
availableCapacity*integer
totalCostToday*number
totalCostAllTime*number
sessionCountToday*integer
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://app.rensei.ai/api/public/stats'
Example Response200
{  "workersOnline": 0,  "agentsWorking": 0,  "queueDepth": 0,  "completedToday": 0,  "availableCapacity": 0,  "totalCostToday": 0,  "totalCostAllTime": 0,  "sessionCountToday": 0,  "timestamp": "2019-08-24T14:15:22Z"}