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.





URL parameters

Name Type Description
topicId Number Topic ID
postId Number Post ID
attachmentId Number Attachment ID

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).