Get Notification Counts
getNotificationCountsPer-type notification counts for the authenticated user's current team. Narrow with unread, and with either severity (counts only that exact severity) or minSeverity (counts that urgency and above) — the two are mutually exclusive and a request carrying both is rejected with 400. Pass the same filters the feed is showing, so the counts describe the list the reader would land on. Requires the Notification Center feature; returns 404 when it is not enabled for the team.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agents | No | When 'mine', only count notifications for agents the authenticated user created (plus connection_broken, which is always counted), so the counts match a feed filtered the same way. | |
| unread | No | If true, only count unread notifications. | |
| team_id | No | Duvo team UUID to operate on. API keys are pinned to a single team — omit this (it falls back to the key's team) or pass that same team; a different team is rejected. OAuth callers, who can span multiple teams, should pass the target team here. | |
| severity | No | Only count notifications with exactly this severity, so the counts match a feed filtered the same way. Mutually exclusive with minSeverity. | |
| minSeverity | No | Only count notifications at or above this urgency, so the counts match a feed filtered the same way. Least to most urgent: success < info < warning < critical. Mutually exclusive with severity. |