Quickstart: verify in 5 minutes
Health check, then circuit verify with a demo key. Production base URL: https://api.affix-io.com. OpenAPI: /openapi.json.
1. Health check (no key)
curl -s https://api.affix-io.com/api/health
2. Circuit verify (demo key)
curl -s -X POST https://api.affix-io.com/api/demo/circuit-verify \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"proof":"YOUR_PROOF_HEX","requestAttestation":true}'
Request a demo key via Contact or use the sandbox without local setup.
3. Merkle root (public)
curl -s https://api.affix-io.com/api/merkle/root
Node example
const res = await fetch("https://api.affix-io.com/api/health");
const health = await res.json();
console.log(health.status, health.merkle_root);
Python example
import urllib.request, json
with urllib.request.urlopen("https://api.affix-io.com/api/health") as r:
print(json.load(r)["merkle_leaf_count"])
