{"id":41164,"date":"2022-04-21T02:37:24","date_gmt":"2022-04-21T01:37:24","guid":{"rendered":"https:\/\/developer.kore.ai\/v9-3\/?p=41164"},"modified":"2022-04-21T02:37:43","modified_gmt":"2022-04-21T01:37:43","slug":"conversation-history-api-old","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-3\/docs\/bots\/api-guide\/conversation-history-api-old\/?lang=ko","title":{"rendered":"\ub300\ud654 \uae30\ub85d API(\uc774\uc804)"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>\ubd07\uacfc \uc0ac\uc6a9\uc790 \uac04\uc758 \ub300\ud654 \uba54\uc2dc\uc9c0\ub97c \uc2dc\uac04 \uc5ed\uc21c\uc73c\ub85c \uac00\uc838\uc635\ub2c8\ub2e4. \uc774 API\ub294 \ud398\uc774\uc9c0 \ub9e4\uae40 \uae30\ub2a5\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4. \uc624\ud504\uc14b\/\uac74\ub108\ub6f0\uae30\ub97c \uc81c\uacf5\ud558\uace0 \ud55c \ubc88\uc5d0 \ud2b9\uc815 \uba54\uc2dc\uc9c0 \uc218\ub97c \uc81c\ud55c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p><em><strong>\ucc38\uace0 \uc0ac\ud56d<\/strong>: \uc774 API\ub294 \ubd07\uc5d0 \ub300\ud574 BotKit SDK \ub610\ub294 \uc0c1\ub2f4\uc0ac \uc804\ud658\uc774 \ud65c\uc131\ud654\ub41c \uacbd\uc6b0\uc5d0\ub9cc \uc561\uc138\uc2a4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/em> \uc774 API\ub294 \uace7 <strong><span style=\"text-decoration: underline;\">\uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc73c\uba70<\/span><\/strong>, \ub300\uc2e0 \uc774 API\ub97c \uc0ac\uc6a9\ud558\uc138\uc694. <a href=\"\/?p=21333\">\ub300\ud654 \uae30\ub85d API<\/a>.<\/p>\n<p><b>GET<\/b> <code>\/api\/botsdk\/stream\/{{stream_id}}\/getMessages?userId={{user_id}}&amp;skip={{numberOfMessagesToBeSkipped}}&amp;limit={{numberOfMessagesTobeFetched}}<\/code><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i\">\ub9e4\uac1c \ubcc0\uc218<\/span><\/h3>\n<table>\n<thead>\n<tr>\n<th>\ub9e4\uac1c \ubcc0\uc218<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<tr>\n<td>stream_id<\/td>\n<td>\ubd07 ID\uc785\ub2c8\ub2e4. \ubd07\uc758 \uc77c\ubc18 \uc124\uc815 \ud398\uc774\uc9c0\uc5d0\uc11c \uc561\uc138\uc2a4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>user_id<\/td>\n<td>\uc561\uc138\uc2a4\ud560 \ub300\ud654 \uae30\ub85d\uc744 \uac00\uc9c4 \uc0ac\uc6a9\uc790\uc758 ID\uc785\ub2c8\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>skip<\/td>\n<td>\uac74\ub108\ub6f8 \uba54\uc2dc\uc9c0 \uc218\uc785\ub2c8\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>limit<\/td>\n<td>\uac01 \ud398\uc774\uc9c0\uc5d0 \ud45c\uc2dc\ud560 \uba54\uc2dc\uc9c0 \uc218\uc785\ub2c8\ub2e4.<\/td>\n<\/tr>\n<\/thead>\n<\/table>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-2\">\uad8c\ud55c \ubd80\uc5ec<\/span><\/h3>\n<p>\ub2e4\uc74c \uad6c\ubb38\uc744 \ud3ec\ud568\ud55c \ud5e4\ub354\uc5d0 JWT\ub97c \ud3ec\ud568\ud55c API\ub97c \ud638\ucd9c\ud569\ub2c8\ub2e4. <code>auth: {{JWT}}<\/code><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-3\">\ucf58\ud150\uce20 \uc720\ud615 \uc751\ub2f5<\/span><\/h3>\n<p><code>application\/JSON<\/code><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-4\">\uc0d8\ud50c \uc694\uccad<\/span><\/h3>\n<pre class=\"\">curl -X GET \\ 'https:\/\/bots.kore.ai\/api\/botsdk\/stream\/{{stream_id}}\/getMessages?userId= u-XXX-XXX' \\\r\n-H 'auth: YOUR_JWT_ACCESS_TOKEN'<\/pre>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-5\">\uc0d8\ud50c \uc751\ub2f5<\/span><\/h3>\n<pre>{\r\n   \"total\":1,\r\n   \"moreAvailable\":false,\r\n   \"messages\":[\r\n      {\r\n         \"_id\":\"ms-eb23XXXXX7075f28b\",\r\n         \"type\":\"outgoing\",\r\n         \"status\":\"pending\",\r\n         \"createdBy\":\"u-6dd4XXXXXXXXXf-1f75b054f6dc\",\r\n         \"botId\":\"st-db4c106XXXXXXXXX05-350518802fd6\",\r\n         \"orgId\":\"o-232b5XXXXXXXded-d8d5131aa62c\",\r\n         \"lmodifiedOn\":\"2017-09-28T13:18:04.395Z\",\r\n         \"createdOn\":\"2017-09-28T13:18:04.401Z\",\r\n         \"components\":[\r\n            {\r\n               \"_id\":\"cp-905c82aXXXXXXX360499c39a\",\r\n               \"cT\":\"text\",\r\n               \"data\":{\r\n                  \"text\":\"Thanks! I now have access to your Kore Assistant account. Don\u2019t worry, I never access your account without you asking me to do something for you.\"\r\n               },\r\n               \"thumbnails\":[\r\n               ]\r\n            }\r\n         ],\r\n         \"channels\":[\r\n            {\r\n               \"to\":\"u-6dd4XXXXXXXXX75b054f6dc\",\r\n               \"type\":\"rtm\",\r\n               \"requestId\":\"ms-dfabXXXXXXX7704b79b21\"\r\n            }\r\n         ]\r\n      }\r\n   ]\r\n}<\/pre>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"\ubd07\uacfc \uc0ac\uc6a9\uc790 \uac04\uc758 \ub300\ud654 \uba54\uc2dc\uc9c0\ub97c \uc2dc\uac04 \uc5ed\uc21c\uc73c\ub85c \uac00\uc838\uc635\ub2c8\ub2e4. \uc774 API\ub294 \ud398\uc774\uc9c0 \ub9e4\uae40 \uae30\ub2a5\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4. \uc624\ud504\uc14b\/\uac74\ub108\ub6f0\uae30\ub97c \uc81c\uacf5\ud558\uace0 \ud55c \ubc88\uc5d0 \ud2b9\uc815 \uba54\uc2dc\uc9c0 \uc218\ub97c \uc81c\ud55c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ucc38\uace0 \uc0ac\ud56d: \uc774 API\ub294 \ubd07\uc5d0 \ub300\ud574 BotKit SDK \ub610\ub294 \uc0c1\ub2f4\uc0ac \uc804\ud658\uc774 \ud65c\uc131\ud654\ub41c \uacbd\uc6b0\uc5d0\ub9cc \uc561\uc138\uc2a4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 API\ub294 \uace7 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc73c\uba70, \ub300\uc2e0 \uc774 API\ub97c \uc0ac\uc6a9\ud558\uc138\uc694. \ub300\ud654 \uae30\ub85d API. GET \/api\/botsdk\/stream\/{{stream_id}}\/getMessages?userId={{user_id}}&amp;skip={{numberOfMessagesToBeSkipped}}&amp;limit={{numberOfMessagesTobeFetched}}...","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-41164","post","type-post","status-publish","format-standard","hentry","category-api-guide"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts\/41164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/comments?post=41164"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts\/41164\/revisions"}],"predecessor-version":[{"id":41165,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts\/41164\/revisions\/41165"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/media?parent=41164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/categories?post=41164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/tags?post=41164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}