@@ -11,42 +11,42 @@ This page will demonstrate how to access watsonx Assistant via an API call.
11
11
12
12
## Steps:
13
13
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
15
15
16
16
![ test] ( ../assets/api-access/resource.png )
17
17
18
- - Get API Key for watsonx Assistant from Launch webpage
18
+ 2 . Get API Key for watsonx Assistant from Launch webpage
19
19
![ test] ( ../assets/api-access/api.png )
20
20
21
- - Get Serice Instance URL from Launch webpage
21
+ 3 . Get Serice Instance URL from Launch webpage
22
22
![ test] ( ../assets/api-access/url.png )
23
23
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
25
25
26
- - Head to the Homepage of your assistant:
26
+ + Head to the Homepage of your assistant:
27
27
![ test] ( ../assets/api-access/assistant-page.png )
28
28
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:
30
30
![ test] ( ../assets/api-access/assistant-settings.png )
31
31
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:
33
33
![ test] ( ../assets/api-access/view-details.png )
34
34
35
- - Get the required information from this pop-up window:
35
+ + Get the required information from this pop-up window:
36
36
![ test] ( ../assets/api-access/details.png )
37
37
38
- - Obtain the Session ID from CLI CURL
38
+ 5 . Obtain the Session ID from CLI CURL
39
39
40
40
``` {}
41
41
curl -X POST -u "apikey:{apikey}" "{url}/v2/assistants/{environment_id}/sessions?version=2021-11-27"
42
42
```
43
- - Get all parameters from CLI CURL
43
+ 6 . Get all parameters from CLI CURL
44
44
45
45
``` {}
46
46
curl -X GET -u "apikey:{apikey}" "{url}/v2/assistants/{assistant_id}/skills/{skill_id}?version=2021-11-27"
47
47
```
48
48
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
50
50
51
51
``` {}
52
52
curl -X POST -u "apikey:{apikey}" --header "Content-Type:application/json" --data "{\"input\": {\"text\":
0 commit comments