Skip to content

Download Document

Request

Download a document by its ID. You can choose to download the document directly or stream it.

Security
oAuth2ClientCredentials
Path
idstring, (uuid)(Id)required
Query
directboolean(Direct)

Query parameter to indicate that the response should contain all the document bytes

Default:false
GET
/v1/documents/document/{id}/download
import requests

id = "YOUR_id_PARAMETER"
url = "https://api.qargo.com/v1/documents/document/" + id + "/download"

headers = {"Authorization": "Bearer <YOUR_TOKEN_HERE>"}

response = requests.get(url, headers=headers)

data = response.json()
print(data)

Responses

Successful Response

Bodyapplication/json
any
Response
// No response example