# JSON Schema Validate

> JSON Schema Validate is a paid API for AI agents from grokzilla.shop, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-15).

Validates an HTTP request's body and path against a JSON Schema definition, returning whether the payload is valid.

## Facts

- Endpoint: POST https://grokzilla.shop/api/skills/json-schema-validate
- Price: $0.006/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-a061920e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aOwLV4lWRL83ur9ciKRfT

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

Example prompt: Can you validate this HTTP POST request body against a JSON Schema — the method is POST, path is /api/orders, and the body is {"orderId": "abc123", "quantity": 2}?

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-use JSON Schema validation for HTTP request bodies without standing up your own validation infrastructure. Ideal for AI agents that need to guard API calls dynamically, or developers who want instant schema compliance checks without integrating a full validation library. Best suited for single-call validation at $0.006 USDC per request via x402 micropayment rails.

## Known failure modes

- Missing required 'input' field returns a validation error
- Missing 'type' or 'method' inside input object causes schema rejection
- Malformed JSON body results in parse error
- Payment failure (402) if USDC micropayment is not provided or insufficient
- Unsupported schema draft version may cause unexpected behavior

## How this service works

Agent-ready microservices with x402 + Stripe rails, volume primitives, tutorials, and applet UI.

## Output

Returns a JSON object with an 'ok' boolean indicating whether the request passed schema validation, along with the validated endpoint path. A truthy 'ok' means the input conforms to the schema; false indicates a 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": {
    "body": {
     "type": "object"
    },
    "path": {
     "type": "string"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string"
    },
    "bodyType": {
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "path": "/api/skills/json-schema-validate"
 }
}
```

## More

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