GET
/
v1
/
subscribers
/
{subscriberId}
/
notifications
/
unseen
import { Novu } from "@novu/api";

const novu = new Novu({
  apiKey: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await novu.subscribers.notifications.unseenCount({
    seen: false,
    subscriberId: "<value>",
    limit: 2166.35,
  });

  // Handle the result
  console.log(result)
}

run();
{
  "count": 123
}

Enter your API key in the Authorization field like the example shown below:

E.g ApiKey 18d2e625f05d80e

This API returns the count of unseen in-app notifications for a subscriber.

Authorizations

Authorization
string
header
required

API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".

Path Parameters

subscriberId
string
required

Query Parameters

seen
boolean
required
limit
number
required

Response

200
application/json
Ok
count
number
required