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