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.

RequestMinimum fields
{
  "path": "/articles/premium",
  "method": "GET",
  "classification": { "label": "agent", "confidence": 0.9 },
  "disclosureHeaders": {
    "signature-input": "...",
    "signature": "...",
    "signature-agent": "...",
    "authority": "..."
  }
}
The fields the decision returns.
FieldMeaning
decisionallow, charge, or block.
reasonWhy: human, verified_agent, unlisted_agent, rule, monetization_disabled, and so on.
trustnone, unresolved_signer, verified_agent, or spoofed_disclosure.
priceUsdNon-null only on a charge.
settlementModeiou or x402.
paymentRequiredThe x402 challenge, on a charge in x402 mode.
quotaPlan and included volume state.
requestIdThe join key to the portal.

IOU vs x402

Both record a charge; only x402 asks the agent to pay inline.
ModeWhat the agent getsWhat 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.
x402An 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.

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