Documentation / API · Agent
Agent decisions: allow, charge, block.
The scoring endpoint tells you how human a request looks. The agent decision endpoint tells you what access costs. Keep the two decisions separate.
Last updated
Decide
POST /api/trace/agent/decide authenticates with the public key. The gateway calls it per request.
{
"path": "/articles/premium",
"method": "GET",
"classification": { "label": "agent", "confidence": 0.9 },
"disclosureHeaders": {
"signature-input": "...",
"signature": "...",
"signature-agent": "...",
"authority": "..."
}
}
| Field | Meaning |
|---|---|
decision | allow, charge, or block. |
reason | Why: human, verified_agent, unlisted_agent, rule, monetization_disabled, and so on. |
trust | none, unresolved_signer, verified_agent, or spoofed_disclosure. |
priceUsd | Non-null only on a charge. |
settlementMode | iou or x402. |
paymentRequired | The x402 challenge, on a charge in x402 mode. |
quota | Plan and included volume state. |
requestId | The join key to the portal. |
IOU vs x402
| Mode | What the agent gets | What you need |
|---|---|---|
iou (default) | A Volance-signed record of a modeled charge. The agent has not signed it; settlement needs payer authorization. | No wallet. Report settlement later. |
x402 | An inline x402 challenge your edge returns with the request. | A configured wallet. A charge with no wallet returns 409. |
Settlement endpoints
POST /api/trace/agent/iou— verify a signed IOU and read its status.GET /api/trace/agent/iou/jwks— IOU signing keys.POST /api/trace/agent/settlement— report a settlement from your gateway.GET/POST /api/trace/agent/config— read or update the agent policy.
No custody, no rake
Funds move from the agent to a facilitator to your wallet. Volance never holds or transmits them and takes no percentage of settled volume. Past the included volume plus grace, or at the billable decision cap (charge/block decisions), charging pauses: charge decisions become allow, block decisions remain block. Free allow decisions do not count toward the cap.
Preview. Dry-run decisions and testnet challenges are available; live production settlement is not generally available. The agent monetization guide covers the full flow.
x402 starter kit
Get the agent decision starter kit.
The endpoint, the trust states, a five-step test plan, and the pitfalls to avoid — in one place.
Prefer to read it now? Open the starter kit without email.
Related
- Agent monetization — the full decision layer
- Portal · Monetize — rules and earnings
- Web Bot Auth — the trust signal
- Errors & limits — 409 and quota failures