@@ -11,17 +11,17 @@ This page will demonstrate how to access watsonx Assistant via an API call.
11
11
12
12
## Steps:
13
13
14
- 1 . Access watsonx Assistant from Resource List in the IBM Cloud Account
14
+ - Access watsonx Assistant from Resource List in the IBM Cloud Account
15
15
16
16
![ test] ( ../assets/api-access/resource.png )
17
17
18
- 2 . Get API Key for watsonx Assistant from Launch webpage
18
+ - Get API Key for watsonx Assistant from Launch webpage
19
19
![ test] ( ../assets/api-access/api.png )
20
20
21
- 3 . Get Serice Instance URL from Launch webpage
21
+ - Get Serice Instance URL from Launch webpage
22
22
![ test] ( ../assets/api-access/url.png )
23
23
24
- 4 . Get Assistant ID from webpage within the Assistant settings
24
+ - Copy the Assistant ID and the Skill ID from the Assistant settings
25
25
26
26
- Head to the Homepage of your assistant:
27
27
![ test] ( ../assets/api-access/assistant-page.png )
@@ -35,20 +35,18 @@ This page will demonstrate how to access watsonx Assistant via an API call.
35
35
- Get the required information from this pop-up window:
36
36
![ test] ( ../assets/api-access/details.png )
37
37
38
- 5 . Copy the Skill ID from the watsonx Assistant settings
39
-
40
- 6 . Obtain the Session ID from CLI CURL
38
+ - Obtain the Session ID from CLI CURL
41
39
42
40
``` {}
43
41
curl -X POST -u "apikey:{apikey}" "{url}/v2/assistants/{environment_id}/sessions?version=2021-11-27"
44
42
```
45
- 7 . Get all parameters from CLI CURL
43
+ - Get all parameters from CLI CURL
46
44
47
45
``` {}
48
46
curl -X GET -u "apikey:{apikey}" "{url}/v2/assistants/{assistant_id}/skills/{skill_id}?version=2021-11-27"
49
47
```
50
48
51
- 8 . Run Query from CLI CURL as API call to watsonx Agent
49
+ - Run Query from CLI CURL as API call to watsonx Agent
52
50
53
51
``` {}
54
52
curl -X POST -u "apikey:{apikey}" --header "Content-Type:application/json" --data "{\"input\": {\"text\":
0 commit comments