봇에서 전역 및 콘텐츠 변수를 내보냅니다.
이 API를 사용하려면 앱에 변수 내보내기의 봇 빌더 API 범위가 필요합니다.
POSThttps://{{host}}/api/{{version}}/public/builder/stream/{{BotID}}/variables/export
쿼리 매개 변수
| 매개 변수 | 설명 |
|---|---|
| host | 환경 URL(예: https://bots.kore.ai) |
| BotID | 봇 ID입니다. 봇의 일반 설정 페이지에서 이를 액세스할 수 있습니다. |
권한 부여
다음 구문을 포함한 헤더에 JWT를 포함한 API를 호출합니다. auth: {{JWT}}
콘텐츠 유형 응답
application/JSON
샘플 요청
curl -X POST \
https://{{host}}/api/1.1/public/builder/stream/{{BotId}}/variables/export \
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
샘플 응답
[
{
"key": "Global",
"value": "Globalkey-prePopulated",
"hint": "",
"variableType": "env",
"scope": "prePopulated"
},
{
"key": "Lang",
"variableType": "locale",
"scope": "prePopulated",
"localeData": {
"en": {
"value": "english language prompt",
"hint": ""
}
}
}
]