POST POST /workflows/{workflow_id}/runs

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

{ "input_file_id": "file_123", "metadata": { "source": "upload" } }

cURL

curl -X POST https://api.algorythmos.fr/workflows/invoice-processing/runs \
 -H "x-api-key: $ALG_KEY" \
 -H "Content-Type: application/json" \
 -d '{"input_file_id":"file_123","metadata":{"source":"upload"}}'

JavaScript

await fetch('https://api.algorythmos.fr/workflows/invoice-processing/runs', {
  method: 'POST',
  headers: { 'x-api-key': process.env.ALG_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({ input_file_id: 'file_123', metadata: { source: 'upload' } })
})

Python

import requests, os
run = requests.post(
  'https://api.algorythmos.fr/workflows/invoice-processing/runs',
  headers={'x-api-key': os.environ['ALG_KEY']},
  json={'input_file_id': 'file_123', 'metadata': {'source': 'upload'}}
)
print(run.json())