Getting ticket attachment links from a webhook.
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.
-
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:
{
"attachments": [
{
"content_type": "text/plain",
"content_url": "https://company.zendesk.com/attachments/crash.log",
"file_name": "crash.log",
"id": 498483,
"size": 2532,
"thumbnails": []
}
]...} -
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
etcIf 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.
Iniciar sesión para dejar un comentario.
2 Comentarios