leads_list_all_auto
Automatically retrieve all non-archived leads with automatic pagination handling. Apply filters to refine results and set max items to limit output size 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 | |
| organization_id | No | Filter by organization ID |