Is Rest Api available for Self Hosted Instance

Dear recipients,

We are extracting data from different instances by using rest api (through Java as well as Python). First we get an access token and then we use it to get the data.

However, one of our customer is holding its instance, so it not sugarcrm.com but something else. We are getting the access token successfully. Nevertheless, when issuing a request to get the data, it is failing with the following error:

{u’error_message’: u’No valid authentication for user.‘, u’error’: u’need_login’}

We are therefore wondering what the root cause of the error is. Is it because rest api is not available for self hosting instances? Any other clue?

Kind regards