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

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

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

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

run();
[
  {
    "_id": "<string>",
    "count": 123,
    "templates": [
      "<string>"
    ],
    "channels": [
      "in_app"
    ]
  }
]

Authorizations

Authorization
string
header
required

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

Headers

idempotency-key
string

A header for idempotency purposes

Query Parameters

days
number

Response

200
application/json
OK
_id
string
required
count
number
required
templates
string[]
required
channels
enum<string>[]
required
Available options:
in_app,
email,
sms,
chat,
push