Download message attachment
Download a message attachment as application/octet-stream.
Download a message attachment as application/octet-stream.
Bearer authentication using API tokens in the Authorization header.
Resource ID of the managed mailbox the bearer token is authorized for.
AC1a2b3c4d5e6f7gFolder path (URL-encoded).
INBOXMessage UID.
42Attachment ID (opaque, returned by GET message).
YXR0YWNobWVudDpJTkJPWDoxMjM6MS4yDecoded attachment body.
Missing or invalid credentials.
Token is not authorized to manage the requested mailbox.
Resource not found.
Request payload failed validation. params maps field name to an array of error messages.
Server-side failure.
Upstream service is unavailable or returned an unexpected response.
Upstream service did not respond within the configured timeout.
GET /api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}/attachments/{attachmentId} HTTP/1.1
Host: api.mail.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
binaryLast updated
Was this helpful?