API reference: Session upload (attach to existing session) or Create Workspace Document (workspace-first, optional session attach).
Upload Flow Overview
Step 1: Get a Signed Upload URL
First, request a signed URL from the Vapor storage endpoint. This URL allows you to upload directly to S3 without routing the file through the API server.Request Parameters
Response
The signed URL is valid for a limited time (typically 5 minutes). Upload
your file promptly after receiving it.
Step 2: Upload to S3
Use the signed URL to upload your file directly to S3. Include the headers returned in the previous step.- cURL
- JavaScript
- Python
Step 3: Create or Reuse Document and Attach to Session
After the file is uploaded to S3, create (or reuse) workspace-scoped document(s) and attach them to your extraction session. Use the uploaded key(s) from Step 1.Request Parameters
Response
Upload/import is storage-only. Parsing is requested explicitly (reparse endpoint) or at extraction run time when required.
Complete Example
Here’s a complete example in JavaScript:Supported File Formats
PDF, images (PNG, JPEG, TIFF), and Office documents (DOCX, PPTX) are supported.Alternative: Workspace-first Flow
To create documents in your workspace first (and optionally attach to sessions later), use the workspace document endpoint:Monitoring Processing Status
After uploading, poll the document endpoint to check processing status:Error Handling
Common Upload Errors
Processing Failures
If a document’s status becomesfailed:
- Check the document’s error message via the GET endpoint
- Verify the file is a valid, non-corrupted document
- Re-upload if the file was damaged during transfer
