Download the Zendesk ticket attachment via API | Community
Skip to main content

Download the Zendesk ticket attachment via API

  • November 24, 2021
  • 3 replies
  • 0 views

James51

Hi,

I am trying to download the Zendesk attachment via API but when I try to access content_url outside of Zendesk, its requesting credential to download the file.

1. Is there any possibility to download the attachment directly using API
2. how can we attach/upload the file from downloading once instance to another instance without storing that file externally

3 replies

  • November 30, 2021
Hi James,
 
Great question! So when trying to download attachments or any data linked to tickets you do need to provide that authorization header. You could use something like an API token or OAuth to be able to retrieve the data. 
 
For your second question, could you provide me with a more specific use case so I can provide you with the best guidance on how to navigate this? 
 
Looking forward to hearing back from you!
 
Best,
 
Erica - Dev Support

James51
  • Author
  • November 30, 2021

Hi @erica26, Thanks for your update.
#1. Yes, I was able to fetch attachment by querying attachment "content_url" along with authorization
#2. I was able to solve by post the source instance attachment query. Refer #1


  • November 30, 2021
That's awesome James! I'm glad you were able to solve this. Please don't hesitate to let us know if anything else comes up!
 
Best,
 
Erica - Dev Support