curl -X GET "https://server.smartlead.ai/api/v1/master-inbox/2433664091?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
inbox_item_id = 2433664091
response = requests.get(
f"https://server.smartlead.ai/api/v1/master-inbox/{inbox_item_id}",
params={"api_key": API_KEY}
)
item = response.json()
print(f"Lead: {item['lead']['email']}")
print(f"Campaign: {item['campaign']['name']}")
print(f"Status: {item['email_status']}")
const API_KEY = 'YOUR_API_KEY';
const inboxItemId = 2433664091;
const response = await fetch(
`https://server.smartlead.ai/api/v1/master-inbox/${inboxItemId}?api_key=${API_KEY}`
);
const item = await response.json();
console.log(`Conversation with ${item.lead.email}`);
{
"id": "msg_abc123",
"campaign_lead_map_id": "2433664091",
"lead": {
"email": "john@company.com",
"first_name": "John",
"last_name": "Doe",
"company": "ACME Corp"
},
"campaign": {
"id": 12345,
"name": "Q1 Outreach"
},
"message_history": [
{
"subject": "Partnership Opportunity",
"direction": "outbound",
"sent_at": "2025-01-15T10:00:00Z"
},
{
"subject": "Re: Partnership Opportunity",
"direction": "inbound",
"received_at": "2025-01-20T14:00:00Z"
}
],
"email_status": "Replied",
"category": {"id": 1, "name": "Interested"}
}
{
"error": "Inbox item not found with ID 2433664091"
}
Master Inbox
Get Inbox Item by ID
Fetch a specific master inbox item by its unique identifier
GET
/
api
/
v1
/
master-inbox
/
:id
curl -X GET "https://server.smartlead.ai/api/v1/master-inbox/2433664091?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
inbox_item_id = 2433664091
response = requests.get(
f"https://server.smartlead.ai/api/v1/master-inbox/{inbox_item_id}",
params={"api_key": API_KEY}
)
item = response.json()
print(f"Lead: {item['lead']['email']}")
print(f"Campaign: {item['campaign']['name']}")
print(f"Status: {item['email_status']}")
const API_KEY = 'YOUR_API_KEY';
const inboxItemId = 2433664091;
const response = await fetch(
`https://server.smartlead.ai/api/v1/master-inbox/${inboxItemId}?api_key=${API_KEY}`
);
const item = await response.json();
console.log(`Conversation with ${item.lead.email}`);
{
"id": "msg_abc123",
"campaign_lead_map_id": "2433664091",
"lead": {
"email": "john@company.com",
"first_name": "John",
"last_name": "Doe",
"company": "ACME Corp"
},
"campaign": {
"id": 12345,
"name": "Q1 Outreach"
},
"message_history": [
{
"subject": "Partnership Opportunity",
"direction": "outbound",
"sent_at": "2025-01-15T10:00:00Z"
},
{
"subject": "Re: Partnership Opportunity",
"direction": "inbound",
"received_at": "2025-01-20T14:00:00Z"
}
],
"email_status": "Replied",
"category": {"id": 1, "name": "Interested"}
}
{
"error": "Inbox item not found with ID 2433664091"
}
Retrieve detailed information about a single email thread including all messages, lead data, and metadata. Essential for deep linking and detailed conversation views.
Overview
Fetches a specific master inbox item by ID. Returns complete thread information without needing complex filters. Use Cases:- Direct navigation to specific conversation
- Deep linking from notifications/emails
- Conversation detail views
- Share specific threads with team
Path Parameters
number
required
The unique identifier of the master inbox item. This is the
campaign_lead_map_id from other inbox endpoints.Query Parameters
string
required
Your SmartLead API key
curl -X GET "https://server.smartlead.ai/api/v1/master-inbox/2433664091?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
inbox_item_id = 2433664091
response = requests.get(
f"https://server.smartlead.ai/api/v1/master-inbox/{inbox_item_id}",
params={"api_key": API_KEY}
)
item = response.json()
print(f"Lead: {item['lead']['email']}")
print(f"Campaign: {item['campaign']['name']}")
print(f"Status: {item['email_status']}")
const API_KEY = 'YOUR_API_KEY';
const inboxItemId = 2433664091;
const response = await fetch(
`https://server.smartlead.ai/api/v1/master-inbox/${inboxItemId}?api_key=${API_KEY}`
);
const item = await response.json();
console.log(`Conversation with ${item.lead.email}`);
Response Example
{
"id": "msg_abc123",
"campaign_lead_map_id": "2433664091",
"lead": {
"email": "john@company.com",
"first_name": "John",
"last_name": "Doe",
"company": "ACME Corp"
},
"campaign": {
"id": 12345,
"name": "Q1 Outreach"
},
"message_history": [
{
"subject": "Partnership Opportunity",
"direction": "outbound",
"sent_at": "2025-01-15T10:00:00Z"
},
{
"subject": "Re: Partnership Opportunity",
"direction": "inbound",
"received_at": "2025-01-20T14:00:00Z"
}
],
"email_status": "Replied",
"category": {"id": 1, "name": "Interested"}
}
{
"error": "Inbox item not found with ID 2433664091"
}
