Skip to main content
GET
/
api
/
v1
/
email-accounts
/
{email_account_id}
curl "https://server.smartlead.ai/api/v1/email-accounts/123/?api_key=YOUR_KEY&fetch_campaigns=true"
{
  "id": 123,
  "created_at": "2025-01-15T10:30:00.000Z",
  "updated_at": "2025-11-26T08:00:00.000Z",
  "user_id": 456,
  "from_name": "John Doe",
  "from_email": "john@example.com",
  "username": "john@example.com",
  "password": "decrypted_password",
  "smtp_host": "smtp.gmail.com",
  "smtp_port": 587,
  "smtp_port_type": "TLS",
  "message_per_day": 50,
  "is_smtp_success": true,
  "is_imap_success": true,
  "type": "GMAIL",
  "daily_sent_count": 25,
  "client_id": null,
  "warmup_details": {
    "id": 789,
    "status": "ACTIVE",
    "created_at": "2025-01-15T10:30:00.000Z",
    "reply_rate": 15,
    "warmup_key_id": 1001,
    "blocked_reason": null,
    "total_sent_count": 450,
    "total_spam_count": 2,
    "warmup_max_count": 30,
    "warmup_min_count": 10,
    "is_warmup_blocked": false,
    "max_email_per_day": 50,
    "warmup_reputation": 95
  },
  "campaign_ids": [101, 102, 103]
}
Returns detailed email account information including SMTP/IMAP credentials (with decoded passwords), warmup statistics, and optionally the list of campaigns using this account.

Path Parameters

email_account_id
number
required
The email account ID to retrieve

Query Parameters

api_key
string
required
Your SmartLead API key
fetch_campaigns
boolean
default:"false"
If true, includes array of campaign IDs using this email account
curl "https://server.smartlead.ai/api/v1/email-accounts/123/?api_key=YOUR_KEY&fetch_campaigns=true"

Response Fields

Response includes the same fields as Get All Email Accounts, plus detailed warmup configuration and optionally campaign IDs.
warmup_details
object
Comprehensive warmup details with additional fields
campaign_ids
array
Array of campaign IDs using this email account (only if fetch_campaigns=true)

Response Codes

200
Success
Email account retrieved successfully
401
Unauthorized
Invalid or missing API key
404
Not Found
Email account not found or you don’t have access to it
500
Internal Server Error
Server error occurred
{
  "id": 123,
  "created_at": "2025-01-15T10:30:00.000Z",
  "updated_at": "2025-11-26T08:00:00.000Z",
  "user_id": 456,
  "from_name": "John Doe",
  "from_email": "john@example.com",
  "username": "john@example.com",
  "password": "decrypted_password",
  "smtp_host": "smtp.gmail.com",
  "smtp_port": 587,
  "smtp_port_type": "TLS",
  "message_per_day": 50,
  "is_smtp_success": true,
  "is_imap_success": true,
  "type": "GMAIL",
  "daily_sent_count": 25,
  "client_id": null,
  "warmup_details": {
    "id": 789,
    "status": "ACTIVE",
    "created_at": "2025-01-15T10:30:00.000Z",
    "reply_rate": 15,
    "warmup_key_id": 1001,
    "blocked_reason": null,
    "total_sent_count": 450,
    "total_spam_count": 2,
    "warmup_max_count": 30,
    "warmup_min_count": 10,
    "is_warmup_blocked": false,
    "max_email_per_day": 50,
    "warmup_reputation": 95
  },
  "campaign_ids": [101, 102, 103]
}

Usage Notes

This endpoint returns decoded passwords in plain text. Use HTTPS and secure storage when handling this sensitive data.
Use fetch_campaigns=true to see which campaigns are using this email account before making changes or deletions.