curl -X PUT "https://server.smartlead.ai/api/v1/email-accounts/suspend/123?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
account_id = 123
response = requests.put(
f"https://server.smartlead.ai/api/v1/email-accounts/suspend/{account_id}",
params={"api_key": API_KEY}
)
result = response.json()
if result.get('success'):
print(f"Email account {account_id} suspended successfully")
const API_KEY = 'YOUR_API_KEY';
const accountId = 123;
const response = await fetch(
`https://server.smartlead.ai/api/v1/email-accounts/suspend/${accountId}?api_key=${API_KEY}`,
{ method: 'PUT' }
);
const result = await response.json();
if (result.success) {
console.log(`Email account ${accountId} suspended successfully`);
}
{
"success": true,
"message": "Email account suspended successfully",
"data": {
"accountId": 123,
"isSuspended": true
}
}
{
"success": false,
"message": "Email account not found or does not belong to you"
}
{
"success": false,
"message": "Valid account ID is required"
}
{
"message": "Invalid API Key"
}
Email Account Management
Suspend Email Account
Temporarily suspend an email account from all sending activities including campaigns and warmup
PUT
/
api
/
v1
/
email-accounts
/
suspend
/
{email_account_id}
curl -X PUT "https://server.smartlead.ai/api/v1/email-accounts/suspend/123?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
account_id = 123
response = requests.put(
f"https://server.smartlead.ai/api/v1/email-accounts/suspend/{account_id}",
params={"api_key": API_KEY}
)
result = response.json()
if result.get('success'):
print(f"Email account {account_id} suspended successfully")
const API_KEY = 'YOUR_API_KEY';
const accountId = 123;
const response = await fetch(
`https://server.smartlead.ai/api/v1/email-accounts/suspend/${accountId}?api_key=${API_KEY}`,
{ method: 'PUT' }
);
const result = await response.json();
if (result.success) {
console.log(`Email account ${accountId} suspended successfully`);
}
{
"success": true,
"message": "Email account suspended successfully",
"data": {
"accountId": 123,
"isSuspended": true
}
}
{
"success": false,
"message": "Email account not found or does not belong to you"
}
{
"success": false,
"message": "Valid account ID is required"
}
{
"message": "Invalid API Key"
}
Suspending an email account prevents it from sending any emails in campaigns or warmup while keeping the account configuration intact. This is useful for troubleshooting issues or temporarily pausing an account without deletion.
Path Parameters
number
required
The email account ID to suspend
Query Parameters
string
required
Your SmartLead API key
curl -X PUT "https://server.smartlead.ai/api/v1/email-accounts/suspend/123?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
account_id = 123
response = requests.put(
f"https://server.smartlead.ai/api/v1/email-accounts/suspend/{account_id}",
params={"api_key": API_KEY}
)
result = response.json()
if result.get('success'):
print(f"Email account {account_id} suspended successfully")
const API_KEY = 'YOUR_API_KEY';
const accountId = 123;
const response = await fetch(
`https://server.smartlead.ai/api/v1/email-accounts/suspend/${accountId}?api_key=${API_KEY}`,
{ method: 'PUT' }
);
const result = await response.json();
if (result.success) {
console.log(`Email account ${accountId} suspended successfully`);
}
Response Codes
Success
Email account suspended successfully
Bad Request
Invalid account ID or account not found
Unauthorized
Invalid or missing API key
Internal Server Error
Server error occurred
{
"success": true,
"message": "Email account suspended successfully",
"data": {
"accountId": 123,
"isSuspended": true
}
}
{
"success": false,
"message": "Email account not found or does not belong to you"
}
{
"success": false,
"message": "Valid account ID is required"
}
{
"message": "Invalid API Key"
}
Suspension Behavior
When an email account is suspended:
- The
is_suspendedflag is set totrue - The account stops sending campaign emails immediately
- Warmup emails are also paused
- The account remains in campaign configurations but won’t be used for sending
- All account data and configurations are preserved
Use suspension instead of deletion when you need to:
- Temporarily troubleshoot connection issues
- Pause an account during maintenance
- Test campaign performance without this account
- Investigate deliverability problems
Related Endpoints
- Unsuspend Email Account
- Delete Email Account - Permanent removal
- Get Email Account by ID
