@@ -12,7 +12,6 @@ This page will demonstrate how to access watsonx Assistant via an API call.
1212## Steps:
1313
14141 . Access watsonx Assistant from Resource List in the IBM Cloud Account
15-
1615![ test] ( ../assets/api-access/resource.png )
1716
18172 . 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
24234 . 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
38335 . Obtain the Session ID from CLI CURL
39-
4034``` {}
4135curl -X POST -u "apikey:{apikey}" "{url}/v2/assistants/{environment_id}/sessions?version=2021-11-27"
4236```
4337
44386 . Get all parameters from CLI CURL
45-
4639``` {}
4740curl -X GET -u "apikey:{apikey}" "{url}/v2/assistants/{assistant_id}/skills/{skill_id}?version=2021-11-27"
4841```
4942
50437 . Run Query from CLI CURL as API call to watsonx Agent
51-
5244``` {}
5345curl -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