Rensei docs

Get one hosted routing (placement) decision's full stage walk and multi-hop linkage.

The ADR-D6 decision record: the six-stage walk (intent/permission/viability/preference/ranking/bind), per-candidate exclusions, chosen target, scores/propensity/receipts/rulesetRev when present, and parent/child decision links resolved from session_ledger_edges delegation edges plus the spawn-lineage columns (children).

GET
/api/org/{orgId}/routing/decisions/{id}

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.

Path Parameters

orgId*string

Organization id (must match the authenticated org).

id*string

Placement decision id.

Response Body

The decision detail + resolved multi-hop linkage.

application/json
  1. response
decision*
linkage*
poolNames*

Every pool id referenced anywhere in decision, resolved to its execution_provider_pools display name. A pool id absent here did not resolve (soft-deleted, hard-deleted, or never valid); the web client renders it as " (deleted)".

Example Request
curl -X GET 'https://app.rensei.ai/api/org/string/routing/decisions/string'
Example Response
{  "decision": {    "id": "string",    "orgId": "string",    "projectId": "string",    "sessionId": "string",    "instanceId": "string",    "stepId": "string",    "outcome": "selected",    "chosenPoolId": "string",    "chosenProviderId": "string",    "reasonCode": "string",    "reason": "string",    "decidedAt": "string",    "candidatesConsidered": [      {        "poolId": "string",        "providerId": "string"      }    ],    "exclusions": [      {        "poolId": "string",        "providerId": "string",        "stage": "intent",        "ruleId": "string",        "detail": "string"      }    ],    "orderedSurvivingSet": [      "string"    ],    "chosenTarget": {      "poolId": "string",      "providerId": "string"    },    "orderingPolicy": "string",    "demandedRuntimeKinds": [      "string"    ],    "demandedRequirementKinds": [      "string"    ],    "scoreVector": {      "property1": 0,      "property2": 0    },    "selectionWeights": {      "property1": 0,      "property2": 0    },    "rulesetRev": "string",    "snapshotAgeMs": 0,    "degraded": true,    "propensity": 0,    "explorationFlag": true,    "obligations": [      {        "id": "string",        "discharged": true,        "detail": "string"      }    ],    "receipts": {      "admissionReceiptId": "string",      "claimReceiptId": "string"    },    "stages": [      {        "step": 0,        "stage": "intent",        "remaining": [          "string"        ],        "eliminated": [          {            "poolId": "string",            "providerId": "string",            "ruleId": "string",            "detail": "string"          }        ],        "note": "string"      }    ]  },  "linkage": {    "parent": {      "attestation": "ledger_node",      "sessionId": "string",      "edgeId": "string",      "transport": "string",      "decisions": [        {          "id": "string",          "property1": null,          "property2": null        }      ]    },    "children": [      {        "sessionId": "string",        "edgeId": "string",        "transport": "string",        "decisions": [          {            "id": "string",            "property1": null,            "property2": null          }        ]      }    ],    "childrenLookupIndexed": true  },  "poolNames": {    "property1": "string",    "property2": "string"  }}