One route allowed, others denied
Live sandboxApprove an agent, grant one API route, then watch a matching request pass and a different route fail.
Open the demo →One workflow, six steps, on a private sandbox: register a partner organization, approve its AI agent's signing key, grant one API route, deny everything outside it, expire and revoke access, and read the hosted audit trail, including allowed requests recorded as pass_check / authorized. The agent signs each sign-in with its own key, so you don't need a wallet.
This sandbox uses a simulated entitlement (DEMOPASS). The access rule, pass checks, and decision log are the real TOKENLOCK code.
Start here. Complete the quick check to open your private sandbox, then work through the steps below.
Add Partner Co. as an approved organization, with Priya Shah as its administrator. Every key on this site must belong to an approved organization.
The agent signs in with its own key. Because this wallet isn't registered yet, it waits at pending approval — that's the path for unregistered holders. Approve the request and it becomes a registered key owned by Research agent, Partner Co., with no permissions yet, and is active immediately. (A key you register yourself as the admin is also active immediately, with no pending step.)
Allow exactly GET /api/partner/prices in production, for 1 hour. Everything else stays closed.
The partner API checks the agent's pass with the path and method on every hosted request. Paths are matched case-insensitively, so GET /API/partner/PRICES is the same granted route. Each result shows the outcome, for example Allowed (ok) or Denied (route_not_allowed). A different route, a different action, or a rejected path (strict-mode 400 bad_path) is denied with a reason. "Recorded in audit trail" appears only once the matching row (pass_check / authorized or denied) is found in the decision log. A log write can fail while the decision still takes effect, so if the row isn't there yet you'll see "Audit row not found yet" and can recheck.
Expire: fast-forward the key's expiry (or set it to 60 seconds and wait), then call again. Revoke: renew the key, revoke it, and call again. Revocation and expiry are enforced at the next hosted check. This sandbox is hosted verification in strict mode, so the very next call is denied (no cache window).
The latest-decision panel on the right stays visible as you go. The full audit trail below lists hosted decisions in this sandbox: sign-in events, successful resource checks as pass_check / authorized (reason ok, with the resource, method, and correlation id), and denied hosted checks with the same fields. Export the decisions for your SIEM or auditors. Administrative actions (approval, permission changes, revocation) are in the Admin actions table and have their own export. Locally cached SDK or PHP decisions and self-verify decisions are not hosted-logged. In strict mode, registered-key checks reach the hosted API on every protected request. The service attempts to log each decision, and a logging failure does not block access.
No decisions yet. Start with step 1.
No organization yet.
No registered key yet.
None yet.
No decisions yet.
The agent's signing key is a demo key held by our server for your session only. It holds no funds and only signs plain-text sign-in messages; nothing is sent on Bitcoin. Demo data is deleted after 2 hours. This walkthrough does not demonstrate holdings-freshness settings (require_fresh_holdings) or site soft-delete; those are documented in the enterprise docs. A token proves a signed claim, not legal ownership. Read the docs · TOKENLOCK · Holder sign-in demo
The walkthrough above, drawn as two small diagrams.
Approve an agent, grant one API route, then watch a matching request pass and a different route fail.
Open the demo →When the agreement ends, the key is revoked. The next hosted check on that same route is denied, and the audit trail records it.
See the audit trail →