Skip to main content
POST
Upload an attachment

Authorizations

Authorization
string
header
required

Sendmux API key (smx_...)

Headers

Idempotency-Key
string

Optional client-generated key to make the request idempotent for 24 hours. Replays under the same key return the cached response; a reused key with a different body returns 409 idempotency_conflict.

Maximum string length: 255
Content-Length
integer<int64>
required

Exact number of bytes in the binary request body.

Required range: x >= 1

Query Parameters

filename
string
required

Filename to associate with the uploaded attachment.

Required string length: 1 - 255
content_type
string

MIME type override for the uploaded attachment.

Maximum string length: 255

Body

application/octet-stream

The body is of type file.

Response

Attachment uploaded successfully

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