Table of Contents


Download a Document

Magentrix API allows a document from the Document Library to be downloaded via API. Note that the user needs to have read access to the Document in order to be able to use this API.
First using the user's credentials create a Session Token and then pass the session token to the below API in order to download the file.
 

GET https://<you-portal-domain.com>/rest/2.0/document/<documentId>
     -H "Accept: application/json"
     -H "Content-Type: application/json"
     -H "Authorization: Bearer <Token>"
     

This API endpoint will stream the file binary data back to the caller.