Production api keys Unauthorized
Hello, I am using novu cloud. I created a workflow for development succesfully using the following code from python sdk:
template = NotificationTemplateFormDto(
name="123",
notification_group_id="66b6966dd0a367cc890a1515"
)
template.steps = [{"template": {"type": "email", "subject": "test", "provider": "ses"}}]
novu.api.NotificationTemplateApi().create(notification_template=template)
But when I use the api key of production I am getting :
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.novu.co/v1/notification-templates
8 Replies
@Joseph
To access this same workflow in production, you will have to first promote the changes to production from changes page
Hello again Pawan
thanks for jumping in
Can you help me please find this changes page
@Joseph
I see you are creating a v1 workflow using code in a development environment using Python SDK
but the same is not supported for production environment, that's why you are receiving 401 error
By any chance you are planning to use nodejs or javascript based framework like nextjs?
@Pawan Jain
I am planning on handling the creation of workflows,Integrations... from my backend
Creating production workflows even using the novu REST API is not supported?
Could you please clarify if there are any issues with using the Novu development environment for a production environment in a web application? Specifically, is the only difference between the development and production environments the separation of data, or are there other restrictions or rate limits that apply?
@Joseph, you just advanced to level 1!
@Pawan Jain
@Joseph
Apologies for missing this. I just saw your email. Could you please check the mail?
@Pawan Jain
Thanks for reaching out🙏 , just replied to it!