Use the correct Accept header
It is important to put the Accept : application/json, otherwise you will receive the file directly in bytes
Be sure to use the attachment id, not the request id
The data returned in
data is in base64. You can use online tools (example) to decode the returned data.