Phase-level cycle time, cost, and rework aggregations
Returns aggregated phase metrics (avg cycle time, cost, rework rate) across all workflow states in the workspace for the requested time range. Auth: `rsk_` API key or session cookie.
Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.
In: header
Query Parameters
"30d""7d" | "30d" | "90d"Response Body
application/json
application/json
curl -X GET "https://example.com/api/public/phase-metrics"{
"timeRange": "7d",
"phases": {
"property1": {
"avgCycleTimeMs": 0,
"avgCostUsd": 0,
"avgAttempts": 0,
"totalRecords": 0
},
"property2": {
"avgCycleTimeMs": 0,
"avgCostUsd": 0,
"avgAttempts": 0,
"totalRecords": 0
}
},
"reworkRate": 0,
"escalationDistribution": {
"property1": 0,
"property2": 0
},
"issueCount": 0,
"timestamp": "2019-08-24T14:15:22Z"
}{
"error": "Session not found"
}Platform-wide anonymised aggregate statistics
Returns whole-platform (not org-scoped) anonymised aggregate metrics - e.g. top work types, provider distribution, phase cycle-time distributions. Results are k-anonymised (rows with fewer than `kAnonymityFloor` samples are suppressed). Auth: `rsk_` bearer, user JWT, or session cookie. Not unauthenticated despite the `/api/public` prefix.
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`).