Leads - Admin

Leads behind one 'Motivos de Perda' row (paged drill-down)

Page through the leads of one card row, newest loss first.

start_date/end_date are REQUIRED and are the window the report echoed: the dialog must show the same population the card counted, and re-deriving the window from period at click time would drift by the page's dwell time.

A card row can cover several stored values (the FE merges by resolved label), hence reason is repeatable; include_no_reason selects the NULL/blank "Sem motivo indicado" bucket, which IN (...) can never match.

get/api/leads/reports/lost-reason-leads

Query parameters

reasonstring[]
include_no_reasonboolean
start_datestring
end_datestring
team_idinteger[]
include_no_funnelboolean

Also match leads with no (or an orphaned) attribution funnel

Also match leads with no (or an orphaned) attribution funnel

offsetinteger
limitinteger

Headers

x-api-tokenstring nullable

Response

Successful Response

{"stackTrail":"paths:/api/leads/reports/lost-reason-leads:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.