View as Markdown

Node API#

Every endpoint of the AllowedBy node (demo/node.py), 92 operations, read from the route handlers. Machine-readable: node-openapi.json (OpenAPI 3.1).

Base URL: the node's origin, e.g. https://demo.allowedby.com. Find the endpoints of another node in its statement, GET /.well-known/oaid.

Node discovery#

Operation What it does
GET / The node's home page (HTML)
GET /.well-known/oaid The node statement, a signed JWT with the node's name, keys and endpoints
GET /oaid/v1/status The signed status list, where a set bit is a revoked document

GET /#

The node's home page (HTML).

Caller anyone
Answers 200 as text/html

GET /.well-known/oaid#

OAID-2 §3: the node statement, a signed JWT with the node's name, keys and endpoints.

Caller anyone
Answers 200 as application/jwt

GET /oaid/v1/status#

OAID-2 §4.2: the signed status list, where a set bit is a revoked document. Signed at most once a second: every verifier polls it, and compressing the list is not free. Cacheable for 30 s (OAID-3 §7).

Caller anyone
Answers 200 as application/jwt

Transparency log and witness#

Operation What it does
GET /oaid/v1/log Commitments in pages of 1,000: ?from=N
GET /oaid/v1/log/checkpoint The latest checkpoint, with the witnesses' cosignatures collected for it
GET /oaid/v1/log/tile/entries/{p} A C2SP tlog-tiles entry bundle: the commitments themselves (OAID-4 §5)
GET /oaid/v1/log/tile/{level}/{p} A C2SP tlog-tiles hash tile: static, immutable, cacheable by any CDN (OAID-4 §5)
GET /oaid/v1/log/documents/{idx} A logged document and its salt, to whoever may read it
POST /oaid/v1/witness/add-checkpoint Cosign a checkpoint (C2SP tlog-witness), for the logs of the nodes in this node's trust list: the checkpoint must verify with the origin's delegated checkpoint key and be consistent with the last one cosigned; then it is cosigned with the witness key
GET /oaid/v1/witness/conflicts Both checkpoints of every fork this witness was shown (OAID-4 §6)

GET /oaid/v1/log#

Commitments in pages of 1,000: ?from=N.

Caller anyone
Query from
Answers 200
Errors 400 invalid_request

GET /oaid/v1/log/checkpoint#

OAID-4 §4: the latest checkpoint, with the witnesses' cosignatures collected for it.

Caller anyone
Answers 200 as text/plain; charset=utf-8

GET /oaid/v1/log/tile/entries/{p}#

A C2SP tlog-tiles entry bundle: the commitments themselves (OAID-4 §5).

Caller anyone
Path p ([x0-9/.p]{3,40})
Answers 200
Errors 404 not_found, 429 rate_limited

GET /oaid/v1/log/tile/{level}/{p}#

A C2SP tlog-tiles hash tile: static, immutable, cacheable by any CDN (OAID-4 §5).

Caller anyone
Path level ([0-9]), p ([x0-9/.p]{3,40})
Answers 200
Errors 404 not_found, 429 rate_limited

GET /oaid/v1/log/documents/{idx}#

OAID-4 §3: a logged document and its salt, to whoever may read it.

Caller anyone for statements and vouches; otherwise a party to the document: the human (X-Human-Id), or a proof (AllowedBy-Proof) by the runtime (with Allowed-By), the audience, or the operator (with X-Operator)
Path idx ([0-9]{1,9})
Answers 200
Errors 404 not_found, 410 redacted, 429 rate_limited

POST /oaid/v1/witness/add-checkpoint#

Cosign a checkpoint (C2SP tlog-witness), for the logs of the nodes in this node's trust list: the checkpoint must verify with the origin's delegated checkpoint key and be consistent with the last one cosigned; then it is cosigned with the witness key. A fork is refused and published at /conflicts.

Caller anyone; the checkpoint itself must be signed by a node in this node's trust list
Answers 200 as text/x.tlog.size
Errors 429 rate_limited

GET /oaid/v1/witness/conflicts#

Both checkpoints of every fork this witness was shown (OAID-4 §6).

Caller anyone
Answers 200

Agent passports#

Operation What it does
GET /oaid/v1/passports/nonce A fresh nonce for a passport request, valid 120 seconds and usable once
GET /oaid/v1/passports/attestation-roots The attestation types this node grades and what it checks them against
POST /oaid/v1/passports Issue a passport for the agent key that signed the proof and the nonce
GET /oaid/v1/passports/{pid} Public (OAID-3 §5, OAID-4 §7): the passport, while this node keeps it
POST /oaid/v1/passports/{pid}/renew Renew a passport: same key, new pid and sub, prev = the renewed passport; tiers 1 and 2 only
POST /oaid/v1/passports/{pid}/revoke Revoke a passport, by the runtime (its passport in Allowed-By and a proof) or by an operator key (a proof by a key of its /.well-known/oaid-operator)
GET /.well-known/http-message-signatures-directory Web Bot Auth key directory (OAID-3 §5): the keys of every unexpired, unrevoked passport

GET /oaid/v1/passports/nonce#

OAID-3 §4: a fresh nonce for a passport request, valid 120 seconds and usable once.

Caller anyone
Answers 200
Errors 429 rate_limited

GET /oaid/v1/passports/attestation-roots#

OAID-6 §5: the attestation types this node grades and what it checks them against.

