Skip to content

Get Extractions History – KG

To get the KG extractions’ history as a list.

Method GET
Endpoint https://{{host}}/api/public/stream/{{streamId}}/qna/history?language=en
Content Type application/json
Authorization auth: {{YOUR_JWT_ACCESS_TOKEN}}

See How to generate the JWT Token.

API Scope
  • Bot Builder: Manage Knowledge Graph
  • Admin Console: Manage Knowledge Graph

Path Parameters

PARAMETER DESCRIPTION MANDATE
host The environment URL. For example, https://bots.kore.ai Required
streamId The Stream ID that can be accessed under General Settings

on the Bot Builder.

Required

Query Parameters

PARAMETER DESCRIPTION MANDATE
language The Bot language which is identified by the language acronym. For example, en for English and de for German. The user can set the default language of the bot. Required

Sample Request

curl -X GET \
  https://{{host}}/api/public/stream/{{streamId}}/qna/history?language=en \
  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
  -H 'content-type: application/json'

Body Parameters

No body parameters are passed.

Sample Response

{
    "metaqnas": [
        {
            "_id": "ke-bxxxxxxb-bxx2-5xx8-bxx8-14xxxxxxxxxx",
            "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
        }
    ]
}