# JSON Schema Validate Lite

> JSON Schema Validate Lite is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Validates a JSON instance object against a lightweight schema, checking required keys and types, returning deterministic ok/errors output.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-schema-validate-lite
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-schema-validate-lite-8e4684c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ds0S6V9s8jJxqIBsvvVIK

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-lite-8e4684c1 -d '<json body>'
```

Example prompt: Check whether this JSON object has all required keys and correct types according to my schema — the object is {"name":"Alice","age":"thirty"} and the schema requires name as string and age as integer.

## When to prefer this

Choose this endpoint when you need a fast, deterministic, zero-dependency preflight check on a JSON object's required keys and primitive types — especially inside an agent pipeline that doesn't have access to a full jsonschema engine. Ideal for agent-generated payload validation before downstream API calls, or for quickly checking config objects and API responses at low cost ($0.001 USDC). Not suitable for complex JSON Schema features like pattern matching, conditionals, or deep nested validation.

## Known failure modes

- Missing 'schema' or 'instance' field in request body returns an error
- Schema uses unsupported JSON Schema keywords beyond key presence and type checks (only lite subset supported)
- Deeply nested or array-type validation may not be fully supported
- Payment not provided or insufficient USDC results in x402 payment-required response
- Malformed JSON in request body causes parse error

## How this service works

Lite validate object required keys and types vs a tiny schema. Call when agent preflight without full jsonschema engines. Returns ok and errors as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a deterministic JSON response indicating whether validation passed (ok: true) or failed (ok: false), along with a list of specific errors describing missing required keys or type mismatches for each failing field.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "object",
   "description": "Lite JSON schema object"
  },
  "instance": {
   "type": "object",
   "description": "JSON instance object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "errors": [],
  "schema": "delx/util-json-schema-validate-lite/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-schema-validate-lite-8e4684c1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
