---
title: "Validate Extraction Schema"
method: POST
path: "/api/v1/extraction/extraction-agents/schema/validation"
tags: ["LlamaExtract"]
---

# Validate Extraction Schema

`POST /api/v1/extraction/extraction-agents/schema/validation`

Validate an extraction agent schema; returns the normalized schema or raises 400.

## Cookies

- `session` string, nullable

## Request body

- ExtractSchemaValidateRequest — Request schema for validating an extraction schema.
  - `data_schema` union, required
    - object
    - string

## Response `200`

Successful Response

- ExtractSchemaValidateResponse — Response schema for schema validation.
  - `data_schema` object, required

## Other responses

- `422` — Validation Error

---

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