{"id":5172,"date":"2022-06-27T13:05:17","date_gmt":"2022-06-27T07:35:17","guid":{"rendered":"https:\/\/docs.kore.ai\/smartassist\/?p=5172"},"modified":"2022-06-27T13:05:17","modified_gmt":"2022-06-27T07:35:17","slug":"get-agents-by-average-response-time","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/multisite-2\/get-agents-by-average-response-time\/","title":{"rendered":"Get agents by average response time"},"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 based on average response time.<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>\u200b\/public\u200b\/{streamId}\u200b\/analytics\u200b\/agents\u200b\/avg-first-response-time<\/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>source<\/td>\n<td>N<\/td>\n<td><span style=\"font-weight: 400\">Conversation source &#8211; chat or call<\/span><\/td>\n<td>String<\/td>\n<\/tr>\n<tr>\n<td>startDate *<\/td>\n<td>\u00a0Y<\/td>\n<td>Date in ISO81 format<br \/>\n(e.g.. 2021-03-31T12:01:00.000Z)<\/td>\n<td>Date<\/td>\n<\/tr>\n<tr>\n<td>endDate *<\/td>\n<td>\u00a0Y<\/td>\n<td>Date in ISO81 format<\/td>\n<td>Date<\/td>\n<\/tr>\n<tr>\n<td>limit<\/td>\n<td>\u00a0N<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>Maximum limit of records<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<\/td>\n<td>Integer<\/td>\n<\/tr>\n<tr>\n<td>offset<\/td>\n<td>\u00a0N<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>offset number<br \/>\n<i style=\"font-family: inherit;font-size: inherit\">Default value<\/i><span style=\"font-family: inherit;font-size: inherit\">\u00a0: 0<\/span><\/p>\n<\/div>\n<\/td>\n<td>Integer<\/td>\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>agentIds[]<\/td>\n<td>\u00a0N<\/td>\n<td>List of user 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[\/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\"><h2><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><\/h2>\n<p>The following table describes the information that is available in the response.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Response_Fields\"><\/span>Response Fields<span class=\"ez-toc-section-end\"><\/span><\/h3>\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<\/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=\"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>: \"first name\",\n      <span class=\"hljs-attr\">\"lastName\"<\/span>: \"last name\",\n      <span class=\"hljs-attr\">\"profImage\"<\/span>: \"http:\/\/example.com\/x.png\",\n      <span class=\"hljs-attr\">\"userId\"<\/span>: \"u-afds-asdf-adf\",\n      <span class=\"hljs-attr\">\"avgFirstResponseTime\"<\/span>: 10\n    }\n  ],\n  <span class=\"hljs-attr\">\"offset\"<\/span>: 1,\n  <span class=\"hljs-attr\">\"limit\"<\/span>: 10,\n  <span class=\"hljs-attr\">\"hasMore\"<\/span>: false\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>[\/vc_column][\/vc_row]\n","protected":false},"excerpt":{"rendered":"<p>Overview This method is used to fetch the agents based on average response time. (TBD) Request This section describes the information that is available in the request. Method URL End Point GET \u200b\/public\u200b\/{streamId}\u200b\/analytics\u200b\/agents\u200b\/avg-first-response-time Request Parameters Path Parameters Parameter Required Description Type\/Value streamId * \u00a0Y Stream ID (e.g. \u00a0st-606c43de5e00ca5f4e27e38a) String Query Parameters Parameter Required Description Type\/Value&#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\/multisite-2\/wp-json\/wp\/v2\/posts\/5172"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/multisite-2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/multisite-2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/multisite-2\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/multisite-2\/wp-json\/wp\/v2\/comments?post=5172"}],"version-history":[{"count":0,"href":"https:\/\/multisite.korebots.com\/multisite-2\/wp-json\/wp\/v2\/posts\/5172\/revisions"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/multisite-2\/wp-json\/wp\/v2\/media?parent=5172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/multisite-2\/wp-json\/wp\/v2\/categories?post=5172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/multisite-2\/wp-json\/wp\/v2\/tags?post=5172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}