# x402 Utils – JSON Schema Validator

> x402 Utils – JSON Schema Validator is a paid API for AI agents from qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Validates a JSON value against a JSON Schema (draft-07/2019-09) and returns a detailed list of all validation errors with their paths, using RE2-safe pattern matching.

## Facts

- Endpoint: POST https://qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws/v1/json-schema?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-utils-json-schema-validator-44de7b84
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hEDF5917Wwbuk6tb1tTMO

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-utils-json-schema-validator-44de7b84 -d '<json body>'
```

Example prompt: Can you check if this JSON object is valid against my JSON Schema and list every error with its path? Here's the data: {"name": "Alice", "age": "thirty"} and the schema requires 'name' to be a string and 'age' to be an integer.

## When to prefer this

Choose this endpoint when you need fast, safe, server-side JSON Schema validation with full error reporting and RE2-safe pattern evaluation — especially useful in agentic pipelines where you need to validate API payloads, config files, or user input against a schema before passing data downstream. Prefer it over client-side validators when you want consistent, sandboxed validation without dependency on a local library, or when your schema uses email, uri, or date-time format keywords that require format validation support.

## Known failure modes

- Invalid or malformed JSON Schema provided — may return a schema parsing error
- Data field missing entirely — validation may fail or return unexpected results
- Schema references external $ref URIs — remote refs may not be resolved
- Regex patterns in schema that are RE2-incompatible are silently safe but may not behave as expected in other validators
- Network timeout on the Lambda endpoint under cold-start conditions
- Payment of $0.001 USDC not fulfilled — request rejected with 402 status

## How this service works

Validate a JSON value against a JSON Schema (draft-07 and 2019-09 keywords, formats such as email, uri, date-time) and list every error with its path. Patterns run on RE2, so a schema cannot stall the check.

## Output

Returns a structured result indicating whether the JSON value is valid against the provided schema, and if not, a list of all validation errors each with the JSON path to the failing field and a human-readable error message describing the constraint violation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "description": "the JSON value to check"
  },
  "schema": {
   "type": "object",
   "description": "the JSON Schema"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-utils-json-schema-validator-44de7b84/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws](https://www.zero.xyz/host/qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws/llms.txt)
