Skip to main content
POST
Upload one file for outgoing messages, retained for four hours.

Authorizations

Authorization
string
header
required

A person's session: Authorization: Bearer <ID token>, the ID token the Sendblue sign-in issues. The person acts in their company's root account with the role of their seat.

Headers

Idempotency-Key
string
required

A value unique to this intended write, 1 to 128 visible ASCII characters. A repeat with the same key returns the original result.

Required string length: 1 - 128
Pattern: ^[\x21-\x7E]+$

Body

multipart/form-data
file
file
required

Response

The stored file.

id
string
required
content_type
string
required
size_bytes
integer | null
required
message_id
string | null
required

The message the item arrived with, for inbound media.

url
string<uri> | null
required

A bearer link at the configured public origin. Deletion or expiry revokes it.

created_at
string<date-time>
required

RFC 3339, UTC.

expires_at
string<date-time>
required

RFC 3339, UTC.