POST POST /parse/file
Headers: x-api-key
Body (multipart): include file field and optional format
cURL
curl -X POST https://api.algorythmos.fr/parse/file \
-H "x-api-key: $ALG_KEY" \
-F "file=@/path/to/report.pdf" \
-F "format=markdown"JavaScript
const body = new FormData()
body.append('file', fileInput.files[0])
body.append('format', 'markdown')
await fetch('https://api.algorythmos.fr/parse/file', {
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',
headers={'x-api-key': os.environ['ALG_KEY']},
files={'file': f},
data={'format': 'markdown'}
)
print(res.json())