To get a Get KG Extraction Questions.
To use this API, app needs the Admin API Scope of KnowlegdeGraph.
GET https://{{host}}/api/public/stream/{{streamId}}/qna/{{ExtractionId}}/questions?limit=&offset=
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. |
| ExtractionId | Required | ExtractionId from where the questions need to be fetched. |
Query Parameters
| Parameter | Required/Optional | Description |
|---|---|---|
| limit | Optional | Number of records to be fetched, if not given set to 50. |
| offset | Optional | Number of records to be skipped, if not given set to 0. |
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/{{ExtractionId}}/questions?limit=20&offset=0 \
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
-H 'content-type: application/json'
Sample Response
{
"extractions": [
{
"_id": "qna-647d1b55-af75-5e51-b286-ea3f70041d2a",
"status": true,
"question": "Am I going to be charged for this security feature?",
"answer": "As of now, this service is free of charge and is a security measure for your online account safety.",
"language": "en",
"kEId": "ke-xxxxx-xxx-xxx-xxx-xxxxx",
"createdBy": "u-xxxxx-xxx-xxxx-xxx-xxxxx",
"streamId": "st-xxxxx-xxx-xxx-xxx-xxxxx",
"createdOn": "2020-01-03T06:59:19.472Z",
"modifiedOn": "2020-01-03T06:59:19.472Z",
"__v": 0
}
]
}