Messaging
cURL
curl --request GET \ --url https://api.stackone.com/unified/messaging/messages/{id}/attachments/{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 attachment file was downloaded successfully.
Headers related to the download
Show child attributes
Value of the Content-Disposition header
"attachment; filename=\"example.pdf\""
MIME type of the file
"application/pdf"
Size of the content in bytes
1024
Range of the content being sent
"bytes 0-1023/2048"
Encoding of the content
"gzip"
Transfer encoding type
"chunked"
The file data in binary format
Was this page helpful?