Benchmarks: Answer 99.16% of DocVQA Without Images in QA: Agentic Document ExtractionRead more

Build a Schema of
structured fields for
use with Extract

Build Schema allows you to:

  • Use natural language to create an extraction schema
  • Build a master schema directly from multiple documents
  • Make an existing schema more robust for production use

Your account comes with enough credits to build multiple schemas.

The Solution

Not all schema builders created equal.

The Schema Builder API lets you programmatically generate or refine extraction schemas directly from parsed Markdown, enabling automation and integration into pipelines without manual schema design. It supports building master schemas from multiple documents to handle field and layout variation, and can detect schema drift by surfacing new or changed fields.

Start from a Prompt

Accepts natural language inputs to define the fields and their relationships.

Start from a Prompt

Master Schema Creation

Reviews multiple files to create a master schema that applies across the set.

Master Schema Creation

Built-in Version Control

Keeps a record of all schema changes. Assigns a version number after each change.

Built-in Version Control

What you get

  • Agentic system that plans and executes
  • Develop with natural language
  • Easy pipeline integration
  • Developer-friendly API
  • Returns perfectly-formatted clean JSON
  • Creation of deeply nested schemas
  • Build a zero-shot schema from documents
  • Automated generation of long schemas
  • Build a schema in English or other languages
  • Schema drift detection
  • Works seamlessly with Parse
  • Works seamlessly with Extract
Document gallery

Built for complex, real-world documents.

Start with a set of documents and a natural language prompt. The Build Schema API will return an expertly written, ready-to-use schema with complete descriptions, formatting instructions and alternative field names.

Read the Build Schema docs →
Build a schema for insurance loss runs
UI and API

Prototype in the UI. Scale with the API.

Use the Agentic Document Extraction Visual Playground for rapid prototyping and experimentation.

Then transition seamlessly to the REST API for your production workloads.

Provide Agent Skills directly to coding assistants to accelerate your development.

cURL
curl -X POST 'https://api.va.landing.ai/v1/ade/extract/build-schema'\
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -F 'markdowns=@markdown.md' \
  -F 'model=extract-latest' \
  -F 'prompt= vendor, purchase date, and total amount'
Python
headers = {
    'Authorization': 'Bearer YOUR_API_KEY'
}

url = 'https://api.va.landing.ai/v1/ade/extract/build-schema'

files = [('markdowns', open('markdown.md', 'rb'))]
data = {
    'model': 'extract-latest',
    'prompt': 'Extract vendor name, purchase date, and total amount'
}

response = requests.post(url, files=files, data=data, headers=headers)
print(response.json())

Connect your AI Coding Tools with MCP and Skills

Resource Center

Get Hands-on with Build Schema

  • Create a schema from natural language (with no documents)
  • Create a schema from parsed documents (no prompt required)
  • Refine and enhance an existing schema
  • And much more

Frequently asked questions about schema-building

The Build Schema API returns a response with two main fields: extraction_schema (the generated JSON schema as a string) and metadata (including job_id, duration_ms, credit_usage, and version).

Start building extraction schemas in minutes.

Free tier available. No credit card required.