Skip to main content

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.

OperationRequestSuccessful resultPrimary checks
origins.prepareRootroot terms, policy, candidate metadatachallenge and display materialconfigured origin, supported profile, intended destination
origins.admitpolicy, terms, signed approval, signed join, challenges, signed appraisalsigned root grant and durable registration receiptexact hashes, trusted human and candidate, one-use challenge, appraisal
grants.mintChildparent chain, child policy/terms, signed parent request, child join, appraisal, birth IDsigned child grant and registration receiptcurrent parent, distinct child key, narrowing, birth idempotency
proofs.challengepurpose, context digest, actor, intended verifier/recipientsigned challengeauthorized issuance and fresh random nonce
proofs.verifysigned challenge, private native response, public contextsigned proof resultexact native verifier policy, replay, context and expiry
operations.reservecomplete signed request packetsigned permit or authenticated denial/holdchain, proof, actual intent, budget, uniqueness, epoch and fence
ledger.checksigned control and presentation evidencesigned decision with caller noncecurrent state; no consumption
ledger.redeemsigned control and presentation evidencesigned winning redemption or nondisclosing refusaldesignated custodian, same packet and permit, one winner
resource.executerequest packet and permit through agreed transportcommitted response packetindependent policy, proof, actual route and atomic effect
operations.settlesigned outcome or terminal closureauthenticated settlement decisioncorrect resource issuer, matching scope, exclusive terminal state
operations.statusfresh signed authorized inquirymatching original outcome, terminal closure or uncertain stateseparate lookup authority and non-disclosure rules
ledger.inspectsigned scoped query and snapshot cursorevents, referenced objects and checkpoint evidencequery authorization, stable snapshot, pagination, privacy
authority.revokeauthorized root and current epochsigned higher fenceauthorized operator and ordered state transition
recovery.activaterecovery authorization, latest checkpoint and reconciled statesigned activation receiptindependent 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.