import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const notifications = await client.notifications.list();
console.log(notifications.paging);{
"paging": {
"more": true,
"cursor": "<string>"
},
"results": [
{
"created_at": 123,
"updated_at": 123,
"id": "<string>",
"routing": {
"method": "all",
"channels": [
"<string>"
]
},
"topic_id": "<string>",
"note": "<string>",
"event_ids": [
"<string>"
],
"tags": {
"data": [
{
"id": "<string>",
"name": "<string>"
}
]
},
"title": "<string>"
}
]
}import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const notifications = await client.notifications.list();
console.log(notifications.paging);{
"paging": {
"more": true,
"cursor": "<string>"
},
"results": [
{
"created_at": 123,
"updated_at": 123,
"id": "<string>",
"routing": {
"method": "all",
"channels": [
"<string>"
]
},
"topic_id": "<string>",
"note": "<string>",
"event_ids": [
"<string>"
],
"tags": {
"data": [
{
"id": "<string>",
"name": "<string>"
}
]
},
"title": "<string>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Retrieve the notes from the Notification template settings.