Notifications API: Get unread count
Endpoint#
Section titled “Endpoint#”| Property | Value |
|---|---|
| Type | query |
| Method | GET |
| Path | /api/external/v1/notifications/get_unread_count |
| Handler | OperatelyWeb.Api.Notifications.GetUnreadCount |
Authentication#
Section titled “Authentication#”- Requires a valid API token.
- Read-only and full-access tokens can execute this query.
This endpoint has no input fields.
Outputs#
Section titled “Outputs#”| Field | Type | Required | Nullable |
|---|---|---|---|
unread | integer | Yes | No |
cURL Example#
Section titled “cURL Example#”Copied
curl --request GET \
--url "https://app.operately.com/api/external/v1/notifications/get_unread_count" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}"Response Example#
Section titled “Response Example#”{ "unread": 123}