K2 Workflow API

  • 14 March 2019
  • 3 replies

In K2 Cloud Management we have done the following referring to the URL,

  1. Enabled the Workflow REST API and exposed the endpoints to authorized users.
  2. We have shared the Swagger file and the Base endpoint URL for consumption.
  3. We have added the Domain under the Domains allowed.


Then tried consuming the API from the application but we got 401 Unauthorized error. We also tried from POSTMAN by passing the Basic Auth (AAD Credentials). Can you please let us know what are we missing in the process.




3 replies

Good day thileeban


May you please follow this link for a deatailed process of consuming a workflow:


Please mark this as a solution or Kudo it if this document was helpful in resolving your issue


Thank You


Kind regards



Kind regards

Hi @thileeban


I understand your concern but your question be how to solve that 401 authentication error?


This seems like a typical issue issue to me and it was solved in this articles, kindly follow up with this links (, and attempt to recorver where you have missed your steps.


Thank you.


should you find information from the above links useful or leading you to the answer please mark as "Accepted Solution and/or Kudo" , to assist other k2 masses encountering similar issue as yours.


Best regards;



[K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member]

Hello thileeban,

It sounds like you may still need to grant workflow premissions to the AAD User you are using for Basic Auth. This is done on the management site for your environment under the Workflow Server tab. Expand "Workflows" and find the workflow you are trying to start/view/etc. Under the "Rights" tab, add your AAD user account and check the desired boxes to grand that user the rights you need.

After that you should be able to successfully call the workflow methods using basic auth from Postman or any other method.

~ Andrew