---
title: "JSON Schema validation"
method: POST
path: "/v1/data/schema-validate"
tags: ["data"]
---

# JSON Schema validation

`POST /v1/data/schema-validate`

## Request

- Base URL: `https://apiacre.com`
- URL: `https://apiacre.com/v1/data/schema-validate`
- Auth: none required

Validate JSON data against a bounded JSON Schema Draft 2020-12 contract for nested objects, arrays, required properties, types, enums, formats, lengths, patterns, and numeric bounds; return deterministic instance and schema JSON Pointers, explicit error truncation, input hashes, and no remote reference resolution.

Price: **$0.01 USDC** via x402 exact payment on Base and Solana.

## Request body

- SchemaValidateInput
  - `schema` object, required: JSON Schema Draft 2020-12 document; only local fragment references are allowed
  - `instance` unknown, required
  - `max_errors` integer
  - `check_formats` boolean: Assert supported JSON Schema formats as well as structural keywords

## Response `200`

Successful Response

- ServiceResponse
  - `request_id` string, required
  - `service` string, required
  - `version` string
  - `data` object, required
  - `meta` ServiceMeta, required
    - `duration_ms` integer, required
    - `cached` boolean
    - `sources` string[]
    - `warnings` string[]
    - `next_actions` ServiceNextAction[]
      - `service` string, required
      - `title` string, required
      - `reason` string, required
      - `method` 'POST'
      - `path` string, required
      - `price` string, required
      - `input_template` object, required
      - `use_output` string, required
      - `handoff_path` string, required
      - `checkout_path` string, required
      - `sample_path` string, nullable, required
      - `maximum_atomic_usdc` string, required
      - `handoff_payment_required` false
      - `executes_automatically` false
      - `authorization_required` boolean

## Other responses

- `402`: Payment Required. Decode PAYMENT-REQUIRED, satisfy the x402 requirement, and retry with PAYMENT-SIGNATURE.
- `422`: Validation Error

---

[API](https://skmtc.dev/apiacre/apis/api-acre.md) · [All operations](https://skmtc.dev/apiacre/apis/api-acre/llms.txt) · [OpenAPI document](https://skmtc.dev/apiacre/apis/api-acre/revisions/0ba942b920ad?raw)
