Rensei docs
API ReferenceSessions ( Public)

MAB router performance posteriors and recent decisions

Returns the current Beta-distribution posteriors for all known `(provider, workType)` arms, recent observation history, and a summary of routing health. Includes survival-derived reward annotations where available. Supports cursor-based pagination for the observations list. Auth: `rsk_` API key or session cookie (`authenticatePublicRequest`).

GET
/api/public/routing-metrics

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.

Query Parameters

from?string

Start of time range filter (ISO-8601).

Formatdate-time
to?string

End of time range filter (ISO-8601).

Formatdate-time
limit?integer
Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous response's nextCursor.

Response Body

Routing metrics.

application/json
  1. response
posteriors*array<>
recentDecisions*array<>
nextCursor?string

Opaque pagination cursor (absent when no further results).

summary*
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://app.rensei.ai/api/public/routing-metrics'
Example Response
{  "posteriors": [    {      "provider": "string",      "workType": "string",      "alpha": 0,      "beta": 0,      "expectedReward": 0,      "pBest": 0,      "hasEvidence": true,      "totalObservations": 0,      "avgCostUsd": 0,      "survivalReward": 0    }  ],  "recentDecisions": [    {      "timestamp": 0,      "provider": "string",      "workType": "string",      "reward": 0,      "taskCompleted": true,      "confidence": 0,      "explorationReason": "string"    }  ],  "nextCursor": "string",  "summary": {    "totalObservations": 0,    "routingEnabled": true,    "routingMode": "disabled",    "explorationRate": 0,    "survivalRewardCount": 0,    "hasPosteriorData": true  },  "timestamp": "2019-08-24T14:15:22Z"}