API reference
Download an attachment
Required scope: mailbox:read.
GET
/v1/messages/{messageId}/attachments/{attachmentId}Authorization
tenantApiKey x-api-key<token>
A scoped tenant key returned once by an operator. Never place it in URLs, logs, prompts, or client-side application code.
In: header
Path Parameters
messageId*string
Match
^msg_[a-f0-9]{24}$attachmentId*string
Match
^att_[a-f0-9]{24}_[1-9][0-9]{0,2}$Response Body
application/octet-stream
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
# Set the API key and replace resource IDs with your saved IDs.curl --fail-with-body --silent --show-error -X GET \ "https://api.mailactor.com/v1/messages/$MESSAGE_ID/attachments/$ATTACHMENT_ID" \ -H "x-api-key: $MAILACTOR_API_KEY"