Getting ticket attachment links from a webhook.

2 Comentarios

  • Greg Katechis
    Zendesk Developer Advocacy

    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": []
        }
    ]...}
    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

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk