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
| Parameter | Description |
|---|---|
inbox_idrequiredstring | |
message_idrequiredstring | |
indexrequiredinteger |
Full parameter schemas and constraints
inbox_id*stringmessage_id*stringindex*integerRange
0 <= valuebearerAuthheader
AuthorizationBearer <token>API key: st_live_... or st_test_...
Decoded attachment bytes. HTML is not rendered inline.
response?file*/*Format
binary