Differences between Ticket Audits API, Webhook, Incremental Export API and Audit Logs API

6 Comments

  • Greg Katechis
    Zendesk Developer Advocacy

    Hi Mike! Rather than going through each question, I'll give you an answer that should fully answer those questions in a broad way.

    We're in the process of rolling out cursor-based pagination to all endpoints. The ticket_audits endpoint uses a version of cursor-based pagination, but it isn't production-ready at this time, as we note here with the 'stability: development' flag. As such, we can't guarantee that certain results might not be skipped at this time. So it's not a question of what specific records might be skipped, it's just possible that some may not be returned in the expected order. 

    For your use-case, the best method to use would be the incremental ticket exports API that you linked, using cursor-based pagination.

    0
  • Mike Chiu

    Hi Greg-Katechis,

    Thanks again and there's one thing I want to make sure.

    Does incremental export API with service load "user" could cover all the results returned from auditlogs API?

    Want to make sure that because it will affect the basic implementation flow for us.

    Thanks !

    0
  • Greg Katechis
    Zendesk Developer Advocacy
    Honestly, that I'm not sure about. I would recommend checking a sample from both of the APIs and see if there is any mismatch there. It would be really difficult to state with any certainty if something would be in one and not the other, so testing is really your best bet here!
    0
  • Mike Chiu

    Hi Greg-Katechis,

    Thanks for your reply, sure I will test the export API with service load user. 

    Will keep updated. 

    Thanks. 

    0
  • Mike Chiu

    Hi Greg-Katechis,

     

    After doing some very rough test between ticket_audits API and `ticket_events` incremental export api with sideload comment_events, got some notes here:

    1) ticket_audits contains more events then incremental export events with sideload comment_events

    for example, type of ChatEndedEvent, NotificationEvent and WebhookEvent are not shown in `ticket_events` incremental export API.

    2) ticket_audits does not skip some arbitrary events. Maybe that's because there're not enormous occurred under my simple testing environment.

    3) Rate limit. Requests for incremental export event are only 10 per minute.

    So I don't think incremental export api could cover all events in ticket_audits.

    And I was wondering if the sideload I used is enough for this testing or is there's anything I miss so far?

    Want to seek for some suggestions from you, thanks.

     

     

    0
  • Mike Chiu

    Hi Greg-Katechis

    Is there any updates ? thanks!

    And I can't find the definition of ticket_events response json format, is there any place that I can check out ? 

    Thanks!

    0

Please sign in to leave a comment.

Powered by Zendesk