Processing Options

Invaro offers two ways to process documents:

  1. Individual Processing - Process one document at a time
  2. Batch Processing - Process up to 10 documents simultaneously

Individual Processing

cURL
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"
  }'
JavaScript
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;

Batch Processing

Process multiple documents at once (maximum 10 documents per batch):

cURL
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"}
    ]
  }'
JavaScript
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;

For batch processing, you’ll receive both a batch_id and an array of job_ids. You can use either to check the processing status.

Next Steps

Check Status

Learn how to check the processing status of your documents