GET
/
v1
/
notifications
/
stats
import { Novu } from "@novu/api";

const novu = new Novu({
  secretKey: "YOUR_SECRET_KEY_HERE",
});

async function run() {
  const result = await novu.notifications.stats.retrieve();

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

run();
{
  "weeklySent": 123,
  "monthlySent": 123
}

Authorizations

Authorization
string
header
required

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

Headers

idempotency-key
string

A header for idempotency purposes

Response

200
application/json
OK
weeklySent
number
required
monthlySent
number
required