# x402 Trust Layer API Router

> x402 Trust Layer API Router is a paid API for AI agents from x402trustlayer.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-13).

Routes HTTP requests through x402 trust infrastructure, enforcing guard, compliance, and mandate checks with USDC micropayment settlement.

## Facts

- Endpoint: POST https://x402trustlayer.xyz/api/router/route?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-trust-layer-api-router-89b01282
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6xUS4_KbCHdADd7ox2FHN

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 x402-trust-layer-api-router-89b01282 -d '<json body>'
```

Example prompt: Route this GET request through the x402 trust layer and tell me whether it's allowed — I need to know if my API call passes the mandate compliance and guard checks after the USDC payment settles.

## When to prefer this

Use this endpoint when you need to enforce x402 trust infrastructure controls — including guard checks, mandate compliance, and certified seller verification — on outbound HTTP requests (GET, HEAD, DELETE) with USDC micropayment settlement. Prefer this over generic API gateways when your workflow requires blockchain-anchored mandate diffs, KYM (Know Your Mandate), or semantic escrow verification.

## Known failure modes

- Payment not settled — request blocked with allowed: false
- Invalid HTTP method (only GET, HEAD, DELETE supported) — schema validation error
- Mandate check failure — allowed: false with explanation in summary
- Compliance violation detected — request rejected with summary detail
- Network or facilitator unavailability — timeout or 5xx error
- Insufficient USDC balance for $0.02 per-call fee — payment failure

## How this service works

68 paid x402 trust infrastructure APIs: guard, semantic escrow, mandate diff, certified seller network, KYM, mandates, compliance, disputes, and orchestration.

## Output

Returns a JSON object with 'ok' (boolean indicating success), 'allowed' (boolean indicating whether the request is permitted after x402 settlement), and 'summary' (a human-readable explanation of the routing decision).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "allowed",
      "summary"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "allowed": {
       "type": "boolean"
      },
      "summary": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "allowed": true,
  "summary": "Paid response after x402 settlement"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-trust-layer-api-router-89b01282/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402trustlayer.xyz](https://www.zero.xyz/host/x402trustlayer.xyz/llms.txt)
