Endpoints

The surface area is small on purpose

Six resources cover the loop from authority to evidence. Contract preview · not live

MethodPathWhat it does
POST/v1/grantsIssue a purpose-bound, limited, expiring grant from a principal to an agent for one action.
GET/v1/grants/:idRead a grant's scope, status, and consumption state.
DEL/v1/grants/:idRevoke a grant before use. Revocation is itself a recorded event.
POST/v1/targets/verifyTarget-side check: is this grant valid, unexpired, and unreplayed for this exact action?
POST/v1/receiptsSeal a receipt binding grant, execution, evidence, and observed outcome.
GET/v1/receipts/:idFetch a sealed receipt for review, dispute, or audit.
POST/v1/autonomy/reviewRecompute an agent's grant scope from verified outcomes — wider after proof, narrower after misses.
GET/v1/agents/:id/authorityThe agent's current authority envelope: what it may do, under which limits, earned from what evidence.