Email Account Management
Add SMTP Email Account
Add new SMTP/IMAP email account with connection validation and optional warmup configuration
POST
Creates a new email account with SMTP and IMAP configuration. SmartLead will validate the connection and optionally enable email warmup. Supports both standard SMTP accounts and OAuth providers (Gmail, Outlook).
Query Parameters
string
required
Your SmartLead API key
Request Body
string
required
Display name for outgoing emails (e.g., “John Doe”)
string
required
Email address (must be valid email format)
string
required
SMTP username (usually the email address)
string
required
SMTP password or app-specific password
string
required
SMTP server hostname (e.g., “smtp.gmail.com”)
number
required
SMTP server port (common ports: 587 for TLS, 465 for SSL, 25 for plain)
string
required
IMAP server hostname (e.g., “imap.gmail.com”)
number
required
IMAP server port (common ports: 993 for SSL, 143 for plain)
boolean
required
Whether to enable email warmup for this account
number
Email account ID (only for updates, null for new accounts)
string
Email provider type. Valid values:
GMAIL, OUTLOOK, SMTPobject
OAuth token object (for Gmail/Outlook OAuth accounts)
string
Custom reply-to email address (if different from from_email)
string
IMAP username (if different from SMTP username)
string
IMAP password (if different from SMTP password)
number
Maximum emails allowed per day (including warmup and campaign emails)
string
Custom domain for tracking links
string
BCC email address for all outgoing emails
number
Minimum time to wait between emails in minutes
string
Email signature HTML
number
Number of warmup emails to send per day (if warmup_enabled is true)
number
Daily increase in warmup email count
number
Target reply rate percentage for warmup emails
number
Client ID for multi-tenant accounts
boolean
Whether the account should be suspended upon creation
Response Codes
Success
Email account added successfully with connection validation
Bad Request
SMTP or IMAP connection failed - check credentials and server settings
Unauthorized
Invalid or missing API key
Validation Error
Missing required fields or invalid field values
Internal Server Error
Server error occurred
Configuration Examples
Gmail Configuration
Gmail Configuration
Outlook/Office 365 Configuration
Outlook/Office 365 Configuration
Custom SMTP Configuration
Custom SMTP Configuration
Usage Notes
SmartLead automatically validates SMTP and IMAP connections upon adding an account. If validation fails, the account is still created but marked with connection errors that you can fix later.
Related Endpoints
- Add OAuth Email Account - For OAuth-based Gmail/Outlook
- Get All Email Accounts
- Update Warmup Settings
