Build with verifiable outcomes.
The working reference API protects a local invoice sandbox, collects readback evidence, and emits signed claim decisions. These docs describe what is implemented—not an unbuilt enterprise service.
Local quick start · Identity & auth · Invoice execution · Claims & receipts · Limits
1. Local quick start
Install Python 3.11+ dependencies, start the local demo runner, then open the private workspace or laboratory. The runner generates local-only development secrets, starts the mock provider, and starts the website.
python -m pip install -e '.[test]' python run_website.py # Open http://127.0.0.1:8765
The launcher prints initial local admin credentials only on first initialization. Never publish those credentials or the local provider.
2. Authentication
Human operators use Argon2 password credentials and server-side cookie sessions with CSRF protection. Machine agents use individually issued, revocable bearer tokens in the reference API. These are development controls, not production workload federation.
Authorization: Bearer <private-agent-token> Idempotency-Key: <unique-key-12+-characters>
3. Execute a sandbox invoice
Scope: invoice.create. A deterministic delegated limit is enforced before the provider receives a request.
POST /v1/sandbox/invoices
Content-Type: application/json
{
"tenant": "demo",
"customer": "Example Customer",
"amount_minor": 2350,
"currency": "USD",
"reference": "SAMPLE-001"
}4. Review evidence
GET /v1/claims/{claim_id}
GET /v1/claims/{claim_id}/evidence
GET /v1/claims/{claim_id}/receipts
POST /v1/claims/{claim_id}/recheck
GET /v1/verification-public-keyDecisions include VERIFIED_WITHIN_SCOPE, CONFLICTING_EVIDENCE, INSUFFICIENT_EVIDENCE, PENDING and UNABLE_TO_VERIFY_SOURCE. Old signed receipts are preserved when a later recheck changes the result.
5. Explicit limitations
A matching invoice record in the mock destination is not evidence of payment. Separate write/read credentials do not establish organizational independence. A signed receipt authenticates an assertion under a key model; it does not prove that the underlying statement is true.
Separate the action from the proof.
Authenticated, tenant-scoped identity submits exact action.
Check permitted operations, amount cap and idempotency.
Write to separate mock invoice provider.
Retrieve destination record via different scoped credential.
Assess provenance, source dependence, field correspondence and contradictions.
Return a scoped conclusion with a transparent limitation statement.
Integrated API reference
Once the backend runs locally, the generated OpenAPI reference is accessible to development operators. Do not mistake accessible documentation for a production security review.
You are reading the product guideThe internal machine-readable OpenAPI endpoint remains available at /openapi.json.
Developer resources
Interactive engine →Security & readiness →
Local operator workspace →