# List the organization's notifications

> GET /v1/notifications. The caller's organization's notifications, newest first, with Legion's platform updates, which every organization sees.

Source: https://legion.ambient.xyz/docs/api/notifications/list-notifications

`GET https://api.legion.ambient.xyz/v1/notifications`

Authenticate with an API key: `Authorization: Bearer $LEGION_API_KEY`.

The caller's organization's notifications, newest first, with Legion's platform updates,
which every organization sees. Each says whether the caller has read it: read state is per person,
so marking one read does not mark it read for the rest of the team. `unread_count` is the caller's
unread notifications in the whole feed, not only on this page. Notifications are kept 90 days. Every member sees every notification of the organization. A notification about a rental on one of
the organization's hosts that another organization rents links to the host only, never to the
rental. Needs a member of an organization; no permission.

## Query parameters

- `cursor`, string: Opaque cursor from a previous page's `next_cursor`.
- `limit`, integer
- `unread`, boolean: Only the notifications the caller has not read.

## Responses

### 200

A page of notifications.

- `items`, array of Notification, required
  - `id`, string (uuid), required
  - `kind`, NotificationKind, required: What a notification is about. Hosts: `host_added` (a host registered and waits for review), `host_approved` (Ambient approved it, also after a quarantine), `host_flagged` (Ambient quarantined it), `host_removed`, `host_offline` (no contact for 5 minutes), `host_online` (back after being offline), `benchmark_completed`. Rentals, the organization's own and those on its hosts: `rental_started`, `rental_stopped`, `rental_failed`. Money: `payout_sent`, `credit_added`, `out_of_credit` (the organization ran out of credit and its rentals were stopped). Team: `member_joined`, `member_removed`. `platform_update`: news from Legion for every organization. `member_removed` is a person removed by an owner or who left. `platform_update` is reserved: nothing emits it yet, and the email settings do not list it until something does. Clients must accept a kind they do not know. Promo codes: `promo_credit_granted` (a promo code's credit or discount was added), `promo_credit_expiring` (promo credit expires within 3 days; once per grant), `promo_redemption_held` (a redemption waits for a person at Ambient to look at it). `host_clock_off`: the clock of one of the organization's hosts has been more than 30 seconds off for 15 minutes; once per episode, with one reminder if it is still off 7 days later, and nothing when it recovers. `host_isolation_off`: one of the organization's approved hosts has not reported user-namespace isolation (`Host.isolation`) for 15 minutes while online, with the command that turns it on and the date from which the host is no longer offered without it; once per episode, with one reminder 2 days before that date if it is still off, and nothing when it is turned on. `host_start_hold`: new rentals are paused on one of the organization's hosts because models keep failing to start on it (`Host.start_hold`); once per pause, with why and how to end it. Auto top-up: `auto_top_up_changed` (a person changed the settings, saved or removed the card; in the feed only by default) and `auto_top_up_paused` (auto top-up stopped charging the card, with why and how to fix it; emailed to owners by default).
  - `severity`, NotificationSeverity, required: `info`, `warning` (worth a look) or `critical` (needs action).
  - `title`, string, required: One line, in plain words.
  - `body`, string, required: One or two sentences, in plain words.
  - `created_at`, string (date-time), required
  - `read`, boolean, required: Whether the caller has read it.
  - `host_id`, string (uuid): The host it is about, when it is about one of the organization's hosts.
  - `rental_id`, string (uuid): The rental it is about, when it is one of the organization's own rentals.
- `next_cursor`, string
- `unread_count`, integer, required: The caller's unread notifications in the whole feed.

Example:

```json
{
  "items": [
    {
      "id": "7f1c0d1e-8a4b-4c5d-9e6f-0a1b2c3d4e5f",
      "kind": "host_offline",
      "severity": "warning",
      "title": "gpu-node-07 is offline",
      "body": "Legion has not heard from gpu-node-07 for 5 minutes. Rentals on it may be interrupted.",
      "created_at": "2026-11-03T15:04:05Z",
      "read": false,
      "host_id": "3e2d1c0b-9a8f-4e7d-8c6b-5a4f3e2d1c0b"
    }
  ],
  "next_cursor": "string",
  "unread_count": 0
}
```

### 400

The request is malformed or fails validation. An image reference that
is not a container image reference answers `invalid_image_reference`.

### 401

Missing, unknown, expired or revoked credentials.

### 403

The caller lacks the permission this operation requires (`forbidden`),
or signed in without having joined an organization yet
(`no_organization`; `getOnboarding` and the invitation and
organization operations under it work), or could not sign in
(`email_unverified`, `account_conflict`, and `domain_not_allowed`). `not_invited` is no longer returned to
session tokens.

`access_not_approved`: a signed-in person who is not approved
for the beta yet. Every operation that takes a credential answers it to
them, except `getMe` and `joinMyWaitlist`; the problem carries
`access` (`waitlisted` or `not_requested`, and the email). Approved
means a member of an organization, holding a pending invitation, or Legion; an API key always belongs to a member.

`oauth_token_mcp_only`: the caller sent an OAuth access token (`lgo_`), which is accepted
only by `mcpMessage` and the tool calls it dispatches. Every other operation answers it, whatever
the token's scope. Use an API key or the Legion web app.

`org_suspended`: the caller's organization is suspended. Every operation that takes a
credential answers it, by session or API key, except `getMe` (which shows `org.suspended_at` and
`org.suspension_reason`) and the support operations under `/v1/support/`.

`terms_not_accepted`: an approved caller who has not accepted
the current version of the Terms of Use and the Acceptable Use Policy. Every operation that takes a credential answers it, except `getMe`,
`acceptLegalDocuments`, `joinMyWaitlist` and the wind-down operations
(`listRentals`, `stopRental`, `deleteRental`, `listHosts`,
`updateListing` with `listed` false, `removeHost`); the problem
carries `legal`. An API key acts for the person who created it, so it
is refused until that person accepts. Terminal
operations also return
`session_required` (called with an API key) and `step_up_required`
(neither a sign-in nor a step-up challenge within the step-up window).

### 500

An unexpected server error. Safe to retry.

## Errors

- 403 [`no_organization`](https://legion.ambient.xyz/docs/errors#no_organization)

## Example request

```sh
curl -s "https://api.legion.ambient.xyz/v1/notifications" \
  -H "Authorization: Bearer $LEGION_API_KEY"
```
