Download a message's file
GET /v1/messages/{id}/media
Returns the bytes of the file a message carries.
Needs messages:read.
Path parameters
Section titled “Path parameters”id string · uuid
The message’s ID.
Response headers
Section titled “Response headers”Content-Type is the type recorded for the file, or application/octet-stream if there is none. The file is always sent as an attachment, with X-Content-Type-Options: nosniff.
Returns
Section titled “Returns”200 The file, as an attachment.
Errors
Section titled “Errors”Besides the ones every request can get:
404
not_foundThe message has no file, the file is no longer stored, or the message is in another workspace.