KG 추출 질문을 가져옵니다.
이 API를 사용하려면 앱에 KnowlegedGraph의 관리자 API 범위가 필요합니다.
GET https://{{host}}/api/public/stream/{{streamId}}/qna/{{ExtractionId}}/questions?limit=&offset=
경로 매개 변수
| 매개 변수 | 필수/선택 사항 | 설명 |
|---|---|---|
| host | 필수 | 환경 URL(예: https://bots.kore.ai) |
| streamId | 필수 | 봇 ID 또는 스트림 ID. 봇의 일반 설정 페이지에서 이를 액세스할 수 있습니다. |
| ExtractionId | 필수 | 질문을 가져올 ExtractionId입니다. |
쿼리 매개 변수
| 매개 변수 | 필수/선택 사항 | 설명 |
|---|---|---|
| limit | 선택 사항 | 50으로 설정되지 않은 경우, 가져올 레코드 수입니다. |
| offset | 선택 사항 | 0으로 설정되지 않은 경우, 건너뛸 레코드 수입니다. |
권한 부여
다음 구문을 포함한 헤더에 JWT를 포함한 API를 호출합니다. auth: {{JWT}}
콘텐츠 유형 응답
application/json
샘플 요청
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'
샘플 응답
{
"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
}
]
}