Caller anyone
Answers 200

POST /oaid/v1/passports#

OAID-3 §4: issue a passport for the agent key that signed the proof and the nonce.

Caller a signed proof (AllowedBy-Proof)
Body (JSON) custody, key, model, operator, operator_proof, requested_ttl, runtime
Answers 201 as application/jwt
Errors 400 attestation_insufficient, 400 invalid_request, 401 invalid_signature, 429 rate_limited

GET /oaid/v1/passports/{pid}#

Public (OAID-3 §5, OAID-4 §7): the passport, while this node keeps it.

Caller anyone
Path pid ([0-9A-Z]{26})
Answers 200 as application/jwt
Errors 404 not_found

POST /oaid/v1/passports/{pid}/renew#

OAID-3 §6: renew a passport: same key, new pid and sub, prev = the renewed passport; tiers 1 and 2 only. Evidence is required once attested_at is over 7 days old; without it custody is copied unchanged. A domain operator whose binding lapsed is not renewed (OAID-2 §6).

Caller the agent (Allowed-By and AllowedBy-Proof)
Path pid ([0-9A-Z]{26})
Body (JSON) custody, requested_ttl
Answers 201 as application/jwt
Errors 400 attestation_insufficient, 400 invalid_request, 401 invalid_signature, 429 rate_limited

POST /oaid/v1/passports/{pid}/revoke#

OAID-3 §7: revoke a passport, by the runtime (its passport in Allowed-By and a proof) or by an operator key (a proof by a key of its /.well-known/oaid-operator). Flips the passport's bit and every grant revision bound to it; key_compromise also every passport and revision with that key, which leaves the key directory.

Caller the runtime (Allowed-By and AllowedBy-Proof), or the operator (AllowedBy-Proof by one of its keys)
Path pid ([0-9A-Z]{26})
Body (JSON) reason
Answers 200
Errors 400 invalid_request, 401 invalid_signature, 404 not_found, 429 rate_limited

GET /.well-known/http-message-signatures-directory#

Web Bot Auth key directory (OAID-3 §5): the keys of every unexpired, unrevoked passport.

Caller anyone
Answers 200 as application/http-message-signatures-directory+json

Node administration#

Operation What it does
GET /oaid/v1/admin/crosscheck How the in-house verifiers compare with the bought providers, and whether each has earned promotion to primary
POST /oaid/v1/admin/rotate Withdraw a compromised role key: -> {kid, after, new}; the statement lists it in revoked_keys
POST /oaid/v1/admin/vouches Give a vouch for a node or an organisation
POST /oaid/v1/admin/vouches/revoke Withdraw the vouch jti this node gave
POST /oaid/v1/admin/erase Erase the document at log_idx (legal erasure or end of retention)

GET /oaid/v1/admin/crosscheck#

OAID-7 §5.7: how the in-house verifiers compare with the bought providers, and whether each has earned promotion to primary. Field names and counts only, never attribute values.

Caller the node's admin token
Answers 200
Errors 401 invalid_signature, 404 not_found

POST /oaid/v1/admin/rotate#

Withdraw a compromised role key: -> {kid, after, new}; the statement lists it in revoked_keys.

Caller the node's admin token
Body (JSON) role
Answers 200
Errors 400 invalid_request, 401 invalid_signature, 404 not_found

POST /oaid/v1/admin/vouches#

Give a vouch for a node or an organisation. OAID-5 §4 {node, kid, basis, max_level, days}, or ORG-1 §2 {org, legal_name, country, basis}.

Caller the node's admin token
Body (JSON) basis, country, days, kid, legal_name, max_level, node, org
Answers 201 as application/jwt
Errors 400 invalid_request, 401 invalid_signature, 404 not_found

POST /oaid/v1/admin/vouches/revoke#

Withdraw the vouch jti this node gave.

Caller the node's admin token
Body (JSON) jti
Answers 200
Errors 401 invalid_signature, 404 not_found

POST /oaid/v1/admin/erase#

OAID-4 §8: erase the document at log_idx (legal erasure or end of retention).

Caller the node's admin token
Body (JSON) log_idx
Answers 200
Errors 400 invalid_request, 401 invalid_signature, 404 not_found, 410 redacted

People and passkeys#

Operation What it does
GET /allowedby/v1/approvals/humans/challenge A one-time WebAuthn challenge and this node's rp_id, for the pages' passkey ceremonies
POST /allowedby/v1/approvals/humans Enrol a person with a new passkey, authenticated by the WebAuthn registration itself; authn from the attestation
POST /allowedby/v1/approvals/humans/recover Recover when every authenticator is lost
GET /allowedby/v1/approvals/humans/me The person's own record: level, passkeys, names of the attributes held, memberships and level providers
POST /allowedby/v1/approvals/humans/me/credentials Another passkey for this human (optionally for one service only), authorised by an assertion from one they already have
POST /allowedby/v1/approvals/humans/me/contact Add or change the email or phone kept for sharing (OAID-7 §7, level 1 attributes)
POST /allowedby/v1/approvals/humans/me/verify Start an identity verification with provider, after a passkey tap
POST /allowedby/v1/approvals/humans/me/verify/complete Finish a verification started at verify
POST /allowedby/v1/approvals/humans/me/erase Erase the identity verification record on request (a passkey tap)

GET /allowedby/v1/approvals/humans/challenge#

