Skip to main content
Version: v2023.18.0

GET Document Content

This API allows you to retrieve the content of a document in specific format

if provided otherwise in the original format.

API Description

Endpoint:

GET /documents/{documentId}/file

Resource path:

VariableRequiredDescription
documentIdYesThe ID of a document

Query params:

ParameterRequiredDescription
formatNoThe output format of the document

Response :

TypeDescription
HttpServletResponseThe document content as a file

Example:

Get Document Content

The following example retrieves the content of a document with the specified document ID in PDF format. The parameter -o allow to save the result in an output file.

curl -X GET 'http://localhost:8761/documents/b64_bm9yZS92SDMtMS0xMTh1735080237/file?format=pdf' -o document.pdf