From Bright Pattern Documentation
Jump to: navigation, search
 
(Redirected page to Api)
 
Line 1: Line 1:
<translate>= Get Chat History =
+
#REDIRECT [[Api]]
''Get Chat History'' returns all [[mobile-web-api-specification/ClientEvents|client events]] and all [[mobile-web-api-specification/ServerEvents|server events]] for the current session. Event parameter ''timestamp'' can be used to restore the correct message order.
 
 
 
== URL ==
 
http[s]://&lt;host&gt;:&lt;port&gt;/clientweb/api/v1/chats/{chatId}/history?tenantUrl=&lt;tenantUrl&gt;
 
 
 
== Method ==
 
GET
 
 
 
== Returns ==
 
200 – Array of chat events (content type: application/json)
 
 
 
=== Example ===
 
{|border="1" style="border-collapse:collapse" cellpadding="5"
 
|''{''
 
 
 
''&quot;events&quot;:[&lt;array of chat events&gt;]''
 
 
 
''}''
 
|}
 
 
 
== Errors ==
 
401 – Unauthorized
 
 
 
404 – Not found
 
 
 
 
 
 
 
<center>[[mobile-web-api-specification/SendEvents|< Previous]]  |  [[mobile-web-api-specification/GetNewChatEvents|Next >]]</center>
 
</translate>
 

Latest revision as of 22:56, 6 August 2020

Redirect to:

• 5.19 • 5.2 • 5.3 • 5.8

/prevnext/