From Bright Pattern Documentation
|
|
Line 1: |
Line 1: |
− | <translate>= Get Active Chat =
| + | #REDIRECT [[Api]] |
− | ''Get Active Chat'' returns the properties of an active chat session.
| |
− | | |
− | == URL ==
| |
− | http[s]://<host>:<port>/clientweb/api/v1/chats/active?tenantUrl=<tenantUrl>
| |
− | | |
− | == Method ==
| |
− | GET
| |
− | | |
− | == Returns ==
| |
− | 200 – Chat session properties (content type: application/json)
| |
− | | |
− | === Example ===
| |
− | {|border="1" style="border-collapse:collapse" cellpadding="5"
| |
− | |''{''
| |
− | | |
− | ''"chat_id":”<chat ID>”,''
| |
− | | |
− | <blockquote>''“state”:”<queued|connected|ivr>”,''
| |
− | | |
− | ''“ewt”:<estimated wait time for a chat in state queued>,''
| |
− | | |
− | ''“phone_number”:”<phone number that will be used for callback>”''
| |
− | </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