Rensei docs
API ReferenceSessions ( Public)

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.

GET
/api/public/phase-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

timeRange?string
Default"30d"
Value in"7d""30d""90d"

Response Body

Phase metrics.

application/json
  1. response
timeRange*string
Value in"7d""30d""90d"
phases*

Per-phase aggregates keyed by phase name.

reworkRate*number
escalationDistribution*
issueCount*integer
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://app.rensei.ai/api/public/phase-metrics'
Example Response
{  "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"}