N
Novu•14mo 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•14mo ago
ujwal1373
ujwal1373•14mo ago
Hi @Pawan Jain In order to call the regenerate API keys API, it needs an API key right?
Pawan Jain
Pawan Jain•14mo ago
yes 😅 or token, which is not exposed
ujwal1373
ujwal1373•14mo ago
user token?
Novu_Bot
Novu_Bot•14mo ago
@Ujwal, you just advanced to level 3!
Pawan Jain
Pawan Jain•14mo ago
Yes user token
ujwal1373
ujwal1373•14mo ago
I have the user token. It is returned in the response for creating a user.
Pawan Jain
Pawan Jain•14mo ago
ok may be use that in header for Authorization key
ujwal1373
ujwal1373•14mo ago
Can I use the token in header as "Authorization: Bearer {token}"?
Pawan Jain
Pawan Jain•14mo ago
Yes
ujwal1373
ujwal1373•14mo ago
That worked. I had to give the Organization name while creating the user. Thanks for your help @Pawan Jain
Pawan Jain
Pawan Jain•14mo ago
yes Welcome @Ujwal