From Bright Pattern Documentation
Jump to: navigation, search
 
(Redirected page to Api)
 
Line 1: Line 1:
<translate>= Get Active Chat =
+
#REDIRECT [[Api]]
''Get Active Chat'' returns the properties of an active chat session.
 
 
 
== URL ==
 
http[s]://&lt;host&gt;:&lt;port&gt;/clientweb/api/v1/chats/active?tenantUrl=&lt;tenantUrl&gt;
 
 
 
== Method ==
 
GET
 
 
 
== Returns ==
 
200 – Chat session properties (content type: application/json)
 
 
 
=== Example ===
 
{|border="1" style="border-collapse:collapse" cellpadding="5"
 
|''{''
 
 
 
''&quot;chat_id&quot;:”&lt;chat ID&gt;”,''
 
 
 
<blockquote>''“state”:”&lt;queued|connected|ivr&gt;”,''
 
 
 
''“ewt”:&lt;estimated wait time for a chat in state queued&gt;,''
 
 
 
''“phone_number”:”&lt;phone number that will be used for callback&gt;”''
 
</blockquote>
 
''}''
 
|}
 
 
 
== Errors ==
 
401 – Unauthorized
 
 
 
404 – Not found
 
 
 
 
 
 
 
 
 
<center>[[mobile-web-api-specification/RequestChat|< Previous]]  |  [[mobile-web-api-specification/SendEvents|Next >]]</center>
 
</translate>
 

Latest revision as of 22:57, 6 August 2020

Redirect to:

• 5.19 • 5.2 • 5.3 • 5.8

/prevnext/