---
title: "Get unread notification count"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Notifications

`GET /api/notifications/{workspaceId}/count`

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `workspaceId` (`get/api/notifications/workspaceId/count.path.workspaceId`; string, required) — Workspace ID

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.channelautomation.com/api/notifications/<workspaceId>/count' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/notifications/<workspaceId>/count';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/notifications/<workspaceId>/count"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Count retrieved successfully

#### Example

```json
{
  "success": true,
  "unread_count": 0
}
```

- `success` (`get/api/notifications/workspaceId/count.response.200.success`; boolean, optional)
- `unread_count` (`get/api/notifications/workspaceId/count.response.200.unread_count`; integer, optional) — Number of unread notifications

### 500

Server error


Source: https://developer.channelautomations.com/api/get-api-notifications-workspace-id-count/index.md