A one-time WebAuthn challenge and this node's rp_id, for the pages' passkey ceremonies.

Caller anyone
Answers 200
Errors 429 rate_limited

POST /allowedby/v1/approvals/humans#

OAID-7 §4: enrol a person with a new passkey, authenticated by the WebAuthn registration itself; authn from the attestation.

Caller anyone, with the WebAuthn registration of the new passkey
Body (JSON) attestation_object, authenticator_data, client_data_json, credential_id, email, name, public_key
Answers 201
Errors 400 invalid_request, 429 rate_limited

POST /allowedby/v1/approvals/humans/recover#

AMH-1 §8, OAID-7 §4: recover when every authenticator is lost. The new passkey joins the existing human only when an identity verification (SIMULATED provider here) matches the stored identity record; the lost credentials' registrations are revoked. Otherwise it is a new human, with new pairwise ids.

Caller anyone, with the WebAuthn registration of the new passkey and the identity verification
Body (JSON) attestation_object, authenticator_data, birth_date, client_data_json, credential_id, legal_name, provider, public_key
Answers 201
Errors 400 invalid_request, 429 rate_limited

GET /allowedby/v1/approvals/humans/me#

The person's own record: level, passkeys, names of the attributes held, memberships and level providers.

Caller the person's id (X-Human-Id)
Answers 200
Errors 404 not_found

POST /allowedby/v1/approvals/humans/me/credentials#

OAID-7 §8, AMH-1 §6.1: another passkey for this human (optionally for one service only), authorised by an assertion from one they already have. Logged (its own registration) and shown in the wallet.

Caller the person's id (X-Human-Id); a passkey tap (assertion)
Body (JSON) assertion, audience, credential
Answers 201
Errors 400 invalid_request, 401 invalid_signature

POST /allowedby/v1/approvals/humans/me/contact#

Add or change the email or phone kept for sharing (OAID-7 §7, level 1 attributes). Needs a tap.

Caller the person's id (X-Human-Id); a passkey tap (assertion)
Body (JSON) assertion
Answers 200
Errors 400 invalid_request, 401 invalid_signature

POST /allowedby/v1/approvals/humans/me/verify#

OAID-7 §5: start an identity verification with provider, after a passkey tap. A real source answers with its first step, completed at verify/complete; the demo providers are simulated and answer at once.

Caller the person's id (X-Human-Id); a passkey tap (assertion)
Body (JSON) address, assertion, birth_date, legal_name, level, provider
Answers 200
Errors 400 invalid_request, 401 invalid_signature

POST /allowedby/v1/approvals/humans/me/verify/complete#

OAID-7 §5: finish a verification started at verify. The node verifies the evidence itself and takes the level from the source's ceiling (§5.1), never from the provider's label; level 3 also needs the hardware passkey that started it. Identity attributes are replaced by what this source gave (§5.2).

Caller the person who started the verification (X-Human-Id)
Body (JSON) verification
Errors 400 invalid_request

POST /allowedby/v1/approvals/humans/me/erase#

OAID-7 §8: erase the identity verification record on request (a passkey tap). The human is level 1 again; the log keeps its commitments, which reveal nothing without their salts.

Caller the person's id (X-Human-Id); a passkey tap (assertion)
Body (JSON) assertion
Answers 200
Errors 401 invalid_signature

Wallet#

Operation What it does
GET /allowedby/v1/wallet/me/grants Every grant this human signed, here and at other nodes (delivered back to this home node)
GET /allowedby/v1/wallet/me/overview The wallet's summary: attribute names (never values), budgets and their use, memberships, disclosures
POST /allowedby/v1/wallet/me/budgets Replace your budgets, with a passkey tap
POST /allowedby/v1/wallet/me/revoke/challenge The revocation payload and challenge to sign, for one grant, a whole service or an operator
POST /allowedby/v1/wallet/me/revoke Revoke grants with the human's tap over SHA-256(JCS(revoke payload)) (ABY-1 §9)
GET /allowedby/v1/wallet/me/coapprovals The approvals waiting for this person's co-approval
POST /allowedby/v1/wallet/me/coapprovals/{aid} Co-approve: tap the same SHA-256(JCS(core)) the first approver signed

GET /allowedby/v1/wallet/me/grants#

Every grant this human signed, here and at other nodes (delivered back to this home node).

Caller the person's id (X-Human-Id)
Answers 200

GET /allowedby/v1/wallet/me/overview#

The wallet's summary: attribute names (never values), budgets and their use, memberships, disclosures.

Caller the person's id (X-Human-Id)
Answers 200
Errors 404 not_found

POST /allowedby/v1/wallet/me/budgets#

ORG-1 §5.2: replace your budgets, with a passkey tap.

Caller the person's id (X-Human-Id); a passkey tap (assertion)
Body (JSON) assertion, budgets
Answers 200
Errors 400 invalid_request, 401 invalid_signature

POST /allowedby/v1/wallet/me/revoke/challenge#

ABY-1 §9: the revocation payload and challenge to sign, for one grant, a whole service or an operator.

Caller the person's id (X-Human-Id)
Body (JSON) audience, gid, operator
Answers 200
Errors 400 invalid_request, 404 not_found

POST /allowedby/v1/wallet/me/revoke#

Revoke grants with the human's tap over SHA-256(JCS(revoke payload)) (ABY-1 §9). Grants countersigned at other nodes are revoked there: this home node signs and sends them each revocation, outside the lock.

