Unable to create Workflows in Production environment via API
Hello,
looks like that it's not possible to create a Workflow for the Production environment via API call. The error is quite explicit:
{"error":"Unauthorized","statusCode":401,"timestamp":"2025-05-19T15:30:08.749Z","path":"/v1/workflows","message":"This action is only allowed in Development environment","ctx":{"error":"Unauthorized","statusCode":401}}
However, this raise some concerns because:
- we want to automate the process of crating new organization with basic settings, both for Development and Production environment
- in self hosted environment I don't see the option to Promote a workflow from Development to Production. We are using docker images v. 2.1.1
Could you kindly advise?
Thanks a lot
2 Replies
I just experienced this
The fix is to pass this in the header:
Authorization: ApiKey <Secret Key>
Hello @Aditya @MG
Can you please point me to the API docs which covers workflows management along with steps?
I'm unable to find in below doc available
https://docs.novu.co/api-reference/overview
Overview | Novu Documentation
In this page you can learn about how to work with Novu's API