Integrations · Practical guide
Zintara API pagination: walk lead pages and reconcile changing data
Use page, totalPages and hasNextPage from the lead-list response while accounting for changes during a multi-request export.
Reviewed · Examples are illustrative
Who this helps: Operators connecting and reconciling outreach systems.
Define the decision
The reviewed GET /api/leads handler accepts page and limit, plus q and status filters. It defaults invalid or out-of-range limits to 200 and permits limits up to 1,000. Pagination is not a snapshot transaction across requests.
Work through the procedure
- Use a leads:read key and explicit page and limit values.
- Keep filters identical across the walk.
- Process records by stable lead ID and follow hasNextPage.
- Record the start and end time, then reconcile if the source changed during the walk.
Worked example
The following is a synthetic example for this procedure, not a customer result or performance benchmark.
GET /api/leads?page=1&limit=100&status=new
Response fields: ok, leads, total, page, totalPages, hasNextPage
Next request: same filters with page=2
Consumer record: lead ID plus retrieval timeRead the result
Insertions or deletions can move records between offset-based pages. Deduplicating by lead ID prevents repeated processing but does not by itself prove that no record was skipped.
Check before moving on
- Handle an empty leads array without inventing a missing record.
- Do not assume campaign enrollment pages use the same response envelope.
Limits and next action
For a critical migration, use a controlled quiet window or reconciliation pass. There is no documented snapshot cursor in this endpoint.
Source references
Worked examples are illustrative. Editorial procedures are suggested methods, not measured performance claims or promises of additional product features.
Related guides
- Zintara Slack notifications: connect a channel and select events →
- Zintara API rate-limit handling: bound retries without inventing a quota →