curl -X PUT "https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b/share?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.put(
"https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b/share",
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/tests/3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b/share?api_key=${API_KEY}`,
{
method: 'PUT'
}
);
console.log(await response.json());
{
"token": "k3Jf9...",
"url": "/v2/sd/shared/k3Jf9..."
}
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API Key"
}
}
Smart Delivery v2 (Deliverability Test)
Create Share Link
Create (or rotate) the read-only share link of a test
PUT
/
api
/
v1
/
smart-delivery
/
tests
/
{id}
/
share
curl -X PUT "https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b/share?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.put(
"https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b/share",
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/tests/3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b/share?api_key=${API_KEY}`,
{
method: 'PUT'
}
);
console.log(await response.json());
{
"token": "k3Jf9...",
"url": "/v2/sd/shared/k3Jf9..."
}
{
"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
Creates a read-only link to the test’s results. Calling it again rotates the link and the previous one stops working. The token is shown once; only its hash is stored.Path Parameters
Query Parameters
curl -X PUT "https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b/share?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.put(
"https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b/share",
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/tests/3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b/share?api_key=${API_KEY}`,
{
method: 'PUT'
}
);
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){
"token": "k3Jf9...",
"url": "/v2/sd/shared/k3Jf9..."
}
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API Key"
}
}
