# Tollex x402 Endpoint Inspector

> Tollex x402 Endpoint Inspector is a paid API for AI agents from api.tollex.org, paid per call via x402, $0.0079/call, status unknown (last checked 2026-10-11).

Inspects a URL to determine if it is an x402-compatible paid API endpoint and returns its payment requirements and capability metadata

## Facts

- Endpoint: POST https://api.tollex.org/tools/x402_inspect_endpoint?utm_source=zero.xyz
- Price: $0.0079/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tollex-x402-endpoint-inspector-eb0fb658
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_36s_9fGMs8Iw7oZjAdCKJ

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 tollex-x402-endpoint-inspector-eb0fb658 -d '<json body>'
```

Example prompt: Can you check whether https://merchant.example/v1/quote is an x402-compatible endpoint and tell me what it costs, which tokens it accepts, and which blockchain it runs on?

## When to prefer this

Use this endpoint when you need to programmatically verify whether a specific URL implements the x402 paid-API standard before committing a payment or adding it to an agent's tool policy. It is the right choice when you want machine-readable payment metadata (token type, chain, price) rather than just checking HTTP headers manually. Prefer it over generic HTTP probing when you need a signed, reconcilable inspection receipt for audit or policy compliance.

## Known failure modes

- URL does not support x402 — endpoint returns no 402 payment-required header, inspection reports non-compliance
- Malformed URL input — rejected by pattern validation if scheme is not http/https
- Endpoint unreachable or timeout — network error returned if target host is down
- URL exceeds 2048 character limit — request rejected with validation error
- Endpoint returns ambiguous or malformed x402 headers — payment requirements cannot be reliably parsed

## How this service works

Tollex lets software agents buy APIs and tools under rules you set: it finds a capability that fits, checks your policy before anything is signed, pays with x402 in USDC on Base or USDG on Robinhood Chain, reconciles uncertain payments and returns a signed receipt.

## Output

Returns a structured report on whether the target URL supports the x402 payment protocol, including accepted stablecoins (USDC on Base, USDG on Robinhood Chain), per-call price, supported blockchain networks, payment policy details, and a signed receipt confirming the inspection.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "pattern": "^https?://",
   "examples": [
    "https://merchant.example/v1/quote"
   ],
   "maxLength": 2048
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": {
   "id": "x402_inspect_endpoint",
   "version": "1.0.0",
   "provider": "tollex.robinhood-chain"
  },
  "result": {
   "error": null,
   "accepts": [
    {
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "payTo": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
     "amount": "10000",
     "scheme": "exact",
     "network": "eip155:8453",
     "maxTimeoutSeconds": 300
    }
   ],
   "payable": true,
   "resource": {
    "url": "https://api.example.com/paid"
   },
   "latencyMs": 180,
   "extensions": [
    "bazaar"
   ],
   "httpStatus": 402,
   "acceptsHash": "0x7a3d7400b27830f4f91c2c16a082486d67c1befecaec2f53b33f1f35d5b62036"
  },
  "evidence": [],
  "untrustedOutput": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tollex-x402-endpoint-inspector-eb0fb658/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.tollex.org](https://www.zero.xyz/host/api.tollex.org/llms.txt)
