activate_campaign
Start sending email campaigns in Instantly.ai by activating a configured campaign with assigned accounts, leads, sequences, and schedule.
Instructions
Activate campaign to start sending.
Prerequisites (all required):
At least one sender account assigned (email_list)
At least one lead added to the campaign
Email sequences configured
Schedule configured
Use get_campaign to verify all prerequisites are met.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Implementation Reference
- The primary handler function that executes the activate_campaign tool logic. It proxies the request to the Instantly API endpoint /campaigns/{campaign_id}/activate and returns the JSON response.async def activate_campaign(params: ActivateCampaignInput) -> str: """ Activate campaign to start sending. Prerequisites (all required): 1. At least one sender account assigned (email_list) 2. At least one lead added to the campaign 3. Email sequences configured 4. Schedule configured Use get_campaign to verify all prerequisites are met. """ client = get_client() result = await client.post(f"/campaigns/{params.campaign_id}/activate") return json.dumps(result, indent=2)
- Pydantic input schema (BaseModel) for the activate_campaign tool, defining the required campaign_id parameter.class ActivateCampaignInput(BaseModel): """ Input for activating a campaign. Prerequisites: accounts, leads, sequences, schedule must be configured. """ model_config = ConfigDict(str_strip_whitespace=True, extra="ignore") campaign_id: str = Field(..., description="Campaign UUID to activate")
- src/instantly_mcp/server.py:81-81 (registration)MCP tool registration annotation in the TOOL_ANNOTATIONS dictionary, specifying destructiveHint: False for the activate_campaign tool."activate_campaign": {"destructiveHint": False},
- src/instantly_mcp/tools/campaigns.py:517-526 (registration)List of campaign tools (CAMPAIGN_TOOLS) that includes activate_campaign, used by get_all_tools() for dynamic registration in the MCP server.CAMPAIGN_TOOLS = [ create_campaign, list_campaigns, get_campaign, update_campaign, activate_campaign, pause_campaign, delete_campaign, search_campaigns_by_contact, ]