Skip to content
POST /api/v1/validate-json-schema

JSON Schema Validator

Validate JSON data against a JSON Schema definition

Parameters

name in type required description
data body json required JSON Data
schema body json required JSON Schema

Request

Send your key in the X-API-Key header. More languages and patterns live on the code examples page.

curl -s -X POST "https://apixies.io/api/v1/validate-json-schema" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data":{"name":"Alice","age":30},"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}}}'

Response

The result sits under data in the standard envelope. See the response format guide for errors and status codes.

returns

data.valid
True when the data matches the schema.
data.errors
Failure messages, each starting with the JSON path.
data.data
The data you sent, echoed back next to schema.
example response 200
{
    "status": "success",
    "http_code": 200,
    "code": "SUCCESS",
    "message": "JSON Schema validation completed",
    "data": {
        "valid": false,
        "errors": [
            "$: missing required property 'email'",
            "$.age: expected type 'integer', got 'string'"
        ],
        "data": {
            "name": "Alice",
            "age": "30"
        },
        "schema": {
            "type": "object",
            "required": [
                "name",
                "email"
            ],
            "properties": {
                "name": {
                    "type": "string"
                },
                "age": {
                    "type": "integer"
                },
                "email": {
                    "type": "string",
                    "format": "email"
                }
            }
        },
        "validated_at": "2026-09-18T12:00:00+00:00"
    }
}

Authentication and limits

This endpoint needs an API key. Use the sandbox ("try it" above) to test it without registering. See the authentication guide for details.

Standard rate limits apply to this endpoint.

Common use cases

API request validation

Validate incoming API request bodies against JSON Schema definitions. Ensure clients send correctly structured data before processing.

Configuration file validation

Validate JSON configuration files against schemas in CI/CD pipelines. Catch configuration errors before deployment.

Data migration verification

Verify that migrated data conforms to the target system's JSON schema. Catch structural issues before importing.

More documentation

Get a free API key

A temporary key takes one click and no signup. Register and you get 75 requests/day. Free tier is for development & small projects.

cookies

We use analytics cookies to see how the site gets used. Nothing loads until you accept. Privacy policy