List Deals
GET /deals
List all deals org-wide with optional filters and pagination.
Authorizations
Parameters
Query Parameters
Page number
Page number
Items per page
Items per page
Deals last touched before this timestamp OR never touched at all. Union of last_activity_before and the no-activity cohort - use this for ‘my stale deals’ (last_activity_before alone excludes deals with no recorded activity, since NULL is never earlier-than).
Filter by whether the deal has a route to any contact. false returns the orphaned-deal cohort: no cb_deal_contacts row AND no live primary contact (a primary_contact_id pointing at a soft-deleted or merged-away contact counts as no route). Same definition the Data Quality panel counts, so the two can never disagree.
Only deals whose close_date is on/after this timestamp (inclusive lower bound). Pair with close_before for a period window, and with outcome=won for ‘deals we closed-won in this period’. A period count needs BOTH a lower bound and the outcome join: close_before alone sums the entire deal history into every period. Deals with a NULL close_date are excluded (a deal with no close date is not closing in any window). A naive timestamp is treated as UTC.
Only deals whose close_date is strictly before this timestamp (exclusive upper bound). The window is half-open [close_after, close_before) so adjacent periods never double-count a deal that closes exactly on a boundary. A naive timestamp is treated as UTC (the close_date column is timestamp without time zone).
Header Parameters
Responses
200
Successful Response
object
object
Lightweight contact summary embedded in deal responses.
id is the canonical mashup_contact_id (BigInt), matching how contacts
are addressed everywhere else in the public API (g8_search_contacts,
g8_lookup_person, etc.). role is the contact’s role within THIS deal
(champion / decision_maker / influencer / blocker / coach / end_user) and
is null when no role was set.
Lightweight contact summary embedded in deal responses.
id is the canonical mashup_contact_id (BigInt), matching how contacts
are addressed everywhere else in the public API (g8_search_contacts,
g8_lookup_person, etc.). role is the contact’s role within THIS deal
(champion / decision_maker / influencer / blocker / coach / end_user) and
is null when no role was set.
422
Validation Error