{"id":39434,"date":"2022-04-01T09:24:27","date_gmt":"2022-04-01T08:24:27","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=39434"},"modified":"2022-04-01T09:24:29","modified_gmt":"2022-04-01T08:24:29","slug":"debug-logs-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/api-guide\/debug-logs-api\/?lang=ja","title":{"rendered":"Debug Logs API"},"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>\u7279\u5b9a\u306e\u4f1a\u8a71\u306e\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u3092\u53d6\u5f97\uff08\u73fe\u5728\u306fIVR\u30c1\u30e3\u30cd\u30eb\u306e\u307f\u30b5\u30dd\u30fc\u30c8\uff09\u3002<\/p>\n<p class=\"note\">\u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30a2\u30d7\u30ea\u306b<em>\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0<\/em>\u306e\u30dc\u30c3\u30c8\u30d3\u30eb\u30c0\u30fcAPI\u30b9\u30b3\u30fc\u30d7\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><b>GET <\/b><code>https:\/\/{{host}}\/api\/{{version}\/{{BotID}}\/debuglogs?identity={{identity}}&amp;channelType={{channelType}}&amp;minimumInfo=true&amp;limit=5&amp;offset=300&amp;timezone={{timezone}}<\/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\">\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th>\u30d1\u30e9\u30e1\u30fc\u30bf<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>host<\/td>\n<td>\u74b0\u5883URL\u3001\u4f8b\uff1a  <code>https:\/\/bots.kore.ai<\/code><\/td>\n<\/tr>\n<tr>\n<td>version<\/td>\n<td>API\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u3053\u306eAPI\u306e\u73fe\u5728\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u300c1.1\u300d\u3067\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>BotID<\/td>\n<td>\u30dc\u30c3\u30c8ID\u307e\u305f\u306f\u30b9\u30c8\u30ea\u30fc\u30e0ID\u3002\u30dc\u30c3\u30c8\u306e\u300c\u4e00\u822c\u8a2d\u5b9a\u300d\u30da\u30fc\u30b8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>identity<\/td>\n<td>\u547c\u3073\u51fa\u3057\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u56fa\u6709\u306eID\u3002<\/td>\n<\/tr>\n<tr>\n<td>channelType<\/td>\n<td>&nbsp;<strong>ivrVoice<\/strong>\u306e\u73fe\u5728\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u30c1\u30e3\u30f3\u30cd\u30eb<\/td>\n<\/tr>\n<tr>\n<td>minimumInfo<\/td>\n<td>\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3002\u30b5\u30de\u30ea\u30fc\u306e\u307f\u3092\u624b\u306b\u5165\u308c\u308b\u305f\u3081\u306b\u306f\u3001\u300ctrue\u300d\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>offset<\/td>\n<td>\u30ed\u30b0\u306e\u53d6\u5f97\u306e\u958b\u59cb\u30da\u30fc\u30b8\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u6307\u5b9a\u304c\u306a\u3044\u5834\u5408\u306f\u30010\u304b\u3089\u59cb\u307e\u308a\u3001\u3053\u308c\u304c\u30ed\u30b0\u30ea\u30b9\u30c8\u306e\u6700\u521d\u306e\u30da\u30fc\u30b8\u3068\u306a\u308a\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>limit<\/td>\n<td>\u53d6\u5f97\u3059\u308b\u8a18\u9332\u306e\u6570\u3067\u3059\u3002\u9069\u7528\u4e0a\u9650\u5024\u306f50\u3067\u3059<\/td>\n<\/tr>\n<tr>\n<td>timezone<\/td>\n<td>\u4f8b\uff1aAmerica\/New_York<\/td>\n<\/tr>\n<tr>\n<td>fromDate<\/td>\n<td>\u30ed\u30b0\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u305f\u65e5\u4ed8\u3001\u6709\u52b9\u306a\u5f62\u5f0f\u306f yyyy-mm-dd \u307e\u305f\u306f\u6709\u52b9\u306a\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7<\/td>\n<\/tr>\n<tr>\n<td>toDate<\/td>\n<td>\u30ed\u30b0\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u305f\u65e5\u4ed8\u3001\u6709\u52b9\u306a\u5f62\u5f0f\u306f yyyy-mm-dd \u307e\u305f\u306f\u6709\u52b9\u306a\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7<\/td>\n<\/tr>\n<\/tbody>\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\">\u8a8d\u8a3c<\/span><\/h3>\n<p>\u30d8\u30c3\u30c0\u30fc\u5185\u306eJWT\u3092\u542b\u3080API\u3092\u3001\u4ee5\u4e0b\u306e\u69cb\u6587\u3067\u547c\u3073\u51fa\u3057\u307e\u3059\u3002 <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\">\u5fdc\u7b54\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7<\/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\">\u30b5\u30f3\u30d7\u30eb\u306e\u30ea\u30af\u30a8\u30b9\u30c8<\/span><\/h3>\n<pre>curl -X GET \\\r\n   https:\/\/{{host}}\/api\/1.1\/{{BotID}}\/debuglogs?identity={{id}}&amp;channelType=ivrVoice&amp;minimumInfo=true&amp;limit=5&amp;offset=300&amp;timezone=America\/New_York' \\  \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\">\u30b5\u30f3\u30d7\u30eb\u306e\u30ec\u30b9\u30dd\u30f3\u30b9<\/span><\/h3>\n<pre>[\r\n    {\r\n        \"timestamp\": \"2018-11-22T13:06:17.258Z\",\r\n        \"nomatch_count\": \"0\",\r\n        \"noinput_count\": \"1\",\r\n        \"debugTitle\": \"Bing\",\r\n        \"debugLevel\": \"Info\",\r\n        \"debugMessage\": \"intent node initiated\",\r\n        \"metaInfo\": {\r\n            \"channel\": \"ivrVoice\",\r\n            \"identity\": \"Nov22PilotEnv1\"\r\n        }\r\n    },\r\n    {\r\n        \"timestamp\": \"2018-11-22T13:06:17.258Z\",\r\n        \"debugTitle\": \"Bing\",\r\n        \"debugLevel\": \"Info\",\r\n        \"debugMessage\": \"intent node processing is completed\",\r\n        \"metaInfo\": {\r\n            \"channel\": \"ivrVoice\",\r\n            \"identity\": \"Nov22PilotEnv1\"\r\n        }\r\n    },\r\n    {\r\n        \"timestamp\": \"2018-11-22T13:06:17.258Z\",\r\n        \"debugTitle\": \"Nam\",\r\n        \"debugLevel\": \"Info\",\r\n        \"debugMessage\": \"entity node initiated\",\r\n        \"metaInfo\": {\r\n            \"channel\": \"ivrVoice\",\r\n            \"identity\": \"Nov22PilotEnv1\"\r\n        }\r\n    },\r\n    {\r\n        \"timestamp\": \"2018-11-22T13:06:17.258Z\",\r\n        \"debugTitle\": \"Nam\",\r\n        \"debugLevel\": \"Info\",\r\n        \"debugMessage\": \"Waiting for user input\",\r\n        \"metaInfo\": {\r\n            \"channel\": \"ivrVoice\",\r\n            \"identity\": \"Nov22PilotEnv1\"\r\n        }\r\n    },\r\n    {\r\n        \"debugTitle\": \"Nam\",\r\n        \"debugMessage\": \"User prompt parsing\",\r\n        \"debugLevel\": \"info\",\r\n        \"timestamp\": \"2018-11-22T13:06:17.304Z\",\r\n        \"metaInfo\": {\r\n            \"channel\": \"ivrVoice\",\r\n            \"identity\": \"Nov22PilotEnv1\"\r\n        }\r\n    },\r\n    {\r\n        \"debugTitle\": \"Nam\",\r\n        \"debugMessage\": \"User prompt parsing successful\",\r\n        \"debugLevel\": \"info\",\r\n        \"debugDetail\": \"\\\"Let me know your name\\\\n\\\"\",\r\n        \"timestamp\": \"2018-11-22T13:06:17.325Z\",\r\n        \"metaInfo\": {\r\n            \"channel\": \"ivrVoice\",\r\n            \"identity\": \"Nov22PilotEnv1\"\r\n        }\r\n    },\r\n    {\r\n        \"timestamp\": \"2018-11-22T13:06:31.464Z\",\r\n        \"nomatch_count\": \"2\",\r\n        \"noinput_count\": \"0\",\r\n        \"debugTitle\": \"Nam\",\r\n        \"debugLevel\": \"Warning\",\r\n        \"debugMessage\": \"executeNode has invoked due to MAX_NO_MATCH event\",\r\n        \"metaInfo\": {\r\n            \"channel\": \"ivrVoice\",\r\n            \"identity\": \"Nov22PilotEnv1\"\r\n        }\r\n    },\r\n    {\r\n        \"timestamp\": \"2018-11-22T13:07:54.395Z\",\r\n        \"debugTitle\": \"Company: Reached end of dialog\",\r\n        \"debugLevel\": \"Info\",\r\n        \"metaInfo\": {\r\n            \"channel\": \"ivrVoice\",\r\n            \"identity\": \"Nov22PilotEnv1\"\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":"\u7279\u5b9a\u306e\u4f1a\u8a71\u306e\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u3092\u53d6\u5f97\uff08\u73fe\u5728\u306fIVR\u30c1\u30e3\u30cd\u30eb\u306e\u307f\u30b5\u30dd\u30fc\u30c8\uff09\u3002 \u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30a2\u30d7\u30ea\u306b\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u306e\u30dc\u30c3\u30c8\u30d3\u30eb\u30c0\u30fcAPI\u30b9\u30b3\u30fc\u30d7\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002 GET https:\/\/{{host}}\/api\/{{version}\/{{BotID}}\/debuglogs?identity={{identity}}&amp;channelType={{channelType}}&amp;minimumInfo=true&amp;limit=5&amp;offset=300&amp;timezone={{timezone}} \u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u8aac\u660e host \u74b0\u5883URL\u3001\u4f8b\uff1a https:\/\/bots.kore.ai version API\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u3053\u306eAPI\u306e\u73fe\u5728\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u300c1.1\u300d\u3067\u3059\u3002 BotID \u30dc\u30c3\u30c8ID\u307e\u305f\u306f\u30b9\u30c8\u30ea\u30fc\u30e0ID\u3002\u30dc\u30c3\u30c8\u306e\u300c\u4e00\u822c\u8a2d\u5b9a\u300d\u30da\u30fc\u30b8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002 identity \u547c\u3073\u51fa\u3057\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u56fa\u6709\u306eID\u3002 channelType &nbsp;ivrVoice\u306e\u73fe\u5728\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u30c1\u30e3\u30f3\u30cd\u30eb minimumInfo \u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3002\u30b5\u30de\u30ea\u30fc\u306e\u307f\u3092\u624b\u306b\u5165\u308c\u308b\u305f\u3081\u306b\u306f\u3001\u300ctrue\u300d\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002 offset \u30ed\u30b0\u306e\u53d6\u5f97\u306e\u958b\u59cb\u30da\u30fc\u30b8\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u6307\u5b9a\u304c\u306a\u3044\u5834\u5408\u306f\u30010\u304b\u3089\u59cb\u307e\u308a\u3001\u3053\u308c\u304c\u30ed\u30b0\u30ea\u30b9\u30c8\u306e\u6700\u521d\u306e\u30da\u30fc\u30b8\u3068\u306a\u308a\u307e\u3059\u3002 limit \u53d6\u5f97\u3059\u308b\u8a18\u9332\u306e\u6570\u3067\u3059\u3002\u9069\u7528\u4e0a\u9650\u5024\u306f50\u3067\u3059 timezone \u4f8b\uff1aAmerica\/New_York fromDate \u30ed\u30b0\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u305f\u65e5\u4ed8\u3001\u6709\u52b9\u306a\u5f62\u5f0f\u306f yyyy-mm-dd \u307e\u305f\u306f\u6709\u52b9\u306a\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7 toDate \u30ed\u30b0\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u305f\u65e5\u4ed8\u3001\u6709\u52b9\u306a\u5f62\u5f0f\u306f yyyy-mm-dd \u307e\u305f\u306f\u6709\u52b9\u306a\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7 \u8a8d\u8a3c \u30d8\u30c3\u30c0\u30fc\u5185\u306eJWT\u3092\u542b\u3080API\u3092\u3001\u4ee5\u4e0b\u306e\u69cb\u6587\u3067\u547c\u3073\u51fa\u3057\u307e\u3059\u3002 auth: {{JWT}} \u5fdc\u7b54\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7 application\/json \u30b5\u30f3\u30d7\u30eb\u306e\u30ea\u30af\u30a8\u30b9\u30c8 curl -X GET \\ https:\/\/{{host}}\/api\/1.1\/{{BotID}}\/debuglogs?identity={{id}}&amp;channelType=ivrVoice&amp;minimumInfo=true&amp;limit=5&amp;offset=300&amp;timezone=America\/New_York' \\ -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \\ \u30b5\u30f3\u30d7\u30eb\u306e\u30ec\u30b9\u30dd\u30f3\u30b9 [ { \"timestamp\":...","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-39434","post","type-post","status-publish","format-standard","hentry","category-api-guide"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/39434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=39434"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/39434\/revisions"}],"predecessor-version":[{"id":39435,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/39434\/revisions\/39435"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=39434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=39434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=39434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}