Pagination and filtering
The live collection endpoints use cursor pagination with a hybrid query model:
GET /v2/contactsGET /v2/companiesGET /v2/usersGET /v2/tagsGET /v2/engagements- Query params:
limit,cursor,searchwhen supported, structuredfilter[...], andorder_by
Use the canonical parameter names exactly as documented. The API does not accept legacy aliases
such as company_id, top-level processing_status, sort, or order.
Query parameters
Response fields
Example
To request the next page:
Engagement filters
GET /v2/engagements supports these engagement-specific filters on top of the shared list query contract:
Engagement filtering follows MCP-style bucket semantics:
company_idsand CRM associations that resolve to companies share one company bucket.contact_idsand CRM associations that resolve to contacts share one participant bucket.- CRM associations that resolve to deals/projects populate a project bucket.
Values within the same bucket use OR semantics. Populated buckets combine with AND semantics.
For readability, docs examples use indexed bracket syntax. One CRM company association looks like:
When using raw filter[...] query params with curl, add --globoff so curl does not interpret [] as URL globbing syntax.
That corresponds to this object:
For GET /v2/engagements, the common CRM object filters are:
- CRM company ID:
{ "id": "12345", "object_type": "company" } - CRM contact ID:
{ "id": "67890", "object_type": "contact" } - CRM deal ID:
{ "id": "deal_abc123", "object_type": "deal" }
Equivalent JSON-array form:
filter[company_ids][in] and filter[contact_ids][in] support up to 25 values each. filter[crm_associations][eq] supports up to 20 objects.
CRM source is inferred from the workspace’s connected CRM state. The API resolves local CRM links first, and unresolved CRM associations do not erase otherwise valid direct company_ids or contact_ids filters in the same bucket.
For a full walkthrough, see Filter engagements by CRM object IDs.
Engagement example
How cursors work
List cursors are keyset (seek) pagination tokens, not offset tokens and not a point-in-time snapshot of the collection.
Each cursor encodes the sort key and record id tie-breaker from the last row on the previous page:
The prefix plus base64url-encoded JSON is opaque to callers — treat next_cursor as an opaque token and pass it back unchanged. Do not construct cursors manually unless you are debugging.
Cursors are bound to the order_by field, not its direction. Passing an updated_at cursor with order_by=start_at:asc (or the reverse) returns 400 Invalid Query Parameter. Reusing a cursor with the opposite direction for the same field is accepted, but the cursor boundary is then interpreted in that opposite direction and can skip or repeat records. Keep both field and direction unchanged during a traversal.
Live pagination, not a snapshot
Keyset pagination reads the live dataset as you walk pages. There is no snapshot isolation:
- Duplicate delivery (upsert-safe): If a row’s sort key moves forward relative to your walk direction while you paginate (for example,
updated_atincreases during anorder_by=updated_at:ascexport), that row can appear again on a later page. Design sync jobs to upsert byidso duplicates are safe. - Possible skip: If a row’s sort key moves backward relative to your walk direction (for example,
updated_atdecreases during anorder_by=updated_at:ascexport), that row may be skipped relative to an in-progress cursor walk.
For forward-moving sync jobs, combine filter[updated_at][gte]=<checkpoint> with order_by=updated_at:asc and upsert by id. See Bulk exports and incremental syncs for checkpoint guidance.
Why cursor pagination
Cursor pagination is the live pattern because it is more stable than offset pagination for large, frequently changing datasets.
For incremental sync, keep the last seen updated_at checkpoint and continue walking pages with next_cursor until has_more is false.