챗봇 대화 내역 조회
Endpoint
[POST] API URL 정보
Introduce
Request (Json)
Header
Field Name | Type | Required | Description |
---|---|---|---|
Content-Type | Text | Y | application/json |
HT-Client-Id | Text | Y | 고객센터에서 발급 받은 key |
HT-Client-Secret | Text | Y | 고객센터에서 발급 받은 token |
Body
Field Name | Type (Length) | Required | Description |
---|---|---|---|
user_key | Text(20) | Y | 사용자 키 |
sender_key | Text(40) | Y | 발신프로필 키 |
Example
REST API Sample
Response (Json)
Parameter
Field Name | Type | Description |
---|---|---|
code | Text | 처리 결과 코드 (0: 정상 / 나머지: 오류) |
chatbot_messages | array | 챗봇 대화내역 |
Example
Success
{
"chatbot_messages": [
{
"timestamp": 1748499650966,
"userKey": "example-userKey",
"messages": {
"version": "2.0",
"template": {
"outputs": [
{
"textCard": {
"title": "테스트",
"description": "테스트",
"buttons": [
{
"label": "테스트 시나리오",
"highlight": false,
"action": "message",
"extra": {
"btnName": "테스트 시나리오",
"nextBlockId": "abc1112231",
"nextType": "next_scenario"
},
"messageText": "테스트 시나리오"
}
],
"lock": false,
"forwardable": false
}
}
],
"quickReplies": []
}
},
"utterance": "챗봇 시작하기",
"speech": "최초 블록",
"appUserId": "",
"footprint": "chp-34e8df80c85e44c098e78b0c64ef543d",
"blockId": "63a543b5230acb40fad2dc69",
"blockName": "해피봇 new-처음으로 이벤트 블록",
"trigger": "LISTMENU_BLOCK",
"extra": {
"service": "KakaoTalkChannel"
}
}
],
"code": "0"
}