# AgentResolver JSON Schema Validator

> AgentResolver JSON Schema Validator is a paid API for AI agents from agentresolver.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-18).

Validates a JSON data string against a provided JSON Schema and returns a boolean result with detailed validation errors

## Facts

- Endpoint: POST https://agentresolver.vercel.app/api/json-schema-validate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentresolver-json-schema-validator-edb96427
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WzFUonVzyTqIF4BNe_WuT

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 agentresolver-json-schema-validator-edb96427 -d '<json body>'
```

Example prompt: Can you validate this JSON string against my schema and tell me exactly which fields are failing and why: the JSON is '{"name": 123, "age": "old"}' and the schema requires name to be a string and age to be an integer?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call JSON Schema validation service without setting up your own validation infrastructure. Ideal for AI agents doing data quality checks, pre-flight validation of generated or received JSON, or debugging schema compliance issues at runtime. Prefer this over embedding a local JSON Schema library when operating in a serverless or agent environment without native validation libraries.

## Known failure modes

- Invalid or unparseable JSON string in 'data' field returns validation failure or 400 error
- Malformed schema object causes schema parsing failure
- Missing required 'data' or 'schema' fields returns error response
- Extremely large JSON payloads may time out or be rejected
- Schema references external $ref URIs that are unreachable may cause schema resolution failures

## How this service works

Verify an x402 endpoint before paying: live payTo, USDC quote, network, asset, resource binding, TLS and endpoint safety for $0.001 on Base or Solana.

## Output

Returns a JSON object with a boolean 'valid' field indicating overall pass/fail, an integer 'errorCount', and an 'errors' array where each item includes the JSON path where the error occurred, the JSON Schema keyword that was violated (e.g. 'type', 'required', 'minLength'), and a human-readable error message.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentresolver-json-schema-validator-edb96427/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentresolver.vercel.app](https://www.zero.xyz/host/agentresolver.vercel.app/llms.txt)
