# CAPI2 Agent Commerce – x402 Route Audit

> CAPI2 Agent Commerce – x402 Route Audit is a paid API for AI agents from capi2-agent-commerce.vandurmedries.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-15).

Performs programmable authority checks and generates tamper-evident audit receipts for x402-protected routes, verifying whether a given URL and HTTP method are correctly gated behind x402 payment requirements.

## Facts

- Endpoint: POST https://capi2-agent-commerce.vandurmedries.workers.dev/v1/x402-route-audit
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/capi2-agent-commerce-x402-route-audit-c396e6d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pOAaK_Sq_ZeafPoJ8SZ-I

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability capi2-agent-commerce-x402-route-audit-c396e6d2 -d '<json body>'
```

Example prompt: Can you audit the x402 payment gating on https://api.example.com/premium-data for a GET request and tell me if it returns a 402 with valid payment options?

## When to prefer this

Choose this endpoint when you need to programmatically verify that a specific URL and HTTP method are correctly protected by x402 payment gating before an autonomous agent attempts to pay and call it. It is the right choice for pre-flight compliance checks, debugging payment wall misconfigurations, or generating tamper-evident audit receipts of route authority checks in agent-commerce workflows.

## Known failure modes

- Invalid or unreachable URL returns an error or empty findings
- Unsupported HTTP method outside GET/POST causes schema validation failure
- Route not implementing x402 may return unexpected verdict or non-402 status code
- Network timeouts on the target URL result in inconclusive audit
- Malformed URI input rejected by format validation

## How this service works

Programmable authority checks and tamper-evident receipts for autonomous agents, sold through sustainable x402 commerce.

## Output

A JSON object containing a verdict (e.g. 'ready'), a list of findings (issues or observations), the HTTP status code returned by the audited route, the x402 protocol version detected, and the number of payment options advertised. This acts as a tamper-evident audit receipt for the route check.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri"
  },
  "method": {
   "enum": [
    "GET",
    "POST"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "verdict": "ready",
  "findings": [],
  "status_code": 402,
  "x402_version": 2,
  "payment_options": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/capi2-agent-commerce-x402-route-audit-c396e6d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from capi2-agent-commerce.vandurmedries.workers.dev](https://www.zero.xyz/host/capi2-agent-commerce.vandurmedries.workers.dev/llms.txt)
