Contents

Download file

Download a file attached to a message. You can get this API endpoint URL in the “apiUrl” property of the response from Get a posted message or Get topic messages.

Method

GET

URL

https://typetalk.com/api/v1/topics/:topicId/posts/:postId/attachments/:attachmentId/:filename

Scope

topic.read

URL parameters

NameTypeDescription
topicIdNumberTopic ID
postIdNumberPost ID
attachmentIdNumberAttachment ID
filenameStringAttached filename

Query parameters

NameTypeDescription
type (Optional)StringThumbnail image type (Only supports one image file) value: small, medium, large

All responses are formatted in JSON and include an ETag. If you call an API with an If-None-Match header, the server will return a 304 status code if the data is unchanged. The date and time format is ISO 8601, and the timezone is UTC (eg. 2014-01-09T06:20:08Z).