Skip to content

Commit 6ca1e05

Browse files
authored
Update api-access.md
1 parent a79e22c commit 6ca1e05

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/watsonx-assistant/api-access.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,42 @@ This page will demonstrate how to access watsonx Assistant via an API call.
1111

1212
## Steps:
1313

14-
- Access watsonx Assistant from Resource List in the IBM Cloud Account
14+
1. Access watsonx Assistant from Resource List in the IBM Cloud Account
1515

1616
![test](../assets/api-access/resource.png)
1717

18-
- Get API Key for watsonx Assistant from Launch webpage
18+
2. Get API Key for watsonx Assistant from Launch webpage
1919
![test](../assets/api-access/api.png)
2020

21-
- Get Serice Instance URL from Launch webpage
21+
3. Get Serice Instance URL from Launch webpage
2222
![test](../assets/api-access/url.png)
2323

24-
- Copy the Assistant ID and the Skill ID from the Assistant settings
24+
4. Copy the Assistant ID and the Skill ID from the Assistant settings
2525

26-
- Head to the Homepage of your assistant:
26+
+ Head to the Homepage of your assistant:
2727
![test](../assets/api-access/assistant-page.png)
2828

29-
- Access the Assistant Settings on the bottom left corner of the page:
29+
+ Access the Assistant Settings on the bottom left corner of the page:
3030
![test](../assets/api-access/assistant-settings.png)
3131

32-
- Select *View details* on the Assistant IDs and API details section of the page:
32+
+ Select *View details* on the Assistant IDs and API details section of the page:
3333
![test](../assets/api-access/view-details.png)
3434

35-
- Get the required information from this pop-up window:
35+
+ Get the required information from this pop-up window:
3636
![test](../assets/api-access/details.png)
3737

38-
- Obtain the Session ID from CLI CURL
38+
5. Obtain the Session ID from CLI CURL
3939

4040
```{}
4141
curl -X POST -u "apikey:{apikey}" "{url}/v2/assistants/{environment_id}/sessions?version=2021-11-27"
4242
```
43-
- Get all parameters from CLI CURL
43+
6. Get all parameters from CLI CURL
4444

4545
```{}
4646
curl -X GET -u "apikey:{apikey}" "{url}/v2/assistants/{assistant_id}/skills/{skill_id}?version=2021-11-27"
4747
```
4848

49-
- Run Query from CLI CURL as API call to watsonx Agent
49+
7. Run Query from CLI CURL as API call to watsonx Agent
5050

5151
```{}
5252
curl -X POST -u "apikey:{apikey}" --header "Content-Type:application/json" --data "{\"input\": {\"text\":

0 commit comments

Comments
 (0)