# Sindri JSON Schema Validator

> Sindri JSON Schema Validator is a paid API for AI agents from x402.outpimp.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Validates a JSON document against a provided JSON Schema using the ajv validator, returning a validity flag and human-readable error messages.

## Facts

- Endpoint: POST https://x402.outpimp.com/jsonSchemaValidate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sindri-json-schema-validator-cd0ecdca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yeRKbnF4_0ioTGFf0Ill9

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 sindri-json-schema-validator-cd0ecdca -d '<json body>'
```

Example prompt: Can you validate this JSON document against my schema and tell me if it's valid, and if not, list exactly what's wrong? Here's my schema: {"type":"object","properties":{"name":{"type":"string"},"age":{"type":"integer"}},"required":["name","age"]} and my document: {"name":"Alice","age":"thirty"}.

## When to prefer this

Choose this endpoint when you need programmatic, standards-compliant JSON Schema validation with human-readable error messages powered by ajv — the industry-standard validator. Ideal for agents validating API payloads, form data, or config files on-the-fly without running local code. Prefer over custom validators when ajv compatibility and clear error messaging matter.

## Known failure modes

- Schema or document exceeds 50KB serialized limit — request rejected
- Malformed or invalid JSON Schema object provided — ajv may throw a parse/compile error
- Missing 'schema' or 'document' fields in request body — returns error
- Document is null or non-JSON — validation fails or errors returned
- Payment not included or insufficient — 402 Payment Required response

## How this service works

Validates a JSON document against a JSON Schema using the industry-standard ajv validator, returning whether it is valid and a list of human-readable error messages if not.

## Output

Returns a validity boolean indicating whether the document conforms to the schema, plus a list of human-readable error messages (each describing the exact field path and constraint violation) when validation fails. If valid, the error list is empty.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "object",
   "description": "A JSON Schema object. Max 50KB serialized."
  },
  "document": {
   "description": "The JSON document to validate against the schema. Max 50KB serialized."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sindri-json-schema-validator-cd0ecdca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.outpimp.com](https://www.zero.xyz/host/x402.outpimp.com/llms.txt)
