Skip to main content
Version: 56.0.0

Download a document's primary file

GET 

/api/v1/documents/:id/primary-file/content

Downloads the document's current primary file: the originally uploaded file when one is stored, otherwise the current document image. Never returns a converted representation, such as a generated PDF, in place of the original.

Request​

Responses​

The primary file's exact bytes. Content-Type reflects the stored file's recorded media type, falling back to application/octet-stream.

Response Headers
    Content-Disposition

    attachment with the stored original file name, Unicode-safe encoded.