Skip to main content
GET
/
mailbox
/
messages
/
{message_id}
/
attachments
/
{attachment_id}
Download a message attachment
curl --request GET \
  --url https://app.sendmux.ai/api/v1/mailbox/messages/{message_id}/attachments/{attachment_id} \
  --header 'Authorization: Bearer <token>'
{
  "error": {
    "code": "invalid_parameter",
    "message": "<string>",
    "retryable": false,
    "param": "<string>",
    "doc_url": "<string>",
    "errors": [
      {
        "field": "recipient.email",
        "code": "invalid_string",
        "message": "<string>"
      }
    ]
  },
  "meta": {
    "request_id": "req_clxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.sendmux.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Sendmux API key. Use a root API key for Management API routes, or a mailbox credential for Mailbox API routes. Obtain keys from the dashboard under API Keys.

Headers

Range
string

Optional byte range, for example bytes=0-1048575.

Path Parameters

message_id
string
required
attachment_id
string
required

Response

Attachment bytes