Incremental Ticket Events - Cursor Pagination Version? | Community
Skip to main content

Incremental Ticket Events - Cursor Pagination Version?

  • March 25, 2024
  • 2 replies
  • 0 views

Good day,

Taking note of the Zendesk announcement that developers should prioritize using cursor-based pagination in preference to the offset-based pagination (https://support.zendesk.com/hc/en-us/articles/5591904358938-New-limits-for-offset-based-pagination), I am working on updating our usage of various offset-based endpoints to use the cursor-based versions instead.

As part of our own platform's push-notifications system, we are occasionally polling the "Incremental Ticket Events" endpoint described at https://developer.zendesk.com/api-reference/ticketing/ticket-management/incremental_exports/#incremental-ticket-event-export . This is URL GET /api/v2/incremental/ticket_events . The purpose is in order to detect when a new comment has been added to a ticket, so that we may create a notification on our platform, to let the end user know that a new comment is available for them to read.

I've checked the various Zendesk documentation areas and don't see a cursor-based version of this endpoint - is one available yet?

If not, is it OK to continue using this offset pagination endpoint for Incremental Ticket Events, or is there a recommended alternative to be using in the meantime?

2 replies

Tipene
  • April 2, 2024
Hi George,
 
I've just checked in with the product team on this and there are no current plans to add cursor-based pagination for ticket event exports using the Incremental API. So with that said, you're totally fine to continue using time-based incremental exports.
 
I hope this helps! Feel free to reach out with any questions.
 
Tipene

  • Author
  • April 2, 2024

Sounds good, thank you for confirming.