In this guide you’ll:
- upload a PDF
- receive the processing result via webhook
- optionally retrieve the document later, and
- optionally send corrections to improve the model.
x-api-key (add it to all API requests).Use the upload endpoint to send your first PDF.
👉 Direct Upload endpoint 👉 URL Upload endpoint
Instead of polling, set up a webhook so Invofox notifies you when processing is finished.
document.created event is sent when the document is created and immediately enters processing status (document will be empty at this point)document.processed event is sent when extraction is complete with all extracted information (document status becomes processed)publicState field (pendingCorrection, approved, discarded) for workflow managementdocumentIdAt any time, you can fetch the document again using the documentId you received at upload.
If the extracted data isn’t 100% accurate, you can send corrected values back to Invofox.