Jive REST API returning {"code":401,"message":"Bad credentials"} using Basic Auth Jive REST API returning {"code":401,"message":"Bad credentials"} using Basic Auth curl curl

Jive REST API returning {"code":401,"message":"Bad credentials"} using Basic Auth


For future troubleshooting, error 401 Unauthorized is also shown,when Jive instance is configured with SSO login, and you use federated user account for API calls.

You can't use a federated user account to authenticate your API calls. You must create a non-federated, 'system' account that you can use to authenticate API calls.

Source: https://community.jivesoftware.com/thread/273582


For anyone that stumbles across this, the user/password credentials were fine - I was just sending the request to the wrong instance https://sandbox.jiveon.com. This is for a client who's migrating from Jive, and we were provided user accounts on the UAT instance, but it appears that you cannot receive responses from the sandbox instance with this type of account.

Sending the request to https://{OUR JIVE ORG URL}/api/core/v3 worked fine.


Basic authentication is no more active for sandbox jive on account. You can try Oauth 2.0 authentication to access jive rest api.

Follow this link to get detail about jive oauth authentication process. http://www.codefixup.com/how-to-authenticate-jive-rest-api-using-add-on/

This tutorial will solve your issue for sure....