Pagination
Page through properties and leads with limit and offset.
List endpoints return results in pages, controlled by two query parameters:
A value outside its range returns 422. There are no cursors or next links.
What count means
The two list endpoints report count differently. Write your loop for the endpoint you call.
Paging through properties
count is the total, so stop when offset reaches it:
Paging through leads
count is the size of the page, so stop at the first page that is not full:
Consistency
Pages are computed when each request arrives. If properties or leads change while you page through them, a result can move between pages and be skipped or returned twice. When you need a complete, exact copy, de-duplicate by id, and run the sync again later rather than relying on a single pass.
Filters are applied before pagination, including the map areas of List properties: count and the pages only contain matching properties.