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

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

timeRange?string
Default"30d"
Value in"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"
}