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/:attachmentId/:filename
Scope
topic.read
URL parameters
Name | Type | Description |
---|---|---|
topicId | Number | Topic ID |
postId | Number | Post ID |
attachmentId | Number | Attachment 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 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).