Get all tickets or all tickets in a specific time window

Good morning,

currently we’re trying to make an API call to fetch all tickets but the result are around 100 approximately and even when we use pagination we only get this same amount of tickets.

The endpoint we’re using is the following:
/api/v1/tickets?page=100&per_page=100

What would be the correct way to call for all tickets or when this is not possible, all tickets in a specific date → date window?

Looks right to me. I think the max is 1000. You will need to paginate with your requests.

https://xxx.zammad.com/api/v1/tickets?page=1&per_page=1000
https://xxx.zammad.com/api/v1/tickets?page=2&per_page=1000
https://xxx.zammad.com/api/v1/tickets?page=3&per_page=1000
https://xxx.zammad.com/api/v1/tickets?page=4&per_page=1000
https://xxx.zammad.com/api/v1/tickets?page=5&per_page=1000

until the result is empty.

This topic was automatically closed after 360 days. New replies are no longer allowed.