Skip to main content
POST
/
mailbox
/
attachments:upload
Upload a mailbox attachment
curl --request POST \
  --url https://app.sendmux.ai/api/v1/mailbox/attachments:upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/octet-stream' \
  --data '"<string>"'
{
  "meta": {
    "request_id": "req_clxxxxxxxxxxxxxxxxxxxxxxxxx"
  },
  "data": {
    "blob_id": "<string>",
    "filename": "invoice.pdf",
    "content_type": "application/pdf",
    "size_bytes": 12345
  }
}

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.

Query Parameters

filename
string
required

Filename to use when sending the uploaded attachment.

Body

application/octet-stream

Raw attachment bytes.

Response

Attachment uploaded

ok
enum<boolean>
required
Available options:
true
meta
object
required
data
object
required