Caller the person (X-Human-Id), with a passkey tap over the revoke payload (assertion)
Body (JSON) assertion, payload
Answers 200
Errors 400 invalid_request, 401 invalid_signature, 404 not_found

GET /allowedby/v1/wallet/me/coapprovals#

ABY-1 §5: the approvals waiting for this person's co-approval.

Caller the person's id (X-Human-Id)
Answers 200
Errors 404 not_found, 429 rate_limited

POST /allowedby/v1/wallet/me/coapprovals/{aid}#

Co-approve: tap the same SHA-256(JCS(core)) the first approver signed. The node re-renders the sentence from the audience's templates and refuses unless it is identical (ABY-1 §5).

Caller the co-approver (X-Human-Id), with a passkey tap over SHA-256(JCS(core)) (assertion)
Path aid ([0-9A-Z]{26})
Body (JSON) assertion
Answers 200
Errors 401 invalid_signature, 403 capability_denied, 404 not_found, 409 invalid_request, 429 rate_limited

Grants#

Operation What it does
POST /allowedby/v1/approvals/revoke One revoke endpoint: the body is a compact aby-revoke+jwt signed by an operator key (from its /.well-known/oaid-operator), by a trusted node's countersign key (a home node revoking for its human, or this node), or, for {kid}, by that key itself
POST /allowedby/v1/approvals/grants/{gid}/attenuate A narrower child grant for a sub-agent, carrying its passport (actor_passport, from this node or a trusted one)
POST /allowedby/v1/approvals/grants/{gid}/rebind Move a live grant to the runtime's new passport, without the human

POST /allowedby/v1/approvals/revoke#

One revoke endpoint: the body is a compact aby-revoke+jwt signed by an operator key (from its /.well-known/oaid-operator), by a trusted node's countersign key (a home node revoking for its human, or this node), or, for {kid}, by that key itself. Logged here, then the status bits are flipped.

Caller whoever signed the body: the operator, a trusted node, or the key itself
Answers 200
Errors 400 invalid_request, 401 invalid_signature, 404 not_found, 429 rate_limited

POST /allowedby/v1/approvals/grants/{gid}/attenuate#

A narrower child grant for a sub-agent, carrying its passport (actor_passport, from this node or a trusted one). Authenticated by the parent's actor: its passport in Allowed-By and a proof by actor.key. The child has no display, human_sig or initiator; its human is the parent's, byte for byte.

Caller the agent (Allowed-By and AllowedBy-Proof)
Path gid ([0-9A-Z]{26})
Body (JSON) actor_passport, audience, capabilities, exp
Answers 201 as application/jwt
Errors 400 invalid_request, 401 invalid_signature, 403 untrusted_node, 404 not_found, 429 rate_limited

POST /allowedby/v1/approvals/grants/{gid}/rebind#

ABY-1 §6: move a live grant to the runtime's new passport, without the human. Tier 0 keys are never renewed, so the operator vouches for the new passport with a signature from its domain's keys.

Caller the agent with its new passport (Allowed-By and AllowedBy-Proof), and the operator's signature (operator_sig) unless the passport chains to the old one
Path gid ([0-9A-Z]{26})
Body (JSON) operator_sig
Errors 400 invalid_request, 401 invalid_signature, 404 not_found, 429 rate_limited

Approvals#

Operation What it does
POST /allowedby/v1/approvals Create an approval, for an agent (its passport) or for a service (its own origin only)
GET /allowedby/v1/approvals/{aid} The state of an approval, its expiry and, once given, the grant id and the level reached
GET /allowedby/v1/approvals/{aid}/grant The grant, once the human decides
POST /allowedby/v1/approvals/{aid}/result The home node returns the core and the human's assertion (or the denial)
POST /allowedby/v1/approvals/{aid}/grant The creating node delivers the countersigned grant, so the human's wallet holds every grant they signed and can revoke it
GET /allowedby/v1/approvals/{aid}/page What the approval page renders: the sentence, the service, the options and the rules
POST /allowedby/v1/approvals/{aid}/preview What the approval page shows before the tap: the level needed, what blocks the approval, budgets and expiry
POST /allowedby/v1/approvals/{aid}/core Build the grant core the person will sign, and its WebAuthn challenge
POST /allowedby/v1/approvals/{aid}/approve Approve, with the human's assertion over SHA-256(JCS(core)): countersigned here, or, for a forwarded approval, returned to the creating node, which countersigns and delivers the grant back (AMH-1 §5)
POST /allowedby/v1/approvals/{aid}/deny Deny an approval: logged with aid, sub, capabilities, time and reason

POST /allowedby/v1/approvals#

AMH-1 §3: create an approval, for an agent (its passport) or for a service (its own origin only).

Caller an agent (Allowed-By and AllowedBy-Proof), a service for its own origin, or a trusted node forwarding a request (AllowedBy-Proof by one of its keys)
Body (JSON) actor, approval, audience, callback, capabilities, disclose, expires_in, gid, human_hint, human_home, initiator, iss, level, level_profile, mandate, qes, renews, single_use, standing, sub
Errors 400 invalid_request, 401 invalid_signature, 403 capability_denied, 403 untrusted_node, 409 invalid_request, 429 rate_limited, 502 invalid_request

GET /allowedby/v1/approvals/{aid}#

AMH-1 §5: the state of an approval, its expiry and, once given, the grant id and the level reached.

Caller anyone who holds the approval's id
Path aid ([0-9A-Z]{26})
Answers 200
Errors 404 not_found

GET /allowedby/v1/approvals/{aid}/grant#

The grant, once the human decides. Long poll: ?wait=N (at most 25 s) answers as soon as the human decides. A service that polls with Accept: application/json gets {grant, disclosure} (AMH-1 §5: the disclosure goes only to it).

Caller the agent (Allowed-By and AllowedBy-Proof), or the service the approval is for (AllowedBy-Proof)
Path aid ([0-9A-Z]{26})
Query wait
Answers 200, 202 as application/jwt
Errors 404 not_found, 429 rate_limited

POST /allowedby/v1/approvals/{aid}/result#

AMH-1 §5 at the creating node: the home node returns the core and the human's assertion (or the denial). This node checks them against human.reg, countersigns, answers the poll and the callback, and delivers the grant to the human's wallet (POST {approvals}/{aid}/grant on the home node).

Caller the human's home node (AllowedBy-Proof by its countersign key)
Path aid ([0-9A-Z]{26})
Body (JSON) core, disclosure, human_sig, reason, state, verified
Answers 200
Errors 401 invalid_signature, 403 untrusted_node, 404 not_found, 409 invalid_request

POST /allowedby/v1/approvals/{aid}/grant#

OAID-2 §4.5, home node only: the creating node delivers the countersigned grant, so the human's wallet holds every grant they signed and can revoke it.

Caller the creating node (AllowedBy-Proof by its countersign key)
Path aid ([0-9A-Z]{26})
Answers 200
Errors 400 invalid_request, 401 invalid_signature, 403 untrusted_node, 404 not_found

GET /allowedby/v1/approvals/{aid}/page#

AMH-1 §6: what the approval page renders: the sentence, the service, the options and the rules. Unlocked: the service's organisation profile is read first.

Caller anyone who holds the approval's id
Path aid ([0-9A-Z]{26})
Answers 200
Errors 404 not_found

POST /allowedby/v1/approvals/{aid}/preview#

What the approval page shows before the tap: the level needed, what blocks the approval, budgets and expiry.

Caller anyone who holds the approval's id and the person's id (hid)
Path aid ([0-9A-Z]{26})
Body (JSON) acting, breadth, hid, optional, period
Answers 200
Errors 404 not_found

POST /allowedby/v1/approvals/{aid}/core#

AMH-1 §6: build the grant core the person will sign, and its WebAuthn challenge.

Caller anyone who holds the approval's id and the person's id (hid); nothing is granted until the tap
Path aid ([0-9A-Z]{26})
Body (JSON) acting, breadth, hid, optional, period
Answers 200
Errors 403 capability_denied, 403 level_insufficient, 404 not_found, 409 invalid_request, 502 invalid_request

POST /allowedby/v1/approvals/{aid}/approve#

Approve, with the human's assertion over SHA-256(JCS(core)): countersigned here, or, for a forwarded approval, returned to the creating node, which countersigns and delivers the grant back (AMH-1 §5).

Caller the person (hid), with a passkey tap over SHA-256(JCS(core)) (assertion)
Path aid ([0-9A-Z]{26})
Body (JSON) assertion, hid
Answers 200
Errors 400 invalid_request, 401 invalid_signature, 401 qes_required, 409 invalid_request, 502 invalid_request

POST /allowedby/v1/approvals/{aid}/deny#

AMH-1 §10: deny an approval: logged with aid, sub, capabilities, time and reason.

Caller anyone who holds the approval's id. A passkey tap (assertion) is optional: with it, not_me and unknown_agent also stop the agent from asking again
Path aid ([0-9A-Z]{26})
Body (JSON) acting, assertion, hid, reason
Answers 200
Errors 401 invalid_signature, 409 invalid_request

Organisation directory (SCIM 2.0)#

Operation What it does
GET /org/{oid}/scim/v2/Users SCIM: list or filter the users (RFC 7644 §3.4.2)
POST /org/{oid}/scim/v2/Users SCIM: create a user; they become an invited member
GET /org/{oid}/scim/v2/Users/{mid} SCIM: read one user
PUT /org/{oid}/scim/v2/Users/{mid} SCIM: replace the attributes given for a user
PATCH /org/{oid}/scim/v2/Users/{mid} SCIM: change some attributes of a user (RFC 7644 §3.5.2)
DELETE /org/{oid}/scim/v2/Users/{mid} SCIM: delete a user, with the leaver flow (ORG-1 §7.2); the record stays until erased after the retention
GET /org/{oid}/scim/v2/Groups SCIM: list or filter the groups (teams)
POST /org/{oid}/scim/v2/Groups SCIM: create a group (team)
GET /org/{oid}/scim/v2/Groups/{gid} SCIM: read one group
PUT /org/{oid}/scim/v2/Groups/{gid} SCIM: replace a group's name and members
PATCH /org/{oid}/scim/v2/Groups/{gid} SCIM: rename a group, or add, remove or replace its members
DELETE /org/{oid}/scim/v2/Groups/{gid} SCIM: delete a group
GET /org/{oid}/scim/v2/ServiceProviderConfig SCIM: what this server supports (RFC 7643 §5)
GET /org/{oid}/scim/v2/Schemas SCIM: the User and Group schemas served here
GET /org/{oid}/scim/v2/ResourceTypes SCIM: the resource types served here

