Extract
POST https://extract-text-from-pdf-express-server-production.up.railway.app/api/v1/extract
Multipart form fields:
file— PDF (required)pdfTypeId— uuid of a saved PDF type (optional)fields— JSON array of{ name, exampleValue? }(optional; do not combine with pdfTypeId)
curl -X POST "https://extract-text-from-pdf-express-server-production.up.railway.app/api/v1/extract" \
-H "Authorization: Bearer etp_live_YOUR_KEY" \
-F "file=@invoice.pdf" \
-F 'fields=[{"name":"Invoice number"}]'A 200 response includes fields with name, value, and confidence. Treat every value as untrusted text. Do not execute it or paste it into another model prompt without a boundary.
402 means no credits remain. 401 means the key is invalid or revoked.