An integration finishes without an error, but the operations team cannot find an older customer record. Did the source exclude it, did permissions hide it, or did the integration stop after its first page?
Before accepting a business sync, agree what counts as a complete traversal of the agreed records. A successful page request is not a completion certificate for the whole job. This API pagination checklist helps you specify five things: record scope, next-page rules, recovery checkpoints, incomplete states and completion evidence.
This is a planning framework, not a tested integration. The customer-directory example is fictional. Every acceptance case below is Not run. Provider examples describe their cited documentation, not a universal API contract.
1. Define which records belong in the sync
Start with one sentence: ‘For organization ___, retrieve records matching ___, using identity ___, with fields ___, under the agreed freshness rule ___.’
Make the filter and access scope explicit. A complete response for one credential does not establish that the credential can see every business record you intended to include. Ask the supplier to distinguish an empty result from an unauthorized request, a restricted view and a failed request. This worksheet is not permission to broaden access.
Also decide whether you need a point-in-time snapshot or a best-effort traversal of changing records. Do not infer snapshot consistency from pagination. Ask for endpoint-specific documentation or an explicit limitation and reconciliation plan. If records can change during the run, define how the business will detect and resolve gaps rather than promising perfect coverage.
2. Follow the API's documented next-page rule
GitHub documents pagination through URLs in the response's link header. Its next-page link is marked rel="next"; some other links may be absent, including a last-page link when the last page cannot be calculated.[1] Microsoft Graph instead describes an @odata.nextLink property returned while more pages remain. Its documentation says to continue using that property until it is no longer returned.[2]
Those are different contracts. Ask the developer to identify the exact endpoint's continuation and end conditions rather than assuming that every API accepts an incremented page number.
For Microsoft Graph, use the entire @odata.nextLink URL, not its extracted $skip or $skiptoken value in a different request.[2] Preserve the provider's continuation meaning while retaining approved credential and destination boundaries. Do not send credentials to an arbitrary URL merely because a response contains a link.
Avoid the shortcut ‘this page was smaller than requested, so we must be finished.’ GitHub notes that a requested per_page value above an endpoint's maximum can be reduced without an error; endpoint documentation determines the supported sizes.[1] Microsoft Graph says a page can contain zero or more results and that paging support and size behavior vary by API.[2] Neither establishes a universal short-page completion rule.
For the fictional directory sync, the proposed rule is: handle each successful page under the agreed record-handling rules, follow its documented continuation signal and declare traversal complete only when the documented end condition is satisfied. Distinguish a valid end condition from a missing or malformed signal that the endpoint contract requires. The latter needs an explicit incomplete or failed outcome, not guessed success.
3. Agree when a recovery checkpoint becomes durable
If the application advances its checkpoint before it safely handles a page, ask how it avoids abandoning that page after a crash. If it saves progress afterward, ask how it handles seeing the same page again. These are design questions, not claims about every pagination implementation.
For the fictional directory, a useful handover record might contain:
- A run identity and references to the agreed organization, filter and credential scope.
- The most recent successfully handled page or provider continuation reference, stored with appropriate protection.
- Counts of records observed, accepted, rejected and repeated, with the counting rules explained.
- The last confirmed progress time, current status and owner of any incomplete run.
Keep credentials and sensitive payloads out of diagnostic traces. Treat continuation references according to the provider's security requirements; they are not assumed harmless or safe to expose.
Repeated records must not inflate a claim about unique records. Reaching the end of a traversal also does not prove that changing data formed a consistent snapshot. Ask for evidence against the agreed scope and consistency requirement, not a reassuring large number.
If retrieving a record triggers another action, define that action's duplicate-handling rules separately. The safe-retries guide covers uncertain outcomes and repeated business effects. Pagination determines how to continue reading; it does not establish that repeating a downstream action is safe.
4. Make incomplete syncs visible
Plan for a middle page to fail, a continuation reference to become unusable or a job to reach its deadline. Specify whether the application resumes, restarts under controlled duplicate handling or stops for reconciliation. Verify the actual provider's continuation lifetime and restart rules rather than inventing a universal token expiry.
A proposed directory screen could distinguish ‘sync in progress,’ ‘incomplete: attention needed’ and ‘completed under the agreed scope.’ Showing some retrieved records must not quietly imply the entire directory is current. Keep the last fully reconciled result separate from a partial replacement if that distinction matters to staff.
Rate limits are a separate operational constraint. Use the API rate-limit checklist to agree delays, waiting-work bounds and deadlines. Slowing down correctly still does not prove every required page was read.
5. Use a pagination acceptance worksheet
Ask the developer to review and run these proposed cases with synthetic data in an approved test environment. Record the application revision, endpoint/API version, fixture contents, filters, access scope, page configuration, observed requests and final record reconciliation. No provider call or application test was performed for this article.
| Planning case | Expected behavior to agree | Evidence to request | Status |
|---|---|---|---|
| Fixture spans several pages | Follow every documented next step until the agreed end condition | Request sequence and reconciliation against the known fixture | Not run |
| Server returns fewer items than requested but offers continuation | Continue under the endpoint contract | Actual response and subsequent request | Not run |
| An intermediate page fails | Do not claim complete; use bounded recovery or escalation | Failed request, retained progress and visible status | Not run |
| Process stops after handling a page but before saving progress | Apply agreed duplicate rules to replayed work | Restart trace and reconciled downstream records | Not run |
| Continuation is unusable | Use a supported restart or explicit intervention, not a guessed continuation | Provider response, chosen recovery path and final scope check | Not run |
| Records change during traversal | Expose the agreed consistency limitation and reconciliation | Controlled insert/update/delete scenario and gap analysis | Not run |
| Credential sees only a permitted subset | Describe completion within that access scope, not as unrestricted coverage | Synthetic role fixtures and expected-versus-observed visibility | Not run |
A fixture passing these checks demonstrates behavior only under its recorded conditions. It does not establish a provider's full production behavior or guarantee complete results under every concurrent change.
Ask for a completion statement before sign-off
Ask the supplier to finish this statement:
‘This run covered ___ under access scope ___. It followed continuation using ___. Progress becomes durable when ___. It reached the documented end condition at ___, or stopped because ___. Repeated records and rejected items were handled by ___. Our consistency limitation is ___ and the person responsible for reconciliation is ___.’
The blanks turn ‘the sync works’ into an agreement that staff and developers can inspect together.
If you are planning an integration, use the CodeDrawn Digital project brief to describe the systems, record scope and what incomplete data would mean for your work. Do not include credentials or private records. The helper lets you prepare a brief and request an email draft; it does not submit an inquiry or confirm app opening, sending or receipt.
Sources
Primary documentation checked 24 November 2026. These provider-specific examples do not establish another API's completion, consistency or recovery contract.
[1] https:
[2] https: