curl -X POST "https://server.smartlead.ai/api/v1/master-inbox/untracked-replies/associate-to-lead?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"emailCampaignId": 123, "leadMapId": 987654, "untrackedReplyId": "3f1c2d4e-5a6b-7c8d-9e0f-112233445566"}'
import requests
response = requests.post(
"https://server.smartlead.ai/api/v1/master-inbox/untracked-replies/associate-to-lead",
params={"api_key": "YOUR_API_KEY"},
json={
"emailCampaignId": 123,
"leadMapId": 987654,
"untrackedReplyId": "3f1c2d4e-5a6b-7c8d-9e0f-112233445566"
}
)
print(response.json())
{
"sucess": true,
"message": "Untracked reply associated to lead successfully",
"data": {
"leadMapId": 987654,
"swMessageId": "<abc123@mail.yourdomain.com>"
}
}
{
"error": "Campaign not found - Invalid emailCampaignId."
}
{
"error": "Lead not found in campaign - Invalid leadMapId."
}
{
"error": "Untracked reply not found - Invalid untrackedReplyId."
}
{
"error": "No sent email found for this lead in the campaign"
}
Master Inbox
Associate Untracked Reply to Lead
Link an untracked reply to a campaign lead so it shows as that lead’s reply in the Master Inbox
POST
/
api
/
v1
/
master-inbox
/
untracked-replies
/
associate-to-lead
curl -X POST "https://server.smartlead.ai/api/v1/master-inbox/untracked-replies/associate-to-lead?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"emailCampaignId": 123, "leadMapId": 987654, "untrackedReplyId": "3f1c2d4e-5a6b-7c8d-9e0f-112233445566"}'
import requests
response = requests.post(
"https://server.smartlead.ai/api/v1/master-inbox/untracked-replies/associate-to-lead",
params={"api_key": "YOUR_API_KEY"},
json={
"emailCampaignId": 123,
"leadMapId": 987654,
"untrackedReplyId": "3f1c2d4e-5a6b-7c8d-9e0f-112233445566"
}
)
print(response.json())
{
"sucess": true,
"message": "Untracked reply associated to lead successfully",
"data": {
"leadMapId": 987654,
"swMessageId": "<abc123@mail.yourdomain.com>"
}
}
{
"error": "Campaign not found - Invalid emailCampaignId."
}
{
"error": "Lead not found in campaign - Invalid leadMapId."
}
{
"error": "Untracked reply not found - Invalid untrackedReplyId."
}
{
"error": "No sent email found for this lead in the campaign"
}
Requires your own API key. Client API keys get
401.Get untrackedReplyId from Get Untracked Replies, and leadMapId (the lead’s campaign mapping ID) from the campaign’s leads. Once linked, the untracked reply is processed as the lead’s reply and removed from untracked replies.Query Parameters
Request Body
curl -X POST "https://server.smartlead.ai/api/v1/master-inbox/untracked-replies/associate-to-lead?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"emailCampaignId": 123, "leadMapId": 987654, "untrackedReplyId": "3f1c2d4e-5a6b-7c8d-9e0f-112233445566"}'
import requests
response = requests.post(
"https://server.smartlead.ai/api/v1/master-inbox/untracked-replies/associate-to-lead",
params={"api_key": "YOUR_API_KEY"},
json={
"emailCampaignId": 123,
"leadMapId": 987654,
"untrackedReplyId": "3f1c2d4e-5a6b-7c8d-9e0f-112233445566"
}
)
print(response.json())
Response Example
{
"sucess": true,
"message": "Untracked reply associated to lead successfully",
"data": {
"leadMapId": 987654,
"swMessageId": "<abc123@mail.yourdomain.com>"
}
}
{
"error": "Campaign not found - Invalid emailCampaignId."
}
{
"error": "Lead not found in campaign - Invalid leadMapId."
}
{
"error": "Untracked reply not found - Invalid untrackedReplyId."
}
{
"error": "No sent email found for this lead in the campaign"
}
The success response spells the flag
sucess.