list_campaigns
Retrieve and filter email campaigns from Instantly API with automatic pagination support to access all campaigns efficiently.
Instructions
List campaigns with optional filters and complete pagination support. COMPLETE PAGINATION: To get ALL campaigns, use one of these approaches:
Set limit=100 or higher (automatically triggers complete pagination)
Set get_all=true (forces complete pagination)
Use limit="all" (string triggers complete pagination)
PAGINATION ALGORITHM: When requesting all campaigns, the tool will automatically:
Start with limit=100 per page
Continue fetching until next_starting_after is null or empty results
Report progress: "Retrieved 100... 200... 304 total campaigns"
Return summarized data to prevent size limits
Use get_campaign for full details of specific campaigns
FILTERS: search and status filters work with both single-page and complete pagination modes.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
get_all | No | Set to true to force complete pagination and retrieve ALL campaigns regardless of limit setting. | |
limit | No | Number of campaigns to return (1-100, default: 20). Use limit=100+ or limit="all" to trigger complete pagination that retrieves ALL campaigns automatically. | |
search | No | Search term to filter campaigns by name (works with complete pagination) | |
starting_after | No | ID of the last item from previous page for manual pagination. Not needed when using complete pagination (limit=100+). | |
status | No | Filter by campaign status (works with complete pagination) |