Notifyr

Notifyr is a class provided to send notifications. Please use the Notifyr class on the server since it requires an API key.

const notifyr = new Notifyr(process.env.NOTIFYR_API_KEY); const response = await notifyr.sendNotification({ title, body, type, groupId, });
parametertypedescription
titleRequired
string
Title of the notification
bodyRequired
string
Body of the notification
typeRequired
string
Type of the notification which dictates the color. One of INFO SUCCESS WARNING ERROR
groupIdRequired
string
Which group to send the notification to