# Agentics JSON Schema Validator

> Agentics JSON Schema Validator is a paid API for AI agents from x402rail.net, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Validates a JSON value against a provided JSON Schema (draft 2020-12 / draft-07) and returns detailed validation errors

## Facts

- Endpoint: POST https://x402rail.net/v1/validate
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentics-json-schema-validator-086bf840
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gkiYzFU6P4R00KoU9EJJ9

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 agentics-json-schema-validator-086bf840 -d '<json body>'
```

Example prompt: Can you check whether this object {"name": "Alice", "email": "not-an-email", "age": -1} is valid against this JSON Schema: {"type": "object", "properties": {"name": {"type": "string"}, "email": {"type": "string", "format": "email"}, "age": {"type": "integer", "minimum": 0}}, "required": ["name", "email"]} — and list any errors?

## When to prefer this

Choose this endpoint when an AI agent needs correctness-critical, paid-for validation with guaranteed JSON Schema draft-07/2020-12 support and detailed per-field error reporting. Particularly useful when you need reliable validation as part of an autonomous workflow where schema conformance must be verified before downstream actions, and when the safety guarantee of rejecting invalid schemas before payment settlement is important.

## Known failure modes

- Invalid JSON Schema provided — rejected with HTTP 422 before payment, no charge incurred
- Malformed request body — missing required 'value' or 'schema' fields
- Network timeout or service unavailability
- Payment failure via x402 protocol if USDC balance is insufficient
- Schema uses unsupported draft features beyond draft-2020-12/draft-07 compatibility

## How this service works

Correctness-critical services for autonomous AI agents

## Output

Returns a JSON object with a boolean 'valid' field, an 'errors' array (each error includes a JSON pointer path, the failing keyword, and a human-readable message), and an 'errorCount' integer. If valid, errors is empty and errorCount is 0. If the provided schema itself is malformed, the request is rejected with 422 before payment is settled.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "description": "The JSON value to validate against `schema` (any JSON type: object, array, string, number, boolean, null)."
  },
  "schema": {
   "type": "object",
   "description": "The JSON Schema to validate against (draft 2020-12 / draft-07 compatible). An invalid schema is rejected with 422 before settlement.",
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": false,
  "errors": [
   {
    "path": "/email",
    "keyword": "format",
    "message": "must match format \"email\""
   }
  ],
  "errorCount": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentics-json-schema-validator-086bf840/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402rail.net](https://www.zero.xyz/host/x402rail.net/llms.txt)
