Get Extraction Questions – KG¶
To get the list of KG Extraction Questions.
Method | GET |
Endpoint | https://{{host}}/api/public/stream/{{streamId}}/qna/{{ExtractionId}}/questions?limit=&offset=
|
Content Type | application/json
|
Authorization | auth: {{YOUR_JWT_ACCESS_TOKEN}}
|
API Scope |
|
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 |
ExtractionId | The ExtractionId used to identify the extraction of the questions. | Required |
Query Parameters¶
PARAMETER | DESCRIPTION | MANDATE |
limit | The number of records to be fetched. The default count is 50. | Optional |
offset | The number of records to be skipped. The default count is 0. | Optional |
Sample Request¶
curl --location 'https://{{host}}/api/public/stream/{{streamId}}/qna/{{ExtractionId}}/questions?limit=20&offset=0' \
--header 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
--header 'Content-Type: application/json'
Body Parameters¶
No body parameters are passed.
Sample Response¶
{
"extractions": [
{
"_id": "qna-64xxxxxx-axx5-5xx1-b2xx-exxxxxxxxxxa",
"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
}
]
}