Learn how to process your uploaded documents individually or in batch
curl -X POST "https://api.invaro.ai/api/v1/parse/invoices" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "document_id": "your_document_id" }'
const response = await fetch('https://api.invaro.ai/api/v1/parse/invoices', { method: 'POST', headers: { 'Authorization': 'Bearer your_api_key', 'Content-Type': 'application/json' }, body: JSON.stringify({ document_id: document_id }) }); const data = await response.json(); const job_id = data.data.job_id;
curl -X POST "https://api.invaro.ai/api/v1/parse/invoices/batch" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "files": [ {"document_id": "uuid-of-document-1"}, {"document_id": "uuid-of-document-2"} ] }'
const response = await fetch('https://api.invaro.ai/api/v1/parse/invoices/batch', { method: 'POST', headers: { 'Authorization': 'Bearer your_api_key', 'Content-Type': 'application/json' }, body: JSON.stringify({ files: [ {document_id: "uuid-of-document-1"}, {document_id: "uuid-of-document-2"} ] }) }); const data = await response.json(); const { batch_id, job_ids } = data.data;
batch_id
job_ids