Is it possible to download all ticket attachments in Zendesk Support?
Zendesk Support does not yet have functionality built into download or export all or only attachments natively. However, this is possible using the Zendesk API for both the individual ticket and for all tickets.
- For an individual ticket:
Attachment URLs can be found within:
Each comment will have an attachments array attribute, which will contain links to any attachment included in that comment. To get the file associated with it, you would need to download the file linked at the content_url attribute.
- For all tickets:
Accounts with access to exports should be able to perform a JSON export of tickets, which will contain links to the various attachments as: https://subdomain.zendesk.com/api/v2/attachments/ATTACHMENT_ID.json
In order to download the attachments associated with each link, you will need to perform a GET request to that endpoint. Then download the file linked at the aforementioned content_url attribute.
Note: The same attachment links will show up in the JSON export associated with user photos. If that user has been deleted or subsequently changed their photo, those links will fail to return files.