Documents
Upload Document
Upload additional supporting documents to a claim (PDF, Word, Excel, XML, images, etc.)
POST
Overview
Upload supporting documents to a claim. Each claim can have multiple documents attached. The original filename is automatically preserved when using multipart/form-data.Supported File Types
- PDF documents (.pdf)
- Word documents (.doc, .docx)
- Excel spreadsheets (.xls, .xlsx)
- Text files (.txt)
- Images (.png, .jpg, .jpeg, .gif, .webp)
File Size Limit
Maximum file size: 50MBUpload Method
This endpoint only supports multipart/form-data uploads. The original filename is automatically preserved when using multipart/form-data.Document Processing
Documents uploaded via the Open API are stored only and are not processed by OCR. They are attached to the claim for reference purposes.Authentication
Requires API Token authentication via Bearer token.Request
Multipart/Form-Data Required: This endpoint only accepts multipart/form-data uploads. The original filename is automatically preserved.How to Test: Use Postman or Insomnia with the following setup:
- Set body type to “Multipart Form” or “Form Data”
- Add field
filewith type “File” and select your document (filename is preserved automatically) - Optionally add
documentTypeanddescriptionas text fields
string
required
UUID of the claim to attach the document to
file
required
The document file to upload (binary data)Note: This field is not testable in the playground. Use Postman/Insomnia instead.
string
Type of document being uploaded
invoice- Invoice documentcontract- Contract or agreementcorrespondence- Letters, emails, communicationslegal- Legal documentsgeneral- General documentsadditional_document- Additional supporting documents (default)
string
Optional description or notes about the document
Response
boolean
Indicates if the upload was successful
object
The uploaded document object
Notes
- Multipart/form-data only: This endpoint only accepts multipart/form-data uploads. Raw binary uploads are not supported.
- Filename preservation: The original filename is automatically preserved when using multipart/form-data
- Multiple documents: Multiple documents can be uploaded to the same claim by calling this endpoint multiple times
- Storage: Documents are stored securely in Supabase Storage
- No processing: Documents uploaded via the Open API are stored only and are not processed by OCR. They are attached to the claim for reference purposes
- File types: Supported file types include PDF, Word (.doc, .docx), Excel (.xls, .xlsx), text files (.txt), and images (.png, .jpg, .jpeg, .gif, .webp)