ATS
cURL
curl --request GET \ --url https://api.stackone.com/unified/ats/applications/{id}/documents/{subResourceId}/download \ --header 'Authorization: Basic <encoded-value>' \ --header 'x-account-id: <x-account-id>'
{ "headers": { "content-disposition": "attachment; filename=\"example.pdf\"", "content-type": "application/pdf", "content-length": 1024, "content-range": "bytes 0-1023/2048", "content-encoding": "gzip", "transfer-encoding": "chunked" }, "data": "<string>" }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The account identifier
The format to download the file in
"base64"
The export format of the file
"text/plain"
The document related to the application with the given identifiers was retrieved.
Headers related to the download
Show child attributes
The file data in binary format
Was this page helpful?