> ## Documentation Index
> Fetch the complete documentation index at: https://api.smartlead.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Unread Replies Count

> Count unread replies in the master inbox without fetching the messages

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](https://api.smartlead.ai/api-reference/inbox/get-unread.md), except `search` and `replyTimeBetween`, which are not accepted here. Use it to check for new replies cheaply before you fetch them.

## Query Parameters

**api\_key** `string` *required*

Your SmartLead API key

## Request Body

**filters** `object`

Optional. Send `{}` (or no `filters`) to count every unread reply you can see.

**filters**

**leadCategories** `object`

Category filter: `unassigned` (boolean), `isAssigned` (boolean), `categoryIdsIn` (up to 10 ids), `categoryIdsNotIn` (up to 10 ids)

**emailStatus** `string | array`

One or more of `Opened`, `Clicked`, `Replied`, `Unsubscribed`, `Bounced`, `Accepted`, `Not Replied`

**campaignId** `number | array`

Campaign id, or up to 5 ids

**emailAccountId** `number | array`

Email account id, or up to 20 ids

**campaignTeamMemberId** `number | array`

Team member id, or up to 10 ids

**campaignTagId** `number | array`

Campaign tag id, or up to 10 ids

**campaignClientId** `number | array`

Client id, or up to 10 ids

```bash cURL theme={null}
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]}}'
```

```python Python theme={null}
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"])
```

```json 200 theme={null}
{
  "ok": true,
  "count": 12
}
```

```json 400 theme={null}
{
  "ok": false,
  "message": "Error message"
}
```

## Related Endpoints

* [Get Unread Replies](https://api.smartlead.ai/api-reference/inbox/get-unread.md)
* [Mark as Read](https://api.smartlead.ai/api-reference/inbox/mark-read.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.