API - download attachments with Safe Download enabled | Community
Skip to main content

API - download attachments with Safe Download enabled

  • August 3, 2021
  • 4 replies
  • 0 views

Hello, I am using the incremental export API with a micro service to retrieve articles and save the history. Now I would also like to save the attachments of a comment.

We have decided to enable secure downloads in order not to make any sensitive attachments publicly available.

Unfortunately, with this setting I cannot load the attachments via my micro service because I have to authenticate again.

If I disable Secure Download, I can also download the attachments, but this does not comply with our security rules. Is there any trick?

4 replies

Phoebe13
  • August 5, 2021

Hi Linus! 

If you want to get the attachment of a comment, you will have to use this endpoint : https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_comments/#list-comments

  • GET /api/v2/tickets/{ticket_id}/comments

this will return all the comments within the ticket and the direct link to the attachment.


James51
  • November 24, 2021

Hi @phoebe13 I have tried above but when I try to access content_url outside of zendesk, its requesting credential to download the file.

Is there a way we can attach/upload the file from downloading once instance to another instance without storing that file externally


  • November 30, 2021

This request was closed and merged into request #9805529 "[Community Post] Download the Ze...".


Gregory12
  • January 11, 2023

I sure wish these forum posts wouldn't get merged into requests I don't have access to. If the solution is there, it's incredibly not helpful.