Skip to content

Commit df002ee

Browse files
authored
Update api-access.md
1 parent 917d806 commit df002ee

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

docs/watsonx-assistant/api-access.md

+4-12
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ This page will demonstrate how to access watsonx Assistant via an API call.
1212
## Steps:
1313

1414
1. Access watsonx Assistant from Resource List in the IBM Cloud Account
15-
1615
![test](../assets/api-access/resource.png)
1716

1817
2. Get API Key for watsonx Assistant from Launch webpage
@@ -22,33 +21,26 @@ This page will demonstrate how to access watsonx Assistant via an API call.
2221
![test](../assets/api-access/url.png)
2322

2423
4. Copy the Assistant ID and the Skill ID from the Assistant settings
25-
26-
+ Head to the Homepage of your assistant:
24+
- Head to the Homepage of your assistant:
2725
![test](../assets/api-access/assistant-page.png)
28-
29-
+ Access the Assistant Settings on the bottom left corner of the page:
26+
- Access the Assistant Settings on the bottom left corner of the page:
3027
![test](../assets/api-access/assistant-settings.png)
31-
32-
+ Select *View details* on the Assistant IDs and API details section of the page:
28+
- Select *View details* on the Assistant IDs and API details section of the page:
3329
![test](../assets/api-access/view-details.png)
34-
35-
+ Get the required information from this pop-up window:
30+
- Get the required information from this pop-up window:
3631
![test](../assets/api-access/details.png)
3732

3833
5. Obtain the Session ID from CLI CURL
39-
4034
```{}
4135
curl -X POST -u "apikey:{apikey}" "{url}/v2/assistants/{environment_id}/sessions?version=2021-11-27"
4236
```
4337

4438
6. Get all parameters from CLI CURL
45-
4639
```{}
4740
curl -X GET -u "apikey:{apikey}" "{url}/v2/assistants/{assistant_id}/skills/{skill_id}?version=2021-11-27"
4841
```
4942

5043
7. Run Query from CLI CURL as API call to watsonx Agent
51-
5244
```{}
5345
curl -X POST -u "apikey:{apikey}" --header "Content-Type:application/json" --data "{\"input\": {\"text\":
5446
\"Hello\"}}" "{url}/v2/assistants/{environment_id}/sessions/{session_id}/message?version=2024-08-25"

0 commit comments

Comments
 (0)