Skip to content
Sendtier Docs
Dashboard

Download one decoded attachment

Requires a full key or an inbox key (bound inbox only). index is the attachment position from the message, starting at zero. A negative index is an invalid request. The response content type is the attachment type. Content-Disposition is attachment with a safe filename. X-Content-Type-Options is nosniff and Content-Security-Policy is sandbox, including for HTML. A full raw-read limit returns 503. Deleted or expired messages are not found.

GET/v1/inboxes/{inbox_id}/messages/{message_id}/attachments/{index}

Path parameters

ParameterDescription
inbox_idrequired
string
message_idrequired
string
indexrequired
integer
Full parameter schemas and constraints

Path Parameters

inbox_id*string
message_id*string
index*integer
Range0 <= value

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key: st_live_... or st_test_...

Response Body

Decoded attachment bytes. HTML is not rendered inline.

response?file*/*
Formatbinary