# GET /notifications

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the security group.

List administrator notification log entries

- Who may call it: administrator
- Token scope, any of: security, read, all
- Answers: 200 OK

Returns one page of notification entries, newest first. Each entry includes its ID, kind, subject, body, recipient email addresses, outcome and timestamp. Filter by id, kind, outcome or q. The response includes the available kinds, the total number of matching entries and counts for all outcomes combined and for each outcome before the outcome filter is applied.

The page parameter defaults to 1. Requests below 1 return the first page, and requests past the last page return the last page. An empty result has one page. The per_page parameter accepts 1 to 500 and defaults to 100 when omitted or out of range.

UrbeStack keeps the latest 500 entries. The response reports that limit in kept, the full log size in rows_total and the number of retained entries from the last 30 days in last_30_days. It includes oldest when the log has entries. The mail_installed field indicates whether the mail stack required to send notifications is installed.

## Parameters

- `id` (query, integer, 1 or more): Numeric ID of a single notification log entry.
- `kind` (query, string, matching ^[a-z]+\.[a-z_]+$)
- `page` (query, integer, 1 or more)
- `per_page` (query, integer, 1 to 500)
- `outcome` (query, string, one of mailed, nobody, no-mail-stack, failed): Notification outcome, either mailed for a sent notification, nobody when no administrator with an email address had the kind enabled, no-mail-stack when the mail stack was absent, or failed when sending failed.
- `q` (query, string, up to 200 characters): Text to search for in the subject, recipient email addresses and body. The search treats % and _ as literal characters.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/notifications?id=1&kind=profile&page=1&per_page=1&outcome=mailed&q=text" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "counts": {
    "all": 1,
    "failed": 1,
    "mailed": 1,
    "no-mail-stack": 1,
    "nobody": 1
  },
  "entries": [
    {
      "at": "text",
      "body": "text",
      "id": 1,
      "kind": "profile",
      "outcome": "mailed",
      "recipients": [
        "text"
      ],
      "subject": "text"
    }
  ],
  "kept": 1,
  "kinds": [
    {
      "default": 0,
      "description": "text",
      "enabled": true,
      "kind": "profile",
      "title": "text"
    }
  ],
  "last_30_days": 1,
  "mail_installed": true,
  "oldest": "text",
  "page": 1,
  "pages": 1,
  "per_page": 1,
  "rows_total": 1,
  "total": 1
}
```

## Errors

- 401: Authentication required
