Title: Finding the api key
Last modified: December 12, 2018

---

# Finding the api key

 *  Resolved [Ambyomoron](https://wordpress.org/support/users/josiah-s-carberry/)
 * (@josiah-s-carberry)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/finding-the-api-key/)
 * 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](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](https://wordpress.org/support/users/intelahelp/)
 * (@intelahelp)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/finding-the-api-key/#post-10979512)
 * Hello [@josiah-s-carberry](https://wordpress.org/support/users/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](https://wordpress.org/support/users/josiah-s-carberry/)
 * (@josiah-s-carberry)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/finding-the-api-key/#post-10980311)
 * OK. Thanks.

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

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

 * ![](https://ps.w.org/conversation-watson/assets/icon-256x256.png?rev=1684465)
 * [Chatbot with IBM watsonx Assistant](https://wordpress.org/plugins/conversation-watson/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/conversation-watson/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/conversation-watson/)
 * [Active Topics](https://wordpress.org/support/plugin/conversation-watson/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/conversation-watson/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/conversation-watson/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ambyomoron](https://wordpress.org/support/users/josiah-s-carberry/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/finding-the-api-key/#post-10980311)
 * Status: resolved