Skip to main content

Credentials Examples

Subscriber credentials store channel-specific tokens and webhook URLs needed for push and chat delivery.

FCM (Firebase Cloud Messaging)

Multiple Device Tokens

A subscriber can have multiple devices. Each device has one device tokens.

APNS (Apple Push Notification Service)

Expo Push

Discord

cURL

Important Notes

  • Device tokens are set as an array — providing a new array replaces existing tokens in PUT api request and new tokens are appended in case of PATCH request.
  • Each provider (FCM, APNS etc.) must be configured as an integration in the Novu dashboard before storing the credentials.
  • Push tokens expire — For FCM and EXPO, novu handles the expiration of stale tokens. For rest other providers, user need to handle the expiry of tokens.