Email Account Management
Get All Email Accounts
Retrieve all email accounts with advanced filtering and pagination options
GET
Returns email accounts with SMTP/IMAP credentials, warmup status, and campaign associations. Supports filtering by connection status, warmup state, email provider, and usage status.
Query Parameters
Your SmartLead API key
Pagination offset (minimum: 0)
Number of accounts to return per page (minimum: 1, maximum: 100)
Filter by usage status. Valid values:
true (used in campaigns), false (not used in campaigns)Filter by warmup status. Valid values:
ACTIVE, INACTIVEFilter by SMTP connection status. Valid values:
true (connected), false (failed)Filter by warmup blocked status. Valid values:
true (blocked), false (not blocked)Filter by email service provider. Valid values:
GMAIL, OUTLOOK, SMTPFilter by email username (partial match supported)
Filter by client ID (for multi-tenant accounts)
If
true, includes an array of campaign IDs for each email account. Returns a campaign_ids field on each account object.Response Fields
The response is an array of email account objects, each containing:Account Information
Account Information
Unique email account identifier
Display name for outgoing emails
Email address
Email account username
Account type:
GMAIL, OUTLOOK, or SMTPAssociated client ID
Number of campaigns using this email account
When the account was added
When the account was last updated
SMTP Configuration
SMTP Configuration
IMAP Configuration
IMAP Configuration
IMAP server hostname
IMAP server port
IMAP port type (SSL/TLS)
IMAP username
Whether IMAP uses different credentials than SMTP
Whether IMAP connection is successful
IMAP connection error message if failed
Sending Configuration
Sending Configuration
Maximum messages allowed per day
Messages sent today
Email signature HTML
Custom domain for tracking links
BCC email address for all outgoing emails
Custom reply-to email address
Minimum time to wait between emails (in minutes)
Warmup Details
Warmup Details
Email warmup status and metrics
Tags
Tags
Campaign IDs (Optional)
Campaign IDs (Optional)
Array of campaign IDs using this email account. Only included when
fetch_campaigns=true is passed as a query parameter.Response Codes
Email accounts retrieved successfully
Invalid or missing API key
Invalid query parameters (check limit range and filter values)
Server error occurred
Usage Notes
The
tags array is always included in the response. The campaign_ids array is only included when fetch_campaigns=true is passed as a query parameter.Passwords are base64 encoded in the response for security. Decode them before use in your SMTP/IMAP clients.
