Novu
is the primary class used to interact with the Novu API client, enabling you to fetch and manage notifications and preferences within your custom Inbox implementation.
applicationIdentifier
is a unique identifier for the application. This is is
public credential that is used to authenticate the application with the Novu
API. applicationIdentifier
can be copied from API
Keys page.subscriberId
is a unique identifier for the subscriber. Read more about
subscribers.subscriberHash
is a unique identifier for the subscriber. It is used for
HMAC encryption. Read more about HMAC
Encryption.https://eu.api.novu.co
value for EU region.https://eu.ws.novu.co
value for EU region.useCache
parameter to false
in the Novu constructor options.
after
can be used to fetch the next set of notifications after a specific notification. It can take notification.id
as value.n
notifications. It can be used in
conjunction with limit
to paginate the notifications.isCompleted
field of primaryAction
to done from pending.
isCompleted
field of primaryAction
to done from pending.
isCompleted
field of primaryAction
to pending from done.
isCompleted
field of secondaryAction
to pending from done.
workflowId
is provided, it updates the channel preferences of the specific workflow. Otherwise, it updates the global channel preferences.