Skip to content

Attachment Upload

POST files/attachments

Uploads the specified attachment. The attachment can then be added to a dossier using the Attachment Edit endpoint. The attachment is converted into images of JPEG or PNG format, one by page in case of PDF.


curl -X POST '' \
  -H 'Authorization: Bearer 74126eab0a9048d993bda4b1b55ae074' \
  -F 'file=@/path/to/image.jpg'
Field Description Type Remarks
file The file to upload file JPG, JPEG, PNG, TIFF, HEIC, HEIF and PDF files are supported. Max size of 25MB. Max 20 pages for a PDF. For images,the optimal dimensions that take up the whole space available for an attachment are 1144x1407 px


  "filename": "...e9742b1f0f55.jpg",
  "url": ""
Field Description Type Remarks
uuid Id if the created attachment string To be used in the Attachment Edit endpoint.
url Url of the uploaded file string The url is only valid for 30 minutes
images List of image urls array of string Each image url is only valid for 30 minutes. If the file is a PDF, each image represents a page. If the file is one of TIFF, HEIC or HEIF format then the array contains a single element which is the file converted into JPEG. Otherwise the array contains the original file.