# centralcity.ai JSON Schema Validator

> centralcity.ai JSON Schema Validator is a paid API for AI agents from centralcity.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-19).

Validates a JSON document against a provided JSON Schema, checking types, properties, constraints, and structure.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_ygyfaoxvpd24ubvn?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/centralcity-ai-json-schema-validator-fbc0a265
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q0K2JEQQAon2WB7ICreRr

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 centralcity-ai-json-schema-validator-fbc0a265 -d '<json body>'
```

Example prompt: Can you check whether this JSON document conforms to my schema? The JSON is '{"name":"Alice","age":30}' and the schema requires name to be a string and age to be an integer with a minimum of 0.

## When to prefer this

Choose this endpoint when you need deterministic, schema-driven validation of a JSON document against a formal JSON Schema definition — especially when you need to check types, required fields, enums, numeric bounds, string patterns, or structural constraints. Prefer this over ad-hoc LLM-based validation when precision and reproducibility matter, such as validating API payloads, config files, or user submissions before processing.

## Known failure modes

- JSON document exceeds 64 KiB limit — rejected
- JSON Schema exceeds 16 KiB limit — rejected
- Malformed JSON in the document or schema fields — parse error returned
- Unsupported JSON Schema keywords beyond the listed set — may be ignored or cause unexpected results
- Missing required 'json' or 'schema' fields in the request body

## How this service works

Checks a JSON document against a JSON Schema (type, properties, required, items, enum, const, minimum, maximum, minLength, maxLength, pattern, additionalProperties).

## Output

Returns whether the JSON document is valid against the given schema, and if not, details about which fields or values failed validation, including the location of the error and the nature of the constraint violation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json": {
   "type": "string",
   "description": "The JSON document, at most 64 KiB."
  },
  "schema": {
   "type": "string",
   "description": "The JSON Schema as JSON text, at most 16 KiB."
  }
 }
}
```

## More

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