# x402 Micro Pay — JSON Schema Validate

> x402 Micro Pay — JSON Schema Validate is a paid API for AI agents from x402-micro-pay.com, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-14).

Validates an HTTP request body or payload against a JSON Schema definition, returning a pass/fail result.

## Facts

- Endpoint: POST https://x402-micro-pay.com/api/skills/json-schema-validate?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-micro-pay-json-schema-validate-7506e4d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5OLj73JjjXkiAQZWPf5NB

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-micro-pay-json-schema-validate-7506e4d0 -d '<json body>'
```

Example prompt: Can you validate this HTTP POST request body against a JSON schema for me? The request is of type http, method POST, and the body is {"name": "Alice", "age": 30} — I need to know if it passes schema validation.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call JSON Schema validation microservice accessible to AI agents without standing up your own validation infrastructure. Particularly useful in agentic workflows where you want to validate HTTP request payloads on the fly before dispatching them, or when building pipelines that need schema compliance checks with micropayment billing via x402 + Stripe rails rather than a subscription model.

## Known failure modes

- Missing required `input` field returns a 400-level error
- Invalid or malformed JSON body causes parsing failure
- Unsupported `type` value (must be 'http') returns an error
- Schema mismatch detected returns ok: false with error details
- Payment failure via x402/Stripe rails blocks the request (402 response)
- Omitting required `method` field causes validation to fail immediately

## How this service works

Agent-ready microservices with x402 + Stripe rails, volume primitives, tutorials, and applet UI.

## Output

Returns a JSON object with an `ok` boolean indicating whether the provided HTTP request body/payload is valid according to the JSON schema, along with the validated path (e.g. `{"ok": true, "path": "/api/skills/json-schema-validate"}`). On validation failure, the response may include error details about which fields failed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "object"
  },
  "instance": {}
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "path": "/api/skills/json-schema-validate"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-micro-pay-json-schema-validate-7506e4d0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-micro-pay.com](https://www.zero.xyz/host/x402-micro-pay.com/llms.txt)
