Fluxmail

Download an attachment

Download one attachment as raw bytes.

GET /api/v1/accounts/{accountId}/messages/{messageId}/attachments/{attachmentId}

Download one attachment as raw bytes.

Authentication

Pass a Fluxmail API key as a bearer token. The key determines the member, mailbox scope, and permissions for the request.

Request

curl 'http://localhost:8977/api/v1/accounts/acct_123/messages/msg_123/attachments/attachment_123' \
  -H "Authorization: Bearer $FLUXMAIL_API_KEY"

Parameters

NameLocationRequiredTypeDetails
accountIdpathYesstringMinimum length: 1.
messageIdpathYesstringMinimum length: 1.
attachmentIdpathYesstringMinimum length: 1.

Responses

StatusDescriptionContent type
200Attachment bytesapplication/octet-stream
400Invalid requestapplication/json
401Authentication requiredapplication/json
403Permission or plan deniedapplication/json
404Resource not foundapplication/json
409Request conflictapplication/json
422Unsupported capabilityapplication/json
429Provider rate limitapplication/json
500Internal errorapplication/json
503Provider unavailableapplication/json

200 response

{
  "type": "string",
  "format": "binary"
}

Last updated