curl -X POST "https://server.smartlead.ai/api/v1/email-accounts/101/send-otp-email?api_key=YOUR_KEY"
import requests
response = requests.post(
"https://server.smartlead.ai/api/v1/email-accounts/101/send-otp-email",
params={"api_key": "YOUR_API_KEY"}
)
print(response.json())
{
"ok": true,
"data": "OTP has been sent successfully."
}
{
"message": "Invalid email account id!"
}
Email Account Management
Send Warmup Unblock OTP
Email a one-time password to a warmup-blocked email account so its warmup can be unblocked
POST
/
api
/
v1
/
email-accounts
/
{account_id}
/
send-otp-email
curl -X POST "https://server.smartlead.ai/api/v1/email-accounts/101/send-otp-email?api_key=YOUR_KEY"
import requests
response = requests.post(
"https://server.smartlead.ai/api/v1/email-accounts/101/send-otp-email",
params={"api_key": "YOUR_API_KEY"}
)
print(response.json())
{
"ok": true,
"data": "OTP has been sent successfully."
}
{
"message": "Invalid email account id!"
}
The OTP is emailed to the account’s own address (
from_email). It is valid for 10 minutes and can be used once. Submit it with Verify Warmup Unblock OTP.Path Parameters
number
required
Email account ID
Query Parameters
string
required
Your SmartLead API key
curl -X POST "https://server.smartlead.ai/api/v1/email-accounts/101/send-otp-email?api_key=YOUR_KEY"
import requests
response = requests.post(
"https://server.smartlead.ai/api/v1/email-accounts/101/send-otp-email",
params={"api_key": "YOUR_API_KEY"}
)
print(response.json())
Response Example
{
"ok": true,
"data": "OTP has been sent successfully."
}
{
"message": "Invalid email account id!"
}
