Skip to Content

Core Concepts

Pagination

Five lists come in pages with a cursor, and the review queue in pages of its own. Every other list comes whole.

Five lists can grow without bound, so they come in pages: a campaign's leads, a campaign's activity, the inbox's conversations, the credit log and the do-not-contact list. Every other list answers with everything in one response.

Cursor pages

EndpointPage sizeOrder
GET /campaigns/{id}/leadslimit leads, 50 by defaultNewest first
GET /campaigns/{id}/events200 eventsNewest first
GET /conversationsUp to 50 conversationsMost recent message first
GET /billing/credit-log25 entriesNewest first
GET /workspace/do-not-contact100 entriesNewest first

Each page carries next_cursor. Pass it back as ?cursor= to get the next page; null means this is the last one. Leave cursor out to start from the first page. Only a campaign's leads take a page size: limit, from 1 to 500, 50 when left out. A page after the first can take a different limit.

A page of conversations can hold fewer than 50 while more remain, because the view filter applies within each page, and a page of leads can hold fewer than limit because rejected leads are left out. Only a null next_cursor means you have them all.

Lists that come whole

Campaigns, meetings, LinkedIn accounts, sending domains, email inboxes, API keys, workspaces and the team each come in one response. Meetings can be narrowed to a time window with from and to.

The review queue

GET /reviews answers with up to 50 items, oldest first, next_cursor for the next page and count: how many are waiting in all. Approving items brings the next ones into the first page.

Common gotchas

  • Cursors are opaque. Pass back exactly what next_cursor held; do not build or edit one. Every paged list answers 400 invalid_cursor to a cursor it cannot read, such as an edited one or one another list gave out. Rarely, a list refuses a cursor it gave out itself, when the list changed between two pages (a campaign moved to another sender while you paged its conversations). Leave cursor out to start again.
  • Keep the other parameters. Send the same scope and view with every page of conversations.