API ReferenceParseParse File Async

POST POST /parse/file/async

Headers: x-api-key
Body (multipart): include file, optional webhook_url

cURL

curl -X POST https://api.algorythmos.fr/parse/file/async \
 -H "x-api-key: $ALG_KEY" \
 -F "file=@/path/to/report.pdf" \
 -F "webhook_url=https://example.com/webhooks/parse"

JavaScript

const body = new FormData()
body.append('file', fileInput.files[0])
body.append('webhook_url', 'https://example.com/webhooks/parse')
await fetch('https://api.algorythmos.fr/parse/file/async', {
  method: 'POST',
  headers: { 'x-api-key': process.env.ALG_KEY },
  body
})

Python

import requests, os
with open('report.pdf', 'rb') as f:
  res = requests.post(
    'https://api.algorythmos.fr/parse/file/async',
    headers={'x-api-key': os.environ['ALG_KEY']},
    files={'file': f},
    data={'webhook_url': 'https://example.com/webhooks/parse'}
  )
print(res.json())