• Resolved Ambyomoron

    (@josiah-s-carberry)


    It is not very clear how to find the apikey required to access the watson back end using curl. Following the instructions provided elsewhere, I arrive at a screen that gives the following credentials:

    Assistant Details
    Assistant Name:
    Assistant ID:
    Assistant URL:
    Service Credentials
    Service Credentials Name
    Username:
    Password:

    Nothing is labeled as “apikey”. Be that as it may, I tried all of those fields and all of them result in a 401 error code due to authentication error.

    I have also read through the online documentation at https://cloud.ibm.com/apidocs/assistant-v2, which proved useless for finding an apikey.

    So, it would help a lot to get more precise instructions than are provided in a screen shot, using consistent vocabulary.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Intela-bot Help

    (@intelahelp)

    Hello @josiah-s-carberry.

    You don’t need API key, because you have Username/Password.

    Generally client app can authenticate on Watson Assistant service either with Username/Password (Basic authentication) or with API Key (IAM authentication).

    In your your case IBM provides Username/Password credentials, so you can issue requests like the following:

    curl -u "{username}:{password}" "{url}/{method}"

    you don’t need API key in this case.

    ===
    Otherwise if API Details screen displays API Key instead of Username/Password, you should use this syntax:

    curl -u "apikey:{apikey}" "{url}/{method}"

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    OK. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Finding the api key’ is closed to new replies.