Recent searches
No recent searches
Getting ticket attachment links from a webhook.
Posted May 10, 2023
We are using webhooks to summarize a tickets info in a comment for that ticket. We are moving some unsolved tickets to another system and would like to do a summary for that ticket as the "latest" comment. I would like to have the "content_url" for the attachments listed as a part of this, but no luck so far. How to I post the attachment url and wich endpoint do I use for the webhook? No need to download the file. I would just like the attachment link listed.
0
4
4 comments
Greg Katechis
Hi Roar! If you're looking for the content_url, you'll want to use the ticket comments API and you'll see this returned in the payload:
0
Roar Amundsen
Thanks for the reply.
I tried that but it seems the webhook doesn`t see the formatting of the endpoint as valid yet.
e.g I`ve tried:
https://xxxx.zendesk.com/api/v2/tickets/ticket_id/{{comments}}.json
https://xxxx.zendesk.com/api/v2/tickets/{ticket_id}/comments
etc
If I can point to the comment API, it would be great to have some pointers on how we should structure the json command to list the content_url.
0
Frederic D'hartoy
Hi,
I have the same request as Roar. I would like to send the url attachment file to an external ticketing system.
How can I get the "content_url" for the attachments listed as a part of a ticket comment and send it ?
How to I post the attachment url and wich endpoint do I use for the webhook?
Thank you in advance for your answer
Frédéric d'Hartoy
1
Tipene Hughes
Hey Frederic D'hartoy,
Just to be sure I'm giving you the optimal solution here, can you explain your ideal workflow in a bit more detail? Webhooks are generally used as a way to send requests to external systems in response to activity on a ticket(s). If you're just wanting to gather data on a batch of tickets and send this to an external system, there are likely more suitable ways to do this instead of using webhooks.
Look forward to hearing from you!
Tipene
0