For the complete documentation index, see llms.txt. This page is also available as Markdown.

Download message attachment

Download a message attachment as application/octet-stream.

Download message attachment

get

Download a message attachment as application/octet-stream.

Authorizations
AuthorizationstringRequired

Bearer authentication using API tokens in the Authorization header.

Path parameters
mailboxResourceIdstringRequired

Resource ID of the managed mailbox the bearer token is authorized for.

Example: AC1a2b3c4d5e6f7g
folderstringRequired

Folder path (URL-encoded).

Example: INBOX
uidinteger · min: 1Required

Message UID.

Example: 42
attachmentIdstringRequired

Attachment ID (opaque, returned by GET message).

Example: YXR0YWNobWVudDpJTkJPWDoxMjM6MS4y
Responses
200

Decoded attachment body.

application/octet-stream
string · binaryOptional
get/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}/attachments/{attachmentId}
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: */*
binary

Last updated

Was this helpful?