Skip to main content
POST
Python

Authorizations

Authorization
string
header
required

Your unique API key for authentication.

Get your API key here: https://va.landing.ai/settings/api-key.

If using the EU endpoint, get your API key here: https://va.eu-west-1.landing.ai/settings/api-key.

Body

multipart/form-data

Request model for async extract endpoint.

Extends ExtractRequest with output_save_url for ZDR support.

schema
string
required

JSON schema for field extraction. This schema determines what key-values pairs are extracted from the Markdown. The schema must be a valid JSON object and will be validated before processing the document.

model
string | null

The version of the model to use for extraction. Use extract-latest to use the latest version.

markdown

The Markdown file or Markdown content to extract data from.

markdown_url
string | null

The URL to the Markdown file to extract data from.

strict
boolean
default:false

If True, reject schemas with unsupported fields (HTTP 422). If False, prune unsupported fields and continue. Only applies to extract versions that support schema validation.

output_save_url
string | null

If zero data retention (ZDR) is enabled, you must enter a URL for the extracted output to be saved to. When ZDR is enabled, the extracted content will not be in the API response.

Response

Job queued successfully

job_id
string
required