GET /org/{oid}/scim/v2/Users#

SCIM: list or filter the users (RFC 7644 §3.4.2).

Caller the organisation's SCIM bearer token
Path oid ([a-z0-9-]+)
Query count, filter, startIndex

POST /org/{oid}/scim/v2/Users#

SCIM: create a user; they become an invited member.

Caller the organisation's SCIM bearer token
Path oid ([a-z0-9-]+)
Body (JSON) displayName, emails, externalId, name, title, userName
Answers 201 as application/scim+json

GET /org/{oid}/scim/v2/Users/{mid}#

SCIM: read one user.

Caller the organisation's SCIM bearer token
Path mid ([A-Za-z0-9_-]+), oid ([a-z0-9-]+)
Answers 200
Errors 404 SCIM error

PUT /org/{oid}/scim/v2/Users/{mid}#

SCIM: replace the attributes given for a user.

Caller the organisation's SCIM bearer token
Path mid ([A-Za-z0-9_-]+), oid ([a-z0-9-]+)
Body (JSON) active, displayName, emails, externalId, name, title, userName
Answers 200
Errors 404 SCIM error

PATCH /org/{oid}/scim/v2/Users/{mid}#

SCIM: change some attributes of a user (RFC 7644 §3.5.2).

Caller the organisation's SCIM bearer token
Path mid ([A-Za-z0-9_-]+), oid ([a-z0-9-]+)
Body (JSON) Operations
Answers 200
Errors 404 SCIM error

DELETE /org/{oid}/scim/v2/Users/{mid}#

SCIM: delete a user, with the leaver flow (ORG-1 §7.2); the record stays until erased after the retention.

Caller the organisation's SCIM bearer token
Path mid ([A-Za-z0-9_-]+), oid ([a-z0-9-]+)
Answers 204
Errors 404 SCIM error

GET /org/{oid}/scim/v2/Groups#

SCIM: list or filter the groups (teams).

Caller the organisation's SCIM bearer token
Path oid ([a-z0-9-]+)
Query count, filter, startIndex

POST /org/{oid}/scim/v2/Groups#

SCIM: create a group (team).

Caller the organisation's SCIM bearer token
Path oid ([a-z0-9-]+)
Body (JSON) displayName, members
Answers 201 as application/scim+json
Errors 400 SCIM error, 409 SCIM error

GET /org/{oid}/scim/v2/Groups/{gid}#

SCIM: read one group.

Caller the organisation's SCIM bearer token
Path gid ([A-Za-z0-9_-]+), oid ([a-z0-9-]+)
Answers 200
Errors 404 SCIM error

PUT /org/{oid}/scim/v2/Groups/{gid}#

SCIM: replace a group's name and members.

Caller the organisation's SCIM bearer token
Path gid ([A-Za-z0-9_-]+), oid ([a-z0-9-]+)
Body (JSON) displayName, members
Answers 200
Errors 404 SCIM error

PATCH /org/{oid}/scim/v2/Groups/{gid}#

SCIM: rename a group, or add, remove or replace its members.

Caller the organisation's SCIM bearer token
Path gid ([A-Za-z0-9_-]+), oid ([a-z0-9-]+)
Body (JSON) Operations
Answers 200
Errors 404 SCIM error

DELETE /org/{oid}/scim/v2/Groups/{gid}#

SCIM: delete a group.

Caller the organisation's SCIM bearer token
Path gid ([A-Za-z0-9_-]+), oid ([a-z0-9-]+)
Answers 204
Errors 404 SCIM error

GET /org/{oid}/scim/v2/ServiceProviderConfig#

SCIM: what this server supports (RFC 7643 §5).

Caller the organisation's SCIM bearer token
Path oid ([a-z0-9-]+)
Answers 200

GET /org/{oid}/scim/v2/Schemas#

SCIM: the User and Group schemas served here.

Caller the organisation's SCIM bearer token
Path oid ([a-z0-9-]+)
Answers 200

GET /org/{oid}/scim/v2/ResourceTypes#

SCIM: the resource types served here.

Caller the organisation's SCIM bearer token
Path oid ([a-z0-9-]+)
Answers 200

Organisation sign-in and joining#

Operation What it does
GET /org/{oid}/sso/start Send the member to the company's identity provider (OpenID Connect)
GET /org/{oid}/sso/callback The identity provider sends the member back here
GET /org/{oid}/join The page where an invited member links their passkey (HTML)
POST /org/{oid}/join/invitation Who the invitation is for, shown on the join page
POST /org/{oid}/join The member links their passkey to the membership; the organisation node issues the mandate

GET /org/{oid}/sso/start#

ORG-1 §7.2: send the member to the company's identity provider (OpenID Connect).

Caller anyone
Path oid ([a-z0-9-]+)
Answers 302
Errors 404 not_found, 429 rate_limited, 502 server_error

GET /org/{oid}/sso/callback#

ORG-1 §7.2: the identity provider sends the member back here. The member then gets a 10-minute join ticket, in the fragment of the join link (never sent to a server).

Caller the browser coming back from the identity provider, with the state this node gave it
Path oid ([a-z0-9-]+)
Query code, state
Answers 302
Errors 400 invalid_request, 401 invalid_signature, 404 not_found, 429 rate_limited, 502 server_error

