When to use bulk vs. the flow API
1
Generate a token
Authenticate with your ResponsePass the
Client-Id and Client-Secret headers.access_token as the Token header in all subsequent requests.2
Upload a batch
Submit a Response — one entry per uploaded file, all sharing the same Atlas automatically detects the document type from the image content. You do not need to declare the type per file — the extracted
product_type and an array of file URLs. Each file entry must include a file_url (a pre-signed S3 URL pointing to the document image) and a document_id you define for tracking purposes.batch_idSave the
batch_id (e.g. BATCH-30732-SIYKJ-20251121113228). You will need it to retrieve extraction results. The document_id in each entry matches the value you supplied in the request, letting you map results back to your internal records.document_type field in the response will tell you what Atlas identified.3
Retrieve extraction results
Fetch processed data for all documents in a batch. Results are paginated.Query parametersPagination fields
Response
Iterate through pages by incrementing the
page parameter until has_next is false.Document type auto-detection
You do not need to specify the document type when uploading. Atlas infers the type from the image content and setsdocument_type in the response accordingly. Supported types include PAN, AADHAAR, BANK_STATEMENT, GST_CERT, INVOICE, DELIVERY_ORDER, DRIVING_LICENSE, VOTER_ID, SHOP_ACT_LICENSE, SALE_DEED, and many others.

