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

FieldTypeRequiredDescription
idQuery ParamOptionalSpecific Notification ObjectId.
groupIdQuery ParamOptionalFilter by Group ID.
statusQuery ParamOptionalFilter by status: READ or UNREAD.
eventTypesQuery ParamOptionalComma-separated list of event types to filter by.
pageQuery ParamOptionalPage number for pagination (default: 1).
limitQuery ParamOptionalResults per page, max 100 (default: 10).

Example Response 200

Response
[
  {
    "_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"
  }
]

SDK Example

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

FieldTypeRequiredDescription
idsArray[String]RequiredArray of Notification ObjectIds to update.
statusStringRequiredNew status: READ or UNREAD.

status values: READ, UNREAD

Example Request

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

Example Response 200

Response
{
  "modifiedCount": 1
}

SDK Example

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

FieldTypeRequiredDescription
idURL ParamRequiredNotification ObjectId to delete.

Example Response 200

Response
{
  "_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"
}

SDK Example