GET /org/{oid}/join#

The page where an invited member links their passkey (HTML).

Caller anyone
Path oid ([a-z0-9-]+)
Answers 200 as text/html
Errors 404 not_found

POST /org/{oid}/join/invitation#

Who the invitation is for, shown on the join page. The token is in the body, never in the URL.

Caller whoever holds the invitation token
Path oid ([a-z0-9-]+)
Body (JSON) token
Answers 200
Errors 404 not_found

POST /org/{oid}/join#

The member links their passkey to the membership; the organisation node issues the mandate.

Caller the invited person (hid), with the invitation token and a fresh passkey tap (assertion)
Path oid ([a-z0-9-]+)
Body (JSON) assertion, hid, token
Answers 200
Errors 401 invalid_signature, 404 not_found, 409 invalid_request

Organisation console#

Operation What it does
GET /org/{oid} The organisation console (HTML)
POST /org/{oid}/api/session Console sign-in with the member's own passkey (ORG-1 §7.1)
POST /org/{oid}/api/session/end End the console session named in X-Console-Session
GET /org/{oid}/api The console's overview: members, rules, grants, usage, events and pending changes, as the role may see them
POST /org/{oid}/api/members Invite a member: creates the record and returns the one-time join link
POST /org/{oid}/api/members/{mid}/remove Remove a member and revoke every grant they gave for the organisation
POST /org/{oid}/api/members/{mid}/console Set a member's console role (ORG-1 §7.1): only an owner makes owners and admins
POST /org/{oid}/api/teams Create or replace a team (a SCIM group; the directory usually owns them)
POST /org/{oid}/api/policy Change the organisation's rules; a change that needs two administrators waits for the second
POST /org/{oid}/api/authority The organisation's authority policy, signed with its key once a second admin agrees
POST /org/{oid}/api/keys/rotate Rotate the organisation's signing key, once a second administrator agrees
POST /org/{oid}/api/changes/{cid}/{what} The second admin's tap applies a pending change; its proposer or any admin may cancel it
POST /org/{oid}/api/revoke Withdraw one approval, or every approval of a vendor, an agent key (key_compromise) or a service, across all members; optionally block the vendor or the service from then on
GET /org/{oid}/events.jsonl The organisation's event log, one JSON object per line
GET /org/{oid}/api/reports Agent inventory, agents unused or near their limits, denials and 'not me'
GET /org/{oid}/api/evidence/{gid} An evidence pack for one grant, checkable offline (tools/check_evidence.py): the grant, the node's statement (its keys), the employer's keys, the approval record, the policy in force, the authority policy, and the log entries with their salts

GET /org/{oid}#

The organisation console (HTML).

Caller anyone
Path oid ([a-z0-9-]+)
Answers 200 as text/html
Errors 404 not_found

POST /org/{oid}/api/session#

Console sign-in with the member's own passkey (ORG-1 §7.1). The session lives 30 minutes, in memory.

Caller a member with a console role (hid), with a fresh passkey tap (assertion)
Path oid ([a-z0-9-]+)
Body (JSON) assertion, hid
Answers 200
Errors 401 invalid_signature, 403 forbidden, 404 not_found, 429 rate_limited

POST /org/{oid}/api/session/end#

End the console session named in X-Console-Session.

Caller the holder of the session (X-Console-Session)
Path oid ([a-z0-9-]+)
Answers 200

GET /org/{oid}/api#

The console's overview: members, rules, grants, usage, events and pending changes, as the role may see them.

Caller a console member (X-Console-Session) with permission read; or the bootstrap token (X-Admin-Token) until an owner or admin has joined
Path oid ([a-z0-9-]+)
Answers 200
Errors 401 invalid_signature, 403 forbidden

POST /org/{oid}/api/members#

Invite a member: creates the record and returns the one-time join link.

Caller a console member (X-Console-Session) with permission members, and a fresh passkey tap at level 2 (assertion); or the bootstrap token (X-Admin-Token) until an owner or admin has joined
Path oid ([a-z0-9-]+)
Body (JSON) assertion, displayName, role, userName
Answers 201
Errors 401 invalid_signature, 403 forbidden, 403 level_insufficient

POST /org/{oid}/api/members/{mid}/remove#

ORG-1 §7.2: remove a member and revoke every grant they gave for the organisation.

Caller a console member (X-Console-Session) with permission members, and a fresh passkey tap at level 2 (assertion); or the bootstrap token (X-Admin-Token) until an owner or admin has joined
Path mid ([A-Za-z0-9_-]+), oid ([a-z0-9-]+)
Body (JSON) assertion
Answers 200
Errors 401 invalid_signature, 403 forbidden, 403 level_insufficient, 404 not_found

POST /org/{oid}/api/members/{mid}/console#

Set a member's console role (ORG-1 §7.1): only an owner makes owners and admins.

Caller a console member (X-Console-Session) with permission members, and a fresh passkey tap at level 2 (assertion); or the bootstrap token (X-Admin-Token) until an owner or admin has joined
Path mid ([A-Za-z0-9_-]+), oid ([a-z0-9-]+)
Body (JSON) assertion, role
Answers 200
Errors 400 invalid_request, 401 invalid_signature, 403 forbidden, 403 level_insufficient, 404 not_found

POST /org/{oid}/api/teams#

Create or replace a team (a SCIM group; the directory usually owns them).

