https://api.va.landing.ai/v1/ade/extract/build-schema
See the full API reference here.
For schema format requirements and supported field types, see Extraction Schema (JSON).
Request Parameters
At least one ofmarkdowns, markdown_urls, or prompt must be provided.
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | No | The extraction model to use. Use extract-latest for the latest version. |
markdowns | file or string | No | One or more Markdown files or inline Markdown strings to analyze. Provide multiple Markdown files for better schema coverage. |
markdown_urls | array of strings | No | URLs to Markdown files to analyze. |
prompt | string | No | Instructions for how to generate or modify the schema. |
schema | string | No | An existing JSON schema to refine or iterate on. |
Response
The response contains:extraction_schema(string): The generated JSON schema, returned as a string.metadata: Includesjob_id,duration_ms,credit_usage, andversion.
Workflows
Generate a Schema from Markdown Files
Pass one or more Markdown files to generate a schema based on the content. The API identifies the fields present in the Markdown file and returns an extraction schema.Generate a Schema from a Prompt
Use theprompt parameter to specify which fields to extract. This is useful when you only need a subset of the fields in the Markdown file, or when you want to shape the field names and structure.
prompt without any Markdown input to generate a schema based on instructions alone:
Refine an Existing Schema
Pass an existing schema in theschema parameter to refine it. For example, you may have a schema you built in the Playground or created manually, and want to update it based on new documents or instructions.
To refine a schema based on a Markdown file:

