Skip to the content
Check NetworksHelp
  1. API and webhooks
  2. Paging through lists

Paging through lists

How each API list pages, how to read one to the end, and the CSV and NDJSON downloads.

Every list comes back in results. How you read past the first page depends on the list: most page by number, the ones that grow while you read them give a cursor as well, a few page by cursor alone, and short lists come back whole. Each list’s pattern is listed below.

Page lists

A page list takes page (from 1) and perPage (from 1 to 200, 50 when left out), and answers:

{
  "total": 132,
  "page": 1,
  "perPage": 50,
  "results": []
}

total counts every record that matches, across all pages. A page or perPage outside those bounds answers 422 naming it; it is never quietly changed. A page past the end answers 200 with an empty results.

To read the whole list, ask for page 1, then 2, and so on, until a page has fewer than perPage results. Records added while you read can move between pages, so a walk by page number can repeat or skip one. The lists where that matters give a cursor.

  • GET /account/booked-changes
  • GET /account/credit-notes
  • GET /account/invites
  • GET /account/invoice-disputes
  • GET /account/invoices
  • GET /account/invoices/{invoiceId}/lines/{lineId}/detail
  • GET /account/payment-charges
  • GET /account/pricing/call-rates
  • GET /account/users
  • GET /bundles
  • GET /caller-id-authorisations
  • GET /colocation/services
  • GET /data/orders
  • GET /data/orders/delayed
  • GET /data/orders/{orderId}/delegations
  • GET /data/provisioning
  • GET /data/radius
  • GET /data/services
  • GET /data/services/{ref}/diagnostics
  • GET /data/services/{ref}/health
  • GET /data/services/{ref}/sessions
  • GET /data/sq/batches
  • GET /data/tags
  • GET /data/usage
  • GET /emergency-addresses
  • GET /end-users
  • GET /end-users/credit-notes
  • GET /end-users/disputes
  • GET /end-users/hardship
  • GET /end-users/imports
  • GET /end-users/invoice-approvals
  • GET /end-users/invoices
  • GET /end-users/{endUser}/notes
  • GET /end-users/{endUser}/usage
  • GET /exports
  • GET /fax/plans
  • GET /fax/plans/{planId}/senders
  • GET /integrations/xero/contacts Xero’s own pages of 100, with no total.
  • GET /integrations/xero/queue
  • GET /nbn/quotes
  • GET /numbers
  • GET /numbers/orders
  • GET /outages
  • GET /outages/subscriptions
  • GET /partners
  • GET /partners/commission-runs
  • GET /partners/invites
  • GET /ports
  • GET /ports/{reference}/delegations
  • GET /residential-lines
  • GET /retail/plans
  • GET /retail/plans/{planId}/destinations
  • GET /transit/services/{serviceNumber}/blackholes
  • GET /trunks
  • GET /trunks/{username}/ips
  • GET /vpn/groups
  • GET /vpn/users
  • GET /watch
  • GET /webhooks

Lists with a cursor

The lists that grow while you read them also answer nextCursor. The first page is a page list with nextCursor added; pass it back as cursor, with the same filters, for the next page, until nextCursor is null. The last page can be empty.

{
  "perPage": 50,
  "nextCursor": "eyJpZCI6NDIsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0",
  "results": []
}

A cursor walks the list newest first from where the last page ended, so a record added meanwhile is neither repeated nor skipped, however long the walk takes. A cursor page carries perPage, nextCursor and results only: no total and no page. Treat a cursor as opaque: pass it back as it came. One this list did not give you answers 422. A list sorted with sort has no cursor: nextCursor is null, and sort with cursor answers 422.

For example, in Python:

import requests

def read_all(url, token, params=None):
    params = dict(params or {}, perPage=200)
    while True:
        page = requests.get(url, params=params,
                            headers={"Authorization": f"Bearer {token}"}).json()
        yield from page["results"]
        if not page.get("nextCursor"):
            return
        params["cursor"] = page["nextCursor"]
  • GET /account/api-calls
  • GET /account/audit-log
  • GET /account/notices
  • GET /account/payments
  • GET /events Oldest first, from after or since: see Catching up on missed events.
  • GET /sms
  • GET /sms/{number}
  • GET /tickets
  • GET /voice/cdrs Over a window: see Call records.
  • GET /webhooks/deliveries
  • GET /webhooks/{webhookId}/deliveries

Lists by cursor alone

These page by cursor from the first page: they take cursor and perPage, and answer perPage, nextCursor and results, with no total. Follow nextCursor as above.

  • GET /end-users/{endUser}/ledger
  • GET /fax/documents
  • GET /voice/calls/active
  • GET /voice/recordings

Call records

GET /voice/cdrs reads a window of time: the 31 days before to when you send no from, and up to now when you send no to. Each answer says the window it used in window, and a cursor keeps the first page’s window, so a walk does not drift as new calls arrive.

Page numbers reach at most 10,000 records into the window (page × perPage); a deeper page answers 422. total is exact up to 10,000, and reads 10,000 with totalIsBounded: true beyond it. To read more, follow nextCursor, which has no depth limit.

Lists that come back whole

These are short, so they take no page, perPage or cursor: results holds every record. Some add a total.

  • GET /account/invoice-groups
  • GET /account/invoice-services
  • GET /account/invoices/{invoiceId}/disputes
  • GET /account/payment-methods
  • GET /account/pricing/ranges
  • GET /account/pricing/{range}
  • GET /account/reports
  • GET /account/usage-alerts
  • GET /account/usage/by-end-user
  • GET /account/usage/daily-data
  • GET /addresses/search
  • GET /colocation/sites
  • GET /data/layer2/destinations
  • GET /data/pois
  • GET /data/services/{ref}/diagnostics/types
  • GET /end-users/invoices/{invoiceId}/payments
  • GET /end-users/{endUser}/charges
  • GET /end-users/{endUser}/hardship
  • GET /end-users/{endUser}/invoice-groups
  • GET /end-users/{endUser}/invoice-services
  • GET /end-users/{endUser}/representatives
  • GET /end-users/{endUser}/safety-records
  • GET /end-users/{endUser}/services
  • GET /nbn/orders/delayed
  • GET /nbn/orders/product/{orderId}/history
  • GET /nbn/planning/fibre_uplift/locations
  • GET /nbn/products
  • GET /nbn/products/active
  • GET /nbn/products/in_progress
  • GET /nbn/products/recently_disconnected
  • GET /nbn/provisioning/layer2/destinations
  • GET /nbn/sales
  • GET /nbn/service_health/service/{serviceRef}
  • GET /numbers/areas
  • GET /numbers/available
  • GET /opticomm/provisioning/layer2/destinations
  • GET /partners/commission-clawbacks
  • GET /retail/notices
  • GET /retail/payment-gateways
  • GET /retail/plans/base-cards
  • GET /retail/price-book/unpriced
  • GET /sms/senders
  • GET /watch/event-types
  • GET /webhooks/event-types

Downloads: CSV and NDJSON

The lists below also download, with format=csv or format=ndjson. A download is the whole filtered list in one response, not a page, so page, perPage and cursor are ignored:

  • csv is text/csv: a header row, then one row per record, with the same columns as a results item.
  • ndjson is application/x-ndjson: one JSON object per line, each the same as a results item.

A format the list does not offer answers 422. A download of call records covers at most 93 days, so a longer window answers 422 on from, and each one is recorded in the audit log with the key that made it.

List Formats
GET /account/credit-notes csv, ndjson
GET /account/invoices csv, ndjson
GET /account/payments csv, ndjson
GET /account/pricing/call-rates csv
GET /account/usage/by-end-user csv
GET /account/usage/daily-data csv
GET /end-users/invoices csv, ndjson
GET /numbers csv, ndjson
GET /ports csv, ndjson
GET /sms csv, ndjson
GET /sms/{number} csv, ndjson
GET /trunks csv, ndjson
GET /voice/cdrs csv, ndjson

To have call records written for you every day or every month, turn on the scheduled SFTP exports: CDR Delivery under Company Settings, then Integrations, or PUT /voice/cdrs/exports/{cadence}. See Call history.

Still stuck? Log a ticket in the portal, or call support on 1800 718 449, Monday to Friday, 9 am to 6 pm AEST.

Log a ticket

© 2026 Check Networks. ABN 22 623 070 057. checknetworks.tools