Caller a console member (X-Console-Session) with permission teams, and a fresh passkey tap at level 2 (assertion); or the bootstrap token (X-Admin-Token) until an owner or admin has joined
Path oid ([a-z0-9-]+)
Body (JSON) assertion, displayName, members
Answers 200
Errors 400 invalid_request, 401 invalid_signature, 403 forbidden, 403 level_insufficient

POST /org/{oid}/api/policy#

Change the organisation's rules; a change that needs two administrators waits for the second.

Caller a console member (X-Console-Session) with permission policy, and a fresh passkey tap at level 2 (assertion); or the bootstrap token (X-Admin-Token) until an owner or admin has joined
Path oid ([a-z0-9-]+)
Body (JSON) assertion
Errors 401 invalid_signature, 403 forbidden, 403 level_insufficient

POST /org/{oid}/api/authority#

ABY-1 §5: the organisation's authority policy, signed with its key once a second admin agrees.

Caller a console member (X-Console-Session) with permission policy, and a fresh passkey tap at level 2 (assertion); or the bootstrap token (X-Admin-Token) until an owner or admin has joined
Path oid ([a-z0-9-]+)
Body (JSON) assertion, rules
Errors 401 invalid_signature, 403 forbidden, 403 level_insufficient

POST /org/{oid}/api/keys/rotate#

Rotate the organisation's signing key, once a second administrator agrees.

Caller a console member (X-Console-Session) with permission keys, and a fresh passkey tap at level 2 (assertion); or the bootstrap token (X-Admin-Token) until an owner or admin has joined
Path oid ([a-z0-9-]+)
Body (JSON) assertion
Errors 401 invalid_signature, 403 forbidden, 403 level_insufficient

POST /org/{oid}/api/changes/{cid}/{what}#

The second admin's tap applies a pending change; its proposer or any admin may cancel it.

Caller a console member (X-Console-Session) with permission read, and a fresh passkey tap at level 2 (assertion); or the bootstrap token (X-Admin-Token) until an owner or admin has joined
Path cid ([A-Za-z0-9_-]+), oid ([a-z0-9-]+), what (approve|cancel)
Body (JSON) assertion
Answers 200
Errors 401 invalid_signature, 403 forbidden, 403 level_insufficient, 404 not_found

POST /org/{oid}/api/revoke#

ORG-1 §7.5: withdraw one approval, or every approval of a vendor, an agent key (key_compromise) or a service, across all members; optionally block the vendor or the service from then on.

Caller a console member (X-Console-Session) with permission revoke, and a fresh passkey tap at level 2 (assertion); or the bootstrap token (X-Admin-Token) until an owner or admin has joined
Path oid ([a-z0-9-]+)
Body (JSON) assertion, block, target
Answers 200
Errors 400 invalid_request, 401 invalid_signature, 403 forbidden, 403 level_insufficient, 404 not_found

GET /org/{oid}/events.jsonl#

The organisation's event log, one JSON object per line.

Caller a console member (X-Console-Session) with permission export; or the bootstrap token (X-Admin-Token) until an owner or admin has joined
Path oid ([a-z0-9-]+)
Answers 200 as application/x-ndjson
Errors 401 invalid_signature, 403 forbidden

GET /org/{oid}/api/reports#

ORG-1 §7.3, §7.6: agent inventory, agents unused or near their limits, denials and 'not me'. Last use: the latest approval or rebind the node saw for the agent (services report no use).

Caller a console member (X-Console-Session) with permission read; or the bootstrap token (X-Admin-Token) until an owner or admin has joined
Path oid ([a-z0-9-]+)
Answers 200
Errors 401 invalid_signature, 403 forbidden

GET /org/{oid}/api/evidence/{gid}#

ORG-1 §7.6: an evidence pack for one grant, checkable offline (tools/check_evidence.py): the grant, the node's statement (its keys), the employer's keys, the approval record, the policy in force, the authority policy, and the log entries with their salts. Signed by the organisation.

Caller a console member (X-Console-Session) with permission export; or the bootstrap token (X-Admin-Token) until an owner or admin has joined
Path gid ([0-9A-Z]{26}), oid ([a-z0-9-]+)
Answers 200
Errors 401 invalid_signature, 403 forbidden, 404 not_found

Pages for people#

Operation What it does
GET /coapprove The co-approval page (HTML)
GET /a/{aid} The page where the person approves with a passkey (HTML)
GET /a/app.js The page's script, served as the bundle whose SRI hash is page_hash (OAID-2 §3)
GET /verify/return Where a redirect source (an eID broker, a chip vendor's app) sends the person back
GET /wallet The person's wallet (HTML)

GET /coapprove#

The co-approval page (HTML).

Caller anyone
Answers 200 as text/html

GET /a/{aid}#

AMH-1 §6: the page where the person approves with a passkey (HTML).

Caller anyone
Path aid ([0-9A-Z]{26})
Answers 200 as text/html

GET /a/app.js#

AMH-1 §6 item 12: the page's script, served as the bundle whose SRI hash is page_hash (OAID-2 §3).

Caller anyone
Answers 200 as text/javascript; charset=utf-8

GET /verify/return#

OAID-7 §5: where a redirect source (an eID broker, a chip vendor's app) sends the person back.

Caller anyone
Answers 200 as text/html

GET /wallet#

The person's wallet (HTML).

Caller anyone
Answers 200 as text/html