I am having trouble when using the Bearer token when authenticating for a CP4D Watson Discovery API. I used the latest Bearer token from the instance access information and supplied the authentication header, but I get this result back:
{
"errors": [
{
"code": "unauthenticated",
"message": "You are no longer authenticated. Please log in again."
}
],
"status_code": 401
}
I used to use API keys to access the APIs of the Watson Discovery deployed on IBM Cloud, and did not have a problem like that.
I was wondering if there were alternatives to using the Bearer token - especially since they refresh every few hours - and use some similar methods as the API key for the IBM Cloud instance.
Thank you in advance.
------------------------------
Yun Ho Jung
------------------------------