- Email attachments to your unique account docs alias
- API endpoint
Workflow diagrams
Workflow: step-by-step
1
Submit document
Use email (attachments to your docs alias) or Upload directly by API
2
Terminal49 processes document
Terminal49 classifies and extracts data asynchronously.
3
Receive webhook result
You receive
document.extracted or document.extraction_failed.4
Handle duplicates
If the same file content already exists for your account, it is treated as duplicate and not processed again.
5
API POST document
POST document through endpoint. Used by email
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
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.