List leads with filters
Query parameters
Filter by attribution funnel (legacy single; matches Z_Leads.teams_id)
Filter by attribution funnel (legacy single; matches Z_Leads.teams_id)
Filter by one or more attribution funnels ('Fluxo de Atribuição') — matches leads attributed to any selected funnel (Z_Leads.teams_id), regardless of who owns them now. NOT owner membership.
Filter by one or more attribution funnels ('Fluxo de Atribuição') — matches leads attributed to any selected funnel (Z_Leads.teams_id), regardless of who owns them now. NOT owner membership.
Filter by user (legacy single)
Filter by user (legacy single)
Filter by one or more users — matches leads owned by any of them
Filter by one or more users — matches leads owned by any of them
'mine' = role-aware board view: the caller's own leads, plus all team leads if the caller is a team leader
'mine' = role-aware board view: the caller's own leads, plus all team leads if the caller is a team leader
Filter lost leads by one or more lost_reason IDs
Filter lost leads by one or more lost_reason IDs
Sort order: 'created_desc' (newest first) or 'created_asc' (oldest first)
Sort order: 'created_desc' (newest first) or 'created_asc' (oldest first)
Only leads created on/after this date (YYYY-MM-DD)
Only leads created on/after this date (YYYY-MM-DD)
Only leads created on/before this date, inclusive (YYYY-MM-DD)
Only leads created on/before this date, inclusive (YYYY-MM-DD)
Headers
Response
Successful Response