curl -X POST "https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits/refresh?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits/refresh",
params={"api_key": API_KEY}
)
print(response.status_code)
print(response.json())
const API_KEY = 'YOUR_API_KEY';
const response = await fetch(
`https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits/refresh?api_key=${API_KEY}`,
{
method: 'POST'
}
);
console.log(await response.json());
{
"maxSendersPerTest": 10,
"runCreditsRemaining": 85,
"seedsPerSenderPerProvider": 4,
"minGapMinutes": 5,
"sendJitterSeconds": { "min": 20, "max": 60 },
"placementWindowMinutes": 30
}
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API Key"
}
}
Smart Delivery v2 (Deliverability Test)
Refresh Plan Limits
Re-read your plan credits from Smartlead
POST
/
api
/
v1
/
smart-delivery
/
limits
/
refresh
curl -X POST "https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits/refresh?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits/refresh",
params={"api_key": API_KEY}
)
print(response.status_code)
print(response.json())
const API_KEY = 'YOUR_API_KEY';
const response = await fetch(
`https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits/refresh?api_key=${API_KEY}`,
{
method: 'POST'
}
);
console.log(await response.json());
{
"maxSendersPerTest": 10,
"runCreditsRemaining": 85,
"seedsPerSenderPerProvider": 4,
"minGapMinutes": 5,
"sendJitterSeconds": { "min": 20, "max": 60 },
"placementWindowMinutes": 30
}
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API Key"
}
}
Smart Delivery v2 (Deliverability Test) API: the deliverability (inbox placement) test that sends your campaign email to seed inboxes and reports where it landed. Contact support@smartlead.ai for access.
Overview
Re-reads your plan from Smartlead and returns the same body as Get Plan Limits. Use it after a plan change. The re-read is done at most once a minute per account; calls inside that minute return the stored values.Query Parameters
curl -X POST "https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits/refresh?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits/refresh",
params={"api_key": API_KEY}
)
print(response.status_code)
print(response.json())
const API_KEY = 'YOUR_API_KEY';
const response = await fetch(
`https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits/refresh?api_key=${API_KEY}`,
{
method: 'POST'
}
);
console.log(await response.json());
Response Fields
Response Codes
Client (agency) API keys are not allowed (
CLIENT_NOT_ALLOWED), or your plan does not include API access (API_ACCESS_RESTRICTED)Too many requests for this API key. Wait the number of seconds in the
Retry-After header (RATE_LIMITED){
"maxSendersPerTest": 10,
"runCreditsRemaining": 85,
"seedsPerSenderPerProvider": 4,
"minGapMinutes": 5,
"sendJitterSeconds": { "min": 20, "max": 60 },
"placementWindowMinutes": 30
}
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API Key"
}
}
