v34

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-09194386949.7 KB
LlamaExtract

Generate Extraction Schema

Generate or refine an extraction agent schema from a file, natural-language prompt, or existing schema.

post/api/v1/extraction/extraction-agents/schema/generate

Query parameters

project_idstring uuid nullable
organization_idstring uuid nullable

Cookies

sessionstring nullable

Request body

promptstring nullable

Natural language description of the data structure to extract

file_idstring uuid nullable

Optional file ID to analyze for schema generation

Response

Successful Response

data_schemaobject required

The generated JSON schema