- Email attachments to your unique account docs alias
- API endpoint
Workflow Diagrams
Workflow: Step-by-Step
Handle duplicates
If the same file content already exists for your account, it is treated as duplicate and not processed again.
Technical Implementation (One End-to-End Example)
Example scenario: user uploads one file,invoice.pdf.
1) Submit the document
POST /documents
Before creating the document, complete the direct upload flow and get a signed_id:
Direct Upload for Documents.
Note: attached_document is the S3 signed_id from the file direct upload.
201):
2) Receive extraction webhook
document.extracted example:
3) Persist extracted outcome in your system
Use the webhookevent and included document payload to update your internal record for that document.
Webhooks You Should Handle
| Event | Meaning |
|---|---|
document.extracted | Extraction completed successfully |
document.extraction_failed | Extraction did not complete |
Use these endpoints while integrating
Webhook event availability depends on your account configuration. If you are not receiving expected events, contact Terminal49 support.
APIs Involved
POST /documentsGET /documentsGET /documents/{id}GET /documents/{id}/download_urlGET /email_submissionsGET /email_submissions/{id}GET /document_schemas/{id}Document representations resource
Planned (Not Live Yet)
email_submission.createdwebhook event after inbound email acceptance.