{"id":41191,"date":"2022-04-21T05:56:32","date_gmt":"2022-04-21T04:56:32","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=41191"},"modified":"2022-04-21T05:56:51","modified_gmt":"2022-04-21T04:56:51","slug":"get-user-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/api-guide\/get-user-api\/?lang=ko","title":{"rendered":"\uc0ac\uc6a9\uc790 \uc815\ubcf4 \uc5bb\uae30"},"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>\uc0ac\uc6a9\uc790 \uc138\ubd80 \uc815\ubcf4\ub97c \uac80\uc0c9\ud569\ub2c8\ub2e4.<\/p>\n<p class=\"note\">\uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc624\uc9c1 \ubd07 \uad00\ub9ac\uc790 \ucf58\uc194\uc5d0\uc11c \uc0dd\uc131\ub41c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub9cc\ub4e4\uc5b4\uc9c4 JWT\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc571\uc5d0 <em>\ubcf4\uc548 \ubc0f \uc81c\uc5b4<\/em> \uc544\ub798\uc758 <em>\uc0ac\uc6a9\uc790 \uad00\ub9ac<\/em>\uc758 \uad00\ub9ac\uc790 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n<p><b>POST<\/b><code>https:\/\/{{host}}\/api\/public\/usersInfo<\/code> <\/p>\n<p>\ucc38\uace0 \uc0ac\ud56d: \uc774 \uae30\ub2a5\uc740 \ud50c\ub7ab\ud3fc\uc758 v7.1\uc5d0 \ub3c4\uc785\ub418\uc5c8\uc2b5\ub2c8\ub2e4.<\/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\">\ucffc\ub9ac \ub9e4\uac1c \ubcc0\uc218<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th>\ub9e4\uac1c \ubcc0\uc218<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<tr>\n<td>host<\/td>\n<td>\ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai)<\/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\">\ubcf8\ubb38 \ub9e4\uac1c \ubcc0\uc218<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th>\ub9e4\uac1c \ubcc0\uc218<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<tr>\n<td>emailIds \ub610\ub294 <span style=\"font-weight: 400\">orgUserIds<\/span><\/td>\n<td>\uc815\ubcf4\ub97c \ucc3e\ub294 \uac01 \uc0ac\uc6a9\uc790\uc758 \uc774\uba54\uc77c \ub610\ub294 \uc870\uc9c1 \uc0ac\uc6a9\uc790 ID\uc758 \ubc30\uc5f4<\/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-3\">\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-4\">\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-5\">\uc0d8\ud50c \uc694\uccad<\/span><\/h3>\n<pre>curl -X POST \\\r\n  https:\/\/{{host}}\/api\/public\/usersInfo \\\r\n  -H 'Content-Type: application\/json' \\\r\n  -H 'auth: YOUR_JWT_ACCESS_TOKEN' \\\r\n  -d '{\r\n    \"emailIds\"\/\"<span style=\"font-weight: 400\">orgUserIds<\/span>\": [\r\n        \"publicuser3@gmail.com\",\r\n        \"test@test.com\"\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>\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-6\">\uc0d8\ud50c \uc751\ub2f5<\/span><\/h3>\n<ul>\n<li>\uc131\uacf5 \uc0ac\ub840\uc758 \uacbd\uc6b0:\n<pre>[\r\n    {\r\n        \"canCreateBot\": true,\r\n        \"isDeveloper\": true,\r\n        \"userInfo\": {\r\n            \"emailId\": \"publicuser3@gmail.com\",\r\n            \"userId\": \"u-575f16b0-c4c5-5f3c-a740-06288c67dec1\",\r\n            \"firstName\": \"\",\r\n            \"lastName\": \"\"\r\n        },\r\n        \"roles\": {\r\n            \"btRoles\": [\r\n                {\r\n                    \"roleId\": \"5d9d920dabdc1e6e8ec99342\",\r\n                    \"roleName\": \"sample bot role 2\",\r\n                    \"groups\": [],\r\n                    \"botId\": \"st-16511425-15c5-5cdf-b652-a796db7d134b\",\r\n                    \"botName\": \"bot6ent\"\r\n                },\r\n                {\r\n                    \"roleId\": \"5bb1ef53e6519fa9f722e69b\",\r\n                    \"roleName\": \"Bot Tester\",\r\n                    \"groups\": [\r\n                        \"group1\"\r\n                    ],\r\n                    \"botId\": \"st-ac60188d-cdf4-5e58-a249-178e54cd85b7\",\r\n                    \"botName\": \"dashboardtest\"\r\n                },\r\n                {\r\n                    \"roleId\": \"5d9d8db30d54920a8df1e68b\",\r\n                    \"roleName\": \"sample bot role1\",\r\n                    \"groups\": [],\r\n                    \"botId\": \"st-b8525f88-6dd3-54a7-8a97-734ecb748733\",\r\n                    \"botName\": \"bot5ent\"\r\n                }\r\n            ],\r\n            \"adminRoles\": [\r\n                {\r\n                    \"roleId\": \"5cd4081158217217cccabb7e\",\r\n                    \"roleName\": \"admin\",\r\n                    \"groups\": []\r\n                },\r\n                {\r\n                    \"roleId\": \"5d9d8d930d54920a8df1e689\",\r\n                    \"roleName\": \"sample admin role1\",\r\n                    \"groups\": []\r\n                }\r\n            ]\r\n        },\r\n        \"assignBotTasks\": [\r\n            {\r\n                \"botId\": \"st-xxxxx-xxx-xxx-xxx-xxxxx\",\r\n                \"dialogs\": [\r\n                    \"dg-xxxxx-xxx-xxx-xxx-xxxxx\"\r\n                ],\r\n                \"actions\": [],\r\n                \"alerts\": [],\r\n                \"knowledgeTask\": []\r\n            }\r\n        ],\r\n        \"groups\": [\r\n            {\r\n                \"groupId\": \"e-06b41cdd-7678-5394-b958-40ca5662f502\",\r\n                \"groupName\": \"group1\"\r\n            }\r\n        ]\r\n    },\r\n    {\r\n        \"userInfo\": {\r\n            \"emailId\": \"test@test.com\",\r\n            \"status\": \"failure\",\r\n            \"reason\": \"Invalid emailId\"\r\n        }\r\n    }\r\n]\r\n<\/pre>\n<\/li>\n<li>\uc2e4\ud328 \uc0ac\ub840:\n<pre>    {\r\n        \"userInfo\": {\r\n            \"emailId\": \"test@test.com\",\r\n            \"status\": \"failure\",\r\n            \"reason\": \"Invalid emailId\"\r\n        }\r\n    }\r\n<\/pre>\n<\/li>\n<\/ul>\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":"\uc0ac\uc6a9\uc790 \uc138\ubd80 \uc815\ubcf4\ub97c \uac80\uc0c9\ud569\ub2c8\ub2e4. \uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc624\uc9c1 \ubd07 \uad00\ub9ac\uc790 \ucf58\uc194\uc5d0\uc11c \uc0dd\uc131\ub41c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub9cc\ub4e4\uc5b4\uc9c4 JWT\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc571\uc5d0 \ubcf4\uc548 \ubc0f \uc81c\uc5b4 \uc544\ub798\uc758 \uc0ac\uc6a9\uc790 \uad00\ub9ac\uc758 \uad00\ub9ac\uc790 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. POSThttps:\/\/{{host}}\/api\/public\/usersInfo \ucc38\uace0 \uc0ac\ud56d: \uc774 \uae30\ub2a5\uc740 \ud50c\ub7ab\ud3fc\uc758 v7.1\uc5d0 \ub3c4\uc785\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ucffc\ub9ac \ub9e4\uac1c \ubcc0\uc218 \ub9e4\uac1c \ubcc0\uc218 \uc124\uba85 host \ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai) \ubcf8\ubb38 \ub9e4\uac1c \ubcc0\uc218 \ub9e4\uac1c \ubcc0\uc218 \uc124\uba85 emailIds...","protected":false},"author":22,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-41191","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\/41191","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=41191"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41191\/revisions"}],"predecessor-version":[{"id":41192,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41191\/revisions\/41192"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=41191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=41191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=41191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}