To get a list of KG Extractions history.
To use this API, app needs the Admin API Scope of KnowlegdeGraph.
GET https://{{host}}/api/public/stream/{{streamId}}/qna/history?language=en
Path Parameters
Parameter | Required/Optional | Description |
---|---|---|
host | Required | Environment URL, for example, https://bots.kore.ai |
streamId | Required | Bot ID or Stream 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/stream/{{streamId}}/qna/history?language=en \ -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \ -H 'content-type: application/json'
Sample Response
{ "metaqnas": [ { "_id": "ke-b902a8eb-b8e2-5238-b6c8-14f379d78ef0", "editable": false, "status": "success", "isVisited": false, "fileId": "5e0xxxxxx8b", "name": "KG_QuestionExtraction", "extractionType": "faq", "streamId": "st-xxxxx-xxx-xxx-xxx-xxxxx", "createdBy": "u-xxxxx-xxx-xxx-xxx-xxxxx", "language": "en", "fileName": "KGCSVBotQuestionExtraction.csv", "createdOn": "2020-01-03T06:17:50.416Z", "modifiedOn": "2020-01-03T06:17:56.932Z", "__v": 0, "qnaAddedCount": 0, "qnaExtractedCount": 113, "qnaCount": 113 } ] }