# ForgeMesh x402 Endpoint Scanner

> ForgeMesh x402 Endpoint Scanner is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-13).

Health-checks an x402 endpoint URL to verify it returns a valid 402 payment challenge, inspects the envelope format, and reports payment acceptance details and protocol compliance.

## Facts

- Endpoint: POST https://x402.forgemesh.io/x402-endpoint-scan
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-x402-endpoint-scanner-c75d8e04
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B9GtBpKP-GqDVzlnd42Ts

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 forgemesh-x402-endpoint-scanner-c75d8e04 -d '<json body>'
```

Example prompt: Can you scan the x402 endpoint at https://library.forgemesh.io/business-management and tell me if it's properly configured — what grade it gets, whether the 402 envelope is valid, and what payment assets it accepts?

## When to prefer this

Use this endpoint when you need to programmatically verify that an x402-gated API is correctly configured and reachable before integrating it into an agent workflow, when debugging payment protocol issues, or when auditing a catalog of x402 endpoints for compliance. Prefer this over manual inspection when you need structured output including payment asset details, envelope validity, and dual-stack MPP support in a single call.

## Known failure modes

- Target URL is unreachable — reachable: false, no envelope data returned
- URL is reachable but returns no 402 challenge — is_402: false, grade degraded
- Malformed x402 envelope detected — envelope_valid: false, envelope_errors populated
- Input URL missing or malformed — 400 bad request before scan attempt
- Payment challenge (402) required to call this scanner itself — agent must pay 0.05 USDC on Base first

## How this service works

x402 utility APIs for AI agents: documents/OCR, PDFs, vision, audio, embeddings, web extraction, dictionary and slang lookups, games, chess/legal-move logic, math, conversions, time utilities, market and economic data, space/geo data, domain vetting, content-signal checks, and x402 ecosystem intelligence. Agents POST JSON, receive a 402 challenge, pay USDC on Base, and retry for the result.

## Output

Returns a JSON object containing: a letter grade (e.g. A), reachability boolean, HTTP status code, x402 envelope location (header/body), envelope validity flag, MPP dual-stack flag, list of accepted payment assets with amounts and payTo addresses, array of compliance findings, array of envelope errors, and response time in milliseconds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "x402 endpoint URL to health-check, e.g. https://x402.example.com/some-route"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://library.forgemesh.io/business-management",
  "grade": "A",
  "is_402": true,
  "findings": [
   "Valid x402 v2 envelope found in the header.",
   "WWW-Authenticate: Payment header also present — this endpoint speaks both x402 and MPP dual-stack, reaching agents on either payment stack."
  ],
  "reachable": true,
  "http_status": 402,
  "method_used": "GET",
  "x402_envelope": "header",
  "envelope_valid": true,
  "mpp_dual_stack": true,
  "accepts_summary": [
   {
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "payTo": "0x85df5380DEbe236AD6BF49dE788243924B080267",
    "amount": "3000",
    "scheme": "exact",
    "network": "eip155:8453"
   }
  ],
  "envelope_errors": [],
  "response_time_ms": 214
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-x402-endpoint-scanner-c75d8e04/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
