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
Your SmartLead API key
Request Body
Display name for outgoing emails (e.g., “John Doe”)
Email address (must be valid email format)
SMTP username (usually the email address)
SMTP password or app-specific password
SMTP server hostname (e.g., “smtp.gmail.com”)
SMTP server port (common ports: 587 for TLS, 465 for SSL, 25 for plain)
IMAP server hostname (e.g., “imap.gmail.com”)
IMAP server port (common ports: 993 for SSL, 143 for plain)
Whether to enable email warmup for this account
Email account ID (only for updates, null for new accounts)
Email provider type. Valid values:
GMAIL, OUTLOOK, SMTPOAuth token object (for Gmail/Outlook OAuth accounts)
Custom reply-to email address (if different from from_email)
IMAP username (if different from SMTP username)
IMAP password (if different from SMTP password)
Maximum emails allowed per day (including warmup and campaign emails)
Custom domain for tracking links
BCC email address for all outgoing emails
Minimum time to wait between emails in minutes
Email signature HTML
Number of warmup emails to send per day (if warmup_enabled is true)
Daily increase in warmup email count
Target reply rate percentage for warmup emails
Client ID for multi-tenant accounts
Whether the account should be suspended upon creation
Response Codes
Email account added successfully with connection validation
SMTP or IMAP connection failed - check credentials and server settings
Invalid or missing API key
Missing required fields or invalid field values
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
