{"info":{"_postman_id":"59d5887e-f45d-4005-8593-9182c267e497","name":"AnyCom Web Services","description":"<html><head></head><body><p>This document detailing all features supported by AnyCom.<br>\nAll features is accessible on AnyCom Web too.</p>\n<p><b>Documentation version</b></p>\n<ul>\n<li>Released at: 2021-07-01<br></li>\n<li>AnyCom Core version: V1.3.023</li>\n</ul>\n<h1 id=\"url\">URL</h1>\n<p>AnyCom Web Services responds on: <a href=\"https://ws.anycom.io/\">https://ws.anycom.io/</a></p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>All requests should be contain on header (preferred mode) or JSON body the <b>\"auth_key\"</b> and <b>\"auth_user\"</b> keys.<br>\n<b>auth_key</b> - Is visible on AnyCom parameters menu option.<br>\n<b>auth_user</b> - Should be a valid user configured on AnyCom users menu option.<br></p>\n<h1 id=\"request\">Request</h1>\n<p>All requests should be contain on JSON body 3 mandatory values:</p>\n<table>\n<tbody><tr>\n  <th><b>Key</b></th>\n  <th><b>Type</b></th>\n  <th><b>Description</b></th>\n</tr>\n<tr>\n  <td><b>\"group\"</b></td>\n  <td>String</td>\n  <td>Command group</td>\n</tr>\n<tr>\n  <td><b>\"cmd\"</b></td>\n  <td>String</td>\n  <td>Command</td>\n</tr>\n<tr>\n  <td><b>\"args\"</b></td>\n  <td>JSON Object</td>\n  <td>Command arguments</td>\n</tr>\n</tbody></table>\n<b>* Command arguments is detailed on each request documentation.</b>\n\n<h1 id=\"response\">Response</h1>\n<p><b>Format</b><br>\nEach request returns on body a JSON Array, with 2 values:<br>\n<b>\"status\"</b> - Returns response code of request.<br>\n<b>\"result\"</b> - If the request response contains many values, returns a JSON list with the attributes, or return a string if the request returns only one value.<br>\nDetailing of result list is specified in each method.</p><p>\n<b>Response Codes</b><br>\nAll requests contain on header a response code, respecting table below:</p>\n<table>\n <tbody><tr>\n  <th>Code</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td><b>200</b></td>\n  <td>OK</td>\n </tr>\n <tr>\n  <td><b>204</b></td>\n  <td>Empty response.</td>\n </tr>\n <tr>\n  <td><b>400</b></td>\n  <td>Missing authentication key!</td>\n </tr>\n <tr>\n  <td><b>401</b></td>\n  <td>Unauthorized! The authentication key does not exist or is not active.</td>\n </tr>\n <tr>\n  <td><b>404</b></td>\n  <td>Invalid method.</td>\n </tr>\n <tr>\n  <td><b>412</b></td>\n  <td>Precondition Failed.</td>\n </tr>\n</tbody></table>\n<b>* Each request contain a result detail on body.</b></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"URL","slug":"url"},{"content":"Authentication","slug":"authentication"},{"content":"Request","slug":"request"},{"content":"Response","slug":"response"}],"owner":"15066703","collectionId":"59d5887e-f45d-4005-8593-9182c267e497","publishedId":"Tzedhjo6","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-06-29T19:27:03.000Z"},"item":[{"name":"Channels","item":[{"name":"Display current users","id":"972baed3-ff18-4af9-b5a3-3254282bdc78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chan\",\n    \"cmd\": \"show\",\n    \"args\": {}\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>This request show all current users on available channels.<br /></p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>This request don't have argument option, but is mandatory send a empty \"args\" object on request JSON body.</p>\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns following structure on result JSON list:</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Parent Key</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"customer\"</td>\n  <td>Integer</td>\n  <td>-</td>\n  <td>Customer ID on AnyCom database.</td>\n </tr>\n <tr>\n  <td>\"state\"</td>\n  <td>String</td>\n  <td>-</td>\n  <td>Current customer status (identifying/on_bot/on_chat/done).</td>\n </tr>\n <tr>\n  <td>\"session\"</td>\n  <td>Integer</td>\n  <td>-</td>\n  <td>Current session ID.</td>\n </tr>\n <tr>\n  <td>\"send\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Detailing of sent messages.</td>\n </tr>\n <tr>\n  <td>\"count\"</td>\n  <td>Integer</td>\n  <td>\"send\"</td>\n  <td>Number of sent messages.</td>\n </tr>\n <tr>\n  <td>\"last\"</td>\n  <td>String</td>\n  <td>\"send\"</td>\n  <td>Timestamp of last sent message.</td>\n </tr>\n <tr>\n  <td>\"last_elapsed\"</td>\n  <td>String</td>\n  <td>\"send\"</td>\n  <td>Converted timestamp of last sent message.</td>\n </tr>\n <tr>\n  <td>\"chat\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Current chat session parameters.</td>\n </tr>\n <tr>\n  <td>\"group\"</td>\n  <td>JSON Object</td>\n  <td>\"chat\"</td>\n  <td>Detailing of chat group.</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>Integer</td>\n  <td>\"group\"</td>\n  <td>Chat group ID.</td>\n </tr>\n <tr>\n  <td>\"name\"</td>\n  <td>String</td>\n  <td>\"group\"</td>\n  <td>Chat group name.</td>\n </tr>\n <tr>\n  <td>\"invited\"</td>\n  <td>Boolean</td>\n  <td>\"chat\"</td>\n  <td>Chat invited.</td>\n </tr>\n <tr>\n  <td>\"greeting\"</td>\n  <td>String</td>\n  <td>\"chat\"</td>\n  <td>Greeting message to customer.</td>\n </tr>\n <tr>\n  <td>\"call\"</td>\n  <td>String</td>\n  <td>\"chat\"</td>\n  <td>Type of call (invite/invited/accepted/direct).</td>\n </tr>\n <tr>\n  <td>\"user\"</td>\n  <td>String</td>\n  <td>\"chat\"</td>\n  <td>Username of chat attendant.</td>\n </tr>\n <tr>\n  <td>\"subject\"</td>\n  <td>String</td>\n  <td>\"chat\"</td>\n  <td>Chat subject to attendant.</td>\n </tr>\n<tr>\n  <td>\"receive\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Detailing of received messages.</td>\n </tr>\n <tr>\n  <td>\"count\"</td>\n  <td>Integer</td>\n  <td>\"receive\"</td>\n  <td>Number of received messages.</td>\n </tr>\n <tr>\n  <td>\"last\"</td>\n  <td>String</td>\n  <td>\"receive\"</td>\n  <td>Timestamp of last received message.</td>\n </tr>\n <tr>\n  <td>\"last_elapsed\"</td>\n  <td>String</td>\n  <td>\"receive\"</td>\n  <td>Converted timestamp of last received message.</td>\n </tr>\n <tr>\n  <td>\"user_name\"</td>\n  <td>String</td>\n  <td>-</td>\n  <td>Customer name.</td>\n </tr>\n <tr>\n  <td>\"channel\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Detailing of channel parameters.</td>\n </tr>\n <tr>\n  <td>\"user_id\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Full customer channel username.</td>\n </tr>\n <tr>\n  <td>\"type\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Channel type.</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>Integer</td>\n  <td>\"channel\"</td>\n  <td>Channel ID.</td>\n </tr>\n</table>","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"fc9b51d6-433e-49ec-92d4-0ad521006952","name":"Display current users - Header Authentication","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chan\",\n    \"cmd\": \"show\",\n    \"args\": {}\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": [\n        {\n            \"customer\": 12002,\n            \"state\": \"on_bot\",\n            \"session\": 16689,\n            \"send\": {\n                \"count\": 2,\n                \"last\": \"1617043377\",\n                \"last_elapsed\": \"90 days, 4:11:48\"\n            },\n            \"chat\": {\n                \"group\": {\n                    \"id\": 14,\n                    \"name\": \"Suporte\"\n                },\n                \"invited\": true,\n                \"greeting\": \"\",\n                \"call\": \"invited\",\n                \"user\": \"\",\n                \"subject\": \"\"\n            },\n            \"receive\": {\n                \"count\": 1,\n                \"last\": \"1617043371\",\n                \"last_elapsed\": \"90 days, 4:11:54\"\n            },\n            \"user_name\": \"ExCodes Software\",\n            \"channel\": {\n                \"user_id\": \"554432328668@c.us\",\n                \"type\": \"whatsapp\",\n                \"id\": 9\n            }\n        }\n    ]\n}"},{"id":"1ed07bc7-afa8-4273-947b-361ad445c6ce","name":"Display current users - Body Authentication","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"Authentication\": {\n        \"auth_key\": \"{{auth_key}}\",\n        \"auth_user\": \"{{auth_user}}\"\n    },\n    \"Request\": {\n        \"group\": \"chan\",\n        \"cmd\": \"show\",\n        \"args\": {}\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": [\n        {\n            \"customer\": 12002,\n            \"state\": \"on_bot\",\n            \"session\": 16689,\n            \"send\": {\n                \"count\": 2,\n                \"last\": \"1617043377\",\n                \"last_elapsed\": \"90 days, 4:11:48\"\n            },\n            \"chat\": {\n                \"group\": {\n                    \"id\": 14,\n                    \"name\": \"Suporte\"\n                },\n                \"invited\": true,\n                \"greeting\": \"\",\n                \"call\": \"invited\",\n                \"user\": \"\",\n                \"subject\": \"\"\n            },\n            \"receive\": {\n                \"count\": 1,\n                \"last\": \"1617043371\",\n                \"last_elapsed\": \"90 days, 4:11:54\"\n            },\n            \"user_name\": \"ExCodes Software\",\n            \"channel\": {\n                \"user_id\": \"554432328668@c.us\",\n                \"type\": \"whatsapp\",\n                \"id\": 9\n            }\n        }\n    ]\n}"}],"_postman_id":"972baed3-ff18-4af9-b5a3-3254282bdc78"},{"name":"Modify user current state","id":"62edd6c9-1262-4e84-b6d5-ab5cbf8dc8a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chan\",\n    \"cmd\": \"state\",\n    \"args\": {\n        \"chan_type\": \"<channel_type>\",\n        \"chan_id\": \"<channel_id>\",\n        \"chan_user\": \"<user_id>\",\n        \"new_state\": \"<new_state>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to modify current status of customer session.</p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chan_type\"</td>\n  <td>String</td>\n  <td>Type of channel (whatsapp).</td>\n </tr>\n <tr>\n  <td>\"chan_id\"</td>\n  <td>Integer</td>\n  <td>Channel ID.</td>\n </tr>\n <tr>\n  <td>\"chan_user\"</td>\n  <td>String</td>\n  <td>Full customer channel username.</td>\n </tr>\n <tr>\n  <td>\"new_state\"</td>\n  <td>String</td>\n  <td>New state option (none/identifying/on_bot/on_chat/done).</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns a simple result string.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"1e7bc069-8f16-479f-bd95-e41dea9fc50c","name":"Modify user current state","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chan\",\n    \"cmd\": \"state\",\n    \"args\": {\n        \"chan_type\": \"whatsapp\",\n        \"chan_id\": 1,\n        \"chan_user\": \"554432328668@c.us\",\n        \"new_state\": \"on_chat\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": \"State of channel whatsapp/1/554432328668@c.us changed to on_chat\"\n}"}],"_postman_id":"62edd6c9-1262-4e84-b6d5-ab5cbf8dc8a9"},{"name":"Remove user session","id":"84033aed-5eab-4e72-adea-cdbb564532b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chan\",\n    \"cmd\": \"rem\",\n    \"args\": {\n        \"chan_type\": \"<channel_type>\",\n        \"chan_id\": \"<channel_id>\",\n        \"chan_user\": \"<user_id>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to remove a active customer session.</p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request below arguments is mandatory in \"args\" object on the JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chan_type\"</td>\n  <td>String</td>\n  <td>Type of channel (whatsapp).</td>\n </tr>\n <tr>\n  <td>\"chan_id\"</td>\n  <td>Integer</td>\n  <td>Channel ID.</td>\n </tr>\n <tr>\n  <td>\"chan_user\"</td>\n  <td>String</td>\n  <td>Full customer channel username.</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns a simple result string.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"b7d7b665-c4ee-4893-a5d3-4c3749e5f5ab","name":"Remove user session","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chan\",\n    \"cmd\": \"rem\",\n    \"args\": {\n        \"chan_type\": \"whatsapp\",\n        \"chan_id\": 1,\n        \"chan_user\": \"554432328668@c.us\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": \"BOT, Channel whatsapp/1/554432328668@c.us has been removed\"\n}"}],"_postman_id":"84033aed-5eab-4e72-adea-cdbb564532b5"},{"name":"Check valid WhatsApp number","id":"c6517252-35a1-4295-8ef2-c83423a2ef5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chan\",\n    \"cmd\": \"check\",\n    \"args\": {\n        \"chan_type\": \"<channel_type>\",\n        \"chan_id\": \"<channel_id>\",\n        \"user\": \"<customer_number>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to check if a customer number is a valid WhatsApp number.</p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request below arguments is mandatory in \"args\" object on the JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chan_type\"</td>\n  <td>String</td>\n  <td>Type of channel (whatsapp).</td>\n </tr>\n <tr>\n  <td>\"chan_id\"</td>\n  <td>Integer</td>\n  <td>Channel ID.</td>\n </tr>\n <tr>\n  <td>\"user\"</td>\n  <td>Integer</td>\n  <td>Customer number.</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns following structure on result JSON list:</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Parent Key</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"status\"</td>\n  <td>String</td>\n  <td>-</td>\n  <td>Result of request (invalid/valid/already).</td>\n </tr>\n <tr>\n  <td>\"contact\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Contact number detail.</td>\n </tr>\n <tr>\n  <td>\"isBusiness\"</td>\n  <td>Boolean</td>\n  <td>\"contact\"</td>\n  <td>Show if this number is using WhatsApp Business App.</td>\n </tr>\n <tr>\n  <td>\"user_name\"</td>\n  <td>String</td>\n  <td>\"contact\"</td>\n  <td>Show current name defined on WhatsApp App.</td>\n </tr>\n <tr>\n  <td>\"channel\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Channel detail.</td>\n </tr>\n <tr>\n  <td>\"user_id\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Full customer channel username.</td>\n </tr>\n <tr>\n  <td>\"type\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Channel type.</td>\n </tr>\n <tr>\n  <td>\"user\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Encountered username.</td>\n </tr>\n</table>","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"b7571135-c088-4702-9e00-bd7e972ba70d","name":"Check valid WhatsApp number","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chan\",\n    \"cmd\": \"check\",\n    \"args\": {\n        \"chan_type\": \"whatsapp\",\n        \"chan_id\": 9,\n        \"user\": 554432328668\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": [\n        {\n            \"status\": \"already\",\n            \"contact\": {\n                \"isBusiness\": true,\n                \"user_name\": \"Excodes Software\"\n            },\n            \"channel\": {\n                \"user_id\": \"554432328668@c.us\",\n                \"type\": \"whatsapp\",\n                \"user\": \"554432328668\"\n            }\n        }\n    ]\n}"}],"_postman_id":"c6517252-35a1-4295-8ef2-c83423a2ef5c"},{"name":"Reload channel","id":"8ad8f33c-40b7-488e-b863-053299d2827c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chan\",\n    \"cmd\": \"reload\",\n    \"args\": {\n        \"chan_type\": \"<chan_type>\",\n        \"chan_id\": \"<chan_id>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to execute a reload on specified channel.</p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chan_type\"</td>\n  <td>String</td>\n  <td>Type of channel (whatsapp).</td>\n </tr>\n <tr>\n  <td>\"chan_id\"</td>\n  <td>Integer</td>\n  <td>Channel ID.</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns a simple result string.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"049b30bc-9c10-4a60-b895-731f54525663","name":"Reload channel","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chan\",\n    \"cmd\": \"reload\",\n    \"args\": {\n        \"chan_type\": \"whatsapp\",\n        \"chan_id\": 1\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": \"Reload command sent to 1\"\n}"}],"_postman_id":"8ad8f33c-40b7-488e-b863-053299d2827c"},{"name":"Send message","id":"d29497c6-c9d2-4368-9a3e-3a264e57ca0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chan\",\n    \"cmd\": \"message\",\n    \"args\": {\n        \"chan_type\": \"<chan_type>\",\n        \"chan_id\": \"<chan_id>\",\n        \"user\": \"<customer_username>\",\n        \"flow\": \"<flow_id>\",\n        \"message\": \"<message>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to send a message to customer.</p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request below arguments is mandatory in \"args\" object on the JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chan_type\"</td>\n  <td>String</td>\n  <td>Type of channel (whatsapp).</td>\n </tr>\n <tr>\n  <td>\"chan_id\"</td>\n  <td>Integer</td>\n  <td>Channel ID.</td>\n </tr>\n <tr>\n  <td>\"user\"</td>\n  <td>Integer</td>\n  <td>Customer number.</td>\n </tr>\n <tr>\n  <td>\"flow\"</td>\n  <td>Integer</td>\n  <td>Flow number to execute if customer responds the message.</td>\n </tr>\n <tr>\n  <td>\"message\"</td>\n  <td>String</td>\n  <td>Message to send to customer.</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns a simple result string.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"38ddfe74-2479-405f-8e53-c849c1446dae","name":"Send message","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chan\",\n    \"cmd\": \"message\",\n    \"args\": {\n        \"chan_type\": \"whatsapp\",\n        \"chan_id\": 1,\n        \"user\": 554432328668,\n        \"flow\": 1,\n        \"message\": \"Welcome to ExCodes Software.\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": \"Sent message to whatsapp/1/554432328668@c.us/ExCodes and flow set to 1\"\n}"}],"_postman_id":"d29497c6-c9d2-4368-9a3e-3a264e57ca0b"}],"id":"fd3d3d12-62db-42ef-b240-f4705e7da81f","_postman_id":"fd3d3d12-62db-42ef-b240-f4705e7da81f","description":""},{"name":"General","item":[{"name":"Show status","id":"f30c5ef0-e7cf-4f7a-bb13-a1c6b83246fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"status\",\n    \"cmd\": \"\",\n    \"args\": {}\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>This request show status of all available channels.</p><p></p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>This request don't have argument option, but is mandatory send a empty \"args\" object on request JSON body.</p>\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns following structure on result JSON list:</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Parent Key</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"status\"</td>\n  <td>String</td>\n  <td>-</td>\n  <td>Current channel status (UP/DOWN).</td>\n </tr>\n <tr>\n  <td>\"seen\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Last seen detailing, displayed if the channel type is \"whatsapp\".</td>\n </tr>\n<tr>\n  <td>\"last\"</td>\n  <td>String</td>\n  <td>\"seen\"</td>\n  <td>Timestamp of channel last seen.</td>\n </tr>\n <tr>\n  <td>\"last_elapsed\"</td>\n  <td>String</td>\n  <td>\"seen\"</td>\n  <td>Converted timestamp of channel last seen.</td>\n </tr>\n <tr>\n  <td>\"clients\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Detail of customers on the channel.</td>\n </tr>\n <tr>\n  <td>\"count\"</td>\n  <td>Integer</td>\n  <td>\"clients\"</td>\n  <td>Total customers active on channel.</td>\n </tr>\n <tr>\n  <td>\"channel\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>General channel information.</td>\n </tr>\n <tr>\n  <td>\"type\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Channel type.</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>Integer</td>\n  <td>\"channel\"</td>\n  <td>Channel ID number, displayed if the channel type is \"whatsapp\".</td>\n </tr>\n</table>","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"d680cfa5-dd51-43c0-9930-6e240cdedd5f","name":"Show status","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"status\",\n    \"cmd\": \"\",\n    \"args\": {}\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": [\n        {\n            \"status\": \"UP\",\n            \"seen\": {\n                \"last\": \"1624670857\",\n                \"last_elapsed\": 38\n            },\n            \"clients\": {\n                \"count\": 2\n            },\n            \"channel\": {\n                \"type\": \"whatsapp\",\n                \"id\": 9\n            }\n        },\n        {\n            \"status\": \"UP\",\n            \"clients\": {\n                \"count\": 0,\n                \"chats\": 0\n            },\n            \"channel\": {\n                \"type\": \"livechat\"\n            }\n        },\n        {\n            \"status\": \"UP\",\n            \"clients\": {\n                \"count\": 2\n            },\n            \"channel\": {\n                \"type\": \"liveflow\"\n            }\n        }\n    ]\n}"}],"_postman_id":"f30c5ef0-e7cf-4f7a-bb13-a1c6b83246fb"}],"id":"0abe1e8c-970b-4eb6-a80d-1678fbe6b194","_postman_id":"0abe1e8c-970b-4eb6-a80d-1678fbe6b194","description":""},{"name":"Bot","item":[{"name":"Display current bot sessions","id":"9c1d5d51-7a7d-4ff2-9605-d1537773fae8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"bot\",\n    \"cmd\": \"show\",\n    \"args\": {}\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>This request show all current users sessions on bot.<br /></p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>This request don't have argument option, but is mandatory send a empty \"args\" object on request JSON body.</p>\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns following structure on result JSON list:</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Parent Key</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"user_name\"</td>\n  <td>String</td>\n  <td>-</td>\n  <td>Current customer name defined on WhatsApp App.</td>\n </tr>\n <tr>\n  <td>\"next\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Next flow item detail.</td>\n </tr>\n <tr>\n  <td>\"item\"</td>\n  <td>Integer</td>\n  <td>\"next\"</td>\n  <td>Next item ID to execute.</td>\n </tr>\n <tr>\n  <td>\"step\"</td>\n  <td>Integer</td>\n  <td>\"next\"</td>\n  <td>Internal next step ID information.</td>\n </tr>\n <tr>\n  <td>\"destination\"</td>\n  <td>JSON Object</td>\n  <td>\"next\"</td>\n  <td>Next item destination detail</td>\n </tr>\n <tr>\n  <td>\"type\"</td>\n  <td>String</td>\n  <td>\"destination\"</td>\n  <td>Type of next flow item.</td>\n </tr>\n <tr>\n  <td>\"option\"</td>\n  <td>String</td>\n  <td>\"destination\"</td>\n  <td>Next flow item options.</td>\n </tr>\n <tr>\n  <td>\"flow\"</td>\n  <td>Integer</td>\n  <td>\"next\"</td>\n  <td>Flow number ID of next item.</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>Integer</td>\n  <td>\"next\"</td>\n  <td>Internal ID of next item.</td>\n </tr>\n <tr>\n  <td>\"running\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Running flow item detail.</td>\n </tr>\n\n <tr>\n  <td>\"item\"</td>\n  <td>Integer</td>\n  <td>\"running\"</td>\n  <td>Running flow item ID.</td>\n </tr>\n <tr>\n  <td>\"step\"</td>\n  <td>Integer</td>\n  <td>\"running\"</td>\n  <td>Running item step ID information.</td>\n </tr>\n <tr>\n  <td>\"destination\"</td>\n  <td>JSON Object</td>\n  <td>\"running\"</td>\n  <td>Running item destination detail</td>\n </tr>\n <tr>\n  <td>\"type\"</td>\n  <td>String</td>\n  <td>\"destination\"</td>\n  <td>Type of running flow item.</td>\n </tr>\n <tr>\n  <td>\"option\"</td>\n  <td>String</td>\n  <td>\"destination\"</td>\n  <td>Running flow item options.</td>\n </tr>\n <tr>\n  <td>\"flow\"</td>\n  <td>Integer</td>\n  <td>\"running\"</td>\n  <td>Current number flow.</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>Integer</td>\n  <td>\"running\"</td>\n  <td>Internal ID of current number flow item.</td>\n </tr>\n <tr>\n  <td>\"last_answer\"</td>\n  <td>String</td>\n  <td>-</td>\n  <td>Last answer sent to customer.</td>\n </tr>\n <tr>\n  <td>\"chat_group\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Chat detail.</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>String</td>\n  <td>\"chat_group\"</td>\n  <td>Name of current chat group.</td>\n </tr>\n <tr>\n  <td>\"name\"</td>\n  <td>String</td>\n  <td>\"chat_group\"</td>\n  <td>Name of current chat attendant.</td>\n </tr>\n <tr>\n  <td>\"channel\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Channel information.</td>\n </tr>\n <tr>\n  <td>\"user_id\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Full customer channel username.</td>\n </tr>\n <tr>\n  <td>\"type\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Type of channel.</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>Integer</td>\n  <td>\"channel\"</td>\n  <td>Channel ID number.</td>\n </tr>\n</table>","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"0634a7f5-600c-4af5-8125-640b01fa70af","name":"Display current bot sessions","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"bot\",\n    \"cmd\": \"show\",\n    \"args\": {}\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": [\n        {\n            \"user_name\": \"ExCodes Software\",\n            \"next\": {\n                \"item\": 98,\n                \"step\": 0,\n                \"destination\": {\n                    \"type\": \"message\",\n                    \"option\": null\n                },\n                \"flow\": 1,\n                \"id\": 2036\n            },\n            \"running\": {\n                \"item\": 12,\n                \"step\": 0,\n                \"destination\": {\n                    \"type\": \"chat\",\n                    \"option\": null\n                },\n                \"flow\": 1,\n                \"id\": 125\n            },\n            \"last_answer\": \"\",\n            \"chat_group\": {\n                \"id\": \"Suporte\",\n                \"name\": \"\"\n            },\n            \"channel\": {\n                \"user_id\": \"554432328668@c.us\",\n                \"type\": \"whatsapp\",\n                \"id\": 1\n            }\n        }\n    ]\n}"}],"_postman_id":"9c1d5d51-7a7d-4ff2-9605-d1537773fae8"},{"name":"Modify current flow","id":"39430755-c37d-4efb-be72-40b55259238c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"bot\",\n    \"cmd\": \"flow\",\n    \"args\": {\n        \"chan_type\": \"<chan_type>\",\n        \"chan_id\": \"<chan_id>\",\n        \"chan_user\": \"<user_id>\",\n        \"flow\": \"<new_flow_number>\",\n        \"item\": \"<new_flow_item>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to modify current flow of customer session.</p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chan_type\"</td>\n  <td>String</td>\n  <td>Type of channel (whatsapp).</td>\n </tr>\n <tr>\n  <td>\"chan_id\"</td>\n  <td>Integer</td>\n  <td>Channel ID.</td>\n </tr>\n <tr>\n  <td>\"chan_user\"</td>\n  <td>String</td>\n  <td>Full customer channel username.</td>\n </tr>\n <tr>\n  <td>\"flow\"</td>\n  <td>Integer</td>\n  <td>New flow ID.</td>\n </tr>\n <tr>\n  <td>\"item\"</td>\n  <td>Integer</td>\n  <td>New flow item ID.</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns a simple result string.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"b5432df7-c3ed-4046-b629-665c083d8d0a","name":"Modify current flow","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"bot\",\n    \"cmd\": \"flow\",\n    \"args\": {\n        \"chan_type\": \"whatsapp\",\n        \"chan_id\": 1,\n        \"chan_user\": \"554432328668@c.us\",\n        \"flow\": 2,\n        \"item\": 1\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": \"Next flow of channel whatsapp/1/554432328668@c.us set to 2/1\"\n}"}],"_postman_id":"39430755-c37d-4efb-be72-40b55259238c"},{"name":"Reload service","id":"898b39af-a4a4-4007-9065-94c8bf652261","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"bot\",\n    \"cmd\": \"reload\",\n    \"args\": {\n        \"target\": \"<target>\",\n        \"id\": \"<target_id>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to reload bot functions.</p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"target\"</td>\n  <td>String</td>\n  <td>Target option (all/service/function/macro/global).</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>Integer</td>\n  <td>Target ID, this key should be sent only on service or function option.</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns a simple result string.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"1b89c809-59b4-4374-9034-e528e71fadd2","name":"Reload service","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"bot\",\n    \"cmd\": \"reload\",\n    \"args\": {\n        \"target\": \"all\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": \"Reload all command sent to LiveFlow\"\n}"}],"_postman_id":"898b39af-a4a4-4007-9065-94c8bf652261"},{"name":"Remove bot session","id":"f3d28d4d-d1d7-4cf6-ab3a-5ec725547d55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"bot\",\n    \"cmd\": \"rem\",\n    \"args\": {\n        \"chan_type\": \"<channel_type>\",\n        \"chan_id\": \"<channel_id>\",\n        \"chan_user\": \"<user_id>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to remove bot customer session.</p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chan_type\"</td>\n  <td>String</td>\n  <td>Type of channel (whatsapp).</td>\n </tr>\n <tr>\n  <td>\"chan_id\"</td>\n  <td>Integer</td>\n  <td>Channel ID.</td>\n </tr>\n <tr>\n  <td>\"chan_user\"</td>\n  <td>String</td>\n  <td>Full customer channel username.</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns a simple result string.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"8c844f18-e9f9-4f6d-bd94-1d8f81b37460","name":"Remove bot session","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"bot\",\n    \"cmd\": \"rem\",\n    \"args\": {\n        \"chan_type\": \"whatsapp\",\n        \"chan_id\": 1,\n        \"chan_user\": \"554432328668@c.us\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": \"BOT of Channel whatsapp/1/554432328668@c.us has been removed\"\n}"}],"_postman_id":"f3d28d4d-d1d7-4cf6-ab3a-5ec725547d55"},{"name":"Validate bot service","id":"17c6b8e9-74a9-42b3-ad23-053aa6dfea72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"bot\",\n    \"cmd\": \"validate\",\n    \"args\": {\n        \"target\": \"<target>\",\n        \"id\": \"<target_id>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to validate bot service or function.</p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"target\"</td>\n  <td>String</td>\n  <td>Target option (service/function).</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>Integer</td>\n  <td>Target ID.</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns a simple result string.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"7f2adc92-58c3-4982-b11a-a59fd4ee4c6e","name":"Validate bot service","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"bot\",\n    \"cmd\": \"validate\",\n    \"args\": {\n        \"target\": \"service\",\n        \"id\": 100\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": \"LiveFlow BOT service 100-(Mensagem de boas vindas) sucessfully compiled\"\n}"}],"_postman_id":"17c6b8e9-74a9-42b3-ad23-053aa6dfea72"}],"id":"575ea835-dc15-4d60-9f7e-dc8f2f3c0515","_postman_id":"575ea835-dc15-4d60-9f7e-dc8f2f3c0515","description":""},{"name":"Chat","item":[{"name":"Directly connect customer with a chat attendant","id":"ac0ab6fc-3f27-41b9-86c0-b28e56487249","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"connect\",\n    \"args\": {\n        \"chan_type\": \"whatsapp\",\n        \"chan_id\": \"<chan_id>\",\n        \"chan_user\": \"<customer_number>\",\n        \"chat_user\": \"<atendant_username>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to directly connect customer with a chat attendant.<br /></p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chan_type\"</td>\n  <td>String</td>\n  <td>Channel type (whatsapp).</td>\n </tr>\n <tr>\n  <td>\"chan_id\"</td>\n  <td>Integer</td>\n  <td>Channel ID.</td>\n </tr>\n <tr>\n  <td>\"chan_user\"</td>\n  <td>String</td>\n  <td>Full customer channel username.</td>\n </tr>\n <tr>\n  <td>\"chat_user\"</td>\n  <td>String</td>\n  <td>Attendant username.</td>\n </tr>\n\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns a simple result string.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"50184ee3-a80e-4f0a-9b20-3065032a766c","name":"Directly connect customer with a chat attendant","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"connect\",\n    \"args\": {\n        \"chan_type\": \"whatsapp\",\n        \"chan_id\": 1,\n        \"chan_user\": \"554432328668@c.us\",\n        \"chat_user\": \"maxbauer@exc\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": \"Chat connected Successful\"\n}"}],"_postman_id":"ac0ab6fc-3f27-41b9-86c0-b28e56487249"},{"name":"Close customer chat session","id":"1932b472-fc61-49d5-9c7f-16e1a7fa1979","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"close\",\n    \"args\": {\n        \"chan_type\": \"<chan_type>\",\n        \"chan_id\": \"<chan_id>\",\n        \"chan_user\": \"<customer_username>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to close customer chat session.<br /></p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chan_type\"</td>\n  <td>String</td>\n  <td>Channel type (whatsapp).</td>\n </tr>\n <tr>\n  <td>\"chan_id\"</td>\n  <td>Integer</td>\n  <td>Channel ID.</td>\n </tr>\n <tr>\n  <td>\"chan_user\"</td>\n  <td>String</td>\n  <td>Full customer channel username.</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns a simple result string.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"d3e1e378-733a-49f0-abd7-76b02efd804b","name":"Close customer chat session","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"close\",\n    \"args\": {\n        \"chan_type\": \"whatsapp\",\n        \"chan_id\": 1,\n        \"chan_user\": \"554432328668@c.us\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": \"LiveChat conversation of whatsapp/1/554432328668@c.us with maxbauer has been closed\"\n}"}],"_postman_id":"1932b472-fc61-49d5-9c7f-16e1a7fa1979"},{"name":"Drop customer chat session","id":"8bfa29e4-040f-44e2-ad10-b2e24df24798","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"drop\",\n    \"args\": {\n        \"chan_type\": \"<chan_type>\",\n        \"chan_id\": \"<chan_id>\",\n        \"chan_user\": \"<chan_user>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to drop customer chat session.<br /></p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chan_type\"</td>\n  <td>String</td>\n  <td>Channel type (whatsapp).</td>\n </tr>\n <tr>\n  <td>\"chan_id\"</td>\n  <td>Integer</td>\n  <td>Channel ID.</td>\n </tr>\n <tr>\n  <td>\"chan_user\"</td>\n  <td>String</td>\n  <td>Full customer channel username.</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns a simple result string.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"7866f4f4-0691-44fd-827d-778c954d5daf","name":"Drop customer chat session","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"drop\",\n    \"args\": {\n        \"chan_type\": \"whatsapp\",\n        \"chan_id\": 1,\n        \"chan_user\": \"554432328668@c.us\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": \"LiveChat conversation of whatsapp/1/554432328668@c.us with maxbauer@exc has been dropped\"\n}"}],"_postman_id":"8bfa29e4-040f-44e2-ad10-b2e24df24798"},{"name":"Request new chat invite","id":"323a9129-35a2-4722-87a1-263719c91dac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"invite\",\n    \"args\": {\n        \"chan_type\": \"<chan_type>\",\n        \"chan_id\": \"<chan_id>\",\n        \"chan_user\": \"<customer_number>\",\n        \"chat_group\": \"<chat_group_id>\",\n        \"chat_user\": \"<chat_attendant_username>\",\n        \"chat_subj\": \"Attendant Subject\",\n        \"chat_greet\": \"Customer greeting message\",\n        \"customer_ft\": \"<customer_type>\",\n        \"customer_fk\": \"<customer_number>\",\n        \"session_fk\": \"<ticket_number>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to send a new chat invite.</p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chan_type\"</td>\n  <td>String</td>\n  <td>Type of channel (whatsapp).</td>\n </tr>\n <tr>\n  <td>\"chan_id\"</td>\n  <td>Integer</td>\n  <td>Channel ID.</td>\n </tr>\n <tr>\n  <td>\"chan_user\"</td>\n  <td>Integer</td>\n  <td>Customer number.</td>\n </tr>\n <tr>\n  <td>\"chat_group\"</td>\n  <td>Integer</td>\n  <td>Chat group ID.</td>\n </tr>\n <tr>\n  <td>\"chat_user\"</td>\n  <td>String</td>\n  <td>Chat attendant username.</td>\n </tr>\n <tr>\n  <td>\"chat_subj\"</td>\n  <td>String</td>\n  <td>Attendant subject.</td>\n </tr>\n <tr>\n  <td>\"chat_greet\"</td>\n  <td>String</td>\n  <td>Customer greeting message.</td>\n </tr>\n <tr>\n  <td>\"customer_ft\"</td>\n  <td>String</td>\n  <td>ERP customer type.</td>\n </tr>\n <tr>\n  <td>\"customer_fk\"</td>\n  <td>Integer</td>\n  <td>ERP customer number.</td>\n </tr>\n <tr>\n  <td>\"session_fk\"</td>\n  <td>Integer</td>\n  <td>ERP ticket number.</td>\n </tr>\n</table><p>\n<b>Obs:</b><br />\n- On invite \"chat_user\" is preferred if is defined.<br />\n- The message defined on \"chat_greet\" is send when the attendant accept invite.\n\n</p><h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns a simple result string.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"a9ac998f-a20e-4bcb-af92-3061d555cf0e","name":"Request new chat invite","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"invite\",\n    \"args\": {\n        \"chan_type\": \"whatsapp\",\n        \"chan_id\": 1,\n        \"chan_user\": 554432328668,\n        \"chat_group\": 1,\n        \"chat_user\": \"\",\n        \"chat_subj\": \"Attendant Subject\",\n        \"chat_greet\": \"Customer greeting message\",\n        \"customer_ft\": \"M\",\n        \"customer_fk\": 1234,\n        \"session_fk\": 1000\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": \"Chat invited Successful\"\n}"}],"_postman_id":"323a9129-35a2-4722-87a1-263719c91dac"},{"name":"Disconnect attendant from chat","id":"c0e2d904-810d-4c46-95c1-6aab2a56f315","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"rem\",\n    \"args\": {\n        \"chat_user\": \"<chat_user>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>Use this request to disconnect a attendant from chat.<br /></p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chat_user\"</td>\n  <td>String</td>\n  <td>Attendant username.</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns a simple result string.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"480d2532-768d-40e5-ad13-8eb556079cf3","name":"Disconnect attendant from chat","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"rem\",\n    \"args\": {\n        \"chat_user\": \"excodes\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": \"LiveChat User excodes has been removed\"\n}"}],"_postman_id":"c0e2d904-810d-4c46-95c1-6aab2a56f315"},{"name":"Show online chat attendants","id":"f586c36c-c33e-439d-b36f-bd8744f771fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"show\",\n    \"args\": {\n        \"target\": \"user\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>This request show details of online chat attendants.<br /></p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"target\"</td>\n  <td>String</td>\n  <td>Target to show (user).</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns following structure on result JSON list:</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Parent Key</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chat_user\"</td>\n  <td>String</td>\n  <td>-</td>\n  <td>Chat username.</td>\n </tr>\n <tr>\n  <td>\"connection\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Attendant connection details.</td>\n </tr>\n <tr>\n  <td>\"start_time\"</td>\n  <td>String</td>\n  <td>\"connection\"</td>\n  <td>Timestamp of attendant AnyCom Chat login.</td>\n </tr>\n <tr>\n  <td>\"ip_addr\"</td>\n  <td>String</td>\n  <td>\"connection\"</td>\n  <td>Attendant source IP address.</td>\n </tr>\n <tr>\n  <td>\"last_ack\"</td>\n  <td>Integer</td>\n  <td>\"connection\"</td>\n  <td>Last ACK of attendant in seconds.</td>\n </tr>\n <tr>\n  <td>\"group\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Attendant group details.</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>Integer</td>\n  <td>\"group\"</td>\n  <td>Primary attendant chat group ID.</td>\n </tr>\n <tr>\n  <td>\"alternative_groups\"</td>\n  <td>List</td>\n  <td>\"group\"</td>\n  <td>Alternative attendant chat group ID.</td>\n </tr>\n <tr>\n  <td>\"name\"</td>\n  <td>String</td>\n  <td>\"group\"</td>\n  <td>Name of primary attendant chat group.</td>\n </tr>\n <tr>\n  <td>\"os\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Attendant device details.</td>\n </tr>\n <tr>\n  <td>\"version\"</td>\n  <td>String</td>\n  <td>\"os\"</td>\n  <td>Operating system version.</td>\n </tr>\n <tr>\n  <td>\"name\"</td>\n  <td>String</td>\n  <td>\"os\"</td>\n  <td>Operating system name.</td>\n </tr>\n <tr>\n  <td>\"web_version\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>AnyCom Web details.</td>\n </tr>\n <tr>\n  <td>\"front\"</td>\n  <td>String</td>\n  <td>\"web_version\"</td>\n  <td>Version of AnyCom Web platform.</td>\n </tr>\n <tr>\n  <td>\"core\"</td>\n  <td>String</td>\n  <td>\"web_version\"</td>\n  <td>Version of AnyCom Core platform.</td>\n </tr>\n <tr>\n  <td>\"clients\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Current customers detail.</td>\n </tr>\n <tr>\n  <td>\"count\"</td>\n  <td>Integer</td>\n  <td>\"clients\"</td>\n  <td>Number of current customers on chat.</td>\n </tr>\n <tr>\n  <td>\"chat_user_name\"</td>\n  <td>String</td>\n  <td>-</td>\n  <td>Attendant display name.</td>\n </tr>\n <tr>\n  <td>\"browser\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Attendant browser details.</td>\n </tr>\n <tr>\n  <td>\"version\"</td>\n  <td>String</td>\n  <td>\"browser\"</td>\n  <td>Attendant browser version.</td>\n </tr>\n <tr>\n  <td>\"name\"</td>\n  <td>String</td>\n  <td>\"browser\"</td>\n  <td>Name of browser in use by attendant.</td>\n </tr>\n</table>","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"8f20e683-7b73-4919-9210-192f5ecb705c","name":"Show online chat attendants","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"show\",\n    \"args\": {\n        \"target\": \"user\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": [\n        {\n            \"chat_user\": \"maxbauer\",\n            \"connection\": {\n                \"start_time\": \"1624927155\",\n                \"ip_addr\": \"10.1.200.20\",\n                \"last_ack\": 4\n            },\n            \"group\": {\n                \"id\": 14,\n                \"alternative_groups\": [],\n                \"name\": \"Suporte\"\n            },\n            \"os\": {\n                \"version\": \"10.15.7\",\n                \"name\": \"macOS\"\n            },\n            \"web_version\": {\n                \"front\": \"V1.3.010\",\n                \"core\": \"V1.3.013\"\n            },\n            \"clients\": {\n                \"count\": 1\n            },\n            \"chat_user_name\": \"Max\",\n            \"browser\": {\n                \"version\": \"91.0.4472.114\",\n                \"name\": \"Chrome\"\n            }\n        }\n    ]\n}"}],"_postman_id":"f586c36c-c33e-439d-b36f-bd8744f771fe"},{"name":"Show current chat awaiting","id":"9097c0c9-c1b6-404c-908c-fd7eb78a5a0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"show\",\n    \"args\": {\n        \"target\": \"awaiting\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>This request show awaiting customers on chat.<br /></p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"target\"</td>\n  <td>String</td>\n  <td>Target to show (awaiting).</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns following structure on result JSON list:</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Parent Key</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chat\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Chat details.</td>\n </tr>\n <tr>\n  <td>\"call\"</td>\n  <td>String</td>\n  <td>\"chat\"</td>\n  <td>Type of call.</td>\n </tr>\n <tr>\n  <td>\"group\"</td>\n  <td>JSON Object</td>\n  <td>\"chat\"</td>\n  <td>Chat group detail.</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>Integer</td>\n  <td>\"group\"</td>\n  <td>Chat group ID.</td>\n </tr>\n <tr>\n  <td>\"name\"</td>\n  <td>String</td>\n  <td>\"group\"</td>\n  <td>Chat group name.</td>\n </tr>\n <tr>\n  <td>\"greeting\"</td>\n  <td>String</td>\n  <td>\"chat\"</td>\n  <td>Customer greeting message on chat accept.</td>\n </tr>\n <tr>\n  <td>\"subject\"</td>\n  <td>String</td>\n  <td>\"chat\"</td>\n  <td>Attendant subject invite.</td>\n </tr>\n <tr>\n  <td>\"channel\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Channel details.</td>\n </tr>\n <tr>\n  <td>\"user_id\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Full channel customer username.</td>\n </tr>\n <tr>\n  <td>\"type\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Type of channel.</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>Integer</td>\n  <td>\"channel\"</td>\n  <td>Channel ID.</td>\n </tr>\n <tr>\n  <td>\"user_name\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Channel customer displayed name.</td>\n </tr>\n</table>","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"3af6efd9-1666-445e-ada0-26a2c9f45b49","name":"Show current chat awaiting","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"show\",\n    \"args\": {\n        \"target\": \"awaiting\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": [\n        {\n            \"chat\": {\n                \"call\": \"invited\",\n                \"group\": {\n                    \"id\": 14,\n                    \"name\": \"Suporte\"\n                },\n                \"greeting\": \"\",\n                \"subject\": \"Recuperada da desconexão de [CHAT_USER_NAME]\"\n            },\n            \"channel\": {\n                \"user_id\": \"554432328668@c.us\",\n                \"type\": \"whatsapp\",\n                \"id\": 9,\n                \"user_name\": \"ExCodes Software\"\n            }\n        }\n    ]\n}"}],"_postman_id":"9097c0c9-c1b6-404c-908c-fd7eb78a5a0a"},{"name":"Show current chat conversation","id":"038d2a8a-4f96-43ec-b029-bde4ff1854aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"show\",\n    \"args\": {\n        \"target\": \"conversation\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/","description":"<p>This request show current customers on chat conversation.<br /></p>\n<h2 id=\"request-arguments\">Request arguments</h2>\n<p>To execute this request, below arguments is mandatory in \"args\" object on JSON request body.</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"target\"</td>\n  <td>String</td>\n  <td>Target to show (conversation).</td>\n </tr>\n</table>\n\n<h2 id=\"result-detail\">Result detail</h2>\n<p>This request returns following structure on result JSON list:</p>\n<table>\n <tr>\n  <th>Key</th>\n  <th>Type</th>\n  <th>Parent Key</th>\n  <th>Description</th>\n </tr>\n <tr>\n  <td>\"chat_user\"</td>\n  <td>String</td>\n  <td>-</td>\n  <td>Attendant chat username.</td>\n </tr>\n <tr>\n  <td>\"chat_user_name\"</td>\n  <td>String</td>\n  <td>-</td>\n  <td>Attendant chat displayed name.</td>\n </tr>\n <tr>\n  <td>\"chat_group\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Chat group detail.</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>Integer</td>\n  <td>\"chat_group\"</td>\n  <td>Chat group ID.</td>\n </tr>\n <tr>\n  <td>\"name\"</td>\n  <td>String</td>\n  <td>\"chat_group\"</td>\n  <td>Chat group name.</td>\n </tr>\n <tr>\n  <td>\"channel\"</td>\n  <td>JSON Object</td>\n  <td>-</td>\n  <td>Channel details.</td>\n </tr>\n <tr>\n  <td>\"user_id\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Full channel customer username.</td>\n </tr>\n <tr>\n  <td>\"type\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Type of channel.</td>\n </tr>\n <tr>\n  <td>\"id\"</td>\n  <td>Integer</td>\n  <td>\"channel\"</td>\n  <td>Channel ID.</td>\n </tr>\n <tr>\n  <td>\"user_name\"</td>\n  <td>String</td>\n  <td>\"channel\"</td>\n  <td>Channel customer displayed name.</td>\n </tr>\n</table>","urlObject":{"protocol":"https","path":[""],"host":["ws","anycom","io"],"query":[],"variable":[]}},"response":[{"id":"9353fd46-e29d-4a1e-b065-4b5dc7a2c6dc","name":"Show current chat conversation","originalRequest":{"method":"POST","header":[{"key":"auth_key","value":"{{auth_key}}","type":"text"},{"key":"auth_user","value":"{{auth_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"group\": \"chat\",\n    \"cmd\": \"show\",\n    \"args\": {\n        \"target\": \"conversation\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws.anycom.io/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"result\": [\n        {\n            \"chat_user\": \"maxbauer\",\n            \"chat_user_name\": \"Max\",\n            \"chat_group\": {\n                \"id\": 0,\n                \"name\": \"\"\n            },\n            \"channel\": {\n                \"user_id\": \"554432328668@c.us\",\n                \"type\": \"whatsapp\",\n                \"id\": 9,\n                \"user_name\": \"ExCodes Software\"\n            }\n        }\n    ]\n}"}],"_postman_id":"038d2a8a-4f96-43ec-b029-bde4ff1854aa"}],"id":"7a23a6f7-b71e-42b7-a3fc-ff0a1f7d112f","_postman_id":"7a23a6f7-b71e-42b7-a3fc-ff0a1f7d112f","description":""}],"event":[{"listen":"prerequest","script":{"id":"390d78ce-0cd8-4ee3-95fa-fc9e1378a888","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ed7656c0-0c5c-42fe-a8fe-8a166acd4125","type":"text/javascript","exec":[""]}}]}