# 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 JSON Schema, checking type, properties, required fields, items, enum, const, min/max, length, pattern, and additionalProperties constraints.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_btlqpej3n73wietz?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-0c48a1b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VB5aoyluIONADQ5XC7iqy

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-0c48a1b9 -d '<json body>'
```

Example prompt: Can you check whether this JSON document conforms to my schema? Here's the JSON: {"name":"Alice","age":30} and the schema: {"type":"object","properties":{"name":{"type":"string"},"age":{"type":"integer","minimum":0}},"required":["name","age"]}.

## When to prefer this

Choose this endpoint when you need programmatic, deterministic JSON Schema validation without spinning up a local validator library. Ideal for agents that receive arbitrary JSON payloads and need to verify conformance to a known schema before processing, storing, or forwarding the data. Particularly useful for lightweight serverless pipelines where adding a validation dependency is impractical.

## Known failure modes

- JSON document exceeds 64 KiB limit — rejected
- JSON Schema exceeds 16 KiB limit — rejected
- Malformed JSON in either field — parse error returned
- Unsupported JSON Schema keywords silently ignored or errored
- Payment failure due to insufficient USDC balance

## 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, along with details of any violations such as which properties failed, which constraints were broken (type mismatch, missing required field, value out of range, pattern mismatch, etc.), and their locations within the document.

## 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-0c48a1b9/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)
