Can you access "View original email" via the API?

4 Comentarios

  • Christopher Kennedy
    Zendesk Developer Advocacy
    Hi Neville,
    The REST API will not return the email source file that the "view original email" link opens.  But you can use the Ticket Comments API to get the ticket comments.  This will include the message body and useful metadata like the sender/recipient addresses and message ID.
  • Neville Barrett

    Hi Christopher,

    Thank you for this information. I just wanted to let you know that I've passed this on to the appropriate team.



  • Ahmed Zaid
    Community Moderator

    Hi Christopher Kennedy,

    Sorry to hijack the post but I have one issue with this workaround. Whether I use the comments or the audits api, it is not possible to identify the original email sender if it was not from the primary email address. One workaround I tried was checking the via.source.from.original_recipients array. The problem is that it includes the original message's to, from and cc addresses together. So it might be possible to deduce the author, but not if they Cc their primary email for example. I wish those data were serialized properly as from, to, and cc.

  • Christopher Kennedy
    Zendesk Developer Advocacy
    Hi Ahmed,
    That's a very good point.  Depending on the use case, you may need an additional step of checking the recipients against the related users' identities to identify which Zendesk user is a specific recipient. 

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk