Docs.

API reference, SDK methods, integration guides, and examples. Phase 1 runs against a local gateway with placeholder Groth16 proofs. Sepolia deployment lands in Phase 2.

Full protocol details: read the whitepaper →

POST
/zkpay/intent

Create a payment intent with policy manifest. Returns intent ID, commitment hash, and deadline.

GET
/zkpay/intent/:id

Retrieve the current status and details of a payment intent.

POST
/zkpay/verify

Verify a settlement proof. Marks intent as settled and checks nullifier anti-replay.

POST
/zkattest/commit

Register a commitment for a claim (credit band, KYC bool, score range). Returns commitment ID and nullifier.

POST
/zkattest/verify

Verify a Groth16 proof against a registered commitment. Returns verification result.

GET
/zkattest/:id

Retrieve the status and metadata of an attestation.

GET
/health

API health check. Returns version, uptime, and target chain.

Quickstart.

Step 1 — Request API access
# Phase 1: request an API key via email.
# The SDK + gateway repo will be open-sourced in Phase 2.
mailto:zkagentcloak@gmail.com
Step 2 — Configure the client
// Base URL and API key from your access email.
const GATEWAY = 'https://api.agent-cloak.com';
const API_KEY = process.env.CLOAK_API_KEY;
Step 3 — Create a payment intent
const res = await fetch(`${GATEWAY}/zkpay/intent`, {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': `Bearer ${API_KEY}`,
  },
  body: JSON.stringify({ from, to, amount, chainId, policy }),
});
const intent = await res.json();