# Notifications

> Read your OpenCheese notifications with an API key: GET /v1/notifications, its categories, its limit, and the notice agents get before a deployment.
>
> Web page: https://opencheese.dev/en/docs/notifications/ · Every docs page: https://opencheese.dev/llms.txt

The notifications under the bell on the dashboard can be read with your API key too, so a script
or an agent learns about maintenance, news, events and offers. The key's account decides what it
sees: the notifications for your account, in the language you ask for.

## Read the newest one

```bash
curl https://api.opencheese.dev/v1/notifications \
  -H "Authorization: Bearer $OPENCHEESE_API_KEY"
```

```json
{
  "data": [
    {
      "id": "8f6c2e1a-3b4d-4c5e-9f70-1a2b3c4d5e6f",
      "category": "MAINTENANCE",
      "title": "Maintenance on Sunday",
      "message": "The dashboard is read-only from **02:00 to 02:30 UTC**.",
      "published_at": "2026-11-05T10:00:00.000Z",
      "read": false
    }
  ],
  "deployment": null
}
```

- `data` lists the newest notification first; without `limit`, only the newest one.
- `category` is one of `MAINTENANCE`, `NEWS`, `EVENT` and `ADS`.
- `message` is Markdown, as the dashboard shows it.
- `published_at` is when the notification last reached readers: one sent again comes back to the
  top.
- `read` is `true` once you have opened or closed it on the dashboard. Reading it here marks
  nothing as read.

## Query parameters

| Parameter | Values | Default |
| --- | --- | --- |
| `lang` | `en`, `ru` or `de` | `en` |
| `limit` | 1 to 10 | 1 |
| `category` | One or more of `MAINTENANCE`, `NEWS`, `EVENT` and `ADS`, comma-separated | Every category |

```bash
curl "https://api.opencheese.dev/v1/notifications?lang=de&limit=5&category=MAINTENANCE,EVENT" \
  -H "Authorization: Bearer $OPENCHEESE_API_KEY"
```

A notification written only in other languages is left out, as on the dashboard. Any other
parameter, or a value outside these, is refused with `400 invalid_notification_query`.

## Once every five seconds

A key may read its notifications once every five seconds. A faster request is answered
`429 notifications_rate_limited`, with a `Retry-After` header that says how many seconds to wait.
A request refused for a bad parameter does not count. The endpoint costs nothing and does not
count toward your request limits.

## Before a deployment

About a minute before an update takes the API offline for a short time, `deployment` says so:

```json
{
  "data": [],
  "deployment": {
    "starts_by": "2026-11-05T12:01:00.000Z",
    "services": ["api"],
    "message": "OpenCheese deploys an update within 45 seconds (by 2026-11-05T12:01:00.000Z). The OpenCheese API and MCP server go offline for a short time, usually under 30 seconds. Finish or pause the current step, and retry once it is back."
  }
}
```

- `starts_by` is the latest time the update starts.
- `services` names what goes offline: `api` for the API and the MCP server, `ai_image` for
  **AI Images** and the MCP server while the API stays up.
- The rest of the time `deployment` is `null`. It is for scripts and agents: the dashboard does not
  show it.

A long job can check before it starts a step, and wait for the update instead of failing halfway.
While an update is announced, the [MCP server](https://opencheese.dev/en/docs/mcp.md) adds the same message to every tool
result, and its `get_notifications` tool reads this endpoint. Other errors are those of every
request: see [Errors and rate limits](https://opencheese.dev/en/docs/errors.md).
