# x402 Risk Gate Scan

> x402 Risk Gate Scan is a paid API for AI agents from x402-agent-suite-production.up.railway.app, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-14).

Scans an HTTP request through a risk gate to determine whether it should be allowed or blocked, returning a boolean decision and summary after x402 micropayment settlement.

## Facts

- Endpoint: POST https://x402-agent-suite-production.up.railway.app/api/risk-gate/scan
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-risk-gate-scan-95de4452
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KcvgV9dOJpqSxC7DhhHRI

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-risk-gate-scan-95de4452 -d '<json body>'
```

Example prompt: Before my agent fires that DELETE request, run it through the risk gate and tell me whether it's allowed — the request type is HTTP and method is DELETE.

## When to prefer this

Use this endpoint when you need a lightweight, per-request risk gate check on specific HTTP methods (GET, HEAD, DELETE) within an AI agent pipeline and want a simple boolean allow/block decision with a summary. Prefer it over heavier policy engines when you need fast, pay-per-call risk screening without maintaining standing infrastructure.

## Known failure modes

- Payment not settled via x402 — endpoint returns 402 Payment Required before scan executes
- Invalid or missing 'type' field (must be 'http') — schema validation error
- Method not in allowed enum (GET, HEAD, DELETE) — rejected at input validation
- Malformed request body — returns error without scan result
- Service downtime on Railway hosting — 5xx response

## How this service works

24 paid x402 infrastructure APIs for AI agent fleets: buy advisor, audition coach, guard, proxy, MPP, attestations, and pipeline orchestration.

## Output

Returns a JSON object with three fields: 'ok' (boolean, whether the scan completed successfully), 'allowed' (boolean, whether the request should be permitted to proceed), and 'summary' (string, a human-readable explanation of the risk 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-risk-gate-scan-95de4452/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-suite-production.up.railway.app](https://www.zero.xyz/host/x402-agent-suite-production.up.railway.app/llms.txt)
