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
| Endpoint | Page size | Order |
|---|---|---|
GET /campaigns/{id}/leads | limit leads, 50 by default | Newest first |
GET /campaigns/{id}/events | 200 events | Newest first |
GET /conversations | Up to 50 conversations | Most recent message first |
GET /billing/credit-log | 25 entries | Newest first |
GET /workspace/do-not-contact | 100 entries | Newest 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_cursorheld; do not build or edit one. Every paged list answers400invalid_cursorto 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). Leavecursorout to start again. - Keep the other parameters. Send the same
scopeandviewwith every page of conversations.