Skip to Content
MailroomMailroom home

Download an attachment's bytes

Always served with Content-Disposition attachment and nosniff; types a browser could execute are served as application/octet-stream.

GET
/attachments/{id}/content

Always served with Content-Disposition attachment and nosniff; types a browser could execute are served as application/octet-stream.

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Path Parameters

id*string

Response Body

The file

response?fileapplication/octet-stream
Formatbinary
Example Request
curl -X GET 'https://api.mailroomapi.com/v1/attachments/string/content'
Example Response
"string"