Get Deals Kpis
Deals
KPI Tiles
Header KPI tiles, aggregated in the DB (deal_kpis view, or deal_kpis_search when
q is set), in display shape.
GET
Get Deals Kpis
Aggregate KPI tiles (total, pipeline, avg close, at-risk), computed in the database (the
deal_kpis view, or the deal_kpis_search RPC when q is set to a free-text search string).
Auth
Requires a CRM read scope and an active organization on the token. Any ofcontacts:read, deals:read, companies:read, or activities:read qualifies, as does any *:manage scope — manage implies read.
Response
Note the mixed casing —
total/pipeline are lowercase, avgClose/atRisk are camelCase — this is the literal response shape, not a documentation typo.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Free-text search; when set, KPIs are computed via the deal_kpis_search RPC instead of the deal_kpis view.
Response
Successful Response