Reputation: 3
Please is there any API to get a list of intents for an assistant like it exist for Logs : GET /v2/assistants/{assistant_id}/logs
I used this URL but it dosen't work: GET /v2/assistants/{assistant_id}/intents
Upvotes: 0
Views: 702
Reputation: 17118
The V1 API of IBM Watson Assistant provides access to intents, entities and more. See the "List Intents" API function for what you want to achieve.
The docs have sample code for various programming languages, but the intent data could be retrieved using curl, too:
curl -u "apikey:{apikey}" "{url}/v1/workspaces/{workspace_id}/intents?version=2021-06-14"
This is in the V2 API docs:
To see the service credentials and the workspace ID of a workspace, go to the Skills page and select View API Details from the menu of a skill tile. (The workspace ID is used only by the v1 API.)
Upvotes: 1