Download attachment file

It’s not necessary to build this API’s URL by yourself as it will be automatically generated. Find the URL in the “apiUrl” property of the response from Get message or Get topic messages.

Method

GET

URL

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

Scope

topic.read

URL parameters

Name Type Description
topicId Number Topic ID
postId Number Post ID
attachementId Number Attachement ID
filename String Attached filename

Query parameters

Name Type Description
type (Optional) String Thumbnail image type (Only supports one image file) value: small, medium, large

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