POST POST /processors/{processor_id}/runs

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

{ "input_path": "gs://bucket/doc.pdf", "params": { } }

cURL

curl -X POST https://api.algorythmos.fr/processors/invoice-extractor/runs \
 -H "x-api-key: $ALG_KEY" \
 -H "Content-Type: application/json" \
 -d '{"input_path":"gs://bucket/invoices/acme.pdf"}'

JavaScript

await fetch('https://api.algorythmos.fr/processors/invoice-extractor/runs', {
  method: 'POST',
  headers: { 'x-api-key': process.env.ALG_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({ input_path: 'gs://bucket/invoices/acme.pdf' })
})

Python

import requests, os
r = requests.post(
  'https://api.algorythmos.fr/processors/invoice-extractor/runs',
  headers={'x-api-key': os.environ['ALG_KEY']},
  json={'input_path': 'gs://bucket/invoices/acme.pdf'}
)
print(r.json())