Attachment Download

Request download of the given attachment

GET /api/cowork/teams/<teamID>/channels/<channelID>/messages/<messageID>/attachments/<attachmentID>

Downloads the given attachment, using an inline content disposition to inline the given file.

Example Request

# Request
# Use user:password for authorization
GET /api/cowork/teams/3n1ytbwme7ngfyn9g9guwwurt/channels/epmlsh7trr535mrs9z7xcfn1w/messages/00kunwfaycw5sqp8gc8kc0jms/attachments/00kunwu1co8s0gz9wp4fmyche HTTP/1.1
Accept: */*
Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u
 
# Response
HTTP/1.1 200 OK
<binary data>

Parameter: download

Using the parameter download=true the download can be triggered using the content disposition attachment for direct download.