# code402 Gateway x402 Probe

> code402 Gateway x402 Probe is a paid API for AI agents from gateway.code402.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Probes and validates an x402-compatible payment endpoint, verifying it responds with a proper HTTP 402 payment-required flow over USDC before an agent commits to paying.

## Facts

- Endpoint: POST https://gateway.code402.dev/api/x402-probe
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/code402-gateway-x402-probe-73c1e49c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_twRldbZTxg-yr-qHd_Vh9

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 code402-gateway-x402-probe-73c1e49c -d '<json body>'
```

Example prompt: Before we pay, can you probe the x402 endpoint at https://api.example.com/data to check that it's properly set up for USDC micropayments and tell me how much it costs per call and which wallet receives the payment?

## When to prefer this

Use this endpoint when an AI agent needs to pre-validate an x402-gated API before committing funds — especially useful before first-time calls to unfamiliar endpoints, when auditing new marketplace listings, or when comparing payment terms across multiple code402 services. Prefer this over blind payment attempts when wallet conservation or compliance verification matters.

## Known failure modes

- Target endpoint does not respond with HTTP 402 — returns non-compliant status
- Target URL is unreachable or times out — network error returned
- Endpoint returns 402 but with malformed or missing payment details — partial compliance warning
- Invalid or unsupported payment token specified — validation fails
- Probe itself returns 402 because the $0.005 USDC probe fee was not paid — requires agent to have funded wallet

## How this service works

Machine-payable APIs over x402 (HTTP 402 + USDC) on the open M2M/1 protocol. Non-custodial: payments settle direct to seller wallets.

## Output

Returns the x402 compliance status of the target endpoint, including whether it returns a valid HTTP 402 response, the accepted payment methods (USDC network and amount), the seller's non-custodial wallet address, and the price per call — giving an agent all the information needed to decide whether and how to pay.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/code402-gateway-x402-probe-73c1e49c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.code402.dev](https://www.zero.xyz/host/gateway.code402.dev/llms.txt)
