401 Unauthorized Error Message When Using Password Based Authentication for API Access
Problem
You are trying to access the BarTender Cloud Rest API using Password-based authentication:
However, when trying to retrieve the token, you receive the following message:
Environment
BarTender Cloud
Solution
When this happens it means that you have not enabled password-based API access for the credentials used in your request.
You can enable password-based API access by following the below steps:
- Click the Administration icon in the Navigation menu on the left.
- Expand the Security submenu and select Users.
- Click on the three vertical dot menu to the right of the user credentials you want to use and choose Edit.
- Enable Allow password-based API access and click Save.
Once this is done, you should be able to use the desired credentials for password based authentication.
Additional Resources
BarTender Cloud REST API Authentication and Tokens
BarTender Cloud REST API Authentication Using Password-Based OAuth