List notifications
/notificationsLists the acting user's own notifications, newest first; nobody else's can be read. status is unread until the user reads it. Narrow with filter[status]. Send totals=true for meta.totals: its unread counts every unread notification in the inbox, ignoring the filters and the page. Titles carry the platform's own wording. Changes nothing. Use POST /notifications/actions/mark-all-read to clear the unread count.
Query parameters
- Default:
Page size (1–100). Defaults to 25; values are clamped to the range.
25 Opaque pagination cursor taken from a prior response's
meta.next_cursor.Comma-separated top-level fields to return.
idis always returned.Send true to add
meta.totals, with the number of unread notifications in the whole inbox, whatever the filters and the page.Comma-separated fields to sort by: created_at. Prefix a field with
-for descending. Defaults to-created_at. The notification id is always the final tiebreak.- One of:
unread lists the notifications not yet read, read lists the rest.
unread,read
Responses
{
"data": [
{}
],
"meta": {
"totals": [
{}
]
}
}Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
The request can't be processed (HTTP 422): validation_failed with one ErrorDetail per
problem, or a code documented on the operation.
Examples
curl https://your-org-domain/kong/core/api/v2/notifications\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"