# JSON Schema Validate

> JSON Schema Validate is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Validates arbitrary JSON data against a JSON Schema (Draft 2020-12), returning a valid/invalid flag and detailed error messages with JSON paths for every violation.

## Facts

- Endpoint: GET https://intel.rallylive.ca/dev/json-schema-validate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-schema-validate-1051a26f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I3HcWUAyup0C2gJfSMHuU

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 json-schema-validate-1051a26f
```

Example prompt: Can you validate this JSON payload against my schema and tell me every error with its exact path? The data is {"name":"","age":-1} and the schema requires name to be a non-empty string and age to be a positive integer.

## When to prefer this

Choose this endpoint when you need JSON Schema validation without wanting to bundle a library like Ajv into your runtime, especially in serverless or constrained environments. It supports a comprehensive set of Draft 2020-12 keywords including format validation (email, URI, date-time), composition keywords (anyOf/oneOf/allOf/not), and returns all errors at once with JSON paths — making it ideal for debugging and automated pipelines rather than just a pass/fail check.

## Known failure modes

- Malformed JSON data or schema causes a parse error response
- Unsupported schema keywords or drafts beyond the listed feature set may be silently ignored
- Very deeply nested or large JSON documents may hit size/time limits
- Network timeout if the service is temporarily unavailable
- Invalid query parameters return an error rather than a validation result

## How this service works

JSON Schema validation without external libraries: validates data against a schema supporting type, required, properties, additionalProperties, items, enum, const, min/max (length, items, properties, numeric, exclusive), pattern, format (email/uri/date-time), uniqueItems, multipleOf, anyOf/oneOf/allOf/not. Returns valid true/false and every error with its JSON path. $0.01 per validation.

## Output

Returns a JSON object with a boolean 'valid' field indicating whether the data conforms to the schema, plus an array of error objects each containing the JSON path of the failing element and a human-readable error message describing the constraint violation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-schema-validate-1051a26f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
