# x402 Endpoint Inspector

> x402 Endpoint Inspector is a paid API for AI agents from agentbodega.store, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Inspects an x402-payable API endpoint to report its HTTP status, discovery metadata quality, OpenAPI availability, and payment requirements.

## Facts

- Endpoint: POST https://agentbodega.store/api/inspect/x402?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-endpoint-inspector-812ba9b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AlGqkfvtl0qpG-NMrycYZ

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-inspector-812ba9b1 -d '<json body>'
```

Example prompt: Can you inspect the endpoint at https://example.com/api/myservice and tell me whether it supports x402, has a valid OpenAPI spec, and what its metadata quality score is?

## When to prefer this

Use this endpoint when you need to programmatically audit whether a specific API endpoint correctly implements the x402 payment protocol, exposes an OpenAPI spec, and has sufficient metadata quality for agent discovery. Prefer this over manual inspection when building pipelines that vet new x402 APIs before integrating them, or when checking launch readiness of endpoints you have built.

## Known failure modes

- Target endpoint is unreachable or times out — inspector may return a non-200 status and partial discovery results
- Target URL is malformed or missing — request will fail with a validation error
- Target endpoint does not implement x402 — x402 discovery status will be non-200
- OpenAPI spec is absent or malformed — openapi status field will reflect non-200
- Inspector itself requires $0.005 USDC payment via x402 — unpaid calls return HTTP 402

## How this service works

Inspect a URL for x402 payment challenges, payable metadata, discovery links, OpenAPI, MCP, Agent Skills, and Bazaar-readiness signals.

## Output

Returns a JSON object containing the HTTP status of the inspected endpoint, the x402 discovery status (HTTP status code), the OpenAPI discovery status (HTTP status code), a metadata quality score (0-100), and a boolean indicating whether payment is required.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "fields": [
      {
       "name": "url",
       "type": "string",
       "required": true
      },
      {
       "name": "method",
       "type": "string",
       "required": false
      },
      {
       "name": "headers",
       "type": "object",
       "required": false
      },
      {
       "name": "body",
       "type": "object",
       "required": false
      },
      {
       "name": "timeoutMs",
       "type": "integer",
       "required": false
      }
     ],
     "required": [
      "url"
     ],
     "fieldCount": 5,
     "contentType": "application/json",
     "optionalPreview": [
      "method",
      "headers",
      "body",
      "timeoutMs"
     ],
     "omittedFieldCount": 0
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": 402,
  "discovery": {
   "x402": {
    "status": 200
   },
   "openapi": {
    "status": 200
   }
  },
  "metadataQuality": {
   "score": 100
  },
  "paymentRequired": true
 }
}
```

## More

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