# Notifications | Signal House API Docs

> Manage in-app notification preferences and history through the Signal House API.

Source: https://docs.signalhouse.io/notifications

---

## Notifications

### GET /notification

Retrieve notifications with optional filtering and pagination.

**The following roles are required to use this endpoint:** `signalhouse_api`, `signalhouse_admin`, `signalhouse_user`, `admin`, `developer`, `api`, `billing`, `user`

#### Request Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | Query Param | Optional | Specific Notification ObjectId. |
| `groupId` | Query Param | Optional | Filter by Group ID. |
| `status` | Query Param | Optional | Filter by status: READ or UNREAD. |
| `eventTypes` | Query Param | Optional | Comma-separated list of event types to filter by. |
| `page` | Query Param | Optional | Page number for pagination (default: 1). |
| `limit` | Query Param | Optional | Results per page, max 100 (default: 10). |

#### Example Response 200

Response

```json
[
  {
    "_id": "60f7b2a1c9e77c001a2b3c5b",
    "groupId": "G1234567",
    "eventType": "BRAND_CREATION_SUCCESSFUL",
    "status": "UNREAD",
    "message": {
      "brandId": "B1234567",
      "displayName": "Acme Corp",
      "status": "VERIFIED"
    },
    "createdAt": "2024-01-15T12:05:00.000Z",
    "updatedAt": "2024-01-15T12:05:00.000Z"
  }
]
```

### PUT /notification/status

Bulk update the status of one or more notifications.

**The following roles are required to use this endpoint:** `signalhouse_api`, `signalhouse_admin`, `signalhouse_user`, `admin`, `developer`, `api`, `billing`, `user`

#### Request Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ids` | Array\[String\] | Required | Array of Notification ObjectIds to update. |
| `status` | String | Required | New status: READ or UNREAD. |

**status values:** `READ`, `UNREAD`

#### Example Request

Request

```json
{
  "ids": [
    "60f7b2a1c9e77c001a2b3c4d"
  ],
  "status": "READ"
}
```

#### Example Response 200

Response

```json
{
  "modifiedCount": 1
}
```

### DELETE /notification/:id

Delete a single notification.

**The following roles are required to use this endpoint:** `signalhouse_api`, `signalhouse_admin`, `signalhouse_user`, `admin`, `developer`, `api`, `billing`, `user`

#### Request Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | URL Param | Required | Notification ObjectId to delete. |

#### Example Response 200

Response

```json
{
  "_id": "60f7b2a1c9e77c001a2b3c4d",
  "groupId": "G1234567",
  "eventType": "BRAND_CREATION_SUCCESSFUL",
  "status": "UNREAD",
  "message": {
    "brandId": "B1234567",
    "displayName": "Acme Corp",
    "status": "VERIFIED"
  },
  "createdAt": "2024-01-15T12:00:00.000Z",
  "updatedAt": "2024-01-15T12:00:00.000Z"
}
```
