Proposal: This page presents the draft API and profile model. Send feedback on GitHub.
API contract proposal
These API calls are design targets, not currently implemented routes. Each state-changing call authenticates the caller and enforces its role. In the table, signed<T> is the signed envelope described in section 4. Transport errors and generic unauthenticated errors must be distinguishable from authenticated decisions.
| Operation | Request | Successful result | Primary checks |
|---|---|---|---|
origins.prepareRoot | root terms, policy, candidate metadata | challenge and display material | configured origin, supported profile, intended destination |
origins.admit | policy, terms, signed approval, signed join, challenges, signed appraisal | signed root grant and durable registration receipt | exact hashes, trusted human and candidate, one-use challenge, appraisal |
grants.mintChild | parent chain, child policy/terms, signed parent request, child join, appraisal, birth ID | signed child grant and registration receipt | current parent, distinct child key, narrowing, birth idempotency |
proofs.challenge | purpose, context digest, actor, intended verifier/recipient | signed challenge | authorized issuance and fresh random nonce |
proofs.verify | signed challenge, private native response, public context | signed proof result | exact native verifier policy, replay, context and expiry |
operations.reserve | complete signed request packet | signed permit or authenticated denial/hold | chain, proof, actual intent, budget, uniqueness, epoch and fence |
ledger.check | signed control and presentation evidence | signed decision with caller nonce | current state; no consumption |
ledger.redeem | signed control and presentation evidence | signed winning redemption or nondisclosing refusal | designated custodian, same packet and permit, one winner |
resource.execute | request packet and permit through agreed transport | committed response packet | independent policy, proof, actual route and atomic effect |
operations.settle | signed outcome or terminal closure | authenticated settlement decision | correct resource issuer, matching scope, exclusive terminal state |
operations.status | fresh signed authorized inquiry | matching original outcome, terminal closure or uncertain state | separate lookup authority and non-disclosure rules |
ledger.inspect | signed scoped query and snapshot cursor | events, referenced objects and checkpoint evidence | query authorization, stable snapshot, pagination, privacy |
authority.revoke | authorized root and current epoch | signed higher fence | authorized operator and ordered state transition |
recovery.activate | recovery authorization, latest checkpoint and reconciled state | signed activation receipt | independent latest checkpoint, complete reconciliation, next epoch |
Control packet transport, issuance registration receipts, discovery, status responses, authenticated pagination and native proof material still need their own closed schemas. The table identifies these contracts for implementers; it does not silently supply the missing wire definitions.