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 |
|
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 -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'
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 } ] }