curl -X POST 'https://api.va.landing.ai/v1/ade/extract/jobs' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-F 'schema={"type": "object", "properties": {"field1": {"type": "string"}, "field2": {"type": "string"}}}' \
-F 'markdown=@markdown.md' \
-F 'model=extract-latest'{
"job_id": "12345678-1234-1234-1234-123456789012"
}ADE Extract Jobs
Extract structured data asynchronously.
This endpoint creates a job that handles the processing for large markdown documents.
For EU users, use this endpoint:
https://api.va.eu-west-1.landing.ai/v1/ade/extract/jobs.
curl -X POST 'https://api.va.landing.ai/v1/ade/extract/jobs' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-F 'schema={"type": "object", "properties": {"field1": {"type": "string"}, "field2": {"type": "string"}}}' \
-F 'markdown=@markdown.md' \
-F 'model=extract-latest'{
"job_id": "12345678-1234-1234-1234-123456789012"
}Authorizations
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
Request model for async extract endpoint.
Extends ExtractRequest with output_save_url for ZDR support.
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.
The version of the model to use for extraction. Use extract-latest to use the latest version.
The Markdown file or Markdown content to extract data from.
The URL to the Markdown file to extract data from.
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.
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
Was this page helpful?