Get Notification Batch
getNotificationBatchGet a single notification batch by id for the authenticated user, with per-type live-member counts, unread count, and worst severity. Serves cold deep links and sidebar retention for batches the caller can no longer see in the feed. Counts every live member by default; the optional type/severity/minSeverity filters narrow them to matching members only, exactly as the feed narrows a batch row it returns under the same filters. Requires the Notification Center feature; returns 404 when it is not enabled for the team, the batch does not exist, it belongs to another recipient/team, or no live member matches the given filters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The notification batch's unique identifier | |
| type | No | Count only live members of this type. Omit to count every live member. | |
| agents | No | When 'mine', 404 unless the batch's agent is one the authenticated user created. Pass it alongside the feed's My agents filter so a retained batch cannot come back narrowed on type and severity but not on ownership. | |
| 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 | Count only live members with exactly this severity. Mutually exclusive with minSeverity. One of: info, warning, critical, success. | |
| minSeverity | No | Count only live members at or above this urgency. Least to most urgent: success < info < warning < critical. Mutually exclusive with severity. |