Skip to main content
POST
Interactive Playground Not Supported: File uploads cannot be tested in this documentation playground due to browser limitations with multipart/form-data.Please use Postman, Insomnia, or refer to the code examples below to test this endpoint.

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: 50MB

Upload 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:
  1. Set body type to “Multipart Form” or “Form Data”
  2. Add field file with type “File” and select your document (filename is preserved automatically)
  3. Optionally add documentType and description as 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 document
  • contract - Contract or agreement
  • correspondence - Letters, emails, communications
  • legal - Legal documents
  • general - General documents
  • additional_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)