To get a listing knowledge Tasks with the nodes.
To use this API, the app needs the Admin API Scope of KnowlegdeGraph.
GET https://{{host}}/api/public/bot/{{botId}}/knowledgeTasks?language=en
Path Parameters
| Parameter | Required/Optional | Description |
|---|---|---|
| host | Required | Environment URL, for example, https://bots.kore.ai |
| botId | Required | Bot ID. You can access it from the General Settings page of the bot. |
Query Parameters
| Parameter | Required/Optional | Description |
|---|---|---|
| language | Required | The bot language, for example, “en” for English and “de” for German. |
Authorization
Invoke the API with JWT in the header with the following syntax:
auth: {{JWT}}
Response Content Type
application/json
Sample Request
curl -X POST \
https://{{host}}/api/public/bot/{{botId}}/knowledgeTasks?language=en \
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
-H 'content-type: application/json'
Sample Response
[
{
"_id": "5afa79639466e4369e3c809f",
"createdOn": "2018-05-15T06:08:35.732Z",
"modifiedOn": "2020-01-03T07:54:13.583Z",
"state": "configured",
"editable": true,
"taxonomy": [
{
"parent": [],
"synonyms": [],
"isDummy": false,
"editLocked": false,
"nodeId": "be36bc3a-3055-417c-9d2d-0ab321fead9d",
"label": "tarak",
"level": "l0",
"faqCount": 5
}
],
"nodesToPublish": [],
"publishRoot": false,
"version": "1.0",
"adminTaskStatus": "active",
"name": "tarak",
"description": "This is used to make ontology",
"isGraph": true,
"visibility": {
"namespace": "private",
"namespaceIds": [
"u-9920e136-19d6-5bd8-b68f-acd455d7d7f9"
]
},
"streamId": "st-xxxxx-xxx-xxx-xxx-xxxxx",
"metadata": {
"taxonomy": [
{
"nodeId": "be36bc3a-3055-417c-9d2d-0ab321fead9d",
"label": "tarak",
"class": "bgblack",
"level": "l0",
"parent": [],
"synonyms": [],
"nodes": []
}
]
},
"createdBy": "u-9920e136-19d6-5bd8-b68f-acd455d7d7f9",
"lastModifiedBy": "u-9920e136-19d6-5bd8-b68f-acd455d7d7f9",
"botName": "tarak",
"language": "en",
"refId": "16560829-31a6-5d9f-8761-3d40e5b91016",
"__v": 0,
"deletedNodesToPublish": [],
"publishedOn": "2020-01-03T07:54:13.583Z",
"versionComment": null,
"parentId": "5e0ef3256eaec30a6f4aefc3",
"_resolve": [
"createdBy"
],
"lock": {
"islocked": "false"
},
"traitCount": 0,
"faqCount": 5
}
]