# Mark notifications read

URL: https://heaven.dev/docs/reference/account/notification-read
Updated: 2026-11-21

Mark one notification or all notifications as read. Use an ID from `notification view` or pass `all: true`.

`POST /v1/account/modify`

## Parameters

- `notification` (string): A notification's ID (see `notification view`).
- `all` (boolean): Mark all notifications as read. Omit the notification ID.

## Returns

- `data` (object, always present): Read and unread notification counts.
  - `read` (integer, always present): Number marked read by this request.
  - `unread` (integer, always present): Number still unread afterward.

## Errors

Each code is explained in full at https://heaven.dev/docs/reference/errors.

| Code | Status | What happened |
|---|---:|---|
| `invalid` | 400 | An input is missing or invalid. |
| `unauthenticated` | 401 | The credential is missing, invalid, expired or revoked. |
| `denied` | 403 | The caller lacks permission for this action. |
| `not_found` | 404 | The resource is absent or inaccessible to this caller. |
| `conflict` | 409 | The request conflicts with the current resource state or an earlier request. |
| `over_capacity` | 409 | The request exceeds a resource or credential allowance. |
| `access_list_full` | 409 | The change would exceed the access-list allowance. |
| `payment_required` | 402 | Payment or credit is required. |
| `rate_limited` | 429 | The caller's request rate exceeds its limit. |
| `busy` | 429 | Too much work is in progress to accept this request. |
| `unknown` | 503 | The outcome is unconfirmed; a change may have happened. |
| `unavailable` | 503 | The service or requested feature is unavailable. |

## Notes

- API key permission: `notification read`.
- **One:** Mark one notification as read. Required: `notification`.
- **All:** Mark all your notifications as read. Required: `all`.

## Examples

```sh tab="heaven CLI"
heaven notification read [NOTIFICATION] [--all]
```

```sh tab="SSH"
ssh cli@heaven.dev notification read [NOTIFICATION] [--all]
```

```sh tab="cURL"
curl https://heaven.dev/v1/account/modify \
  -H "Authorization: Bearer $HEAVEN_API_KEY" \
  --json '{"action": "notification read", "notification": "5e8a1c3f-7b2d-4a96-8e04-3c1f9d7b2a68"}'
```

```json tab="MCP"
{ "tool": "notification_read",
  "arguments": { "notification": "5e8a1c3f-7b2d-4a96-8e04-3c1f9d7b2a68" } }
```

Response:

```json title="Response excerpt"
{
  "version": 1,
  "data": {
    "read": 1,
    "unread": 0
  }
}
```
