Download Document Source File
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/file \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/file"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/file', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"Documents
Download Document Source File
Download the original file a document was extracted from (uploaded file or SharePoint file).
Available when the document’s source_file is set. Requires the knowledge:files:read scope, which
knowledge:read and knowledge:write do not include. SharePoint files are fetched live, so you get the
current version even if AGO has not synced it yet.
GET
/
api
/
v1
/
documents
/
{document_id}
/
file
Download Document Source File
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/file \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/file"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/documents/{document_id}/file', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"