Prerequisites
- A Vantage tenant with API client credentials (
client_idandclient_secret) - A sample document to process (PDF, TIFF, JPEG, or PNG)
Don’t have credentials yet? Your tenant admin can create API client credentials in Administration > API clients.
Set your base URL
All requests go to your tenant’s regional endpoint. Pick your region below (the assignment works in both shell and Python) and every sample in this guide usesBASE_URL:
Step 1: Authenticate
Get an access token using your client credentials.- cURL
- Python
access_token (valid for 24 hours). Use it in the Authorization header for all subsequent requests.
Step 2: Find a skill
List the skills available in your tenant to find the right one for your document.- cURL
- Python
id of the skill you want to use (e.g., an Invoice skill).
Step 3: Process a document
Upload a document and process it with a skill in a single API call.- cURL
- Python
Step 4: Check status
Poll the transaction until processing is complete.- cURL
- Python
Poll every 5–10 seconds. Typical processing takes 10–30 seconds depending on document complexity.
Step 5: Download results
Get the extracted data as JSON. The result file identifiers come from the transaction status response you polled in Step 4: each entry indocuments[].resultFiles[] has a fileId and a type. By default, a Document skill produces two result files: type: "Json" (the full results, including field metadata) and type: "FieldsJson" (the extracted values, which is the easiest place to start); skill export settings can add other formats.
- cURL
- Python
RuleErrors array alongside Version and Fields.
The exact field names and nesting depend on the skill. For confidence scores, character coordinates, and other field metadata, download the type: "Json" result file instead; its structure is documented in the JSON schema reference.
For a full walkthrough of the output structure, see Understanding your results.
Full example
Next steps
Understanding your results
Learn how to read extracted fields, confidence scores, and table data.
API Reference
Full API documentation with interactive playground.
Authentication options
Authorization Code Flow, ROPC, and other auth methods.
Batch processing
Process multiple documents with separate API calls for more control.
