Reply To: Using Hexnode API for automation

#11228 Score: 0
Zach GoodmanZach Goodman
Moderator
4 pts

@Wilson, try adding the credentials as body data. In Postman, you can go to Body > form-data and add ‘username’ and ‘password’ as keys and fill the corresponding values. This should get the API call working.

However, if you plan to use this step in your applications, you must implement this method with caution. The user credential (for active admins) can always fetch the current API key. The user will have to be removed or deactivated on the Hexnode console to revoke access to the API key. Also, the client application must be trustable with the credentials you are providing to factor in chances of maliciously or accidentally leaking the credentials.

Regards,
Zach Goodman
Hexnode UEM