Recent searches


No recent searches

Download the Zendesk ticket attachment via API



Posted Nov 24, 2021

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


0

3

3 comments

image avatar

Erica Girges

Zendesk Developer Advocacy

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

0


Hi Erica Girges, 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

0


image avatar

Erica Girges

Zendesk Developer Advocacy

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

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post