Adib Ahnaf
Adib Ahnaf

Reputation: 1

Curl Showing Unauthorized IBM Watson API

My curl is showing unauthorized even though I put the API key and URL right. I used the service credential. I am asking about Watson's Visual Recognition in Anaconda Prompt.

{"code":401, "error": "Unauthorized"} is all I get

Upvotes: 0

Views: 68

Answers (1)

chughts
chughts

Reputation: 4735

The combination of endpoint and apikey that you are using is invalid. The apikey and url endpoint come in pairs. You can find the url for your instance at the same place you got your apikey.

If you can’t find your service url where you got your apikey then you have not obtained the apikey correctly.

Upvotes: 0

Related Questions