{"id":5202,"date":"2022-07-08T11:10:27","date_gmt":"2022-07-08T05:40:27","guid":{"rendered":"https:\/\/docs.kore.ai\/smartassist\/?p=5202"},"modified":"2022-07-08T11:10:27","modified_gmt":"2022-07-08T05:40:27","slug":"get-agents-in-a-agent-group-based-on-source","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/agentassist\/get-agents-in-a-agent-group-based-on-source\/","title":{"rendered":"Get agents in a agent group based on source"},"content":{"rendered":"<h2><span class=\"ez-toc-section\" id=\"Overview\"><\/span>Overview<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400\">This method is used to fetch the agents in an agent group based on the source.<br \/>\n<\/span><span style=\"font-weight: 400\">(TBD)<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Request\"><\/span>Request<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This section describes the information that is available in the request.<\/p>\n<table>\n<tbody>\n<tr>\n<th><b>Method<\/b><\/th>\n<th>URL<\/th>\n<th>End Point<\/th>\n<\/tr>\n<tr>\n<td>\n<pre>GET<\/pre>\n<\/td>\n<td><\/td>\n<td>\n<pre>\/public\/{streamId}\/analytics\/manager\/agents\/summary<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"Request_Parameters\"><\/span>Request Parameters<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Path_Parameters\"><\/span>Path Parameters<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<table>\n<tbody>\n<tr>\n<th><b>Parameter<\/b><\/th>\n<th><b>Required<\/b><\/th>\n<th><b>Description<\/b><\/th>\n<th><b>Type\/Value<\/b><\/th>\n<\/tr>\n<tr>\n<td>streamId *<\/td>\n<td>\u00a0Y<\/td>\n<td>Stream ID<br \/>\n<span style=\"font-weight: 400\">(e.g. <\/span><span style=\"font-weight: 400\">\u00a0st-606c43de5e00ca5f4e27e38a)<\/span><\/td>\n<td>String<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><span class=\"ez-toc-section\" id=\"Query_Parameters\"><\/span>Query Parameters<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<table>\n<tbody>\n<tr>\n<th><b>Parameter<\/b><\/th>\n<th><b>Required<\/b><\/th>\n<th><b>Description<\/b><\/th>\n<th><b>Type\/Value<\/b><\/th>\n<\/tr>\n<tr>\n<td>agentGroupIds[]<\/td>\n<td>\u00a0N<\/td>\n<td>Agent group ids<\/td>\n<td>array[string]<\/td>\n<\/tr>\n<tr>\n<td>source<\/td>\n<td>\u00a0N<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>Conversation source type (chat or call or both)<br \/>\n<i style=\"font-family: inherit;font-size: inherit\">Available values<\/i><span style=\"font-family: inherit;font-size: inherit\">\u00a0: chat, call<\/span><\/p>\n<\/div>\n<\/td>\n<td>String<\/td>\n<\/tr>\n<tr>\n<td>sortBy<\/td>\n<td>\u00a0N<\/td>\n<td>Sort by query in the form of field:desc\/asc (for e.g., name:asc)<\/td>\n<td>String<\/td>\n<\/tr>\n<tr>\n<td>fromTime\u00a0*<\/td>\n<td>\u00a0Y<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>Date in ISO81 format (for e.g. 2021-03-31T12:01:00.000Z)<\/p>\n<\/div>\n<\/td>\n<td>Date<\/td>\n<\/tr>\n<tr>\n<td>toTime\u00a0*<\/td>\n<td>\u00a0Y<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>Date in ISO81 format (for e.g. 2021-03-31T12:01:00.000Z)<\/p>\n<\/div>\n<\/td>\n<td>Date<\/td>\n<\/tr>\n<tr>\n<td>limit<\/td>\n<td>\u00a0N<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<div class=\"renderedMarkdown\">\n<p>Maximum number of Agent groups<br \/>\n<i style=\"font-family: inherit;font-size: inherit\">Default value<\/i><span style=\"font-family: inherit;font-size: inherit\">\u00a0: 10<\/span><\/p>\n<\/div>\n<\/div>\n<\/td>\n<td>Integer<\/td>\n<\/tr>\n<tr>\n<td>page<\/td>\n<td>\u00a0N<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<div class=\"renderedMarkdown\">\n<p>Page number<br \/>\n<i style=\"font-family: inherit;font-size: inherit\">Default value<\/i><span style=\"font-family: inherit;font-size: inherit\">\u00a0: 1<\/span><\/p>\n<\/div>\n<\/div>\n<\/td>\n<td>Integer<\/td>\n<\/tr>\n<tr>\n<td>status[]<\/td>\n<td>N<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>Status of agent<\/p>\n<\/div>\n<\/td>\n<td>array[string]<\/td>\n<\/tr>\n<tr>\n<td>subStatus[]<\/td>\n<td>N<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>subStatus of agent<\/p>\n<\/div>\n<\/td>\n<td>array[string]<\/td>\n<\/tr>\n<tr>\n<td>channels[]<\/td>\n<td>N<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>Channel source<\/p>\n<\/div>\n<\/td>\n<td>array[string]<\/td>\n<\/tr>\n<tr>\n<td>skillGroupIds[]<\/td>\n<td>N<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>skill group ids<\/p>\n<\/div>\n<\/td>\n<td>array[string]<\/td>\n<\/tr>\n<tr>\n<td>skillIds[]<\/td>\n<td>N<\/td>\n<td>list of skill ids<\/td>\n<td>array[string]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"Sample_Request\"><\/span>Sample Request<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre>TBD<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Response\"><\/span><span style=\"color: #26344a;font-size: 16px;letter-spacing: 0em\">Response<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The following table describes the information that is available in the response.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Response_Fields\"><\/span>Response Fields<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<table>\n<tbody>\n<tr>\n<th><b>Parameter<\/b><\/th>\n<th><b>Required\/Optional<\/b><\/th>\n<th><b>Description<\/b><\/th>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n[\/vc_column_text]<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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"Authorization\"><\/span>Authorization<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400\">Invoke the API with JWT in the header with the following syntax:<\/span><\/p>\n<pre><span style=\"font-weight: 400\">auth: {{JWT}}<\/span><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Response_Content_Type\"><\/span>Response Content Type<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>application\/json<\/code><\/p>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"Sample_Response\"><\/span>Sample Response<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre class=\"example microlight\"><code>{\n  <span class=\"hljs-attr\">\"results\"<\/span>: [\n    {\n      <span class=\"hljs-attr\">\"firstName\"<\/span>: \"Amanda\",\n      <span class=\"hljs-attr\">\"lastName\"<\/span>: \"Jones\",\n      <span class=\"hljs-attr\">\"nickName\"<\/span>: \"Amanda\",\n      <span class=\"hljs-attr\">\"status\"<\/span>: \"available\",\n      <span class=\"hljs-attr\">\"stats\"<\/span>: {\n        <span class=\"hljs-attr\">\"resolved\"<\/span>: 1,\n        <span class=\"hljs-attr\">\"completed\"<\/span>: 1,\n        <span class=\"hljs-attr\">\"transferred\"<\/span>: 1,\n        <span class=\"hljs-attr\">\"dropOff\"<\/span>: 1,\n        <span class=\"hljs-attr\">\"total\"<\/span>: 3\n      },\n      <span class=\"hljs-attr\">\"realtime\"<\/span>: {\n        <span class=\"hljs-attr\">\"active\"<\/span>: 1,\n        <span class=\"hljs-attr\">\"idle\"<\/span>: 1,\n        <span class=\"hljs-attr\">\"overdue\"<\/span>: 1,\n        <span class=\"hljs-attr\">\"terminated\"<\/span>: 1\n      },\n      <span class=\"hljs-attr\">\"time\"<\/span>: {\n        <span class=\"hljs-attr\">\"resolution\"<\/span>: 1,\n        <span class=\"hljs-attr\">\"firstResponse\"<\/span>: 1\n      },\n      <span class=\"hljs-attr\">\"customers\"<\/span>: {\n        <span class=\"hljs-attr\">\"active\"<\/span>: 1,\n        <span class=\"hljs-attr\">\"queue\"<\/span>: 1\n      },\n      <span class=\"hljs-attr\">\"loadPercentage\"<\/span>: 75\n    }\n  ],\n  <span class=\"hljs-attr\">\"page\"<\/span>: 1,\n  <span class=\"hljs-attr\">\"limit\"<\/span>: 10,\n  <span class=\"hljs-attr\">\"hasMore\"<\/span>: true,\n  <span class=\"hljs-attr\">\"totalPages\"<\/span>: 1,\n  <span class=\"hljs-attr\">\"totalResults\"<\/span>: 1\n}<\/code><\/pre>\n<\/div><\/div><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>\n","protected":false},"excerpt":{"rendered":"<p>Overview This method is used to fetch the agents in an agent group based on the source. (TBD) Request This section describes the information that is available in the request. Method URL End Point GET \/public\/{streamId}\/analytics\/manager\/agents\/summary Request Parameters Path Parameters Parameter Required Description Type\/Value streamId * \u00a0Y Stream ID (e.g. \u00a0st-606c43de5e00ca5f4e27e38a) String Query Parameters Parameter&#8230;<\/p>\n","protected":false},"author":23,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/posts\/5202"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/comments?post=5202"}],"version-history":[{"count":0,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/posts\/5202\/revisions"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/media?parent=5202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/categories?post=5202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/tags?post=5202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}