Pagination
note
All results are ordered by the occurred_at timestamp field in ascending order.
From the sample response, there are two parameters which help with pagination. When you scan a certain period, you will receive 10,000 events by default, and up to 50,000. However, if for a given period there are more events than 10,000/50,000 then hasMore: true will indicate that. To fetch the next batch of events, you have to provide the nextStartTime value to the occurred_at[gte] query parameter. Taking the previous response body, the query will look like this:
curl 'https://TENANT_NAME.mambu.com/api/v2/events?occurred_at\[gte\]=2025-01-04T00:03:13.000Z&occurred_at\[lte\]=2025-01-04T23:59:59Z&event_source\[eq\]=UI&resource\[eq\]=login' \
--header 'apikey: {apikey}'