N
Novu•2y ago
ujwal1373

How to generate Novu API key without UI

We are self hosting Novu API inside a container and we wanted to automate the process of initial setup like creating user, setup Provider integrations etc. Is there a way to generate the Novu API key through the APIs without the UI?
12 Replies
Pawan Jain
Pawan Jain•2y ago
ujwal1373
ujwal1373OP•2y ago
Hi @Pawan Jain In order to call the regenerate API keys API, it needs an API key right?
Pawan Jain
Pawan Jain•2y ago
yes 😅 or token, which is not exposed
ujwal1373
ujwal1373OP•2y ago
user token?
Novu_Bot
Novu_Bot•2y ago
@Ujwal, you just advanced to level 3!
Pawan Jain
Pawan Jain•2y ago
Yes user token
ujwal1373
ujwal1373OP•2y ago
I have the user token. It is returned in the response for creating a user.
Pawan Jain
Pawan Jain•2y ago
ok may be use that in header for Authorization key
ujwal1373
ujwal1373OP•2y ago
Can I use the token in header as "Authorization: Bearer {token}"?
Pawan Jain
Pawan Jain•2y ago
Yes
ujwal1373
ujwal1373OP•2y ago
That worked. I had to give the Organization name while creating the user. Thanks for your help @Pawan Jain
Pawan Jain
Pawan Jain•2y ago
yes Welcome @Ujwal
Want results from more Discord servers?
Add your server