진행 중인 봇의 게시 상태 또는 마지막으로 완료된 봇 상태 요청을 가져옵니다. 봇 게시 API를 시작하려면 여기를 참조하세요.
이 API를 사용하려면 앱은 봇 게시 아래에 있는 게시 상태의 관리자 API 범위가 필요합니다.
GEThttps://{{host}}/api/public/bot/{{BotID}}/publish/status
권한 부여
다음 구문을 포함한 헤더에 JWT를 포함한 API를 호출합니다. auth: {{JWT}}
쿼리 매개 변수
| 매개 변수 | 설명 |
|---|---|
| host | 환경 URL(예:https://bots.kore.ai |
| BotID | 봇 ID 또는 스트림 ID. 봇의 일반 설정 페이지에서 이를 액세스할 수 있습니다. |
콘텐츠 유형 응답
application/json
샘플 요청
curl -X GET \
https://{{host}}/api/1.1/public/bot/{{BotID}}/publish/status/ \
-H 'Auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
샘플 응답
{
"_id": "ber-xxxxx-xxx-xxx-xxx-xxxxx",
"jobType": "PUBLISH_BOT",
"streamId": "st-xxxxx-xxx-xxx-xxx-xxxxx",
"__v": 0,
"action": "RUN",
"createdBy": "u-xxxxx-xxx-xxx-xxx-xxxxx",
"percentageComplete": 100,
"requestedTime": "2021-12-01T09:19:04.483Z",
"status": "successful",
"lastModifiedOn": "2021-12-01T09:19:05.808Z",
"initiatedOn": "2021-12-01T09:19:04.550Z",
"statusSummary": [
{
"resourceId": "SETTINGS",
"resourceType": "SETTINGS",
"name": "Settings",
"modules": [
"general",
"bot_variables",
"pii",
"ivr",
"hold_resume",
"custom_script",
"advanced"
],
"status": "SUCCESS"
},
{
"resourceId": "NL",
"resourceType": "NL",
"name": "Natural Language",
"modules": [
"nl_model",
"settings"
],
"status": "SUCCESS"
}
]
}
참고 사항: ‘상태’ 필드의 가능한 값은 SUCCESSFUL, FAILED 또는 INPROGRESS입니다.