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

rsk_Bearer
AuthorizationBearer <token>

Rensei API key. Format: rsk_live_<random>. Generated in Settings or via POST /api/org/{orgId}/keys. Used by CLI (af), daemon, and programmatic integrations.

In: header

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
Default50
Range1 <= value <= 200
cursor?string

Opaque cursor from a previous response's nextCursor.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/public/routing-metrics"
{
  "posteriors": [
    {
      "provider": "string",
      "workType": "string",
      "alpha": 0,
      "beta": 0,
      "expectedReward": 0,
      "confidence": 0,
      "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,
    "explorationRate": 0,
    "avgConfidence": 0,
    "survivalRewardCount": 0
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "error": "Session not found"
}
{
  "error": "Session not found"
}