Build Schema allows you to:
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.
Accepts natural language inputs to define the fields and their relationships.
Reviews multiple files to create a master schema that applies across the set.
Keeps a record of all schema changes. Assigns a version number after each change.
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 →
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 -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'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())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).