# 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_5j5v4uiwahzooxen?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-b25bd3a7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bFwyd3t9M-ciws69XfwJR

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

Example prompt: Can you check whether this JSON document is valid against my schema? The JSON is '{"name":"Alice","age":28}' and the schema requires name to be a string, age to be an integer between 0 and 120, and both fields to be required with no additional properties allowed.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call JSON Schema validation service without spinning up a local validator or managing dependencies. Ideal for agents that need to validate ad-hoc JSON payloads or API responses against schemas at runtime, particularly when the schema includes standard keywords like type, required, enum, pattern, minimum, maximum, minLength, maxLength, and additionalProperties.

## Known failure modes

- JSON document exceeds 64 KiB limit — rejected
- JSON Schema exceeds 16 KiB limit — rejected
- Malformed JSON in either input field — parse error returned
- Unsupported JSON Schema keywords silently ignored
- Schema references ($ref) to external URIs not resolved

## 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 a validation result indicating whether the JSON document conforms to the provided JSON Schema, along with details of any constraint violations such as missing required fields, type mismatches, enum failures, out-of-range values, pattern failures, or unexpected additional properties.

## 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-b25bd3a7/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)
