Campaign Management
Create Campaign
Creates a new email campaign with default settings in DRAFTED status.
POST
Creates a new email campaign with default settings in DRAFTED status Campaign name defaults to ‘Untitled Campaign’ if not provided
Overview
Creates a new email campaign with default settings in DRAFTED status Key Features:- Returns campaign ID and metadata.
Query Parameters
string
required
Your SmartLead API key for authentication
Request Body
string
Campaign name. If not provided, defaults to “Untitled Campaign”. Can be changed later via update settings.
number
Associate campaign with a specific client (for agency/white-label accounts). If not provided and user has client_id, automatically uses that value.
Minimal Required Fields: This endpoint only accepts
name and client_id. Other campaign settings (track_settings, schedule, sequences, etc.) must be configured using separate update endpoints after creation.Response
boolean
Always
true for successful creationnumber
Unique identifier for the newly created campaign
string
Campaign name (either provided or “Untitled Campaign”)
string
ISO 8601 timestamp when campaign was created
Response Codes
Success
Campaign created successfully
Bad Request
Invalid request parameters or malformed request body
Unauthorized
Invalid or missing API key. Check your authentication.
Validation Error
Request validation failed. Check parameter types and required fields.
Rate Limit Exceeded
Too many requests. Please slow down and retry after the rate limit resets.
Internal Server Error
Server error occurred. Please try again or contact support if the issue persists.
Service Unavailable
API is temporarily unavailable or under maintenance. Please try again later.
Implementation Details
What Happens:- Campaign is created with minimal data (just name and optional client_id)
- Campaign starts in DRAFTED status
- Campaign name defaults to “Untitled Campaign” if not provided
- Client ID is automatically set if user is a client
- Returns campaign ID immediately for further configuration
- Status:
DRAFTED - Track Settings: Not set (configure later)
- Schedule: Not set (configure later)
- Sequences: Empty (add later)
- Email Accounts: None (add later)
- Leads: None (add later)
ok, id, name, created_at
Next Steps
After creating a campaign, follow this workflow:1
Add Email Sequences
2
Add Email Accounts
3
Add Leads
4
Configure Schedule
5
Configure Settings
6
Start Campaign
Campaign Naming Best Practices
Use Descriptive Names
Use Descriptive Names
Choose names that clearly indicate the campaign purpose and timeframe
- ✅ Good: “SaaS Founders Q1 2024”
- ❌ Bad: “Campaign 1”
Include Time Period
Include Time Period
Add the quarter or month to track performance over time
- “Q1 2024 Enterprise Outreach”
- “Jan 2024 Product Launch”
Indicate Target Audience
Indicate Target Audience
Make it clear who you’re targeting
- “Healthcare CFOs - Q1”
- “Tech Startup CTOs”
Complete Example Workflow
Python - Complete Campaign Setup
