Download a document's original file
GET
/v1/documents/{id}/content
const url = 'http://localhost:8080/v1/documents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/content';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/v1/documents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/contentStreams the stored original; a package PDF or the LAR file; with its content type and original file name in Content-Disposition; HTTP range requests are supported so viewers can seek. Any staff role or an API key with status:read. 404 for an unknown document.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”OK