# Notifications API

The Notifications API: read, mark and delete your notifications, with every endpoint's fields, who may call it, its rate limit and a curl example.

## Get a single notification by ID

`GET /notifications/:notificationId`

Needs a session token. Rate limit: 120 a minute, per address. An app's token or an API key needs the `notifications:read` scope.

### Path parameters

| Field | Type | Required | Notes |
|---|---|---|---|
| `notificationId` | `any` | required | The notification's id. |

### Response

Returns a [Notification](https://hematite.gg/docs/developers/models/notification).

```bash
curl 'https://api.hematite.gg/v1/notifications/1' \
  -H "Authorization: $HEMATITE_TOKEN"
```

Example `data`:

```json
{
  "id": 1,
  "userId": 1,
  "createdAt": "2026-11-10T18:24:00.000Z",
  "updatedAt": "2026-11-10T18:24:00.000Z",
  "type": "Neutral",
  "title": "Clutch on Ascent",
  "message": "OK",
  "status": "Unread",
  "metadata": null
}
```

## Update a notification by ID

`PATCH /notifications/:notificationId`

Needs a session token. Rate limit: 120 a minute, per address. An app's token or an API key needs the `notifications:write` scope.

### Path parameters

| Field | Type | Required | Notes |
|---|---|---|---|
| `notificationId` | `any` | required | The notification's id. |

### Body

| Field | Type | Required | Notes |
|---|---|---|---|
| `status` | `enum` | required | One of `Unread`, `Read`, `Acknowledged`. |

### Response

Returns a [Notification](https://hematite.gg/docs/developers/models/notification).

```bash
curl -X PATCH 'https://api.hematite.gg/v1/notifications/1' \
  -H "Authorization: $HEMATITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"status":"Unread"}'
```

Example `data`:

```json
{
  "id": 1,
  "userId": 1,
  "createdAt": "2026-11-10T18:24:00.000Z",
  "updatedAt": "2026-11-10T18:24:00.000Z",
  "type": "Neutral",
  "title": "Clutch on Ascent",
  "message": "OK",
  "status": "Unread",
  "metadata": null
}
```

## Delete a notification by ID

`DELETE /notifications/:notificationId`

Needs a session token. Rate limit: 120 a minute, per address. An app's token or an API key needs the `notifications:write` scope.

### Path parameters

| Field | Type | Required | Notes |
|---|---|---|---|
| `notificationId` | `any` | required | The notification's id. |

### Response

`data` is empty.

```bash
curl -X DELETE 'https://api.hematite.gg/v1/notifications/1' \
  -H "Authorization: $HEMATITE_TOKEN"
```
