curl -X GET "https://smartservers.smartlead.ai/api/v1/smart-server/all/campaign/5614?api_key=YOUR_KEY"
import requests
response = requests.get(
"https://smartservers.smartlead.ai/api/v1/smart-server/all/campaign/5614",
params={"api_key": "YOUR_API_KEY"}
)
servers = response.json()["data"]
if not servers:
print("No SmartServer attached to this campaign")
else:
print(servers[0]["id"], servers[0]["ip"])
const API_KEY = 'YOUR_API_KEY';
const response = await fetch(
`https://smartservers.smartlead.ai/api/v1/smart-server/all/campaign/5614?api_key=${API_KEY}`
);
const { data } = await response.json();
console.log(data.length ? data[0].ip : 'No SmartServer attached to this campaign');
{
"statusCode": 200,
"success": true,
"message": "Fetched the details of the smart server",
"data": [
{
"id": 907,
"ip": "203.0.113.24",
"alias_name": "outreach-us-1",
"client_id": 31,
"createdAt": "2026-08-14T09:21:07.000Z",
"bounce_rate": null,
"campaign_details": [
{
"campaign_id": 5614,
"campaign_name": "Q4 Outbound - US",
"mapping_created_at": "2026-09-02T11:45:00.000Z",
"auto_rotate_servers": false
}
]
}
]
}
{
"statusCode": 200,
"success": true,
"message": "Fetched the details of the smart server",
"data": []
}
{
"statusCode": 401,
"success": false,
"message": "Unauthorized",
"error": "Invalid API Key"
}
Smart Servers
Get SmartServers for a Campaign
Check which SmartServer (dedicated IP) is attached to a campaign
GET
/
api
/
v1
/
smart-server
/
all
/
campaign
/
{campaign_id}
curl -X GET "https://smartservers.smartlead.ai/api/v1/smart-server/all/campaign/5614?api_key=YOUR_KEY"
import requests
response = requests.get(
"https://smartservers.smartlead.ai/api/v1/smart-server/all/campaign/5614",
params={"api_key": "YOUR_API_KEY"}
)
servers = response.json()["data"]
if not servers:
print("No SmartServer attached to this campaign")
else:
print(servers[0]["id"], servers[0]["ip"])
const API_KEY = 'YOUR_API_KEY';
const response = await fetch(
`https://smartservers.smartlead.ai/api/v1/smart-server/all/campaign/5614?api_key=${API_KEY}`
);
const { data } = await response.json();
console.log(data.length ? data[0].ip : 'No SmartServer attached to this campaign');
{
"statusCode": 200,
"success": true,
"message": "Fetched the details of the smart server",
"data": [
{
"id": 907,
"ip": "203.0.113.24",
"alias_name": "outreach-us-1",
"client_id": 31,
"createdAt": "2026-08-14T09:21:07.000Z",
"bounce_rate": null,
"campaign_details": [
{
"campaign_id": 5614,
"campaign_name": "Q4 Outbound - US",
"mapping_created_at": "2026-09-02T11:45:00.000Z",
"auto_rotate_servers": false
}
]
}
]
}
{
"statusCode": 200,
"success": true,
"message": "Fetched the details of the smart server",
"data": []
}
{
"statusCode": 401,
"success": false,
"message": "Unauthorized",
"error": "Invalid API Key"
}
SmartServers API: Dedicated IP infrastructure feature. Contact support@smartlead.ai for access.
Overview
Returns the dedicated IP attached to a campaign. Call it before starting a campaign to confirm that the right server is in place.When a campaign has more than one server attached (a Multi SmartInfra, or several Single SmartInfra servers), this endpoint currently returns only one of them. Use
campaignCount and campaigns from List SmartServers to see every server a campaign uses.Path Parameters
string
required
Campaign ID
Query Parameters
string
required
Your SmartLead API key
curl -X GET "https://smartservers.smartlead.ai/api/v1/smart-server/all/campaign/5614?api_key=YOUR_KEY"
import requests
response = requests.get(
"https://smartservers.smartlead.ai/api/v1/smart-server/all/campaign/5614",
params={"api_key": "YOUR_API_KEY"}
)
servers = response.json()["data"]
if not servers:
print("No SmartServer attached to this campaign")
else:
print(servers[0]["id"], servers[0]["ip"])
const API_KEY = 'YOUR_API_KEY';
const response = await fetch(
`https://smartservers.smartlead.ai/api/v1/smart-server/all/campaign/5614?api_key=${API_KEY}`
);
const { data } = await response.json();
console.log(data.length ? data[0].ip : 'No SmartServer attached to this campaign');
Response Fields
array
The attached server, or an empty array when the campaign has no server or does not belong to you
Response Codes
Success
Server returned, or an empty
data array when nothing is attachedUnauthorized
Invalid or missing API key. Check your authentication.
Forbidden
The attached server does not belong to you
Not Found
The attached server no longer exists
{
"statusCode": 200,
"success": true,
"message": "Fetched the details of the smart server",
"data": [
{
"id": 907,
"ip": "203.0.113.24",
"alias_name": "outreach-us-1",
"client_id": 31,
"createdAt": "2026-08-14T09:21:07.000Z",
"bounce_rate": null,
"campaign_details": [
{
"campaign_id": 5614,
"campaign_name": "Q4 Outbound - US",
"mapping_created_at": "2026-09-02T11:45:00.000Z",
"auto_rotate_servers": false
}
]
}
]
}
{
"statusCode": 200,
"success": true,
"message": "Fetched the details of the smart server",
"data": []
}
{
"statusCode": 401,
"success": false,
"message": "Unauthorized",
"error": "Invalid API Key"
}
