Documentation
The SabiProfile API, end to end.
Everything an integrator needs: how authentication works, which routes exist, and what the verification pipeline guarantees. Full request and response schemas live in the repository as API_DOCUMENTATION.md.
Four credentials, four jobs
User session
Supabase Auth session cookie or Bearer JWT. Roles come from server-managed app metadata and cannot be set by the caller.
Organization key
X-Sabi-Org-Key header, issued by a super admin to a registered organization in active standing.
Scoped consent key
sbk_live_v1_... token minted by a citizen. HMAC-signed, scoped to categories, with TTL, query quota, recipient binding, and one-click revocation.
Admin master key
X-Sabi-Admin-Key or Bearer matching the deployment's master secret. Rejects default or missing secrets in production.
Endpoint index
Citizen vault
GET /api/v1/vault/credentialsList the caller's vault records
POST /api/v1/vault/credentialsAdd a record to the caller's vault
DELETE /api/v1/vault/credentialsRemove a record from the caller's vault
POST /api/v1/vault/syncEphemeral cloud sync, hash, and on-chain commit
GET /api/v1/vault/keysList scoped keys (summaries only, secrets never re-disclosed)
POST /api/v1/vault/keysMint a scoped consent key
POST /api/v1/vault/keys/revokeRevoke a key the caller owns
GET /api/v1/vault/audit-logCitizen transparency log of vault access
Screening and queries
POST /api/v1/screenScreen one candidate key against a rubric (org key + consent key)
POST /api/v1/vault/queryConsented scoped read of a candidate vault (dual key)
POST /api/v1/enterprise/criteriaManage requirement rubrics
POST /api/v1/enterprise/screen-batchParallel batch screening
Machine to machine
POST /api/v1/m2m/queryScoped candidate query with quota decrement
POST /api/v1/m2m/evaluateMulti-agent evaluation with dual-key authentication
POST /api/v1/m2m/batch-verifyQueued batch verification
GET /api/v1/m2m/webhooksList webhook subscriptions
POST /api/v1/m2m/webhooksSubscribe to key.revoked and tamper events
Government, notary, admin
GET /api/v1/govt/analyticsSovereign node telemetry and revenue share
POST /api/v1/govt/disburseDisburse the 40% sovereign split
POST /api/v1/notary/attestTier 2 legal attestation anchored on-chain
GET /api/v1/admin/orgsOrganization registry (admin key)
GET /api/v1/admin/usersUser registry (admin key)
GET /api/v1/admin/telemetryPlatform telemetry (admin key)
GET /api/v1/admin/configConfiguration vault (admin key)
Verification guarantees
Every screening run starts with an on-chain integrity check. A hash mismatch or a simulated anchor fails the request closed.
Scoped keys enforce their own policy: category scope, expiry, quota, and recipient binding are verified on every call.
The evaluation agent cites only verified record fields. Missing data fails the category; it is never estimated.
Production deployments refuse to start verification without configured signing and admin secrets.