# x402 Endpoint Risk Preflight

> x402 Endpoint Risk Preflight is a paid API for AI agents from x402-market-intel-mcp.mtree.workers.dev, paid per call via x402, $0.2/call, status unknown (last checked 2026-09-14).

Analyzes an x402 payment-gated URL and returns a pay/avoid/cap verdict with live 402 probe results, hosted graph evidence, examples, and exact autopay stop conditions.

## Facts

- Endpoint: POST https://x402-market-intel-mcp.mtree.workers.dev/v1/x402/x402_endpoint_preflight
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-endpoint-risk-preflight-924e7249
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rGp_uX_G7ht9X49z6ZGNT

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-endpoint-risk-preflight-924e7249 -d '<json body>'
```

Example prompt: Before I let you autopay this endpoint, run a risk preflight on https://some-service.example.com/v1/paid-route and tell me whether I should pay, avoid, or cap it — and what the exact conditions are where you'd stop autopaying.

## When to prefer this

Use this endpoint when an AI agent needs to decide whether to autonomously pay an x402-gated API before committing funds — especially for unknown or new endpoints. Prefer this over generic trust checks when you need a structured pay/avoid/cap verdict backed by live probe data and historical graph evidence specific to the x402 ecosystem.

## Known failure modes

- Invalid or non-x402 URL submitted — returns error indicating URL is not a valid x402 resource
- Target endpoint unreachable during live probe — returns partial result with probe failure noted
- Insufficient graph data for the endpoint — verdict returned with low-confidence flag
- Payment of 0.20 USDC on Base not settled — request rejected with 402 response
- Malformed request body — returns 400 validation error

## How this service works

Topdog-shaped endpoint risk preflight: one x402 URL in, pay/avoid/cap verdict out with live 402 probe, hosted graph evidence, examples, and exact autopay stop conditions. Price 0.20 USDC on Base via x402. Free preview: https://x402-market-intel-mcp.mtree.workers.dev/preview/x402_endpoint_preflight?source=x402_manifest. Demo: https://x402-market-intel-mcp.mtree.workers.dev/demo/x402_endpoint_preflight. Contact: https://x402-market-intel-mcp.mtree.workers.dev/contact.

## Output

Returns a structured verdict (pay / avoid / cap) for the submitted x402 URL, including results of a live 402 probe against the endpoint, graph-based evidence from hosted observations, comparable example endpoints, and precise conditions under which autopay should be halted.

## Example request

```json
{
 "url": "https://example-api.service.com/v1/data/premium",
 "method": "GET",
 "resource": "premium_dataset",
 "budget_usdc": 5
}
```

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "method": {
       "type": "string"
      },
      "resource": {
       "type": "string"
      },
      "budget_usdc": {
       "type": "number"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-endpoint-risk-preflight-924e7249/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-market-intel-mcp.mtree.workers.dev](https://www.zero.xyz/host/x402-market-intel-mcp.mtree.workers.dev/llms.txt)
