POST /v1/documents/submit when:
- Files exceed 50 MB
- You need resumable uploads that survive network interruptions
- You want to track per-file progress during upload
Step 1: Start a session
sessionId and per-file fileId, chunkSizeBytes, totalChunks:
Step 2: Upload chunks
Send each chunk as raw binary. Chunks are zero-indexed — send them in order.{ "receivedChunks": 1, "totalChunks": 30, "isComplete": false }
The last chunk automatically commits the upload and triggers compliance processing:
Step 3: Poll for results (same as regular submit)
410 Gone on chunk upload.