curl -X POST "https://server.smartlead.ai/api/v1/master-inbox/unread-replies-count?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"filters": {"campaignId": [123, 456]}}'
import requests
response = requests.post(
"https://server.smartlead.ai/api/v1/master-inbox/unread-replies-count",
params={"api_key": "YOUR_API_KEY"},
json={"filters": {}},
)
print(response.json()["count"])
{
"ok": true,
"count": 12
}
{
"ok": false,
"message": "Error message"
}
Master Inbox
Get Unread Replies Count
Count unread replies in the master inbox without fetching the messages
POST
/
api
/
v1
/
master-inbox
/
unread-replies-count
curl -X POST "https://server.smartlead.ai/api/v1/master-inbox/unread-replies-count?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"filters": {"campaignId": [123, 456]}}'
import requests
response = requests.post(
"https://server.smartlead.ai/api/v1/master-inbox/unread-replies-count",
params={"api_key": "YOUR_API_KEY"},
json={"filters": {}},
)
print(response.json()["count"])
{
"ok": true,
"count": 12
}
{
"ok": false,
"message": "Error message"
}
Returns only the number of unread replies, the same count as the unread badge in the master inbox. It takes the same
filters as Get Unread Replies, except search and replyTimeBetween, which are not accepted here. Use it to check for new replies cheaply before you fetch them.
Query Parameters
Request Body
Optional. Send
{} (or no filters) to count every unread reply you can see.Show filters
Show filters
Category filter:
unassigned (boolean), isAssigned (boolean), categoryIdsIn (up to 10 ids), categoryIdsNotIn (up to 10 ids)curl -X POST "https://server.smartlead.ai/api/v1/master-inbox/unread-replies-count?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"filters": {"campaignId": [123, 456]}}'
import requests
response = requests.post(
"https://server.smartlead.ai/api/v1/master-inbox/unread-replies-count",
params={"api_key": "YOUR_API_KEY"},
json={"filters": {}},
)
print(response.json()["count"])
{
"ok": true,
"count": 12
}
{
"ok": false,
"message": "Error message"
}
