leads_list_all_auto
Retrieve all non-archived leads matching filters with automatic pagination. Returns complete results in a single response for exports or analysis.
Instructions
Automatically fetch ALL leads with pagination handling.
This tool automatically handles pagination and fetches all non-archived leads matching the filters. Unlike leads/list, this returns ALL results in a single response.
WARNING: This can return large datasets. Use filters to limit results.
Workflow tips:
Same filters as leads/list (owner_id, person_id, organization_id, filter_id)
Specify max_items to limit total results if needed
No need to manage start/limit - pagination is automatic
Best for exports, reports, or comprehensive analysis
Leads are sorted by creation time (oldest to newest)
Common use cases:
Get all leads: {}
Export all leads for a user: { "owner_id": 123 }
Get all leads for analysis: { "max_items": 1000 }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Field names and sorting mode | |
| owner_id | No | Filter by owner (user) ID | |
| filter_id | No | ID of the filter to use | |
| max_items | No | Maximum number of items to return | |
| person_id | No | Filter by person ID | |
| add_time_from | No | Filter leads created on or after this date (YYYY-MM-DD). Applied client-side. | |
| add_time_until | No | Filter leads created on or before this date (YYYY-MM-DD). Applied client-side. | |
| organization_id | No | Filter by organization ID |