API ReferenceWorkflowsBatch Run Workflow

POST POST /workflows/{workflow_id}/batch-runs

Headers: x-api-key, Content-Type: application/json
Body:

{ "file_ids": ["file_123", "file_456"], "async": true }

cURL

curl -X POST https://api.algorythmos.fr/workflows/invoice-processing/batch-runs \
 -H "x-api-key: $ALG_KEY" \
 -H "Content-Type: application/json" \
 -d '{"file_ids":["file_123","file_456"],"async":true}'

JavaScript

await fetch('https://api.algorythmos.fr/workflows/invoice-processing/batch-runs', {
  method: 'POST',
  headers: { 'x-api-key': process.env.ALG_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({ file_ids: ['file_123', 'file_456'], async: true })
})

Python

import requests, os
batch = requests.post(
  'https://api.algorythmos.fr/workflows/invoice-processing/batch-runs',
  headers={'x-api-key': os.environ['ALG_KEY']},
  json={'file_ids': ['file_123', 'file_456'], 'async': True}
)
print(batch.json())