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.
Authorization
rsk_Bearer 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
"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"
}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`).
Issue M2M access token (client_credentials)
OAuth 2.0 `client_credentials` grant. Accepts both `application/x-www-form-urlencoded` and `application/json` bodies. Returns a short-lived `Bearer` access token. M2M clients are provisioned in the admin panel (`POST /api/admin/m2m-clients`).