get https://api.middesk.com/v1/documents//download_url
This endpoint allows you to generate a url that can be used to download a document. The generated URL will expire after 5 minutes.
Responses
This endpoint allows you to generate a url that can be used to download a document. The generated URL will expire after 5 minutes.
xxxxxxxxxx
import requests
​
url = 'https://api.middesk.com/v1/documents/{}/download_url'.format(document_id)
headers = {"Authorization": "Bearer {}".format(api_token)}
res = requests.get(url = url, headers = headers)