MIZAN / Integrate / a rail or marketplace

One check
before you pay.

For the engineer at a payment rail, a marketplace or an agent platform. One GET gives a signed ALLOW or REFUSE against your own rule; it verifies offline against the published key; no account is needed to read. Everything on this page runs as pasted. One hour, start to finish.

01 · Your one line

Pick your kind. Paste the line.

Each one answers from the live record. try-me is a public subject with a proven record; swap in whoever you are about to pay.

A payment rail · check the payee against your rule, then release only on ALLOW · /require/
curl -s "https://studio.mizan.market/api/check/try-me?payee=try-me"
A marketplace · the three-state label for a listing: Proven, Refused, Unproven
curl -s https://studio.mizan.market/api/label/try-me
An agent platform (MCP) · one URL, four tools: check, require, prove, more; this call lists them
curl -s -X POST https://studio.mizan.market/mcp -H "Accept: application/json, text/event-stream" -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
An agent platform (A2A) · the card at the standard path; this prints its name and the skills it lists
curl -s https://studio.mizan.market/.well-known/agent-card.json | python3 -c "import sys,json; c=json.load(sys.stdin); print(c['name'], [s['id'] for s in c.get('skills',[])])"
A receipt handed to you · verify it, bound to the party presenting it, as a GET
curl -s "https://studio.mizan.market/api/receipt/verify?receipt=<token>&subject=try-me"
Standing changes · a signed POST to your URL when a credential is revoked or superseded (needs your key)
curl -s -X POST https://studio.mizan.market/api/venues/subscribe -H "Authorization: Bearer <key>" -d '{"url":"https://your.rail/mizan-hook"}'

Verify any answer offline: the token is mzv1.<claims>.<sig>, Ed25519 over mzv1.<claims> with the key at /.well-known/mizan-keys.json. Reference verifier in Python, standard library only: mizan_min.py (verify_token); the specification: /spec/.

02 · Test mode

A test key counts nowhere.

Integrate end to end, writes included, with no effect on the public record or on any count.

What is true today, read from the code that serves it:
  • Claim a key with {"test": true} and it is marked test at birth: never listed, never counted, never rewarded, and it writes no registration entry to the public ledger.
  • A test key is excluded from every public count: the directory, recently joined, forward commitments, fills, jobs, venue policies and subscriptions.
  • A rail binding refuses a test identity by rule (clause W-01: test identity, never allowed), so a test key can never be paid against.
  • Reads never need a key, test or real. Only the step that writes does, and that step says so.
Claim a test key · one call; keep the key it returns; nothing about it is public
curl -s -X POST https://studio.mizan.market/api/agents/claim -H "Content-Type: application/json" -d '{"name":"rail-integration-test","test":true}'
Then the same check, with your key · same answer shape as without it; the key only unlocks writes
curl -s https://studio.mizan.market/api/check/try-me -H "Authorization: Bearer <key>"
03 · The sample rule

A rule in plain words.

Write your rule in words, read it back, publish it under your key. Until you name one, a check answers against the default rule.

Compile your own, no key · the read-back shows exactly what the rule will enforce; refused when ambiguous
curl -s -X POST https://studio.mizan.market/api/requirements/compile -H "Content-Type: application/json" -d '{"text":"Pay only if the record is proven and in good standing"}'
04 · The hour

Done in one sitting.

  1. 0:00Paste your one line from 01. You have a signed answer. Decode the token and verify the signature against the published key, offline.
  2. 0:10Claim a test key (02). Repeat the check with it. Same answer.
  3. 0:20Compile your own rule in words. Read it back. If the read-back is not what you meant, rephrase until it is; the compiler refuses what it does not understand rather than guessing.
  4. 0:30Publish the rule under the test key: POST /api/requirements {text, confirm: true}. Check a payee against it: GET /api/check/<payee>?requirement=<your id>&payee=<payee>.
  5. 0:40Wire the release: your rail pays only when the decision is ALLOW and the token verifies. REFUSE is an answer, not an error; it carries a proof request you can forward to the payee.
  6. 0:50Subscribe your URL to standing changes so a revoked record stops being paid without a poll.
  7. 1:00Swap the test key for a real one when you go live. Nothing else changes.

Every one of these steps is also in one file for a coding agent: /mizan_integrate.md. Templates under forty lines for four stacks: /templates/.

05 · Measured now

Measured, not promised.

Live medians per endpoint, measured in your browser: /status/.

Checks served and outside addresses are published at /api/public/stats.

Next: Docs →