---
title: "Validate Extraction Schema"
method: POST
path: "/api/v2/extract/schema/validation"
tags: ["V2", "Extract"]
---

# Validate Extraction Schema

`POST /api/v2/extract/schema/validation`

Validate a JSON schema for extraction.

## Cookies

- `session` string, nullable

## Request body

- ExtractV2SchemaValidateRequest — Request schema for validating an extraction schema.
  - `data_schema` object, required — JSON Schema to validate for use with extract jobs

## Response `200`

Successful Response

- ExtractV2SchemaValidateResponse — Response schema for schema validation.
  - `data_schema` object, required — Validated JSON Schema, ready for use in extract jobs

## Other responses

- `422` — Validation Error

## Changes

- **2026-06-09** `b17341164de9` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-05-16** `c317ed7c691a` — 1 info
  - api tag `LlamaExtract` removed
- **2026-05-14** `1bbc901f8c0d` — 1 info
  - api tag `LlamaExtract` added
- **2026-04-29** `beb65a9b42eb` — 1 info
  - api tag `LlamaExtract` removed

[Change history](https://skmtc.dev/run-llama/apis/llama-platform/changes/api/v2/extract/schema/validation/post.md)

---

[API](https://skmtc.dev/run-llama/apis/llama-platform.md) · [All operations](https://skmtc.dev/run-llama/apis/llama-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/run-llama/llama-platform/revisions/b17341164de9/schema)
