N
Novu13mo ago
Bocorbojon

Importing users in bulk (CSV or something like that)

Hello. I would like to import the already existing users that I have in my database to Novu in bulk. OneSignal, for example, supports importing users through CSV files; does Novu have something similar?
7 Replies
empe
empe13mo ago
@Bocorbojon You can bulk import users to Novu using the importSubscribers method of the Novu API. You can include a list of subscribers as a JSON array and send it along with the API request. You can also import subscribers from a CSV file using the csv-parse node package. After parsing the CSV file, you can create an array of subscribers which you can then pass to the importSubscribers method.
Bocorbojon
Bocorbojon13mo ago
@emilpearce where can I find documentation of the importSubscribers method? It doesn't seem to be on the documentation webpage nor on the API reference.
Dima Grossman
Dima Grossman13mo ago
I will just clarify a bit here, there is not dedicated import subscribers method, but a POST method for creating a single subscriber. You would need to iterate to create all your subscribers. Another approach, is to create subscriber just in time when triggering the notifications. When providing an object in the to field of the trigger, Novu will upsert this subscriber if one doesn't exist. You can read more about it here: https://docs.novu.co/platform/subscribers#create-a-subscriber We are planning to add a bulk import methods to the API soon, but as of know I don't have a specific release date for that 🙏
Subscribers | Novu
Subscriber is a user to whom Novu will send a notification. Each subscriber in Novu is uniquely identified by subscriberId. Novu manages your users in the form of subscribers. Novu stores some user-specific information that helps you send multichannel notifications to your users.
empe
empe13mo ago
Sorry for the misunderstanding. It could be a very good addition. @Bocorbojon do you mind open this issue? !issue !issue
Novu_Bot
Novu_Bot13mo ago
Let's open an issue over GitHub! That's the link you should follow: https://github.com/novuhq/novu/issues/new/choose
Bocorbojon
Bocorbojon13mo ago
GitHub
🚀 Feature: Bulk import subscribers through CSV · Issue #3565 · novu...
🔖 Feature description It would be very helpful to have an option to import users you already have in your database to Novu by means of a CSV file. The current solution is to iterate through your us...
empe
empe12mo ago
Thank you @Bocorbojon !
Want results from more Discord servers?
Add your server
More Posts