{"info":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","description":"<html><head></head><body><p>This document specifies the corresponding REST API methods, with example requests and responses. You can load this API into the <a href=\"https://www.getpostman.com/\">Postman API Development Environment</a> to interact with the API with your own access tokens.</p>\n<h2 id=\"notes\">Notes</h2>\n<ul>\n<li>Either HTTP or HTTPS transport can be configured. The same setting applies to the entire Configuration Web Portal server. For production deployments on public Internet only, HTTPS is enabled.</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"7747764","collectionId":"2554f124-6b57-4229-8ffe-d7778d349e25","publishedId":"2sA2rGvee6","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"38a6de"},"publishDate":"2024-02-29T19:55:20.000Z"},"item":[{"name":"Authentication","item":[{"name":"Get Access Token","event":[{"listen":"test","script":{"id":"40715ecc-19e6-4d75-853f-80b33da64d8a","exec":["tests[\"Successful POST request\"] = responseCode.code === 200;\r","\r","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");\r","\r","tests[\"Has Content-Type\"] = contentTypeHeaderExists;\r","\r","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");\r","\r","if( responseBody ) {\r","    if( contentIsJson ) {\r","        var jsonData = JSON.parse(responseBody);\r","    } else {\r","        tests[\"Cannot parse response body: Unknown content format\"] = false;\r","    }\r","} else {\r","    tests[\"Response body has content\"] = false;\r","}\r","\r","var jsonData = JSON.parse(responseBody)\r","\r","pm.collectionVariables.set(\"cx_access_token\", jsonData.access_token);"],"type":"text/javascript"}}],"id":"f5d49557-0235-4ef8-8bf1-4f1ae41f8c09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"myuser","description":"<p>Username of a CX user authorized to manage users and/or phones.</p>\n","type":"text"},{"key":"client_secret","value":"myapikeyhereXXXXXXXXXXXXXXXXXX","description":"<p>API secret key generated for the above user.</p>\n","type":"text"},{"key":"scope","value":"mytenant.cx.onecloud.com","description":"<p>Your contact center domain name, e.g., <em>example.cx.onecloud.com</em>.</p>\n","type":"text"},{"key":"grant_type","value":"client_credentials","description":"<p>Grant type. Must be set to <em>client_credentials</em>.</p>\n","type":"text"}]},"url":"https://mytenant.cx.onecloud.com/configapi/v2/oauth/token","description":"<p>Returns an access token that will be used to authenticate each subsequent request made via this API.</p>\n","urlObject":{"protocol":"https","path":["configapi","v2","oauth","token"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"fafe0b1f-c60a-48d9-a1d2-2811a411747a","name":"Get Access Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"admin","description":"Username of a CX user authorized to manage users and/or phones.","type":"text"},{"key":"client_secret","value":"X0vhlwMc6YoEbQDDqQGM9nOw8p7v9110rjTL1COxGBnpIAZvY6ryrrBQT5N28qS9","description":"[API secret key] generated for the above user.","type":"text"},{"key":"scope","value":"example.cx.onecloud.com","description":"Your contact center domain name, e.g., *example.cx.onecloud.com*.","type":"text"},{"key":"grant_type","value":"client_credentials","description":"Grant type. Must be set to *client_credentials*.","type":"text"}]},"url":"https://mytenant.cx.onecloud.com/configapi/v2/oauth/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Mon, 22 Apr 2019 02:07:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"242"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"CCE2C2EB964827XXXXXXXXXX3E1DEB2867C86D6C7ECDCE36C18D56XXXXXXXXXX\",\n    \"token_type\": \"Bearer\",\n    \"expires_in\": \"3600\",\n    \"scope\": \"example.cx.onecloud.com\"\n}"}],"_postman_id":"f5d49557-0235-4ef8-8bf1-4f1ae41f8c09"}],"id":"931d70f6-62d1-43bc-ab70-d5374cfd38a3","description":"<p>The <a href=\"https://tools.ietf.org/html/rfc6749#section-4.4\">OAuth 2.0 Client Credentials Grant</a> is used to authenticate clients of this API. The authenticated user is checked for having appropriate privileges to perform the requested operation. Privileges are assigned to users via one or more Roles.</p>\n<p>To obtain an access token:</p>\n<ol>\n<li>Login to your OneCloud CX configuration portal.</li>\n<li>Navigate to Users page.</li>\n<li>Select or create a user with privileges corresponding to the tasks you wish to perform via the OneCloud CX API.</li>\n<li>Click the Generate button to generate an API secret key. Copy the generated key and note the username for the next steps.</li>\n<li>Use the <em>Get Access Token</em> method to obtain an access token. Set the <em>client_id</em> to the username and <em>client_secret</em> to the generated API secrect key.</li>\n<li>Use the value of <em>access_token</em> returned in the response to set the <em>Authorization: Bearer [access token]</em> header of each subsequent request made via the OneCloud CX API.</li>\n</ol>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"db90e4cd-4d97-48b4-a693-48caca91e379"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"aa2db8db-1c68-48d9-9969-03c6653e9cb8"}}],"_postman_id":"931d70f6-62d1-43bc-ab70-d5374cfd38a3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Users","item":[{"name":"Create User","id":"45a609ba-e506-4beb-bf46-00cf7539a384","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"loginId\": \"testuser006\",\r\n    \"password\": \"$$$999aaa\",\r\n    \"firstName\": \"Test\",\r\n    \"lastName\": \"User006\",\r\n    \"team\": \"Support Team\",\r\n    \"workPhone\": \"6373335656\",\r\n    \"mobilePhone\": \"6374128990\",\r\n    \"email\": \"testuser006@nowhere.net\",\r\n    \"disabled\": false,\r\n    \"changePassword\": true,\r\n    \"skills\": {\r\n        \"Support\": 100,\r\n        \"Mobile\": 100,\r\n        \"Cable\": 70\r\n    },\r\n    \"roles\": [\r\n        \"Agent\"\r\n    ]\r\n}"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/user","description":"<p>Creates a new user in your contact center configuration.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","user"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"e5da634e-14af-466a-9d8d-58cd0a4b9575","name":"Create user with a complete data set","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer myapikeyhereXXXXXXXXXXXXXXXXXX","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"loginId\": \"testuser005\",\r\n    \"password\": \"$$$999aaa\",\r\n    \"firstName\": \"Test\",\r\n    \"lastName\": \"User005\",\r\n    \"team\": \"Support Team\",\r\n    \"extension\": \"2005\",\r\n    \"workPhone\": \"6373335656\",\r\n    \"mobilePhone\": \"6374128990\",\r\n    \"email\": \"testuser005@nowhere.net\",\r\n    \"disabled\": false,\r\n    \"changePassword\": true,\r\n    \"skills\": {\r\n        \"Support\": 100,\r\n        \"Mobile\": 100,\r\n        \"Cable\": 70\r\n    },\r\n    \"roles\": [\r\n        \"Agent\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mytenant.cx.onecloud.com/configapi/v2/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Mon, 25 Feb 2019 07:35:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"45a609ba-e506-4beb-bf46-00cf7539a384"},{"name":"Get User Data","id":"c0eaabe6-9b93-4f87-b504-3f2dfa992bde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mytenant.cx.onecloud.com/configapi/v2/user/:username","description":"<p>Returns detailed configuraiton information about an existing user.  </p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","user",":username"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"1ed3cff4-1a12-4b49-a700-8d4cb1140aab","description":{"content":"<p>Username of the user whose data is requested.</p>\n","type":"text/plain"},"type":"string","value":"admin","key":"username"}]}},"response":[{"id":"d6505df9-15aa-416b-9b77-6fa463e2752c","name":"Get user data","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer XXXXXXXX"}],"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/user/:username","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","user",":username"],"variable":[{"key":"username","value":"testuser005","description":"[Username](https://help.brightpattern.com/5.2:Contact-center-administrator-guide/Users#Username) of a BP user."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Mon, 25 Feb 2019 07:45:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"298"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"disabled\": false,\n    \"changePassword\": true,\n    \"skills\": {\n        \"Cable\": 70,\n        \"Support\": 100,\n        \"Mobile\": 100\n    },\n    \"loginId\": \"testuser005\",\n    \"firstName\": \"Test\",\n    \"lastName\": \"User005\",\n    \"team\": \"Support Team\",\n    \"extension\": \"2005\",\n    \"workPhone\": \"6373335656\",\n    \"mobilePhone\": \"6374128990\",\n    \"email\": \"testuser005@nowhere.net\",\n    \"roles\": [\n        \"Agent\"\n    ]\n}"}],"_postman_id":"c0eaabe6-9b93-4f87-b504-3f2dfa992bde"},{"name":"Update User ","id":"e5bb1952-95d6-4744-8c1c-8d8c4cefb3ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"disabled\": \"true\",\r\n    \"team\": \"Accounting\"\r\n}"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/user/:username","description":"<p>Updates one or more attributes of an existing user. Currently the can be used to update the following properties:</p>\n<ul>\n<li>skills</li>\n<li>disabled</li>\n<li>password</li>\n<li>changePassword</li>\n<li>team</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","user",":username"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"0b3cef6a-40d2-4850-b69f-82e87a2db5c4","description":{"content":"<p>Username of the user whose data is to be updated.</p>\n","type":"text/plain"},"type":"any","value":"","key":"username"}]}},"response":[{"id":"e72091e1-c609-47d0-a18c-0e9be771c729","name":"Disable user via Update User","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer XXXXXXXX","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"disabled\": \"true\",\r\n    \"team\": \"Accounting\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/user/:username","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","user",":username"],"variable":[{"key":"username","value":"testuser004","description":"Username of the OneCloud CX User."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Mon, 25 Feb 2019 22:51:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e5bb1952-95d6-4744-8c1c-8d8c4cefb3ea"},{"name":"Get User Lock State","id":"dea7e525-021c-4fd3-ad53-b44624a03e95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mytenant.cx.onecloud.com/configapi/v2/user/lock/:username","description":"<p>Checks whether user's account has been temporarily locked out after too many invalid login attempts.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","user","lock",":username"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"0abcd69f-f29e-46df-b6d5-b94821667b77","description":{"content":"<p>Username of the user whose lock state is to be checked.</p>\n","type":"text/plain"},"type":"any","value":"","key":"username"}]}},"response":[{"id":"d52770a0-f99f-4e63-829a-6fdb35b4d8d9","name":"Get User Lock State","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer XXXXXXXX","type":"text"}],"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/user/lock/:username","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","user","lock",":username"],"variable":[{"key":"username","value":"testuser005","description":"Username of the OneCloud CX User."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Mon, 25 Feb 2019 23:05:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"18"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"lockedOut\": true\n}"}],"_postman_id":"dea7e525-021c-4fd3-ad53-b44624a03e95"},{"name":"Clear User Lock State","id":"c0f28384-3aaa-41f0-964d-3c25e7b11556","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"https://mytenant.cx.onecloud.com/configapi/v2/user/lock/:username","description":"<p>Unlocks user's account that has been temporarily locked out after too many invalid login attempts.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","user","lock",":username"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"28f6bb43-455a-4360-808c-b832cc8e2513","description":{"content":"<p>Username of the user to be unlocked.</p>\n","type":"text/plain"},"type":"any","value":"","key":"username"}]}},"response":[{"id":"082e4275-5ddd-4201-a03b-729b30af2b3a","name":"Clear User Lock State","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer XXXXXXXX","type":"text"}],"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/user/lock/:username","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","user","lock",":username"],"variable":[{"key":"username","value":"testuser005","description":"Username of the OneCloud CX user."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Mon, 25 Feb 2019 23:06:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"19"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"lockedOut\": false\n}"}],"_postman_id":"c0f28384-3aaa-41f0-964d-3c25e7b11556"},{"name":"Delete User","id":"e38c373b-1665-4522-950e-5dea8ef60d7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://mytenant.cx.onecloud.com/configapi/v2/user/:username","description":"<p>Deletes an existing user.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","user",":username"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"2820433d-00cc-4938-a990-88e77ec4ef97","description":{"content":"<p>Username of the user to be deleted.</p>\n","type":"text/plain"},"type":"any","value":"","key":"username"}]}},"response":[{"id":"afecff37-6093-48e0-9e41-d0bf62da0d2e","name":"Delete User","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer XXXXXXXX","type":"text"}],"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/user/:username","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","user",":username"],"variable":[{"key":"username","value":"eric.chen","description":"Username of the user to be deleted."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Mon, 22 Apr 2019 02:44:54 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e38c373b-1665-4522-950e-5dea8ef60d7a"},{"name":"Get Teams","id":"51642bf5-14e1-49d1-8804-8d136294adc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mytenant.cx.onecloud.com/configapi/v2/team","description":"<p>This method returns a list of all existing teams in your contact center.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","team"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"934bde48-0b50-4926-83bd-1ada05a64de1","name":"Get Teams","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer XXXXXXXX","type":"text"}],"url":"https://mytenant.cx.onecloud.com/configapi/v2/team"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"Administrators\"\n    },\n    {\n        \"name\": \"Contact Center Support\"\n    },\n    {\n        \"name\": \"CSIM Support\"\n    },\n    {\n        \"name\": \"Customer Service\"\n    },\n    {\n        \"name\": \"Maintenance Renewal\"\n    },\n    {\n        \"name\": \"Management\"\n    }\n]"}],"_postman_id":"51642bf5-14e1-49d1-8804-8d136294adc0"}],"id":"5aa57d88-2156-4221-ba87-f91810f34268","description":"<p>With the <em>https://{tenant_url}/configapi/v2/user</em> endpoint you can:</p>\n<ul>\n<li>Create new users and define most of their attributes</li>\n<li>Update existing users</li>\n<li>Check and clear user lockout state</li>\n<li>Manage agents' skills</li>\n<li>Delete existing users</li>\n</ul>\n<p>Below is a brief description of all user attributes that can be accessed via this.</p>\n<ul>\n<li>All attributes are strings unless otherwise noted.</li>\n<li>All attributes are optional unless otherwise noted.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>loginId</td>\n<td>Username. Required to create user. Used to identify the user in all subsequent User Management API operations.</td>\n</tr>\n<tr>\n<td>password</td>\n<td>Password. Required to create user. Format must comply with security policy.</td>\n</tr>\n<tr>\n<td>changePassword</td>\n<td>Indicates whether user must change password on next login. Boolean. Default is false.</td>\n</tr>\n<tr>\n<td>firstName</td>\n<td>First name. Required to create user.</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>Last name. Required to create user.</td>\n</tr>\n<tr>\n<td>team</td>\n<td>Team that the user is assigned to. Required to create user.</td>\n</tr>\n<tr>\n<td>extension</td>\n<td>User's extension number. If not specified, an extension will be created and assigned automatically.</td>\n</tr>\n<tr>\n<td>workPhone</td>\n<td>User's work phone number.</td>\n</tr>\n<tr>\n<td>mobilePhone</td>\n<td>User's mobile phone number.</td>\n</tr>\n<tr>\n<td>email</td>\n<td>User's email address.</td>\n</tr>\n<tr>\n<td>disabled</td>\n<td>Indication whether the user account is disabled or enabled. Boolean (true/flase).</td>\n</tr>\n<tr>\n<td>skills</td>\n<td>For agents an array of skills with levels (e.g., \"Support\": 75).</td>\n</tr>\n<tr>\n<td>roles</td>\n<td>An array of user's roles (e.g., Agent).</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"63058dbb-ff04-4f64-83e9-f27138c146c5"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"e27fb577-fa77-4268-8202-dc5ac65716bf"}}],"_postman_id":"5aa57d88-2156-4221-ba87-f91810f34268","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Users SCIM Provisioning","item":[{"name":"Create User","event":[{"listen":"prerequest","script":{"id":"66c9dd52-030e-41d7-803b-453331292ef5","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"268ae4bd-93e4-419c-9902-3efcc2cf430d","exec":["pm.globals.set(\"userId\", pm.response.json().id);"],"type":"text/javascript"}}],"id":"412f70cb-7cae-4273-951e-85dd20c35332","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"connection":true}},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"schemas\": [\n    \"urn:ietf:params:scim:schemas:core:2.0:User\"\n  ],\n  \"userName\": \"bjensen@example.com\",\n  \"name\": {\n    \"familyName\": \"Jensen\",\n    \"givenName\": \"Barbara\"\n  },\n  \"nickName\": \"Babs\",\n  \"emails\": [\n    {\n      \"value\": \"bjensen@example.com\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"locality\": \"Hollywood\",\n      \"region\": \"CA\",\n      \"country\": \"US\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"value\": \"555-555-5555\",\n      \"type\": \"work\"\n    },\n    {\n      \"value\": \"555-555-4444\",\n      \"type\": \"mobile\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"value\": \"https://www.brightpattern.com/wp-content/uploads/2017/09/bright-pattern-logo-mini-with-text-30.png\",\n      \"type\": \"photo\"\n    }\n  ],\n  \"title\": \"TSR Level 3\",\n  \"timezone\": \"America/Los_Angeles\",\n  \"active\": true\n}"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/scim/users","description":"<p>This method creates a new user in your contact center configuration.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","scim","users"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"408012a4-5e16-42e5-af23-6330f25bfa6e","name":"Create user","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"schemas\": [\n    \"urn:ietf:params:scim:schemas:core:2.0:User\"\n  ],\n  \"userName\": \"bjensen@example.com\",\n  \"name\": {\n    \"familyName\": \"Jensen\",\n    \"givenName\": \"Barbara\"\n  },\n  \"nickName\": \"Babs\",\n  \"emails\": [\n    {\n      \"value\": \"bjensen@example.com\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"locality\": \"Hollywood\",\n      \"region\": \"CA\",\n      \"country\": \"US\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"value\": \"555-555-5555\",\n      \"type\": \"work\"\n    },\n    {\n      \"value\": \"555-555-4444\",\n      \"type\": \"mobile\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"value\": \"https://secure.gravatar.com/avatar/506c1f645ad2266f2353a50230c52f84.jpg\",\n      \"type\": \"photo\"\n    }\n  ],\n  \"title\": \"TSR Level 3\",\n  \"timezone\": \"America/Los_Angeles\",\n  \"active\": true\n}"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/scim/users"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Location","value":"http://localhost:8080/configapi/v2/scim/users/65625121-E207-4AA6-9C9D-317EE309FFBA"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"696"},{"key":"Server","value":"Jetty(9.4.12.v20180830)"}],"cookie":[],"responseTime":null,"body":"{\n    \"schemas\": [\n        \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"id\": \"65625121-E207-4AA6-9C9D-317EE309FFBA\",\n    \"externalId\": \"\",\n    \"meta\": {\n        \"resourceType\": \"USER\",\n        \"location\": \"http://tenant.cx.onecloud.com/configapi/v2/scim/users/65625121-E207-4AA6-9C9D-317EE309FFBA\"\n    },\n    \"userName\": \"bjensen@example.com\",\n    \"nickName\": \"Babs\",\n    \"name\": {\n        \"familyName\": \"Jensen\",\n        \"givenName\": \"Barbara\"\n    },\n    \"title\": \"TSR Level 3\",\n    \"timezone\": \"America/Los_Angeles\",\n    \"active\": true,\n    \"emails\": [\n        {\n            \"value\": \"bjensen@example.com\",\n            \"primary\": true\n        }\n    ],\n    \"phoneNumbers\": [\n        {\n            \"type\": \"work\",\n            \"value\": \"555-555-5555\"\n        },\n        {\n            \"type\": \"mobile\",\n            \"value\": \"555-555-4444\"\n        },\n        {\n            \"type\": \"extension\",\n            \"value\": \"2083\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"locality\": \"Hollywood\",\n            \"country\": \"US\"\n        }\n    ],\n    \"roles\": [\n        \"System Administrator\"\n    ]\n}"}],"_postman_id":"412f70cb-7cae-4273-951e-85dd20c35332"},{"name":"Get User by ID","id":"f945a6cb-091c-4ccd-b8a8-1abb20cf00f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json OR application/scim+json","type":"text"}],"url":"https://mytenant.cx.onecloud.com/configapi/v2/scim/users/:id","description":"<p>This method returns detailed configuration information about an existing user via the user’s ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","scim","users",":id"],"host":["mytenant.cx.onecloud.com"],"query":[{"disabled":true,"key":"","value":""}],"variable":[{"id":"9c6e61e3-d5f9-4e08-8e1b-a23db6ae533f","description":{"content":"<p>The ID of the user whose data is requested (e.g., 5974D6AE-66BD-4B2A-A9D6-1AEADD18F669)</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[{"id":"353b1828-da47-4992-bd03-b0afa972ba0d","name":"Get User by ID","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://mytenant.cx.onecloud.com/configapi/v2/scim/users/5974D6AE-66BD-4B2A-A9D6-1AEADD18F669"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"696"},{"key":"Server","value":"Jetty(9.4.12.v20180830)"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"schemas\": [\r\n        \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n    ],\r\n    \"id\": \"5974D6AE-66BD-4B2A-A9D6-1AEADD18F669\",\r\n    \"meta\": {\r\n        \"resourceType\": \"USER\",\r\n        \"created\": \"06-03-2020T10:04:30\",\r\n        \"lastModified\": \"06-03-2020T10:35:28\",\r\n        \"location\": \"http://tenant.cx.onecloud.com/configapi/v2/scim/users/5974D6AE-66BD-4B2A-A9D6-1AEADD18F669\"\r\n    },\r\n    \"userName\": \"elizabeth\",\r\n    \"name\": {\r\n        \"familyName\": \"Smith\",\r\n        \"givenName\": \"Liza\"\r\n    },\r\n    \"active\": true,\r\n    \"emails\": [\r\n        {\r\n            \"value\": \"liza@smith.com\",\r\n            \"primary\": true\r\n        }\r\n    ],\r\n    \"phoneNumbers\": [\r\n        {\r\n            \"type\": \"extension\",\r\n            \"value\": \"2064\"\r\n        }\r\n    ],\r\n    \"addresses\": [\r\n        {}\r\n    ],\r\n    \"roles\": [\r\n        \"System Administrator\",\r\n        \"Campaign Administrator\",\r\n        \"Supervisor\",\r\n        \"Quality Evaluator\",\r\n        \"Quality Evaluator Admin\",\r\n        \"Security Administrator\",\r\n        \"Campaign Operator\",\r\n        \"Service Administrator\",\r\n        \"Reviewer\",\r\n        \"Manager\",\r\n        \"Agent\"\r\n    ]\r\n}"}],"_postman_id":"f945a6cb-091c-4ccd-b8a8-1abb20cf00f6"},{"name":"Replace User Properties (by replacing all existing attributes with a specified set of replacement attributes)","id":"3a882114-8fbc-47c8-b3c6-0eda9f7962fa","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"connection":true}},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"schemas\": [\r\n    \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n  ],\r\n  \"userName\": \"bjinsin\",\r\n  \"name\": {\r\n    \"familyName\": \"Jinsin\",\r\n    \"givenName\": \"Borbora\"\r\n  },\r\n  \"nickName\": \"Bobs\",\r\n  \"emails\": [\r\n    {\r\n      \"value\": \"bjinsin@example.com\"\r\n    }\r\n  ],\r\n  \"addresses\": [\r\n    {\r\n      \"locality\": \"Hollywood\",\r\n      \"region\": \"CA\",\r\n      \"country\": \"US\"\r\n    }\r\n  ],\r\n  \"phoneNumbers\": [\r\n    {\r\n      \"value\": \"555-555-5555\",\r\n      \"type\": \"work\"\r\n    },\r\n    {\r\n      \"value\": \"888-888-8888\",\r\n      \"type\": \"mobile\"\r\n    }\r\n  ],\r\n  \"title\": \"TSR Level 3\",\r\n  \"timezone\": \"America/Los_Angeles\",\r\n  \"active\": true\r\n}\r\n"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/scim/users/:id","description":"<p>Replaces all attributes of an existing user with a specified set of replacement attributes. Note that in accordance with RFC7644, the PUT method updates users by replacing all of their current attributes with the ones specified in the body of the method.</p>\n<p>Note also that in order for usernames to be changed, service providers must allow this feature for your contact center. For more information, see the <em>CX Administrator Guide</em>, section <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-users\">Users</a>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","scim","users",":id"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"aaf28802-767a-4aa9-92df-ead7271ff887","description":{"content":"<p>The ID of the user whose data is to be updated (e.g., 5974D6AE-66BD-4B2A-A9D6-1AEADD18F669)</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[{"id":"0ef69ff9-44c1-4485-99fb-d122f9a64057","name":"Replace User","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"schemas\": [\r\n    \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n  ],\r\n  \"userName\": \"bjinsin\",\r\n  \"name\": {\r\n    \"familyName\": \"Jinsin\",\r\n    \"givenName\": \"Borbora\"\r\n  },\r\n  \"nickName\": \"Bobs\",\r\n  \"emails\": [\r\n    {\r\n      \"value\": \"bjinsin@example.com\"\r\n    }\r\n  ],\r\n  \"addresses\": [\r\n    {\r\n      \"locality\": \"Hollywood\",\r\n      \"region\": \"CA\",\r\n      \"country\": \"US\"\r\n    }\r\n  ],\r\n  \"phoneNumbers\": [\r\n    {\r\n      \"value\": \"555-555-5555\",\r\n      \"type\": \"work\"\r\n    },\r\n    {\r\n      \"value\": \"888-888-8888\",\r\n      \"type\": \"mobile\"\r\n    }\r\n  ],\r\n  \"title\": \"TSR Level 3\",\r\n  \"timezone\": \"America/Los_Angeles\",\r\n  \"active\": true\r\n}"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/scim/users/7D6A5564-2104-442F-82DA-D55B6D7CFAE9"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"660"},{"key":"Server","value":"Jetty(9.4.12.v20180830)"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"schemas\": [\r\n        \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n    ],\r\n    \"id\": \"7D6A5564-2104-442F-82DA-D55B6D7CFAE9\",\r\n    \"meta\": {\r\n        \"resourceType\": \"USER\",\r\n        \"created\": \"09-03-2020T05:58:01\",\r\n        \"lastModified\": \"09-03-2020T09:21:44\",\r\n        \"location\": \"http://tenant.cx.onecloud.com/configapi/v2/scim/users/7D6A5564-2104-442F-82DA-D55B6D7CFAE9\"\r\n    },\r\n    \"userName\": \"bjinsin\",\r\n    \"nickName\": \"Bobs\",\r\n    \"name\": {\r\n        \"familyName\": \"Jinsin\",\r\n        \"givenName\": \"Borbora\"\r\n    },\r\n    \"title\": \"TSR Level 3\",\r\n    \"timezone\": \"America/Los_Angeles\",\r\n    \"active\": true,\r\n    \"emails\": [\r\n        {\r\n            \"value\": \"bjinsin@example.com\",\r\n            \"primary\": true\r\n        }\r\n    ],\r\n    \"phoneNumbers\": [\r\n        {\r\n            \"type\": \"work\",\r\n            \"value\": \"555-555-5555\"\r\n        },\r\n        {\r\n            \"type\": \"mobile\",\r\n            \"value\": \"888-888-8888\"\r\n        },\r\n        {\r\n            \"type\": \"extension\",\r\n            \"value\": \"2065\"\r\n        }\r\n    ],\r\n    \"addresses\": [\r\n        {\r\n            \"locality\": \"Hollywood\",\r\n            \"region\": \"CA\",\r\n            \"country\": \"US\"\r\n        }\r\n    ],\r\n    \"roles\": []\r\n}\r\n"}],"_postman_id":"3a882114-8fbc-47c8-b3c6-0eda9f7962fa"},{"name":"Update User (updates only the properties indicated in the specified set)","id":"a9d98283-3e93-4bff-886c-b19724c1a434","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"connection":true}},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"schemas\": [\r\n    \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\r\n  ],\r\n   \"Operations\":[\r\n    {\r\n    \"op\":\"replace\",\r\n    \"path\":\"active\",\r\n    \"value\": false\r\n    }\r\n  ]\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://mytenant.cx.onecloud.com/configapi/v2/scim/users/6BE15F09-BF39-4E20-AB31-A9355CBC01FC","description":"<p>Updates attributes of an existing user. Note that in accordance with RFC7644, the PATCH method modifies a user with a set of client-specified changes (partial update).</p>\n<p>Note also that in order for usernames to be changed, service providers must allow this feature for your contact center. For more information, see the <em>Contact Center Administrator Guide</em>, section <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-users\">Users</a>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","scim","users","6BE15F09-BF39-4E20-AB31-A9355CBC01FC"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"e578bd3f-60e6-4083-b6b0-7ffff76c7544","name":"Update User (updates only the properties indicated in the specified set)","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json OR application/scim+json","disabled":true}],"body":{"mode":"raw","raw":"{\r\n  \"schemas\": [\r\n    \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\r\n  ],\r\n   \"Operations\":[\r\n    {\r\n    \"op\":\"replace\",\r\n    \"path\":\"active\",\r\n    \"value\": false\r\n    }\r\n  ]\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://mytenant.cx.onecloud.com/configapi/v2/scim/users/6BE15F09-BF39-4E20-AB31-A9355CBC01FC"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.10"},{"key":"Date","value":"Fri, 01 Apr 2022 01:07:15 GMT"},{"key":"Content-Type","value":"application/scim+json"},{"key":"Content-Length","value":"707"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"schemas\": [\n        \"urn:ietf:params:scim:schemas:core:2.0:User\"\n    ],\n    \"id\": \"6BE15F09-BF39-4E20-AB31-A9355CBC01FC\",\n    \"meta\": {\n        \"resourceType\": \"USER\",\n        \"lastModified\": \"2022-04-01T01:07:15\",\n        \"location\": \"http://alexei-maintenance.pl.bugfocus.com/configapi/v2/scim/users/6BE15F09-BF39-4E20-AB31-A9355CBC01FC\"\n    },\n    \"userName\": \"carlos.clapper\",\n    \"name\": {\n        \"familyName\": \"Clapper\",\n        \"givenName\": \"Carlos\"\n    },\n    \"timezone\": \"America/Los_Angeles\",\n    \"active\": false,\n    \"emails\": [\n        {\n            \"value\": \"carlos.clapper@servicepattern.sb.office\",\n            \"primary\": true\n        }\n    ],\n    \"phoneNumbers\": [\n        {\n            \"type\": \"extension\",\n            \"value\": \"2025\"\n        }\n    ],\n    \"addresses\": [],\n    \"roles\": [\n        {\n            \"value\": \"System Administrator\"\n        },\n        {\n            \"value\": \"Agent\"\n        }\n    ],\n    \"groups\": [\n        {\n            \"value\": \"84FB1AD4-1B27-4CFA-A1E0-B8A972F3EFA7\",\n            \"display\": \"CSIM Support\"\n        }\n    ]\n}"}],"_postman_id":"a9d98283-3e93-4bff-886c-b19724c1a434"},{"name":"Delete User","id":"ae8ab602-b218-4dae-82a9-8170797583d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json OR application/scim+json"}],"url":"https://mytenant.cx.onecloud.com/configapi/v2/scim/users/:id","description":"<p>Deletes an existing user</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","scim","users",":id"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"005f9c76-2063-467c-94ef-636d96981c2b","description":{"content":"<p>The ID of the user to be deleted (e.g., 7D6A5564-2104-442F-82DA-D55B6D7CFAE9)</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[{"id":"dae741bb-9241-419d-8057-52d86035c483","name":"Delete User","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://yourcompany.brightpattern.com/configapi/v2/scim/users/7D6A5564-2104-442F-82DA-D55B6D7CFAE9"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Jetty(9.4.12.v20180830)"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"ae8ab602-b218-4dae-82a9-8170797583d8"},{"name":"Get User by userName","event":[{"listen":"test","script":{"id":"a7e98e3b-931b-4fb0-b023-6c44f01a04a7","exec":[""],"type":"text/javascript"}}],"id":"a0680517-5c7d-493c-b000-6b9099d6282a","protocolProfileBehavior":{"disableBodyPruning":true,"followOriginalHttpMethod":true,"disabledSystemHeaders":{"connection":true}},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://mytenant.cx.onecloud.com/configapi/v2/scim/users?filter=userName%20eq%20%22carlos.clapper%22","description":"<p>This method returns detailed configuration information about an existing user via the userName filter.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","scim","users"],"host":["mytenant.cx.onecloud.com"],"query":[{"key":"filter","value":"userName%20eq%20%22carlos.clapper%22"}],"variable":[]}},"response":[{"id":"3c3649d9-f24f-431b-8893-787400ab074d","name":"Get User by userName","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/scim/users?filter=userName eq \"carlos.clapper\"","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","scim","users"],"query":[{"key":"filter","value":"userName eq \"carlos.clapper\""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/scim+json"},{"key":"Content-Length","value":"861"},{"key":"Server","value":"Jetty(9.4.12.v20180830)"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"schemas\": [\r\n        \"urn:ietf:params:scim:api:messages:2.0:ListResponse\"\r\n    ],\r\n    \"totalResults\": 1,\r\n    \"Resources\": [\r\n        {\r\n            \"schemas\": [\r\n                \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n            ],\r\n            \"id\": \"1F148A86-BF13-4478-A102-F11A8B664FF8\",\r\n            \"meta\": {\r\n                \"resourceType\": \"USER\",\r\n                \"created\": \"06-03-2020T07:46:33\",\r\n                \"location\": \"http://yourcompany.cx.onecloud.com/configapi/v2/scim/users/1F148A86-BF13-4478-A102-F11A8B664FF8\"\r\n            },\r\n            \"userName\": \"carlos.clapper\",\r\n            \"name\": {\r\n                \"familyName\": \"Clapper\",\r\n                \"givenName\": \"Carlos\"\r\n            },\r\n            \"active\": true,\r\n            \"emails\": [\r\n                {\r\n                    \"value\": \"carlos.clapper@contactcenter.office\",\r\n                    \"primary\": true\r\n                }\r\n            ],\r\n            \"phoneNumbers\": [\r\n                {\r\n                    \"type\": \"extension\",\r\n                    \"value\": \"2025\"\r\n                }\r\n            ],\r\n            \"addresses\": [\r\n                {}\r\n            ],\r\n            \"roles\": [\r\n                \"Agent\"\r\n            ]\r\n        }\r\n    ]\r\n}\r\n"},{"id":"21e3772b-58a0-4a35-8966-d3f5c28d0ae1","name":"Get User by userName","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json OR application/scim+json","type":"text","disabled":true}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/scim/users?filter=userName%20eq%20%22carlos.clapper%22","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","scim","users"],"query":[{"key":"filter","value":"userName%20eq%20%22carlos.clapper%22"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.10"},{"key":"Date","value":"Tue, 15 Mar 2022 23:22:39 GMT"},{"key":"Content-Type","value":"application/scim+json"},{"key":"Content-Length","value":"806"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"schemas\": [\n        \"urn:ietf:params:scim:api:messages:2.0:ListResponse\"\n    ],\n    \"totalResults\": 1,\n    \"Resources\": [\n        {\n            \"schemas\": [\n                \"urn:ietf:params:scim:schemas:core:2.0:User\"\n            ],\n            \"id\": \"6BE15F09-BF39-4E20-AB31-A9355CBC01FC\",\n            \"meta\": {\n                \"resourceType\": \"USER\",\n                \"lastModified\": \"2022-03-15T09:41:34\",\n                \"location\": \"http://alexei-maintenance.pl.bugfocus.com/configapi/v2/scim/users/6BE15F09-BF39-4E20-AB31-A9355CBC01FC\"\n            },\n            \"userName\": \"carlos.clapper\",\n            \"name\": {\n                \"familyName\": \"Clapper\",\n                \"givenName\": \"Carlos\"\n            },\n            \"timezone\": \"America/Los_Angeles\",\n            \"active\": true,\n            \"emails\": [\n                {\n                    \"value\": \"carlos.clapper@servicepattern.sb.office\",\n                    \"primary\": true\n                }\n            ],\n            \"phoneNumbers\": [\n                {\n                    \"type\": \"extension\",\n                    \"value\": \"2025\"\n                }\n            ],\n            \"addresses\": [\n                {}\n            ],\n            \"roles\": [\n                {\n                    \"value\": \"System Administrator\"\n                },\n                {\n                    \"value\": \"Agent\"\n                }\n            ],\n            \"groups\": [\n                {\n                    \"value\": \"84FB1AD4-1B27-4CFA-A1E0-B8A972F3EFA7\",\n                    \"display\": \"CSIM Support\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"a0680517-5c7d-493c-b000-6b9099d6282a"}],"id":"f8f3540b-5b50-4ee1-b43e-81fb8f5a7d16","description":"<p>With the <em>https://mytenant.cx.onecloud.com/configapi/v2/scim/users</em> endpoint, you<br />can do the following:</p>\n<ul>\n<li>Create new users and define most of their attributes</li>\n<li>Get user information by ID or username</li>\n<li>Update user information including username</li>\n<li>Delete existing users</li>\n</ul>\n<p>Below is a description of user attributes that can be accessed via this API. All attributes are strings unless otherwise noted. All attributes are required unless otherwise noted. <strong>Note</strong>: If a certain SCIM field is not listed, it is not supported by BPCC.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>SCIM</strong></th>\n<th><strong>BPCC Mapping</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Read/Write</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>active</td>\n<td>Disabled</td>\n<td>No</td>\n<td>Read/write</td>\n<td>Note the inversion: <em>active = true</em> translates to <em>Disabled = false</em> and vice versa</td>\n</tr>\n<tr>\n<td>addresses/Country</td>\n<td>Country</td>\n<td>No</td>\n<td>Read/write</td>\n<td>See Notes for \"addresses/primary\"</td>\n</tr>\n<tr>\n<td>addresses/locality</td>\n<td>City</td>\n<td>No</td>\n<td>Read/write</td>\n<td>See Notes for \"addresses/primary\"</td>\n</tr>\n<tr>\n<td>addresses/primary</td>\n<td>See Notes</td>\n<td></td>\n<td></td>\n<td>SCIM allows for the specification of multiple physical addresses. If the array contains more than one address, BPCC will take the above attributes from the one that has the \"primary\" attribute set to \"true\". If none of the addresses have the \"primary\" attribute, BPCC will take the above attributes from the first address in the array.</td>\n</tr>\n<tr>\n<td>addresses/region</td>\n<td>State/Province</td>\n<td>No</td>\n<td>Read/write</td>\n<td>See Notes for \"addresses/primary\"</td>\n</tr>\n<tr>\n<td>emails/primary</td>\n<td>See Notes</td>\n<td></td>\n<td></td>\n<td>SCIM allows for the specification of multiple email addresses. If the array contains more than one email address, BPCC will take the one that has the \"primary\" attribute set to \"true\". If none of the addresses have the \"primary\" attribute, BPCC will take the first email address in the array.</td>\n</tr>\n<tr>\n<td>emails/value</td>\n<td>Email address</td>\n<td>Yes</td>\n<td>Read/write</td>\n<td>See Notes for \"email/primary\"</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>See \"userName\"</td>\n<td>No</td>\n<td>Read only</td>\n<td>This attribute is ignored in requests; it always sets an empty string in responses.</td>\n</tr>\n<tr>\n<td>id</td>\n<td>UUID of the user object in the Configuration Database</td>\n<td>No</td>\n<td>Read only</td>\n<td>Appears in responses only</td>\n</tr>\n<tr>\n<td>meta/location</td>\n<td>Equal to the \"Location\" header of a newly created resource</td>\n<td>No</td>\n<td>Read only</td>\n<td><a href=\"https://tools.ietf.org/html/rfc7231#section-3.1.4.2\">https://tools.ietf.org/html/rfc7231#section-3.1.4.2</a></td>\n</tr>\n<tr>\n<td>meta/resourceType</td>\n<td>See Notes</td>\n<td>No</td>\n<td>Read only</td>\n<td>Appears in responses only; always set to \"USER\"</td>\n</tr>\n<tr>\n<td>name/familyName</td>\n<td>Last name</td>\n<td>No</td>\n<td>Read/write</td>\n<td>Must be specified in the <strong>Create User</strong> method</td>\n</tr>\n<tr>\n<td>name/givenName</td>\n<td>First name</td>\n<td>No</td>\n<td>Read/write</td>\n<td>Must be specified in the <strong>Create User</strong> method</td>\n</tr>\n<tr>\n<td>nickName</td>\n<td>Chat nickname</td>\n<td>No</td>\n<td>Read/write</td>\n<td></td>\n</tr>\n<tr>\n<td>password</td>\n<td>Password</td>\n<td>No</td>\n<td>Write only</td>\n<td>Setting a password for a newly created user is optional. Empty passwords can be used, for example, if your contact center users log in via single sign-on (SSO). If the password is not specified, it will be autogenerated. If the password is specified, it must meet all of the password complexity requriements defined by your service provider. The password will not be returned in any SCIM responses.</td>\n</tr>\n<tr>\n<td>phoneNumbers/type</td>\n<td>See Notes</td>\n<td></td>\n<td></td>\n<td>- When set to \"extension\", the \"phoneNumbers/value\" attribute maps to \"Phone extension\"; if the specified number is assigned to another user, the <strong>Create/Update</strong> request will return an error.  <br />  <br />- When set to \"default\", the \"phoneNumbers/value\" attribute maps to \"Default hardphone number\".  <br />  <br />- When set to \"work\", the \"phoneNumbers/value\" attribute maps to \"Work phone\".  <br />  <br />- When set to \"mobile\", the \"phoneNumbers/value\" attribute maps to \"Mobile phone\".  <br />  <br />- All other possible types are ignored.</td>\n</tr>\n<tr>\n<td>phoneNumbers/value</td>\n<td>See Notes for “phoneNumbers/type”</td>\n<td>No</td>\n<td>Read/write</td>\n<td></td>\n</tr>\n<tr>\n<td>photos/type</td>\n<td>See Notes for “photo/value”</td>\n<td></td>\n<td></td>\n<td>The following attributes are supported when invoking the “Photo” attribute:  <br />  <br />- photo  <br />- thumbnail  <br />  <br />SCIM allows for the specification of multiple photos. If the array contains more than one photo, BPCC will take the one that has the \"primary\" attribute set to \"true\". In case none of the photos has the \"primary\" attribute set to \"true\", BPCC will take the first photo in the array.</td>\n</tr>\n<tr>\n<td>photos/value</td>\n<td>Photo</td>\n<td>No</td>\n<td>Write only</td>\n<td>In SCIM a photo value is a URI. SCIM does not provide any special guidelines for the photo extraction process. On the BPCC side we will follow these guidelines:  <br />  <br />- If the photo array has a value in the Create/Update request, BPCC will immediately attempt to extract the photo from the URI and store it locally. If the attempt fails for any reason, BPCC will respond with an error code (i.e., 400 or 404, depending on whether it is a bad URL or image is not found).  <br />  <br />- For dealing with multiple values in the photo array, see Notes for “photo/type”</td>\n</tr>\n<tr>\n<td>roles</td>\n<td>Roles</td>\n<td>No</td>\n<td>Read/write</td>\n<td>An array with the names of roles defined in the BPCC configuration. The specification of a non-existent role will return a 404 error \"Role not found\"</td>\n</tr>\n<tr>\n<td>schemas</td>\n<td>See Notes</td>\n<td>Yes</td>\n<td>N/A</td>\n<td>set to: [\"urn:ietf:params:scim:schemas:core:2.0:User\"]</td>\n</tr>\n<tr>\n<td>timezone</td>\n<td>Time zone</td>\n<td>No</td>\n<td>Read/write</td>\n<td>Both SCIM and BPCC use the IANA (Olson) time zones, so no conversion is required</td>\n</tr>\n<tr>\n<td>title</td>\n<td>Title</td>\n<td>No</td>\n<td>Read/write</td>\n<td></td>\n</tr>\n<tr>\n<td>userName</td>\n<td>Username</td>\n<td>Yes</td>\n<td>Read/write</td>\n<td>Must be specified in the <strong>Create User</strong> method; it can be changed via the <strong>Update User</strong> method</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"53f7d0bc-17a0-4829-9b7a-c33f79c9fe56","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a3583d37-469c-4bcd-9274-44424088e7a4","type":"text/javascript","exec":[""]}}],"_postman_id":"f8f3540b-5b50-4ee1-b43e-81fb8f5a7d16","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Phones","item":[{"name":"Get Directory","id":"ca9ea0dd-1a7d-4d90-a46f-caa6ff7af9af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mytenant.cx.onecloud.com/configapi/v2/phone/user","description":"<p>Returns list of users with thier extensions and assigned external (DID) numbers.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","phone","user"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"29cbc318-52df-46be-a604-a0970e728183","name":"Get Directory","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer XXXXXXXX","type":"text"}],"url":"https://mytenant.cx.onecloud.com/configapi/v2/phone/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Tue, 26 Feb 2019 00:16:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1072"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"extension\": \"1000\",\n        \"loginId\": \"user\",\n        \"firstName\": \"User\",\n        \"lastName\": \"Lastname\",\n        \"external\": \"16505555555\",\n        \"voiceMail\": true,\n        \"greeting\": false\n    },\n    {\n        \"extension\": \"1001\",\n        \"loginId\": \"navarro\",\n        \"firstName\": \"Jose\",\n        \"lastName\": \"Navarro\",\n        \"voiceMail\": false,\n        \"greeting\": false\n    },\n    {\n        \"extension\": \"1002\",\n        \"loginId\": \"wandabui\",\n        \"firstName\": \"Wanda\",\n        \"lastName\": \"Bui\",\n        \"voiceMail\": false,\n        \"greeting\": false\n    },\n    {\n        \"extension\": \"1004\",\n        \"loginId\": \"dale.turner\",\n        \"firstName\": \"Dale\",\n        \"lastName\": \"Turner\",\n        \"voiceMail\": false,\n        \"greeting\": false\n    },\n    {\n        \"extension\": \"1005\",\n        \"loginId\": \"edna.partee\",\n        \"firstName\": \"Edna\",\n        \"lastName\": \"Partee\",\n        \"voiceMail\": false,\n        \"greeting\": false\n    },\n    {\n        \"extension\": \"1006\",\n        \"loginId\": \"eric.chen\",\n        \"firstName\": \"Eric\",\n        \"lastName\": \"Chen\",\n        \"voiceMail\": false,\n        \"greeting\": false\n    },\n    {\n        \"extension\": \"1007\",\n        \"loginId\": \"admin\",\n        \"firstName\": \"API\",\n        \"lastName\": \"User\",\n        \"voiceMail\": false,\n        \"greeting\": false\n    },\n    {\n        \"extension\": \"2004\",\n        \"loginId\": \"testuser004\",\n        \"firstName\": \"Test\",\n        \"lastName\": \"User004\",\n        \"voiceMail\": false,\n        \"greeting\": false\n    },\n    {\n        \"extension\": \"2005\",\n        \"loginId\": \"testuser005\",\n        \"firstName\": \"Test\",\n        \"lastName\": \"User005\",\n        \"voiceMail\": false,\n        \"greeting\": false\n    }\n]"}],"_postman_id":"ca9ea0dd-1a7d-4d90-a46f-caa6ff7af9af"},{"name":"Get Access Numbers","id":"9c3a48a4-3673-4a33-bace-c66914b8a42e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mytenant.cx.onecloud.com/configapi/v2/phone/ext","description":"<p>Returns a list of access numbers with current assignments.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","phone","ext"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"5b5b942b-88e6-425e-91e7-e8a27718f583","name":"Get Access Numbers","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer XXXXXXXX","type":"text"}],"url":"https://mytenant.cx.onecloud.com/configapi/v2/phone/ext"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Tue, 26 Feb 2019 00:07:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"91"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"number\": \"16505555555\",\n        \"media\": \"voice_text\",\n        \"type\": \"scenario\",\n        \"scenario\": \"Main Inbound\"\n    }\n]"}],"_postman_id":"9c3a48a4-3673-4a33-bace-c66914b8a42e"}],"id":"517b6a43-fcc5-45cb-97c1-90e912bb0b72","description":"<p>With the <a href=\"https://tenant.cx.onecloud.com/configapi/v2/phone\"><i>https://tenant.cx.onecloud.com/configapi/v2/phone</i></a> endpoint you can:</p>\n<ul>\n<li>Get a list of all contact center users with their extensions and DID numbers</li>\n<li>Get a list of all access numbers with thier current assignments (assigned users for DIDs and assigned scenarios for routing points)</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"459122ea-d369-45c7-9911-38954bc79e08"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"c9c91a1e-0628-4f0e-a908-dddc5c254a39"}}],"_postman_id":"517b6a43-fcc5-45cb-97c1-90e912bb0b72","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Regular Call Recordings","item":[{"name":"Get Regular Recording Audio File","id":"3b0b4be5-ffa3-4c63-82d1-d0db11e00ee1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mytenant.cx.onecloud.com/configapi/v2/recordings/audio?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A&stepid=C6A1ECF1-6C4E-4D13-B848-718273ECB0CA&=","description":"<p>Returns an audio file with voices of all participants for the specified call recording in the GSM format.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","recordings","audio"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p><a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-global-interaction-identifier\">Global interaction identifier</a>.</p>\n","type":"text/plain"},"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A"},{"description":{"content":"<p>Identifier of the step of the interaction for which the recording is to be retrieved. Can be obtained via scenario variable <em>$(item.interactionStepId)</em> or the <em>callee_interaction_step_id</em> field of the <em>call_detail</em> table of the Reporting Database.</p>\n","type":"text/plain"},"key":"stepid","value":"C6A1ECF1-6C4E-4D13-B848-718273ECB0CA"},{"key":"","value":""}],"variable":[]}},"response":[{"id":"63fbae16-b3a5-43e0-a925-094609b71d4c","name":"Get Audio File","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://:tenant_url/configapi/v2/recordings/audio?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A&stepid=C6A1ECF1-6C4E-4D13-B848-718273ECB0CA&=","protocol":"https","port":"tenant_url","path":["configapi","v2","recordings","audio"],"query":[{"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A","description":"Global interaction identifier"},{"key":"stepid","value":"C6A1ECF1-6C4E-4D13-B848-718273ECB0CA","description":"Identifier of the step of the interaction for which the recording is to be retrieved. Can be obtained via scenario variable *$(item.interactionStepId)* or the *caller_interaction_step_id* field of the *call_detail* table of the Reporting Database."},{"key":"","value":""}],"variable":[{"key":"tenant_url","value":"teanant.cx.onecloud.com","description":"Your contact center domain name, e.g., tenant.cx.onecloud.com"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"3b0b4be5-ffa3-4c63-82d1-d0db11e00ee1"},{"name":"Get Interaction Metadata","id":"625a76e1-1e81-477c-959e-61715657d7a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mytenant.cx.onecloud.com/configapi/v2/recordings/metadata?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A&stepid=C6A1ECF1-6C4E-4D13-B848-718273ECB0CA","description":"<p>Returns the following metadata for the specified interaction:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Data Item</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Start Time</td>\n<td>Interaction start time</td>\n</tr>\n<tr>\n<td>Agent loginId</td>\n<td>Username of the agent who last handled this call</td>\n</tr>\n<tr>\n<td>Agent First Name</td>\n<td>First name of the agent who last handled this call</td>\n</tr>\n<tr>\n<td>Agent Last Name</td>\n<td>Last name of the agent who last handled this call</td>\n</tr>\n<tr>\n<td>Customer phone</td>\n<td>Customer’s phone number (technically, the phone number of the party opposite to the above agent)</td>\n</tr>\n<tr>\n<td>Direction</td>\n<td>Call direction relative to the above agent, Inbound or Outbound</td>\n</tr>\n<tr>\n<td>Service</td>\n<td>Name of the service or campaign associated with this call</td>\n</tr>\n<tr>\n<td>Disposition</td>\n<td>Disposition selected by the agent for this interaction</td>\n</tr>\n<tr>\n<td>Notes</td>\n<td>Notes entered by the agent for this interaction</td>\n</tr>\n<tr>\n<td>Voice Signature</td>\n<td>Indicates whether the recording contains a vocie signature.</td>\n</tr>\n<tr>\n<td>Flagged</td>\n<td>Indicates whether the interaction was flagged by the agent.</td>\n</tr>\n<tr>\n<td>Talk Time</td>\n<td>Overall call duration.</td>\n</tr>\n<tr>\n<td>RecordingId</td>\n<td>Name of the file that contains the recording of this interaction.</td>\n</tr>\n<tr>\n<td>Review URL</td>\n<td>Link for direct access to the recording via the Contact Center Administrator application (login required).</td>\n</tr>\n<tr>\n<td>Screen Recording</td>\n<td>Indicates whether an agent screen recording is available for this interaction.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","recordings","metadata"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>[Global interaction identifier] (<a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-global-interaction-identifier\">https://support.onecloud.com/portal/en/kb/articles/cx-global-interaction-identifier</a>)</p>\n","type":"text/plain"},"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A"},{"description":{"content":"<p>Identifier of the step of the interaction for which metadata is being requested. Can be obtained via scenario variable <em>$(item.interactionStepId)</em> or the <em>callee_interaction_step_id</em> field of the <em>call_detail</em> table of the Reporting Database.</p>\n","type":"text/plain"},"key":"stepid","value":"C6A1ECF1-6C4E-4D13-B848-718273ECB0CA"}],"variable":[]}},"response":[{"id":"ea95b025-d2c6-4d43-a211-2b5667483c61","name":"Metadata of IVR-only Call","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/recordings/metadata?giid=9F63B008-4BA3-4022-90F7-A8B99ED1A3E8&stepid=89B5E090-F584-4AAA-973A-02C0524BF9CB","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","recordings","metadata"],"query":[{"key":"giid","value":"9F63B008-4BA3-4022-90F7-A8B99ED1A3E8","description":"Global interaction identifier"},{"key":"stepid","value":"89B5E090-F584-4AAA-973A-02C0524BF9CB","description":"Identifier of the interaction step to be retrieved. Can be obtained via scenario variable *$(item.interactionStepId)* or the *caller_interaction_step_id* field of the *call_detail* table of the Reporting Database."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Fri, 15 Mar 2019 19:41:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"583"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"Start Time\": \"02/27/2019 01:04:52 AM UTC +00:00\",\n    \"Agent loginId\": null,\n    \"Agent First Name\": null,\n    \"Agent Last Name\": null,\n    \"Customer phone\": \"Restricted\",\n    \"Direction\": \"INBOUND\",\n    \"Service\": \"Sales\",\n    \"Disposition\": \"No agent\",\n    \"Notes\": \"\",\n    \"Voice Signature\": \"0\",\n    \"Flagged\": \"0\",\n    \"Talk Time\": \"0:11\",\n    \"RecordingId\": \"20190226170452_Restricted_89B5E090F5844AAA973A02C0524BF9CB.wav\",\n    \"Global Interaction ID\": \"9F63B008-4BA3-4022-90F7-A8B99ED1A3E8\",\n    \"Review URL\": \"https://tenant.cx.onecloud.com/admin?giid=9F63B008-4BA3-4022-90F7-A8B99ED1A3E8&stepId=89B5E090-F584-4AAA-973A-02C0524BF9CB\",\n    \"Screen Recording\": \"0\"\n}"},{"id":"847fa860-cb25-42d7-8009-154565f4df33","name":"Metadata for a call with a live agent","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/recordings/metadata?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A&stepid=C6A1ECF1-6C4E-4D13-B848-718273ECB0CA","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","recordings","metadata"],"query":[{"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A","description":"Global interaction identifier"},{"key":"stepid","value":"C6A1ECF1-6C4E-4D13-B848-718273ECB0CA","description":"Identifier of the interaction step to be retrieved. Can be obtained via scenario variable *$(item.interactionStepId)* or the *caller_interaction_step_id* field of the *call_detail* table of the Reporting Database."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Fri, 15 Mar 2019 20:21:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"603"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"Start Time\": \"03/15/2019 07:49:31 PM UTC +00:00\",\n    \"Agent loginId\": \"navarro\",\n    \"Agent First Name\": \"Jose\",\n    \"Agent Last Name\": \"Navarro\",\n    \"Customer phone\": \"Restricted\",\n    \"Direction\": \"INBOUND\",\n    \"Service\": \"Support\",\n    \"Disposition\": \"Solved\",\n    \"Notes\": \"\",\n    \"Voice Signature\": \"0\",\n    \"Flagged\": \"0\",\n    \"Talk Time\": \"0:38\",\n    \"RecordingId\": \"20190315124931_Restricted_navarro_C6A1ECF16C4E4D13B848718273ECB0CA.wav\",\n    \"Global Interaction ID\": \"A44B62DE-75FB-47CD-A103-8F778CD1032A\",\n    \"Review URL\": \"https://teanant.cx.onecloud.com/admin?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A&stepId=C6A1ECF1-6C4E-4D13-B848-718273ECB0CA\",\n    \"Screen Recording\": \"0\"\n}"}],"_postman_id":"625a76e1-1e81-477c-959e-61715657d7a8"},{"name":"Erase Call Recordings","id":"57bebb9a-3887-4c4f-9fe3-105a62e59287","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://mytenant.cx.onecloud.com/configapi/v2/recordings/audio?giid=<GIID>&reason=<reason>","description":"<p>This method erases locally stored call recordings; the interaction’s <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-global-interaction-identifier\">Global Interaction Identifier (GIID)</a> must be included as a query parameter in the request URL</p>\n<h1 id=\"notes\">Notes</h1>\n<ul>\n<li><em>Reason</em> is an optional query parameter.</li>\n<li>This method applies to locally stored recordings only.</li>\n<li>If multiple recordings are associated with the <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-global-interaction-identifier\">specified GIID</a>, all of them will be erased.</li>\n<li>The erasure of recordings is:<ul>\n<li>Tracked via the <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-audit-log\">Audit Log</a></li>\n<li>Reflected in <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-interaction-re\">Interaction Records Search Results</a></li>\n<li>Reflected in <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-my-cases-interface\">case activity history</a></li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","recordings","audio"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>The interaction's <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-global-interaction-identifier\">Global Interaction Identifier</a></p>\n","type":"text/plain"},"key":"giid","value":"<GIID>"},{"description":{"content":"<p>(Optional) The reason for erasing the recording(s)</p>\n","type":"text/plain"},"key":"reason","value":"<reason>"}],"variable":[]}},"response":[{"id":"a168b472-e652-4654-a9ef-b36ef5419c23","name":"Erase Call Recordings","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/recordings/audio?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A&reason=credit_card_info","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","recordings","audio"],"query":[{"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A"},{"key":"reason","value":"credit_card_info"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"57bebb9a-3887-4c4f-9fe3-105a62e59287"}],"id":"b8a2cf52-6157-430f-8bfd-6519593efa96","description":"<p>These methods enable retrieval of regular voice recordings (i.e., recordings where voices of all participating parties are recorded in the same audio file) and the related <a href=\"https://support.onecloud.com/portal/en/kb/articles/oneclo-28-2-2024\">call metadata</a>. Both audio files and metadata can be retrieved immediately upon call termination. Parameters required for recording identificaiton can be obtained via scenario variables <em>$(item.globalInteractionId)</em> and <em>$(item.interactionStepId)</em>.<br />Regular call recordings are exported in GSM format.</p>\n","event":[{"listen":"prerequest","script":{"id":"8fc0f216-e6cf-44c9-974b-f55430e3236c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"45640944-0074-4b65-b880-ce0eae67a921","type":"text/javascript","exec":[""]}}],"_postman_id":"b8a2cf52-6157-430f-8bfd-6519593efa96","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Multichannel Call Recordings","item":[{"name":"Get Multichannel Recording Structure","id":"46ade385-f600-43e3-accf-3baac6b14842","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mytenant.cx.onecloud.com/configapi/v2/multi_channel_recordings?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A","description":"<p>This method is used to get information about the structure of a specific multichannel call recording. The call is identified by the Global Inteaciton Identifier (GIID). <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-global-interaction-identifier\">This article</a> describes the various ways the GIID of a call can be obtained.</p>\n<h2 id=\"response-attributes\">Response Attributes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>_id</td>\n<td>Internal use only.</td>\n</tr>\n<tr>\n<td>tenant_id</td>\n<td>Internal use only.</td>\n</tr>\n<tr>\n<td>global_interaction_id</td>\n<td>The GIID of this interaction. (The same GIID that was used to get this metadata.)</td>\n</tr>\n<tr>\n<td>interaction_id</td>\n<td>The GIID may refer to several related interactions (for example, a primary customer-agent call and a related consult call). Thus, in addition to the GIID, each interaction has a globally unique interaction_id. Each interaction has a list of <em>parties</em>.</td>\n</tr>\n<tr>\n<td>party_id</td>\n<td>Identifier of a party within the interaction identified by the <em>interaction_id</em>. Note that this identifier is used exclusively for retrieval of the party's audio via the <em>Get Party Audio File</em> method and is not intended to be used for any other purposes.</td>\n</tr>\n<tr>\n<td>party_type</td>\n<td>USER - the given party is a configured BPCC user (typically, an agent); CONTACT - the given party is a known customer; UNIDENTIFIED - the given party could not be identified as either a BPCC user or a known customer.</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>Party's first name if available.</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>Party's last name if available.</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>Party's phone number used for the given call if available.</td>\n</tr>\n<tr>\n<td>user_id</td>\n<td>Internal use only.</td>\n</tr>\n<tr>\n<td>recordings</td>\n<td>Because call recording can be stopped and started, each party can have multiple recording segments. The <em>recordings</em> array contains data about each recording segment, including its <em>duration</em> in seconds and <em>start_time</em> in UTC. Note that the ordinal numbers of recording segments start with 0.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","multi_channel_recordings"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Global interaction identifier</p>\n","type":"text/plain"},"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A"}],"variable":[]}},"response":[{"id":"2067dccb-4162-46a6-af1a-51fd20b29bff","name":"Multichannel recording description for a simple call","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://:tenant_url/configapi/v2/multi_channel_recordings?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A","protocol":"https","port":"tenant_url","path":["configapi","v2","multi_channel_recordings"],"query":[{"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A","description":"[Global interaction identifier](https://help.brightpattern.com/5.2:Reporting-reference-guide/GlobalInteractionIdentifier)."}],"variable":[{"key":"tenant_url","value":"sasha.brightpattern.com","description":"Your contact center domain name, e.g., *example.brightpattern.com*."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Fri, 15 Mar 2019 21:22:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"668"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": {\n        \"$oid\": \"5c8c01f6d04fd77ef2f96144\"\n    },\n    \"tenant_id\": \"2B699762-370C-4F76-A684-A85B5F93DF84\",\n    \"global_interaction_id\": \"A44B62DE-75FB-47CD-A103-8F778CD1032A\",\n    \"interaction_id\": \"FD64061C-0C45-4C73-879D-295A30F14646\",\n    \"parties\": [\n        {\n            \"party_id\": \"704384191\",\n            \"party_type\": \"UNIDENTIFIED\",\n            \"phone\": \"Restricted\",\n            \"recordings\": [\n                {\n                    \"duration\": \"26\",\n                    \"start_time\": {\n                        \"$date\": 1552679373768\n                    }\n                }\n            ]\n        },\n        {\n            \"first_name\": \"Jose\",\n            \"last_name\": \"Navarro\",\n            \"party_id\": \"704384193\",\n            \"party_type\": \"USER\",\n            \"phone\": \"1001\",\n            \"recordings\": [\n                {\n                    \"duration\": \"17\",\n                    \"start_time\": {\n                        \"$date\": 1552679383002\n                    }\n                }\n            ],\n            \"user_id\": \"64832C51-68C9-402B-BA4D-FFF7DB017F3F\"\n        }\n    ]\n}"}],"_postman_id":"46ade385-f600-43e3-accf-3baac6b14842"},{"name":"Get Multichannel Recording Segment Audio File","id":"49bba5e1-0d60-413e-b4b3-c94351c4d27f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mytenant.cx.onecloud.com/configapi/v2/multi_channel_recordings/audio?giid=B3178008-47BA-4CAB-B620-CB3C8864BCB6&iid=A274FC70-770E-45B0-AC77-491EF6CD8E05&party=98141181&recid=0","description":"<p>Gets the desired segment of a multichannel recording identified by the GIID, interaction ID, party ID, and optionally the ordinal number of the desired segement. The latter is essential only if according to your practices recording may be stopped and started again while a call is in progress.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","multi_channel_recordings","audio"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Global interaction identifier</p>\n","type":"text/plain"},"key":"giid","value":"B3178008-47BA-4CAB-B620-CB3C8864BCB6"},{"description":{"content":"<p>Identifier of the interaction for which a recording is being requested. (Returned by the Get Multi-channel Recording Metadata method.)</p>\n","type":"text/plain"},"key":"iid","value":"A274FC70-770E-45B0-AC77-491EF6CD8E05"},{"description":{"content":"<p>Identifier of the party whose audio recording is being requested. (Returned by the Get Multi-channel Recording Metadata method.)</p>\n","type":"text/plain"},"key":"party","value":"98141181"},{"description":{"content":"<p>Ordinal number (starting from 0) of the desired recording segment of the above party.   Optional; if not specified, the first segment in the array is returned.</p>\n","type":"text/plain"},"key":"recid","value":"0"}],"variable":[]}},"response":[],"_postman_id":"49bba5e1-0d60-413e-b4b3-c94351c4d27f"}],"id":"82ed4b37-fe60-4a7d-a652-53a81769f81a","description":"<p>These methods are used to extract individual segments of multichannel call recordings (i.e., recordings where voice of each paricipating party is recorded into a separate audio file).</p>\n<p>The <em>Get Multichannel Recording Structure</em> method should be used first to obtain the Interaction IDs, Party IDs, and optionally segments, to be used in the subsequent <em>Get Multichannel Recording Segment Audio File</em> requests.</p>\n<p>Segments of multichannel recordings are available for export immediately upon call termination. </p>\n<p>Segments of multichannel recordings are exported in uncompressed PCM format for maximun speech quality. Note that because of the large  size of multichannel PCM recording files, they are typically stored in the system for a limited amount of time. Check with your service provider about your limits, and consider overnight export of selected recordings for the previous working day.</p>\n","event":[{"listen":"prerequest","script":{"id":"1540d080-5b84-44c0-b20e-96c1cae68231","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0cee1497-0d59-4190-a62c-1c6416b2faaf","type":"text/javascript","exec":[""]}}],"_postman_id":"82ed4b37-fe60-4a7d-a652-53a81769f81a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"SMS/MMS Messaging","item":[{"name":"Send Message","id":"8633d3a7-4847-4122-b030-2728c055bdd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"To\": \"+5219843111460\",\r\n  \"Body\": \"Sending a test message for BPCC SMS-MMS API.\",\r\n  \"From\": \"16502505674\",\r\n  \"MediaURLs\": \r\n  [\r\n  \"https://www.leithcars.com/assets/shared/CustomHTMLFiles/Responsive/MRP/Ford/2017/Mustang/images/2017-Ford-Mustang-01.jpg\"\r\n  ]\r\n}"},"url":"https:/mytenant.cx.onecloud.com/clientweb/smsapi/v1/Messages","description":"<p>Sends an SMS or MMS message to the designated phone number.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>To</td>\n<td>Destination number. Mandatory. Must be in E.164 format.</td>\n</tr>\n<tr>\n<td>From</td>\n<td>Origination number. Mandatory. Must be specified in E.164 format. The number must be configured in BPCC as an access number of Text Out type. If you intend to process possible replies, this number must also be specified as <em>SMS/MMS access number</em> for the messaging scenario entry that will be used to direct such replies to a chat service. Alphanumeric Sender IDs are not currently supported.</td>\n</tr>\n<tr>\n<td>Body</td>\n<td>Text of the message to be sent. Mandatory unless <em>MediaUrls</em> parameter is defined (see below). In other words, mandatory for SMS (text-only) and optional for MMS messages. Messages longer than 160 characters will be segmented for transmission.</td>\n</tr>\n<tr>\n<td>MediaUrls</td>\n<td>An array of URLs for the media files to be sent in the MMS message. Optional. May contain up to 10 items.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"port":"","path":["mytenant.cx.onecloud.com","clientweb","smsapi","v1","Messages"],"host":["https"],"query":[],"variable":[]}},"response":[{"id":"c6a3a34b-9ceb-4004-b137-1bc26ec60885","name":"Send MMS Message","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"To\": \"+5219843111460\",\r\n  \"Body\": \"Sending a test MMS message for BPCC SMS-MMS API.\",\r\n  \"From\": \"16502505674\",\r\n  \"MediaUrls\": \r\n  [\r\n  \"https://www.leithcars.com/assets/shared/CustomHTMLFiles/Responsive/MRP/Ford/2017/Mustang/images/2017-Ford-Mustang-01.jpg\"\r\n  ]\r\n}"},"url":"https:/mytenant.cx.onecloud.com/clientweb/smsapi/v1/Messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Wed, 06 Feb 2019 08:24:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"533"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"account_sid\": \"2B699762-370C-4F76-A684-A85B5F93DF84\",\n    \"api_version\": \"1\",\n    \"body\": \"Sending a test message for CX SMS-MMS API.\",\n    \"num_segments\": \"1\",\n    \"num_media\": \"0\",\n    \"date_created\": \"Wed, 06 Feb 2019 08:24:08 +0000\",\n    \"date_sent\": null,\n    \"date_updated\": \"Wed, 06 Feb 2019 08:24:08 +0000\",\n    \"direction\": \"outbound-api\",\n    \"error_code\": null,\n    \"error_message\": null,\n    \"from\": \"16502505674\",\n    \"price\": null,\n    \"sid\": \"cbbb47e2-23be-452f-9b81-4a1f69300051\",\n    \"status\": \"queued\",\n    \"to\": \"16046496025\",\n    \"uri\": \"/clientweb/smsapi/v1/Messages/cbbb47e2-23be-452f-9b81-4a1f69300051\"\n}"},{"id":"87c00bd0-de2d-4665-956a-445bb291eabe","name":"Send Message with Only Mandatory Parameters","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"To\": \"16046496025\",\r\n  \"Body\": \"Sending a test message for BPCC SMS-MMS API.\",\r\n  \"From\": \"16502505674\",\r\n  \"MessagingService\": \r\n}"},"url":"https:/mytenant.cx.onecloud.com/clientweb/smsapi/v1/Messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Wed, 06 Feb 2019 08:24:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"533"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"account_sid\": \"2B699762-370C-4F76-A684-A85B5F93DF84\",\n    \"api_version\": \"1\",\n    \"body\": \"Sending a test message for CX SMS-MMS API.\",\n    \"num_segments\": \"1\",\n    \"num_media\": \"0\",\n    \"date_created\": \"Wed, 06 Feb 2019 08:24:08 +0000\",\n    \"date_sent\": null,\n    \"date_updated\": \"Wed, 06 Feb 2019 08:24:08 +0000\",\n    \"direction\": \"outbound-api\",\n    \"error_code\": null,\n    \"error_message\": null,\n    \"from\": \"16502505674\",\n    \"price\": null,\n    \"sid\": \"cbbb47e2-23be-452f-9b81-4a1f69300051\",\n    \"status\": \"queued\",\n    \"to\": \"16046496025\",\n    \"uri\": \"/clientweb/smsapi/v1/Messages/cbbb47e2-23be-452f-9b81-4a1f69300051\"\n}"},{"id":"c878a057-e055-44a2-8d60-ab8f657b5915","name":"Send Message","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"To\": \"+5219843111460\",\r\n  \"Body\": \"Test message 5\",\r\n  \"From\": \"16502505674\"\r\n}"},"url":"https://mytenant.cx.onecloud.com/clientweb/smsapi/v1/Messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Wed, 06 Mar 2019 20:22:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"506"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"account_sid\": \"2B699762-370C-4F76-A684-A85B5F93DF84\",\n    \"api_version\": \"1\",\n    \"body\": \"Test message 5\",\n    \"num_segments\": \"1\",\n    \"num_media\": \"0\",\n    \"date_created\": \"Wed, 06 Mar 2019 20:22:33 +0000\",\n    \"date_sent\": null,\n    \"date_updated\": \"Wed, 06 Mar 2019 20:22:33 +0000\",\n    \"direction\": \"outbound-api\",\n    \"error_code\": null,\n    \"error_message\": null,\n    \"from\": \"16502505674\",\n    \"price\": null,\n    \"sid\": \"23e4f784-2ccb-446c-9c84-12277d3686c0\",\n    \"status\": \"queued\",\n    \"to\": \"+5219843111460\",\n    \"uri\": \"/clientweb/smsapi/v1/Messages/23e4f784-2ccb-446c-9c84-12277d3686c0\"\n}"}],"_postman_id":"8633d3a7-4847-4122-b030-2728c055bdd1"},{"name":"Get Message","id":"29487bce-ccb0-4c88-b18e-a19d5b8e796a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mytenant.cx.onecloud.com/clientweb/smsapi/v1/Messages/:message-sid","description":"<p>Gets the current status of a previously sent SMS or MMS message. Depending on the time of the request, network conditions, etc., one of the following statuses may be returned: queued, sent, delivered, failed.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","smsapi","v1","Messages",":message-sid"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"e2116ad9-1e1c-4539-ba2f-6f646c92d8ed","description":{"content":"<p>Message identifier - taken from parameter \"sid\" of the response to a successful Send Message request.</p>\n","type":"text/plain"},"type":"any","value":"","key":"message-sid"}]}},"response":[{"id":"ca9e6983-5956-490c-b715-b495547c627f","name":"Get Status of Previously Sent Message","originalRequest":{"method":"GET","header":[],"url":{"raw":"https:/mytenant.cx.onecloud.com/clientweb/smsapi/v1/Messages/:message-sid","host":["https"],"port":"","path":["mytenant.cx.onecloud.com","clientweb","smsapi","v1","Messages",":message-sid"],"variable":[{"key":"message-sid","value":"cbbb47e2-23be-452f-9b81-4a1f69300051"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Wed, 06 Feb 2019 09:26:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"531"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"account_sid\": \"2B699762-370C-4F76-A684-A85B5F93DF84\",\n    \"api_version\": \"1\",\n    \"body\": \"Sending a test message for CX SMS-MMS API.\",\n    \"num_segments\": \"1\",\n    \"num_media\": \"0\",\n    \"date_created\": \"Wed, 06 Feb 2019 08:24:08 +0000\",\n    \"date_sent\": \"Wed, 06 Feb 2019 08:24:08 +0000\",\n    \"date_updated\": \"Wed, 06 Feb 2019 08:24:08 +0000\",\n    \"direction\": \"outbound-api\",\n    \"error_code\": null,\n    \"error_message\": null,\n    \"from\": \"16502505674\",\n    \"price\": null,\n    \"sid\": null,\n    \"status\": \"delivered\",\n    \"to\": \"16046496025\",\n    \"uri\": \"/clientweb/smsapi/v1/Messages/cbbb47e2-23be-452f-9b81-4a1f69300051\"\n}"}],"_postman_id":"29487bce-ccb0-4c88-b18e-a19d5b8e796a"}],"id":"c15e481e-9b12-4064-a6c5-1a610e95467e","description":"<p>The SMS/MMS API allows sending SMS/MMS messages via text-capable access numbers of the BP platform from an external application and tracking the delivery status of those messages.</p>\n<p>This document describes how to get started with developing with SMS and MMS on OneCloud CX, the methods used can be found at <a>Send Message</a>, with example requests and responses. You can alternatively load <a href=\"https://documenter.getpostman.com/view/7747764/2sA2rGvee6\">this API</a> into the <a href=\"https://www.getpostman.com/\">Postman API Development Environment</a> to interact with the API with your own access tokens.</p>\n<p>Note the following:</p>\n<p>The user account used for authentication of the SMS/MMS API requests must have privilege <em>Use SMS/MMS API</em>.</p>\n<p>A 200 OK response to a Send Message request will always show the message status as \"queued\". Actual status of message delivery can be verified using the Get Message method with a slight delay</p>\n<p>Note that in the current version, the only records created in BPCC for the SMS messages sent via this API will be records in the <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-current-usage-reports\">Carrier Usage reports</a>.</p>\n<p>Possible replies to the messages sent via the API can be directed to a chat service associated with the access number used as the sender ID (field <em>From:</em>) in the Send Message request. If it is important that you receive and process possible replies, consider sending your SMS messages within the service hours and stop sending them well in advance of service closure.</p>\n<p>If an SMS reply still comes outside of the service hours, you can configure your scenario to:</p>\n<ul>\n<li>Using the <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-send-message\">Send Message+</a> scenario block to send an automatic reply advising the customer of the service hours.</li>\n</ul>\n<p>Copy the content of the message to an <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-email\">Email</a> scenario block and send this email to someone who can follow up the next day.</p>\n<p>These methods enable sending of SMS and MMS messages and checking the delivery status. The response parameters are explained below.</p>\n<h2 id=\"response-parameters\">Response parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>tenant_id</td>\n<td>Unique identifier of your contact center in BPCC configuraiton.</td>\n</tr>\n<tr>\n<td>api_version</td>\n<td>API version.</td>\n</tr>\n<tr>\n<td>body</td>\n<td>Text of the message.</td>\n</tr>\n<tr>\n<td>num_segments</td>\n<td>Number of segments in the transmitted message. Messages exceeding 160 characters are transmitted in multiple segements. In the current verison of API this parameters is always set to 1.</td>\n</tr>\n<tr>\n<td>num_media</td>\n<td>Number of media files in the MMS message.</td>\n</tr>\n<tr>\n<td>date_created</td>\n<td>Timestamp of the original Send Message request.</td>\n</tr>\n<tr>\n<td>date_sent</td>\n<td>Timestamp of message transmission. Set to \"null\" in responses to Send Message requests. Set to actual time when the message was sent in responses to Get Message requests.</td>\n</tr>\n<tr>\n<td>date_updated</td>\n<td>Reserved.</td>\n</tr>\n<tr>\n<td>direction</td>\n<td>Always set to <em>outboound-api</em>.</td>\n</tr>\n<tr>\n<td>error_code</td>\n<td>Error code.</td>\n</tr>\n<tr>\n<td>error_message</td>\n<td>Error message.</td>\n</tr>\n<tr>\n<td>from</td>\n<td>Origination number.</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Reserved. In the current version of the API always set to <em>null</em>.</td>\n</tr>\n<tr>\n<td>sid</td>\n<td>Unique identifier of the message. Retured in response to a Send Message request and can be used in Get Message to check the delivery status of the message.</td>\n</tr>\n<tr>\n<td>status</td>\n<td>Status of message delivery. Possible values: <em>queued</em> (message queued to be sent), <em>sent</em> (message sent to SMS/MMS service provider but delivery not confirmed), <em>delivered</em> (message confirmed by SMS service provider to be delivered; currently not available for MMS), <em>failed</em> (message could not be sent; typically more details will be provided in <em>error_message</em>). Note that a 200 OK response to a Send Message request will always have status set to <em>queued</em>. Actual status of message delivery can be verified using the Get Message method with a slight delay.</td>\n</tr>\n<tr>\n<td>to</td>\n<td>Destination nubmer.</td>\n</tr>\n<tr>\n<td>uri</td>\n<td>Reserved.</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"0b9c904d-0b1e-4325-be23-33df1082885a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ce3c7754-ab2a-4dd8-811c-4165c4022e97","type":"text/javascript","exec":[""]}}],"_postman_id":"c15e481e-9b12-4064-a6c5-1a610e95467e","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Real-Time Statistics","item":[{"name":"Create Subscription","id":"f5e38509-56e4-4dea-83fb-1a88a2c3696b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Cookie","value":"X-STATSAPI-TOKEN=61XXXXX2-XEX5-4XBX-81C3-14CXXXXXX721; X-STATSAPI-TENANT=tenant_URL; X-STATSAPI-LOGIN=user.name","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"<app id>\": {\r\n        \"stats_totals\": [\"statistic name\" ], //array of statistics\r\n        \"service_grids\": [//array of service grid definitions \r\n            {\r\n                \"id\": \"<grid Id>\",\r\n                \"columns\": [//array of stats for columns\r\n                    {\r\n                        \"id\": \"<column id>\",\r\n                        \"stat_name\": \"<statistic protocol name>\"\r\n                    }\r\n                ], \r\n                \"order_by\": \"<column id>\",\r\n                \"order_dir\": \"ASC|DESC\",\r\n                \"limit\": \"<count of top records>\",\r\n                \"filter_by\": \"<column id>\",\r\n                \"filter_value\": \"<value>\",\r\n                \"filter_operation\": \"EQ|NE|LT|GT|LE|GE\"\r\n            }\r\n        ],\r\n        \"agent_grids\": [ //array of agent grid definitions  \r\n            {\r\n                \"id\": \"<grid Id>\",\r\n                \"columns\": [//array of stats for columns\r\n                    {\r\n                        \"id\": \"<column id>\",\r\n                        \"stat_name\": \"<statistic protocol name>\", \r\n                        \"dispositions\": [\"<(optional)list of dispositions>\"]\r\n                    }\r\n                ], \r\n                \"order_by\": \"<column id>\",\r\n                \"order_dir\": \"ASC|DESC\",\r\n                \"limit\": \"<count of top records>\",\r\n                \"filter_by\": \"<column id>\",\r\n                \"filter_value\": \"<value>\",\r\n                \"filter_operation\": \"EQ|NE|LT|GT|LE|GE\"\r\n            }\r\n        ],\r\n        \"chat_messages\": {//top of internal chat messages  \r\n        \"filter\": \"<filter by message content>\",\r\n        \"limit\": \"<count of top records>\"\r\n        }\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mytenant.cx.onecloud.com/statsapi/subscription","description":"<p>This method creates a subscription for a specific set of metrics. Each client can have only one active subscription.</p>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK subscription was created</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td>409</td>\n<td>Limit of active subscriptions exceeded for tenant</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["statsapi","subscription"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"b59d7b0d-7c93-4d9e-b65c-c28146ea6077","name":"Create Subscription","originalRequest":{"method":"POST","header":[{"key":"Cookie","value":"X-STATSAPI-TOKEN=61XXXXX2-XEX5-4XBX-81C3-14CXXXXXX721; X-STATSAPI-TENANT=yourcompany.brightpattern.com; X-STATSAPI-LOGIN=stats.user","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"1\": {\r\n        \"agent_grids\": [\r\n            {\r\n                \"id\": \"1\",\r\n                \"team_ids\": [\r\n                    \"F4ED90FA-5A49-4D76-9487-4E41B24CA45F\"\r\n                ],\r\n                \"limit\": 1000,\r\n                \"columns\": [\r\n                    {\r\n                        \"id\": \"1\",\r\n                        \"statName\": \"first_last_name\"\r\n                    },\r\n                    {\r\n                        \"id\": \"2\",\r\n                        \"statName\": \"extension\"\r\n                    },\r\n                    {\r\n                        \"id\": \"3\",\r\n                        \"statName\": \"acd_next_state\"\r\n                    },\r\n                    {\r\n                        \"id\": \"4\",\r\n                        \"statName\": \"login_time\"\r\n                    },\r\n                    {\r\n                        \"id\": 5,\r\n                        \"statName\": \"acd_state\"\r\n                    }\r\n                ],\r\n                \"order\": [\r\n                    {\r\n                        \"by\": \"1\",\r\n                        \"dir\": \"DESC\"\r\n                    }\r\n                ],\r\n                \"service_ids\": [],\r\n                \"my_subteam_only\": false,\r\n                \"logged_in_agents_only\": false\r\n            }\r\n        ]\r\n    },\r\n    \"2\": {\r\n        \"stats_totals\": [\r\n            \"in_calls_waiting\"\r\n        ],\r\n        \"stats_totals_service_ids\": [\r\n            \"E66F7A0C-E464-4656-B4AA-026F53A3D403\",\r\n            \"A2B6564D-C7FE-4086-A6CE-AE91C7A3A3D5\",\r\n            \"DF46C874-112D-499A-8744-407E06E4BF71\",\r\n            \"8E9042CF-C414-4749-910D-CC115498EFD2\"\r\n        ],\r\n        \"stats_totals_dispositions\": []\r\n    },\r\n    \"3\": {\r\n        \"stats_totals\": [\r\n            \"in_average_speed_of_answer\"\r\n        ],\r\n        \"stats_totals_service_ids\": [\r\n            \"E66F7A0C-E464-4656-B4AA-026F53A3D403\",\r\n            \"A2B6564D-C7FE-4086-A6CE-AE91C7A3A3D5\",\r\n            \"DF46C874-112D-499A-8744-407E06E4BF71\",\r\n            \"8E9042CF-C414-4749-910D-CC115498EFD2\"\r\n        ],\r\n        \"stats_totals_dispositions\": []\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mytenant.cx.onecloud.com/statsapi/subscription"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"f5e38509-56e4-4dea-83fb-1a88a2c3696b"},{"name":"Get Subscription Data","id":"56dc64c4-7eab-429d-bc52-10023187968b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Cookie","value":"X-STATSAPI-TOKEN=61XXXXX2-XEX5-4XBX-81C3-14CXXXXXX721; X-STATSAPI-TENANT=tenant_URL; X-STATSAPI-LOGIN=user.name","type":"text"}],"url":"https://mytenant.cx.onecloud.com/statsapi/subscription/data","description":"<p>This method gets the statistics data of an active subscription.</p>\n<p>Note:</p>\n<ul>\n<li>Your user must be the supervisor of a team in order to retrieve agent_grid information.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n</tr>\n<tr>\n<td>204</td>\n<td>No content (data is not ready yet)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Bad request (there is no active subscription)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["statsapi","subscription","data"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"d65b08f8-13c4-4de1-9d85-a09a190f4d89","name":"Get Subscription Data","originalRequest":{"method":"GET","header":[{"key":"Cookie","value":"X-STATSAPI-TOKEN=61XXXXX2-XEX5-4XBX-81C3-14CXXXXXX721; X-STATSAPI-TENANT=yourcompany.brightpattern.com; X-STATSAPI-LOGIN=stats.user","type":"text"}],"url":"https://mytenant.cx.onecloud.com/statsapi/subscription/data"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"example.subscription.string\": {\r\n        \"agent_grids\": [\r\n            {\r\n                \"id\": \"example.agent.grid\",\r\n                \"values\": [\r\n                    {\r\n                        \"1\": \"christy.borden\",\r\n                        \"2\": \"0\"\r\n                    },\r\n                    {\r\n                        \"1\": \"marky.mark\",\r\n                        \"2\": \"0\"\r\n                    },\r\n                    {\r\n                        \"1\": \"allen.fawcett\",\r\n                        \"2\": \"0\"\r\n                    },\r\n                    {\r\n                        \"1\": \"jeffery.lozada\",\r\n                        \"2\": \"0\"\r\n                    },\r\n                    {\r\n                        \"1\": \"liza.smith\",\r\n                        \"2\": \"1\"\r\n                    }\r\n                ]\r\n            }\r\n        ],\r\n        \"service_grids\": [\r\n            {\r\n                \"id\": \"example.service.grid\",\r\n                \"values\": [\r\n                    {\r\n                        \"1\": \"Chat Service\",\r\n                        \"2\": \"2\"\r\n                    },\r\n                    {\r\n                        \"1\": \"1\",\r\n                        \"2\": \"1\"\r\n                    },\r\n                    {\r\n                        \"1\": \"Outbound Voice\",\r\n                        \"2\": \"2\"\r\n                    },\r\n                    {\r\n                        \"1\": \"3\",\r\n                        \"2\": \"1\"\r\n                    },\r\n                    {\r\n                        \"1\": \"Best Chat Service\",\r\n                        \"2\": \"1\"\r\n                    },\r\n                    {\r\n                        \"1\": \"Voice Inbound\",\r\n                        \"2\": \"2\"\r\n                    },\r\n                    {\r\n                        \"1\": \"Support for CSIM\",\r\n                        \"2\": \"2\"\r\n                    },\r\n                    {\r\n                        \"1\": \"Email Svc\",\r\n                        \"2\": \"2\"\r\n                    },\r\n                    {\r\n                        \"1\": \"Nice Inbound\",\r\n                        \"2\": \"1\"\r\n                    },\r\n                    {\r\n                        \"1\": \"2\",\r\n                        \"2\": \"1\"\r\n                    }\r\n                ]\r\n            }\r\n        ],\r\n        \"stats_totals\": {\r\n            \"agents_logged\": \"2\",\r\n            \"in_average_speed_of_answer\": \"\",\r\n            \"agents_ready\": \"2\"\r\n        },\r\n        \"chat_messages\": []\r\n    }\r\n}"}],"_postman_id":"56dc64c4-7eab-429d-bc52-10023187968b"},{"name":"Delete Subscription","id":"81af4a8b-454a-43f3-b7ec-3b8147d87125","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Cookie","value":"X-STATSAPI-TOKEN=61XXXXX2-XEX5-4XBX-81C3-14CXXXXXX721; X-STATSAPI-TENANT=tenant_URL; X-STATSAPI-LOGIN=user.name","type":"text"}],"url":"https://mytenant.cx.onecloud.com/statsapi/subscription/active","description":"<p>This method deletes the active subscription, and clears the data cache on the server.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["statsapi","subscription","active"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"000dec5b-6f48-4050-9270-1a1aa5be0940","name":"Delete Subscription","originalRequest":{"method":"DELETE","header":[{"key":"Cookie","value":"X-STATSAPI-TOKEN=61XXXXX2-XEX5-4XBX-81C3-14CXXXXXX721; X-STATSAPI-TENANT=yourcompany.brightpattern.com; X-STATSAPI-LOGIN=stats.user","type":"text"}],"url":"https://mytenant.cx.onecloud.com/subscription/active"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"81af4a8b-454a-43f3-b7ec-3b8147d87125"},{"name":"Get Dispositions","id":"099f7e86-1d2b-4590-a7ea-f687a1fbcc3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Cookie","value":"X-STATSAPI-TOKEN=61XXXXX2-XEX5-4XBX-81C3-14CXXXXXX721; X-STATSAPI-TENANT=tenant_URL; X-STATSAPI-LOGIN=user.name","type":"text"}],"url":"https://mytenant.cx.onecloud.com/statsapi/cfg/dispositions","description":"<p>This method gets the disposition names for all supervised services.</p>\n<h2 id=\"optional-url-parameters\">Optional URL Parameters</h2>\n<ul>\n<li>agentCanSelect = 1</li>\n<li>inbound = 1 </li>\n<li>outbound = 1</li>\n<li>preview = 1</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["statsapi","cfg","dispositions"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"4007fdb8-b3c3-40eb-8efc-926b24ca89d5","name":"Get Dispositions","originalRequest":{"method":"GET","header":[{"key":"Cookie","value":"X-STATSAPI-TOKEN=61XXXXX2-XEX5-4XBX-81C3-14CXXXXXX721; X-STATSAPI-TENANT=yourcompany.brightpattern.com; X-STATSAPI-LOGIN=stats.user","type":"text"}],"url":{"raw":"https://mytenant.cx.onecloud.com/statsapi/cfg/dispositions?inbound=1","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["statsapi","cfg","dispositions"],"query":[{"key":"inbound","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"[\r\n    \"Agent failure\",\r\n    \"Disposition not found\",\r\n    \"Dropped while talking\",\r\n    \"Offer rejected\",\r\n    \"Phone number out of service\",\r\n    \"Product sold\",\r\n    \"Silence\",\r\n    \"System failure\",\r\n    \"Wrong number\"\r\n]"}],"_postman_id":"099f7e86-1d2b-4590-a7ea-f687a1fbcc3f"},{"name":"Get Available Agents","id":"955d653c-f860-41e1-b8ac-b051ea3689f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mytenant.cx.onecloud.com/statsapi/info/check_available_agents?service={service-name}","description":"<p>This method gets either the \"true\" or the \"false\" value for agents ready to handle a specific service.</p>\n<p>Note:</p>\n<ul>\n<li>No authentication or subscription is needed for this method.</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n</tr>\n<tr>\n<td>True</td>\n<td>\"Number of ready agents\" &gt; 0 for the specific service (i.e., at least one agent is available)</td>\n</tr>\n<tr>\n<td>False</td>\n<td>\"Number of ready agents\" is 0 for the specific service (i.e., no agent is available)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["statsapi","info","check_available_agents"],"host":["mytenant.cx.onecloud.com"],"query":[{"key":"service","value":"{service-name}"}],"variable":[]}},"response":[{"id":"da455fb6-c4fe-4e48-a575-4c07af9f6461","name":"Get Available Agents","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://mytenant.cx.onecloud.com/statsapi/info/check_available_agents?service=inbound","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["statsapi","info","check_available_agents"],"query":[{"key":"service","value":"inbound"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"availability\": true\r\n}"}],"_postman_id":"955d653c-f860-41e1-b8ac-b051ea3689f7"},{"name":"Get Teams","id":"6ba0124c-1239-4339-9844-fdacf568b24e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"url":"https://mytenant.cx.onecloud.com/statsapi/cfg/teams","description":"<p>This method returns the names and internal object IDs of teams configured for the given tenant.</p>\n<p>Note that in order to get the above information about a specific team, the account used for <a href=\"https://help.brightpattern.com/5.8:Contact-center-administrator-guide/UsersandTeams/Users#API_secret\">API authentication</a> must be assigned as a supervisor to that team.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["statsapi","cfg","teams"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"a61a9144-e6ec-48b6-b9db-f75e99c66713","name":"Get Teams","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer XXXX7680DF72CE559B874A8AXXXX291451716F18XXXXC57EE5C88D16EC5DXXXX","type":"text"}],"url":"https://mytenant.cx.onecloud.com/statsapi/cfg/teams"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"[\n    {\n        \"id\": \"F4ED90FA-5A49-4D76-9487-4E41B24CA45F\",\n        \"name\": \"Customer Service\"\n    }\n]"}],"_postman_id":"6ba0124c-1239-4339-9844-fdacf568b24e"}],"id":"a0598261-6dc5-4630-b55e-fbe0f00c7b8a","description":"<p>With the OneCloud CX Real-Time Statistics API, you can currently do the following:</p>\n<ul>\n<li>Create and manage a real-time statistics subcription</li>\n<li>Retrieve dispositions</li>\n<li>See if agents are available for a specified service</li>\n</ul>\n<p>Notes:</p>\n<ul>\n<li>Users attempting to use this API must have the <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-privileges\">privileges</a> \"Access Realtime Stats API\", \"View real-time agent metrics\", and \"View real-time service metrics\" enabled, as well as be the assigned supervisor for the corresponding <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-teams\">teams</a>.</li>\n</ul>\n<p>For a list of statistics to use, please see <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-list-of-realtime-statistics\">OneCloud CX Help Documentation</a>.</p>\n<p>The OneCloud CX Real-Time Statistics API methods are as follows.</p>\n<p>Note:</p>\n<ul>\n<li>For a list of statistics to use, please see <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-list-of-real-time-metrics\">OneCloud CX Help Documentation</a>.</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"b0474593-1e04-40e9-a148-57acc60724e2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3cc2ad67-8234-4007-8ac8-b451c11dc615","type":"text/javascript","exec":[""]}}],"_postman_id":"a0598261-6dc5-4630-b55e-fbe0f00c7b8a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Mobile/Web Messaging","item":[{"name":"Check Availability","id":"25603324-4c5b-4d06-bb50-39b778343a00","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""},{"key":"User-Agent","type":"text","value":"MobileClient"}],"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/availability?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method returns the availability status of the configured hours of operation of the associated <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-messaging-chat-scenario-entries\">Messaging/Chat scenario entry</a>. Optionally, <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-metrics\">Estimated Wait time (EWT)</a> (in seconds) may be returned but could be missing if the server does not have enough data to estimate the EWT value. Note that the API does not check if there are any agents actually logged in.</p>\n<h1 id=\"status-meanings\">Status Meanings</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status Name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>available</td>\n<td>The requested service is available.</td>\n</tr>\n<tr>\n<td>notAvailable</td>\n<td>The office providing the requested service is currently closed.</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success: Returns the scenario entry’s current status / EWT (optionally)</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td>503</td>\n<td>Service Unavailable</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","availability"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[]}},"response":[{"id":"c4b66088-5143-404e-b4f0-aa16fef6b5c2","name":"Check Availability Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/availability"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"chat\": \"available\",\n    \"ewt\": \"3\"\n}"}],"_postman_id":"25603324-4c5b-4d06-bb50-39b778343a00"},{"name":"Expected Parameters","id":"6c8d6f41-dcdf-4205-8985-5902843c408d","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\"","description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/parameters?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method returns an array of expected parameters. The parameters are optional. They may be used, for example, to look for the most qualified agents to handle the requested chat sessions and/or to display user information for the agents. These parameters are initially specified for the <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-messaging-chat-scenario-entries\">Messaging/Chat scenario entry</a> through which this mobile application will communicate with the contact center.</p>\n<p>Currently, the following parameter types are supported:</p>\n<ul>\n<li>PHONE</li>\n<li>TEXT</li>\n<li>EMAIL</li>\n<li>FIRST_NAME</li>\n<li>LAST_NAME</li>\n<li>ACCOUNT</li>\n<li>COMPANY</li>\n</ul>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>application/json with names and types of parameters that may be expected from the client application</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","parameters"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[]}},"response":[{"id":"c1cd041b-4402-4629-a0f7-2b36567b7ae4","name":"Expected Parameters Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/parameters?tenantUrl=mytenant.cx.onecloud.com","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","parameters"],"query":[{"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"parameters\":[\r\n        {\r\n            \"<name>\":\"<type>\"\r\n        },\r\n        \"...\"\r\n    ]\r\n}"}],"_postman_id":"6c8d6f41-dcdf-4205-8985-5902843c408d"},{"name":"Request Chat","id":"65edc33a-01f2-4da3-a84c-57343bc23116","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"POST","header":[{"description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""},{"key":"Content","value":"application/json","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"phone_number\":\"<phone number for callback, if necessary>\",\r\n    \"from\":\"<propagated into scenario variable $(item.from)>\",\r\n    \"parameters\":{\r\n        \"parameter_1\":\"value_1\",\r\n        \"...\",\r\n        \"parameter_n\":\"value_n\"\r\n    }\r\n}"},"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method initiates a chat session. It provides values of all or some of the expected parameters, and it may also contain the phone number of the mobile device. Depending on the <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-messaging-chat-scenario-entries\">scenario entry configuration</a>, a callback can be initiated automatically to the specified number as soon as the chat request is delivered to the agent.</p>\n<p><strong>Notes</strong>:</p>\n<ul>\n<li><p>The Request Chat method may return the ID and parameters of an existing chat session if there are any currently existing chat sessions associated with this specific client. For example, the client app created a chat session, which was then closed or crashed, then restarted before the session timed out on the server.</p>\n</li>\n<li><p>The <em>is_new_chat</em> response attribute is specified if the chat is a new session or existing session. The client application will handle these differently (e.g., if in an existing session the app may request session history and show the previous content.</p>\n</li>\n<li><p>If the associated mobile/web scenario entry is not configured for automatic callback, the agent can still use this number to call the mobile user manually, either upon the agent's own initiative or when asked to do this via a chat message from the mobile user.</p>\n</li>\n<li><p>The parameter <em>from</em> may be used to specify either the device owner’s name or phone number. It will be placed in the scenario variable <em>$(item.from)</em>.</p>\n</li>\n<li><p>Parameters returned in the <em>parameters</em> attribute are propagated into the scenario variable <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-scenario-variables\">$(item.externalChatData)</a>.</p>\n</li>\n<li><p>Optionally, <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-metrics\">Estimated Wait time (EWT)</a> (in seconds) may be returned but could be missing if the server does not have enough data to estimate the EWT value. This might be important for the clients with strict JSON serialization (i.e., the client app may fail deserializing the JSON if the attribute is missing).</p>\n</li>\n</ul>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Chat session properties (content type: application/json)</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td>503</td>\n<td>Service Unavailable</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","chats"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[]}},"response":[{"id":"6f4b680c-0d90-4dbd-b75b-8f167a1d185f","name":"Request Chat Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"phone_number\": \"16508888888\",\r\n    \"from\": \"51.18.205.152\",\r\n    \"parameters\": {\r\n        \"FIRST_NAME\": \"Aiden\",\r\n        \"LAST_NAME\": \"Bookbinder\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats?tenantUrl=mytenant.cx.onecloud.com","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","chats"],"query":[{"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"state\": \"ivr\",\n    \"ewt\": \"0\",\n    \"chat_id\": \"d6c1adc2-385b-42e5-9e0a-1883c2bc5f81\",\n    \"is_new_chat\": true,\n    \"phone_number\": \"16508888888\"\n}"}],"_postman_id":"65edc33a-01f2-4da3-a84c-57343bc23116"},{"name":"Mobile Notification Subscription","id":"fd134b31-8884-43d3-b800-045fc444882b","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true,"user-agent":true}},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<Unique app identifier>\", clientId=\"<Unique client ID>\" "},{"key":"User-Agent","type":"text","value":"MobileClient"}],"body":{"mode":"raw","raw":"// For Apple Push Notification service (APNs):\r\n{\r\n    \"ios_apns_device_token\": \"<iOS APNs device token>\",\r\n    \"ios_app_bundle_id\": \"<iOS app ID>\"\r\n}\r\n// For Apple Firebase:\r\n{\r\n    \"ios_firebase_device_token\": \"<Firebase token>\"\r\n}\r\n//For Android Firebase:\r\n{\r\n    \"android_firebase_device_token\": \"<Firebase token>\"\r\n}"},"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats/:chatId/notifications?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method is a client application request for either subscribing to or canceling mobile notifications for a chat session.</p>\n<h1 id=\"notes\">Notes</h1>\n<ul>\n<li><p>This method should be invoked <strong>after</strong> invoking the <strong>Request Chat</strong> method (i.e., the <em>chatId</em> value required for this method is returned in the Request Chat method).</p>\n</li>\n<li><p>Additionally, this method should be invoked when its device token is changed.</p>\n</li>\n<li><p>The client application may also opt to stop receiving mobile notifications by using this API method\nwith an empty JSON body: {}</p>\n</li>\n</ul>\n<h1 id=\"request-parameters\">Request Parameters</h1>\n<p>The mobile application will specify one of the following parameters, depending on the application’s\noperating system and used notification framework.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter Name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ios_apns_device_token</td>\n<td>The iOS application using native APNs</td>\n</tr>\n<tr>\n<td>ios_app_bundle_id</td>\n<td>For iOS devices using native APNs, this parameter is required and is used as the APNs topic</td>\n</tr>\n<tr>\n<td>ios_firebase_device_token</td>\n<td>The iOS application using Firebase notifications</td>\n</tr>\n<tr>\n<td>android_firebase_device_token</td>\n<td>The android application using Firebase notifications</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Names of configured services with current status</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td>406</td>\n<td>Not acceptable: Too many parameters/corresponding notifications are not configured for the Messaging/Chat entry</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","chats",":chatId","notifications"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[{"id":"c71a6743-2978-4228-903b-80995a9b763b","description":{"content":"<p>The current chat session ID. The value of this variable is returned in the body of a successful invocation of the \"Request Chat\" method.</p>\n","type":"text/plain"},"type":"any","value":"<chat ID>","key":"chatId"}]}},"response":[{"id":"6cb8f54e-dd55-4759-9725-75e9ecf0c1e2","name":"Mobile Notification Subscription","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\""},{"key":"User-Agent","type":"text","value":"MobileClient"}],"body":{"mode":"raw","raw":"{\r\n    \"ios_apns_device_token\": \"<iOS APNs device token>\",\r\n    \"ios_app_bundle_id\": \"<iOS app ID>\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats/:chatId/notifications?tenantUrl=mytenant.cx.onecloud.com","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","chats",":chatId","notifications"],"query":[{"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[{"key":"chatId","value":"f5f68c35-ffec-4dcb-8f7f-755b6395a6dc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"fd134b31-8884-43d3-b800-045fc444882b"},{"name":"Get Active Chat","id":"a7b5be65-2f53-470b-b991-cee58e336fa4","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats/active?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method returns the properties of an active chat session. Optionally, <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-metrics\">Estimated Wait time (EWT)</a> (in seconds) may be returned but could be missing if the server does not have enough data to estimate the EWT value.</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Chat session properties (content type: application/json)</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not found</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","chats","active"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[]}},"response":[{"id":"8ff738c3-e7e6-4dc0-8aa2-1c7b30b9cb6d","name":"Get Active Chat Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats/active?tenantUrl=mytenant.cx.onecloud.com","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","chats","active"],"query":[{"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}]}},"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"chat_id\":\"<chat ID>\",\r\n    \"state\":\"<queued|connected|ivr>\",\r\n    \"ewt\":\"<estimated wait time for a chat in state queued>\",\r\n    \"phone_number\":\"<phone number that will be used for callback>\"\r\n}"}],"_postman_id":"a7b5be65-2f53-470b-b991-cee58e336fa4"},{"name":"Send Events","id":"e552a9d0-e81c-4889-b573-4c16a4ee2bab","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\"","description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"events\":[\n        \"<array of new chat events from server>\"\n    ]\n}"},"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats/:chatId/events?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method sends events from the client to the server side.</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>Bad Request</td>\n</tr>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","chats",":chatId","events"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[{"id":"6c5de7bd-b218-4a1a-a6ff-47f31801922b","description":{"content":"<p>The current chat session ID. The value of this variable is returned in the body of a successful invocation of the \"Request Chat\" method.</p>\n","type":"text/plain"},"type":"any","value":"","key":"chatId"}]}},"response":[{"id":"75b2d226-8944-4ed0-aaee-1018e6c2da26","name":"Send Events Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\""},{"key":"User-Agent","type":"text","value":"MobileClient"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n “events”: [<array of chat events>\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats/:chatId/events?tenantUrl=mytenant.cx.onecloud.com","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","chats",":chatId","events"],"query":[{"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[{"key":"chatId","value":"f5f68c35-ffec-4dcb-8f7f-755b6395a6dc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e552a9d0-e81c-4889-b573-4c16a4ee2bab"},{"name":"Get Chat History","id":"2c2e48bc-80da-42e2-8ea9-a128ed10301d","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\"","description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats/:chatId/history?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method returns all client events and all server events for the current session. Multiple event objects can be returned; each event's <em>timestamp</em> attribute can be used to restore the correct message order.</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Array of chat events (content type: application/json)</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not found</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","chats",":chatId","history"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[{"id":"fa25faa1-bfa0-4c59-9987-4b7f263957bb","description":{"content":"<p>The current chat session ID. The value of this variable is returned in the body of a successful invocation of the \"Request Chat\" method.</p>\n","type":"text/plain"},"type":"any","value":"","key":"chatId"}]}},"response":[{"id":"d651d88f-a9c8-4b41-b47f-a1b020649f4a","name":"Get Chat History Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats/:chatId/history?tenantUrl=mytenant.cx.onecloud.com","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","chats",":chatId","history"],"query":[{"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[{"key":"chatId","value":"f5f68c35-ffec-4dcb-8f7f-755b6395a6dc"}]}},"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"events\":[\r\n        \"<array of chat events>\"\r\n    ]\r\n}"}],"_postman_id":"2c2e48bc-80da-42e2-8ea9-a128ed10301d"},{"name":"Get New Chat Events","id":"c5530c35-0519-4cd0-937c-563d8bd54fd6","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats/:chatId/events?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method returns new chat events for the current session. If there are no new events, the server can keep the request active during a timeout (i.e., for about 5–15 seconds). If the client sends another request to get new events while the previous request is kept active, the server will respond with error 400 (Bad request).</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Array of chat events (content type: application/json)</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Too many requests</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","chats",":chatId","events"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[{"id":"e9678a10-1795-4bcd-99a3-d4d16af81c8e","description":{"content":"<p>The current chat session ID. The value of this variable is returned in the body of a successful invocation of the \"Request Chat\" method.</p>\n","type":"text/plain"},"type":"any","value":"","key":"chatId"}]}},"response":[{"id":"3b754cd8-0899-415f-95d9-06c8e9b5c40a","name":"Get New Chat Events Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\""},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://yourcompany.brightpattern.com/clientweb/api/v2/chats/:chatId/events?tenantUrl=yourcompany.brightpattern.com","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["clientweb","api","v2","chats",":chatId","events"],"query":[{"key":"tenantUrl","value":"yourcompany.brightpattern.com"}],"variable":[{"key":"chatId","value":"f5f68c35-ffec-4dcb-8f7f-755b6395a6dc"}]}},"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"events\":[\r\n        \"<array of chat events>\"\r\n    ]\r\n}"}],"_postman_id":"c5530c35-0519-4cd0-937c-563d8bd54fd6"},{"name":"Upload File","id":"7f9b2474-1729-4a60-bb49-bc6d8ec97268","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"POST","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\"","description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","description":"<p>The file or text to be uploaded</p>\n","type":"file","src":"/C:/Users/Lenovo/Desktop/important_file.txt"}]},"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/files?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method uploads a file to the server. The maximum file size is 25 MB. The server will store up to 1000 files. Newly received files will replace the oldest files. This method can be used, for example, to send pictures from the client mobile application to the contact center agents.</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>File ID to be used in the chat_session_file message (content type: application/json)</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>Bad Request</td>\n</tr>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","files"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[]}},"response":[{"id":"328d716b-6349-4da6-88fa-d00e4ae500a0","name":"Upload File Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"},{"key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"File","type":"file","src":"/C:/Users/Lenovo/Desktop/important_file.txt"}]},"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/files?tenantUrl=mytenant.cx.onecloud.com","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","files"],"query":[{"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}]}},"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"file_id\":\"file ID to use in chat_session_file message\"\r\n}"}],"_postman_id":"7f9b2474-1729-4a60-bb49-bc6d8ec97268"},{"name":"Get File","id":"3685ba47-9a11-4568-8da3-b10b7f645ac4","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"GET","header":[{"description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""}],"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats/:chatId/files/:fileId","description":"<p>This method downloads a file from the server using the received file ID. See server event Chat Session File.</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>File content type</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not found</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","chats",":chatId","files",":fileId"],"host":["mytenant.cx.onecloud.com"],"query":[{"disabled":true,"key":"","value":""},{"disabled":true,"key":"","value":""}],"variable":[{"id":"6430f3c8-d4fc-43aa-b912-425542111553","description":{"content":"<p>The current chat session ID. The value of this variable is returned in the body of a successful invocation of the \"Request Chat\" method.</p>\n","type":"text/plain"},"type":"any","value":"","key":"chatId"},{"id":"fac85b26-4de1-4cfb-955c-dd5f373a9292","description":{"content":"<p>The file ID of the file to download</p>\n","type":"text/plain"},"type":"any","value":"","key":"fileId"}]}},"response":[{"id":"44d38838-d775-487b-ade5-ecd8f85eba34","name":"Get File Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\""}],"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats/:chatId/files/:fileId","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","chats",":chatId","files",":fileId"],"query":[{"key":"","value":"","disabled":true},{"key":"","value":"","disabled":true}],"variable":[{"key":"chatId","value":"f5f68c35-ffec-4dcb-8f7f-755b6395a6dc"},{"key":"fileId","value":"e1f234c35-ffec-4dcb-8f7f-755b6395a6dc"}]}},"_postman_previewlanguage":"text","header":null,"cookie":[],"responseTime":null,"body":"File content type"}],"_postman_id":"3685ba47-9a11-4568-8da3-b10b7f645ac4"},{"name":"Get Agent Profile Photo","id":"18655dae-e1a9-4efc-9127-96c9ebad1641","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""}],"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats/:chatId/profilephotos/:partyId","description":"<p>This method downloads a profile photo of the specified agent.</p>\n<h1 id=\"request-body\">Request Body</h1>\n<p>The request body is the party ID of the agent participating in the current chat session.</p>\n<p>Note: The party ID is provided with the chat event (polled at https://{host:port}/clientweb/api/v1/chats/{chatId}/events?tenantUrl={tenantUrl}). For example, you can see <em>party_ID</em> in the event message for <em>chat_session_party_joined</em>.</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>File content type</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not found</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","chats",":chatId","profilephotos",":partyId"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"e7ec2c7d-9354-4fe6-b046-fd982df01895","description":{"content":"<p>The current chat session ID. The value of this variable is returned in the body of a successful invocation of the \"Request Chat\" method.</p>\n","type":"text/plain"},"type":"any","value":"","key":"chatId"},{"id":"33f19358-5bc8-4c30-9053-d3d6426deecc","description":{"content":"<p>The party ID of the agent for the current chat session</p>\n","type":"text/plain"},"type":"any","value":"","key":"partyId"}]}},"response":[{"id":"bf1bce22-ca3c-484f-bd47-bbeda2a72b90","name":"Get Agent Profile Photo Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\""}],"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/chats/:chatId/profilephotos/:partyId","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","chats",":chatId","profilephotos",":partyId"],"variable":[{"key":"chatId","value":"f5f68c35-ffec-4dcb-8f7f-755b6395a6dc"},{"key":"partyId","value":"e5f23c35-ffec-4dcb-8f7f-755b6395a6dd"}]}},"_postman_previewlanguage":"text","header":null,"cookie":[],"responseTime":null,"body":"File content type"}],"_postman_id":"18655dae-e1a9-4efc-9127-96c9ebad1641"},{"name":"Get ICE servers","id":"64e165d0-f3a2-4928-b6b9-182290484a18","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""},{"key":"User-Agent","type":"text","value":"MobileClient"}],"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/iceservers?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method returns a list of configured ICE servers to provide to the browser so that an audio-visual session could be added to the chat.</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success: JSON response with information of ICE servers</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","iceservers"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[]}},"response":[{"id":"17db53c6-a7cd-4f2d-8fba-f8463fcf4405","name":"Get ICE servers","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/iceservers?tenantUrl=mytenant.cx.onecloud.com","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","iceservers"],"query":[{"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"servers\":[{\r\n    \"url\": \"<url>\",\r\n    \"username\": \"<(optional) username>\",\r\n    \"credential\": \"<(optional) password>\"\r\n  }]\r\n}\r\n"}],"_postman_id":"64e165d0-f3a2-4928-b6b9-182290484a18"},{"name":"Get Chat Widget Configuration","id":"797eadfc-af72-4956-8c7e-80bb079d9ba5","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""},{"key":"User-Agent","type":"text","value":"MobileClient"}],"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/configuration?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method returns the chat widget configuration for the launch point.</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success: JSON response with information of ICE servers</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","configuration"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[]}},"response":[{"id":"82368e55-f6cc-4d73-a0fc-3bd994263fe5","name":"Get Chat Widget Configuration","originalRequest":{"method":"GET","header":[{"description":"appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""},{"key":"User-Agent","type":"text","value":"MobileClient"}],"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/configuration?tenantUrl=mytenant.cx.onecloud.com","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","configuration"],"query":[{"key":"tenantUrl","value":"mytenant.cx.onecloud.com","description":"Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain)."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Date","value":"Thu, 29 Feb 2024 16:29:47 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"8813"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Methods","value":"GET, POST"},{"key":"Access-Control-Allow-Headers","value":"Accept, Origin, Content-type, Authorization"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"definition\": {\n        \"chatWidgetStyling\": {\n            \"title\": \"Automotive\",\n            \"showAgentPic\": \"show\",\n            \"width\": 400,\n            \"height\": 720,\n            \"color\": \"808080\",\n            \"textColor\": \"FFFFFF\",\n            \"style\": \"style1\",\n            \"tabStyle\": \"square\",\n            \"channelHoppingEnabled\": true,\n            \"cobrowsing\": true,\n            \"widgetMinimizationEnabled\": true,\n            \"remoteEditing\": true,\n            \"emojiSelector\": true,\n            \"enableClientSideChatHistory\": false,\n            \"fileUploadEnabled\": true,\n            \"webNotificationsEnabled\": true,\n            \"videoCallEnabled\": true,\n            \"visitorVideoEnabled\": true,\n            \"inactivityWarningMessage\": \"We have not heard from you for some time. Please respond within the next few minutes to prevent your chat session from ending.\",\n            \"inactivityTimeoutMessage\": \"Your session has expired due to inactivity.\",\n            \"agentJoinedMessage\": \"\",\n            \"agentLeftMessage\": \"$(name) has left the session.\",\n            \"sessionEndedMessage\": \"Session has ended.\",\n            \"socialInviteMessage\": \"To continue via $(channel), please follow the link $(link_here)\",\n            \"endSessionDialogText\": \"Do you want to end the chat session?\",\n            \"requiredField\": \"Please fill\",\n            \"refersToRequiredFields\": \"* Refers to Required Fields\",\n            \"invalidInputField\": \"Invalid input\",\n            \"notificationsPrompt\": \"When prompted, please allow notifications from this window, so you could see responses when this window is hidden.\",\n            \"allowMicroPrompt\": \"When prompted, please allow access to your microphone.\",\n            \"allowMicroVideoPrompt\": \"When prompted, please allow access to your camera and microphone.\",\n            \"cobrowsingDialogText\": \"By clicking Accept, an agent will join you on the page you are currently viewing. The agent can view and help you as you browse the web in this tab. The agent will not see login details, passwords, other browser tabs or programs you have opened. You can stop co-browsing at any time, by clicking X in the menu or by closing this tab in your browser.\",\n            \"cobrowsingDialogHeader\": \"Start co-browsing\",\n            \"cobrowsingDialogAcceptLabel\": \"Accept\",\n            \"cobrowsingDialogCancelLabel\": \"Cancel\",\n            \"sessionCompletedWidgetTitle\": \"Session completed\",\n            \"agentTypingIndicator\": \"$(name) is typing\",\n            \"replyFromMessageText\": \"Reply from\",\n            \"justNowMessageArrivalTimeIndicator\": \"just now\",\n            \"minutesAgoMessageArrivalTimeIndicator\": \"m ago\",\n            \"hoursAgoMessageArrivalTimeIndicator\": \"h ago\",\n            \"daysAgoMessageArrivalTimeIndicator\": \"d ago\",\n            \"someTimeAgoMessageArrivalTimeIndicator\": \"Some time ago\",\n            \"hintMessageTextBox\": \"Text...\",\n            \"showChatTooltip\": \"Show chat\",\n            \"endChatTooltip\": \"End chat\",\n            \"minimizeChatTooltip\": \"Minimize chat\",\n            \"shareScreenTooltip\": \"Share screen\",\n            \"webRtcCallTooltip\": \"Call me\",\n            \"webRtcSwitchVideoTooltip\": \"Switch video\",\n            \"webRtcEndCallTooltip\": \"End call\",\n            \"emojiTooltip\": \"Emoji\",\n            \"sendFileTooltip\": \"Send file\",\n            \"minimizedDismissMessagesTooltip\": \"Dismiss\",\n            \"screenSharingRequestedMessageText\": \"Screen sharing request sent\",\n            \"screenSharingEndedMessageText\": \"Screen sharing session ended\",\n            \"clickToStartCobrowsingPrompt\": \"Click to start co-browsing session\",\n            \"cobrowsingRequestedMessageText\": \"Co-browsing session requested.\",\n            \"cobrowsingRejectedMessageText\": \"Co-browsing session rejected.\",\n            \"cobrowsingStartedMessageText\": \"Co-browsing session started.\",\n            \"cobrowsingEndedMessageText\": \"Co-browsing session ended.\",\n            \"cameraNotDetectedText\": \"Web camera not detected\",\n            \"microNotDetectedText\": \"Microphone not detected\",\n            \"surveyFormTitle\": \"Please leave us feedback\",\n            \"surveyFormWasIssueResolvedQuestion\": \"Did we provide the service you were looking for?\",\n            \"surveyFormWasIssueResolvedPositiveAnswer\": \"yes\",\n            \"surveyFormWasIssueResolvedNegativeAnswer\": \"no\",\n            \"surveyFormContactSatisfactionQuestion\": \"How helpful was our representative?\",\n            \"surveyFormNetPromoterScoreQuestion\": \"How likely are you to recommend our products and services in the future?\",\n            \"surveyFormSendChatTranscriptQuestion\": \"Send me transcript of the chat by email?\",\n            \"surveyFormEmailFieldLabel\": \"Your email*\",\n            \"surveyFormEmailValidationErrorText\": \"Wrong value\",\n            \"fileUploadBlockedErrorText\": \"File was blocked because its content presents a potential security issue\"\n        },\n        \"chatInitiations\": [\n            {\n                \"id\": \"E47AFC36-2AD4-4BD1-AF26-4F17FE383A42\",\n                \"name\": \"sa\",\n                \"contactTab\": {\n                    \"enabled\": true,\n                    \"location\": \"bottom_right\",\n                    \"agentsAvailableMsg\": \"Chat with us. We are online!\",\n                    \"agentsNotAvailableMsg\": \"Sorry, there are no agents available\",\n                    \"outOfHoursMsg\": \"Sorry, we are closed right now\",\n                    \"doNotShowAfterHours\": false,\n                    \"doNotShowAfterEWTThreshold\": false\n                },\n                \"preChat\": {\n                    \"enabled\": true,\n                    \"title\": \"Automotive\",\n                    \"chatButtonEnabled\": true,\n                    \"chatButtonText\": \"Chat\",\n                    \"callButtonEnabled\": true,\n                    \"callButtonText\": \"Call\",\n                    \"cancelButtonEnabled\": true,\n                    \"cancelButtonText\": \"Cancel\",\n                    \"commonFields\": [\n                        {\n                            \"formFieldType\": \"label\",\n                            \"label\": \"First name\",\n                            \"required\": false,\n                            \"validate\": false,\n                            \"options\": []\n                        },\n                        {\n                            \"formFieldType\": \"text\",\n                            \"name\": \"first_name\",\n                            \"required\": true,\n                            \"validate\": false,\n                            \"options\": []\n                        },\n                        {\n                            \"formFieldType\": \"label\",\n                            \"label\": \"Last name\",\n                            \"required\": false,\n                            \"validate\": false,\n                            \"options\": []\n                        },\n                        {\n                            \"formFieldType\": \"text\",\n                            \"name\": \"last_name\",\n                            \"required\": true,\n                            \"validate\": false,\n                            \"options\": []\n                        },\n                        {\n                            \"formFieldType\": \"label\",\n                            \"label\": \"E-mail\",\n                            \"required\": false,\n                            \"validate\": false,\n                            \"options\": []\n                        },\n                        {\n                            \"formFieldType\": \"text\",\n                            \"name\": \"email\",\n                            \"required\": true,\n                            \"validate\": false,\n                            \"options\": []\n                        },\n                        {\n                            \"formFieldType\": \"phone\",\n                            \"label\": \"Phone Number\",\n                            \"name\": \"phone_number\",\n                            \"required\": true,\n                            \"validate\": false,\n                            \"options\": []\n                        }\n                    ],\n                    \"phoneFields\": [\n                        {\n                            \"formFieldType\": \"label\",\n                            \"label\": \"Phone\",\n                            \"required\": false,\n                            \"validate\": false,\n                            \"options\": []\n                        },\n                        {\n                            \"formFieldType\": \"callback_phone\",\n                            \"name\": \"phone_number\",\n                            \"required\": true,\n                            \"validate\": false,\n                            \"options\": []\n                        }\n                    ],\n                    \"chatFields\": [\n                        {\n                            \"formFieldType\": \"label\",\n                            \"label\": \"Message\",\n                            \"required\": false,\n                            \"validate\": false,\n                            \"options\": []\n                        },\n                        {\n                            \"formFieldType\": \"multiline_text\",\n                            \"name\": \"message\",\n                            \"required\": true,\n                            \"validate\": false,\n                            \"options\": []\n                        }\n                    ]\n                },\n                \"leaveMessage\": {\n                    \"title\": \"Please leave us a message\",\n                    \"okButtonText\": \"OK\",\n                    \"cancelButtonText\": \"Cancel\",\n                    \"fields\": [\n                        {\n                            \"formFieldType\": \"label\",\n                            \"label\": \"Subject\",\n                            \"required\": false,\n                            \"validate\": false,\n                            \"options\": []\n                        },\n                        {\n                            \"formFieldType\": \"name\",\n                            \"name\": \"subject\",\n                            \"required\": true,\n                            \"validate\": false,\n                            \"options\": []\n                        },\n                        {\n                            \"formFieldType\": \"label\",\n                            \"label\": \"Description\",\n                            \"required\": false,\n                            \"validate\": false,\n                            \"options\": []\n                        },\n                        {\n                            \"formFieldType\": \"multiline_text\",\n                            \"name\": \"description\",\n                            \"required\": true,\n                            \"validate\": false,\n                            \"options\": []\n                        }\n                    ]\n                },\n                \"urls\": [\n                    \"/\"\n                ]\n            }\n        ],\n        \"proactiveOffers\": [],\n        \"onPageForms\": [],\n        \"forms\": []\n    },\n    \"styles\": {\n        \"style1\": {\n            \"contentMargin\": {\n                \"margin\": \"40px\"\n            },\n            \"titleFont\": {\n                \"font-family\": \" \\\"Helvetica Neue\\\", Helvetica, Arial, sans-serif\",\n                \"font-size-adjust\": \"none\",\n                \"font-style\": \"normal\",\n                \"font-size\": \"16px !important\",\n                \"font-weight\": \"450 !important\",\n                \"letter-spacing\": \"normal\",\n                \"font-stretch\": \"normal\",\n                \"font-variant\": \"normal\",\n                \"text-align\": \"left\",\n                \"text-align-last\": \"auto\",\n                \"text-decoration\": \"none\",\n                \"-webkit-text-emphasis\": \"none\",\n                \"text-emphasis\": \"none\",\n                \"text-height\": \"auto\",\n                \"text-indent\": \"0\",\n                \"text-justify\": \"auto\",\n                \"text-outline\": \"none\",\n                \"text-shadow\": \"none\",\n                \"text-transform\": \"none\",\n                \"text-wrap\": \"normal\",\n                \"-ms-filter\": \"\\\"progid:DXImageTransform.Microsoft.gradient(enabled=false)\\\"\",\n                \"-webkit-font-smoothing\": \"antialiased\",\n                \"-moz-osx-font-smoothing\": \"grayscale\"\n            },\n            \"contactTabFont\": {\n                \"font-family\": \" \\\"Helvetica Neue\\\", Helvetica, Arial, sans-serif\",\n                \"font-size-adjust\": \"none\",\n                \"font-style\": \"normal\",\n                \"font-size\": \"16px !important\",\n                \"font-weight\": \"450 !important\",\n                \"letter-spacing\": \"normal\",\n                \"font-stretch\": \"normal\",\n                \"font-variant\": \"normal\",\n                \"text-align\": \"left\",\n                \"text-align-last\": \"auto\",\n                \"text-decoration\": \"none\",\n                \"-webkit-text-emphasis\": \"none\",\n                \"text-emphasis\": \"none\",\n                \"text-height\": \"auto\",\n                \"text-indent\": \"0\",\n                \"text-justify\": \"auto\",\n                \"text-outline\": \"none\",\n                \"text-shadow\": \"none\",\n                \"text-transform\": \"none\",\n                \"text-wrap\": \"normal\",\n                \"-ms-filter\": \"\\\"progid:DXImageTransform.Microsoft.gradient(enabled=false)\\\"\",\n                \"-webkit-font-smoothing\": \"antialiased\",\n                \"-moz-osx-font-smoothing\": \"grayscale\"\n            },\n            \"systemMessage\": {\n                \"background-color\": \"#ffffff\"\n            },\n            \"agentMessage\": {\n                \"background-color\": \"#f4f4f4\",\n                \"line-height\": \"1.4\",\n                \"margin-bottom\": \"0\",\n                \"overflow-wrap\": \"break-word\",\n                \"word-wrap\": \"break-word\",\n                \"word-break\": \"break-word\",\n                \"border-radius\": \"5px\"\n            },\n            \"clientMessage\": {\n                \"line-height\": \"1.4\",\n                \"margin-bottom\": \"0\",\n                \"overflow-wrap\": \"break-word\",\n                \"word-wrap\": \"break-word\",\n                \"word-break\": \"break-word\",\n                \"border-radius\": \"5px\"\n            },\n            \"widgetBorder\": {\n                \"border\": \"none\"\n            },\n            \"widgetBorderRadius\": {\n                \"border-radius\": \"7px\"\n            },\n            \"contactTabBorder\": {\n                \"border\": \"none\",\n                \"border-radius\": \"7px\"\n            },\n            \"widgetBackground\": {\n                \"background\": \"#ffffff\"\n            },\n            \"baseFont\": {\n                \"font-family\": \" \\\"Helvetica Neue\\\", Helvetica, Arial, sans-serif\",\n                \"font-size-adjust\": \"none\",\n                \"font-style\": \"normal\",\n                \"font-size\": \"14px\",\n                \"font-weight\": \"400\",\n                \"letter-spacing\": \"normal\",\n                \"font-stretch\": \"normal\",\n                \"font-variant\": \"normal\",\n                \"text-align\": \"left\",\n                \"text-align-last\": \"auto\",\n                \"text-decoration\": \"none\",\n                \"-webkit-text-emphasis\": \"none\",\n                \"text-emphasis\": \"none\",\n                \"text-height\": \"auto\",\n                \"text-indent\": \"0\",\n                \"text-justify\": \"auto\",\n                \"text-outline\": \"none\",\n                \"text-shadow\": \"none\",\n                \"text-transform\": \"none\",\n                \"text-wrap\": \"normal\",\n                \"-ms-filter\": \"\\\"progid:DXImageTransform.Microsoft.gradient(enabled=false)\\\"\",\n                \"-webkit-font-smoothing\": \"antialiased\",\n                \"-moz-osx-font-smoothing\": \"grayscale\"\n            },\n            \"dialogShadow\": {\n                \"box-shadow\": \"0 0 20 px, rgba (0, 0, 0, 0.2);\"\n            }\n        }\n    }\n}"}],"_postman_id":"797eadfc-af72-4956-8c7e-80bb079d9ba5"},{"name":"Get Case History","id":"17a14bb4-e40a-493d-85a2-b3285e19c9e0","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\" "},{"key":"User","type":"text","value":"MobileClient"}],"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/casehistory?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method returns the combined transcripts of all chat sessions (i.e., the chat thread) linked to the specific CRM case object. Note that this request should be made only after the <em>chat_session_case_set</em> server event is received; if the scenario has not specified a case, the request will return an error.</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success: application/json</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not found</td>\n</tr>\n<tr>\n<td>406</td>\n<td>Not acceptable: If the scenario did not specify a case</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","casehistory"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[]}},"response":[{"id":"d7b424ea-f39d-4bfd-b07e-38e697c3da0f","name":"Get Case History","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\""},{"key":"User","type":"text","value":"MobileClient"}],"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/casehistory?tenantUrl=mytenant.cx.onecloud.com","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","casehistory"],"query":[{"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"sessions\": [\r\n        {\r\n            \"chat_id\": \"<session 1 ID>\",\r\n            \"created_time\": \"<Unix timestamp in seconds>\",\r\n            \"events\": \"<array of events from this chat session>\"\r\n        },\r\n        {\r\n            \"chat_id\": \"<session 4 ID>\",\r\n            \"created_time\": \"<Unix timestamp in seconds>\",\r\n            \"events\": \"<array of events from this chat session>\"\r\n        }\r\n    ]\r\n}"}],"_postman_id":"17a14bb4-e40a-493d-85a2-b3285e19c9e0"},{"name":"Close Case","id":"4f82a6c0-f921-4309-bfd1-3ad4a1ccfab5","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"POST","header":[{"description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<Unique app identifier>\", clientId=\"<Unique client ID>\" "},{"key":"User-Agent","type":"text","value":"MobileClient"}],"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/closecase?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method invokes a client application request to close the case associated with the chat session. Note that this request should be made only after the <em>chat_session_case_set</em> server event is received; if the scenario has not specified a case, the request will return an error.</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Case successfully closed</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not found</td>\n</tr>\n<tr>\n<td>406</td>\n<td>Not acceptable: If scenario did not specify a case</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Server error: Case is specified but cannot be closed (i.e., the CRM server responded with an error)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","closecase"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[]}},"response":[{"id":"4c0f884d-5d1e-4aad-b813-f62bf6aa5f7d","name":"Close Case","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/closecase?tenantUrl=mytenant.cx.onecloud.com","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","closecase"],"query":[{"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"4f82a6c0-f921-4309-bfd1-3ad4a1ccfab5"},{"name":"Get Version","id":"2627619b-c502-4550-9fb5-9f2ea5e2aad3","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"<Unique app identifier>\", clientId=\"<Unique client ID>\" ","description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":"https://mytenant.cx.onecloud.com/clientweb/api/v2/version?tenantUrl=mytenant.cx.onecloud.com","description":"<p>This method returns the Bright Pattern Contact Center software version of the server. It may be used for informational purposes (e.g., adding the version number to the bottom of an application window or in an informational dialog window, as well as seeing the server version in the client application logs). Note that this method is not available in the Mobile/Web Messaging API v1.</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK: success</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>404</td>\n<td>Not found: For example, if the existing Mobile/Web Messaging API v1 endpoint is called instead of the v2 endpoint</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["clientweb","api","v2","version"],"host":["mytenant.cx.onecloud.com"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}],"variable":[]}},"response":[{"id":"5e998794-d159-45a2-9d12-8b54a70935f3","name":"Get Version","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://mytenant.cx.onecloud.com/clientweb/api/v2/version?tenantUrl=mytenant.cx.onecloud.com","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["clientweb","api","v2","version"],"query":[{"key":"tenantUrl","value":"mytenant.cx.onecloud.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"server_version\": \"5.5.6.12345 (Stable)\"\n}"}],"_postman_id":"2627619b-c502-4550-9fb5-9f2ea5e2aad3"}],"id":"49560ac6-78f6-4084-8518-2ccac6f3a3b3","description":"<p>The OneCloud CX Mobile/Web Messaging API v2 is a RESTful API that allows developers to integrate chat and voice interactions with mobile devices or third-party applications. The CX Mobile/Web Messaging API v2 expands on our existing Mobile/Web Messaging API v1, and can be used for development of rich contact applications, such as customer-facing mobile, web, and messaging applications for advanced chat, voice, and video communications with OneCloud Contact Center-based contact centers.</p>\n<h2 id=\"features\">Features</h2>\n<p>In addition to all the methods and events included in the v1 API, the Mobile/Web Messaging API v2 includes the following:</p>\n<ul>\n<li>Support for the Apple Push Notification service (iOS) and Firebase Cloud Messaging push notifications (Android and iOS) with the <strong>Mobile Notification Subscription</strong> method</li>\n<li>The <strong>Get Case History</strong> method, which returns the combined transcripts of all chat sessions linked to a specific CRM Case object</li>\n<li>The <strong>Close Case</strong> method, which allows a client application request to close the case associated with the chat session</li>\n<li>The <strong>Get Version</strong> method, which returns the version of Bright Pattern Contact Center used on the server.</li>\n<li>Server and client events indicating that a chat session message was delivered or read</li>\n<li>A server event indicating if a chat session case was set</li>\n</ul>\n<h2 id=\"note\">Note</h2>\n<p>The CX Mobile/Web Messaging API v2 endpoint prefix is as follows:</p>\n<p><strong>https://[tenant_url]/clientweb/api/v2/</strong></p>\n<h1 id=\"audience\">Audience</h1>\n<p>This documentation is intended for the IT personnel and developers of custom applications for Bright Pattern Contact Center-based contact centers. Readers of this documentation are expected to have expertise in web and mobile application development as well as a solid understanding of contact center operations and resources that are involved in such operations.</p>\n<h1 id=\"sample-applications\">Sample Applications</h1>\n<p>OneCloud provides source code of sample customer-facing rich contact applications. This source code can be used as a reference for in-house application development or it can be embedded directly into the customer-facing mobile applications and/or web applications of your organization.</p>\n<p>For web chat applications, you can download the source code by clicking the <strong>Client application</strong> button on the <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-messaging-chat-scenario-entries\">Messaging/Chat Scenario Entry</a> page of the Contact Center Administrator application.</p>\n<p>For mobile applications, you can obtain the source code by submitting a service request to <a href=\"https://support.onecloud.com\">OneCloud Success Management</a>.</p>\n<p>Example Request</p>\n<p>The following is an example of an API request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>URL: https://tenant.cx.onecloud.com/clientweb/api/v2/chats?tenantUrl=yourcompany.brightpattern.com\nMethod: POST\nAuthorization: MOBILE-API-140-327-PLAIN appId=\"test\", clientId=\"123\"\nContent-Type: application/json; charset=UTF-8\nUser-Agent: MobileClient\n{\n    \"phone_number\":\"3001\",\n    \"parameters\": {\n        \"first_name\":\"John\",\n        \"last_name\":\"Lee\"\n        }\n}\n\n</code></pre><h1 id=\"client-authentication-elements\">Client Authentication Elements</h1>\n<p>The following elements are used for client authentication and must be specified in every client request:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Element</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>tenantUrl</td>\n<td>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login.</td>\n</tr>\n<tr>\n<td>appId</td>\n<td>Unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario</td>\n</tr>\n<tr>\n<td>clientId</td>\n<td>Unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to WebChat, HTTP cookies will be used for client identification.</td>\n</tr>\n<tr>\n<td>User-Agent</td>\n<td>Specifies the type of client interface. For web applications, it is determined by the browser type. For mobile applications, this parameter shall always be set to <strong>MobileClient</strong>.</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"additional-information\">Additional Information</h1>\n<p>Standard HTTP response codes whose meaning conforms to the original specification (RFC 2616) are not discussed in this document. For specification of such responses, see section 10 of <a href=\"http://www.ietf.org/rfc/rfc2616.txt\">http://www.ietf.org/rfc/rfc2616.txt</a>. This document only specifies the response codes whose description deviates from the original specification (e.g., is defined more narrowly or has a different meaning).</p>\n<p><strong>Note</strong>: A client application can only have one active communication session at a time.</p>\n<h1 id=\"error-body\">Error Body</h1>\n<p>When the response status code indicates an error, a JSON response body is provided by the server to<br />give more details about the error:<br />{\"error_code\": \"error code\", \"error_message\":\"error message\"}</p>\n<h2 id=\"authorization-errors\">Authorization Errors</h2>\n<p>Here is a list of the possible values of authorization-related error codes and error messages that are<br />common to all requests that require authorization.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>error_code</th>\n<th>error_message</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1000</td>\n<td>Missing or invalid tenantUrl</td>\n</tr>\n<tr>\n<td>2000</td>\n<td>Authorization header is missing</td>\n</tr>\n<tr>\n<td>2001</td>\n<td>Authorization parameter format is incorrect</td>\n</tr>\n<tr>\n<td>2002</td>\n<td>Authorization scheme is incorrect</td>\n</tr>\n<tr>\n<td>2003</td>\n<td>Authorization parameter is missing: appId</td>\n</tr>\n<tr>\n<td>2004</td>\n<td>Authorization parameter is missing: clientId</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"other-errors\">Other Errors</h2>\n<p>Here is a list of the possible values of other error codes and error messages.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>error_code</th>\n<th>error_message</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>3000</td>\n<td>Missing or invalid application unique id</td>\n</tr>\n<tr>\n<td>5000</td>\n<td>Timeout - chat server takes too long to respond</td>\n</tr>\n<tr>\n<td>5001</td>\n<td>No server is available to accept chat connection</td>\n</tr>\n<tr>\n<td>5003</td>\n<td>Error decoding JSON request body: {JSON exception message}</td>\n</tr>\n<tr>\n<td>5004</td>\n<td>Chat server disconnected</td>\n</tr>\n<tr>\n<td>5005</td>\n<td>Chat session is not found</td>\n</tr>\n<tr>\n<td>5006</td>\n<td>Mobile Launch Point (application) is not found</td>\n</tr>\n<tr>\n<td>5500</td>\n<td>[internal server error message]</td>\n</tr>\n<tr>\n<td>5501</td>\n<td>Upload size limit exceeded</td>\n</tr>\n<tr>\n<td>5502</td>\n<td>File not found</td>\n</tr>\n<tr>\n<td>5509</td>\n<td>Too many concurrent poll requests for the same session</td>\n</tr>\n<tr>\n<td>5511</td>\n<td>No events</td>\n</tr>\n<tr>\n<td>5558</td>\n<td>[file operation error message]</td>\n</tr>\n<tr>\n<td>5955</td>\n<td>Unspecified server error</td>\n</tr>\n<tr>\n<td>5601</td>\n<td>No case is specified for this session.</td>\n</tr>\n<tr>\n<td>5602</td>\n<td>CRM server responded with error.</td>\n</tr>\n<tr>\n<td>5603</td>\n<td>Too many parameters.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"49560ac6-78f6-4084-8518-2ccac6f3a3b3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Events","item":[{"name":"Client Events","item":[],"id":"8aa31f77-a05c-4475-a063-4f44b7f152b3","description":"<h1 id=\"chat_session_message\">chat_session_message</h1>\n<p>This event contains a new chat message.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>Unique identifier of the message in the following format (chatId:messageNumber)</td>\n</tr>\n<tr>\n<td>msg</td>\n<td>The content of the message</td>\n</tr>\n<tr>\n<td>channel</td>\n<td>The chat channel (e.g., web, Twitter, WhatsApp, etc.)</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_message\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"msg\": \"&lt;chat message&gt;\",\n    \"channel\": \"chat channel&gt;\n}\n\n</code></pre>\n<h1 id=\"chat_session_message_delivered\">chat_session_message_delivered</h1>\n<p>The mobile application sends this event when it receives the message from another party.</p>\n<h2 id=\"parameters-1\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ref_msg_id</td>\n<td>Unique identifier of the message that has been delivered</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-1\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_message_delivered\",\n    \"ref_msg_id\": \"&lt;message id&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_message_read\">chat_session_message_read</h1>\n<p>The mobile application sends this event when the user reads the message.</p>\n<h2 id=\"parameters-2\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ref_msg_id</td>\n<td>Unique identifier of the message that has been read</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-2\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_message_read\",\n    \"ref_msg_id\": \"&lt;message id&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_typing\">chat_session_typing</h1>\n<p>This event is sent when the user of the client application starts typing.</p>\n<h2 id=\"format-3\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_typing\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_not_typing\">chat_session_not_typing</h1>\n<p>This event is sent when the user of the client application stops typing.</p>\n<h2 id=\"format-4\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_not_typing\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_form_data\">chat_session_form_data</h1>\n<p>This event contains the data requested by the server via the <em>event chat_session_form_show</em>.</p>\n<h2 id=\"format-5\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_form_data\",\n    \"form_request_id\": \"&lt;form request ID from the corresponding server event&gt;\",\n    \"form_name\": \"&lt;form name&gt;\",\n    \"data\": {\n        \"param1\": \"value1\",\n        …\n        }\n}\n\n</code></pre>\n<h1 id=\"chat_session_secure_form_data\">chat_session_secure_form_data</h1>\n<p>This event contains the data requested by the server via the event <em>chat_session_secure_form_show</em>.</p>\n<h2 id=\"format-6\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_secure_form_data\",\n    \"form_request_id\": \"&lt;form request ID from the corresponding server event&gt;\",\n    \"form_name\": \"&lt;form name&gt;\",\n    \"data\": {\n        \"param1\": \"value1\",\n        …\n        }\n}\n\n</code></pre>\n<h1 id=\"chat_session_secure_form_cancel\">chat_session_secure_form_cancel</h1>\n<p>This event is sent from or to the server to notify that the secure form was canceled.</p>\n<h2 id=\"format-7\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_secure_form_cancel\",\n    \"form_request_id\": \"&lt;form request ID from the corresponding server event&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_end\">chat_session_end</h1>\n<p>This event ends the chat session.</p>\n<h2 id=\"format-8\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_end\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_disconnect\">chat_session_disconnect</h1>\n<p>This event ends the current chat conversation but keeps the session open (i.e., controlled by the scenario). This message can be used instead of <em>chat_session_end</em> when additional information may be expected from the server (e.g., a survey form).</p>\n<h2 id=\"format-9\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_disconnect\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_signaling\">chat_session_signaling</h1>\n<p>This event is a container message for WebRTC signaling messages from client to server. These messages are not stored in the chat session history.</p>\n<h2 id=\"parameters-3\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>Unique identifier of the message in the following format (chatId:messageNumber)</td>\n</tr>\n<tr>\n<td>chatId</td>\n<td>Unique identifier of the chat session that is returned by the server in response to client’s request for chat</td>\n</tr>\n<tr>\n<td>messageNumber</td>\n<td>Ordinal number of the given message in the chat exchange</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-10\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_signaling\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"destination_party_id\": \"&lt;agent party id&gt;\",\n    \"data\": \"&lt;signaling message&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_file\">chat_session_file</h1>\n<p>This event provides notification that the client has uploaded a file to the server.</p>\n<h2 id=\"parameters-4\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>Unique identifier of the message in the following format (chatId:messageNumber)</td>\n</tr>\n<tr>\n<td>chatId</td>\n<td>Unique identifier of the chat session that is returned by the server in response to client’s request for chat</td>\n</tr>\n<tr>\n<td>messageNumber</td>\n<td>Ordinal number of the given message in the chat exchange</td>\n</tr>\n<tr>\n<td>fileId</td>\n<td>Identifies the uploaded file</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-11\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_file\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"file_type\": \"&lt;image|attachment&gt;\",\n    \"file_id\": \"&lt;file id&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_location\">chat_session_location</h1>\n<p>This event contains a new geographical location message.</p>\n<h2 id=\"parameters-5\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>Unique identifier of the message in the following format (chatId:messageNumber)</td>\n</tr>\n<tr>\n<td>url</td>\n<td>Map URL (optional)</td>\n</tr>\n<tr>\n<td>latitude</td>\n<td>Latitude of the location</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>Longitude of the location</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-12\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_location\",\n    \"msg_id\": \"&lt;message id&gt;\"\n    \"url\": \"&lt;map URL (optional)&gt;\",\n    \"latitude\": \"&lt;latitude&gt;\",\n    \"longitude\": \"&lt;longitude&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_navigation\">chat_session_navigation</h1>\n<p>This event is sent from the client with its web page location (i.e., the page name or the URL).</p>\n<h2 id=\"parameters-6\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>Unique identifier of the message in the following format (chatId:messageNumber)</td>\n</tr>\n<tr>\n<td>title</td>\n<td>Page title</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Page name or page url</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-13\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_navigation\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"title\": \"&lt;page title&gt;\",\n    \"page\": \"&lt;page name or page url&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_cobrowsing_rejected\">chat_session_cobrowsing_rejected</h1>\n<p>This event notifies the server that the user has rejected a co-browsing session.</p>\n<h2 id=\"format-14\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_cobrowsing_rejected\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_cobrowsing_started\">chat_session_cobrowsing_started</h1>\n<p>This event notifies the server that the user has accepted and started a co-browsing session.</p>\n<h2 id=\"format-15\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_cobrowsing_started\",\n    \"provider_type\": \"&lt;Name of chat co-browsing provider&gt;\",\n    \"cobrowsing_url\": \"&lt;URL of the co-browsing session&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_cobrowsing_ended\">chat_session_cobrowsing_ended</h1>\n<p>This event notifies the server that the user has ended the co-browsing session.</p>\n<h2 id=\"format-16\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_cobrowsing_ended\"\n}\n\n</code></pre>\n","event":[{"listen":"prerequest","script":{"id":"d72c9c06-5477-40dc-99cb-ec0b9b6e444c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"96a44854-e3ec-400c-96bc-5a8a784a4db4","type":"text/javascript","exec":[""]}}],"_postman_id":"8aa31f77-a05c-4475-a063-4f44b7f152b3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Server Events","item":[],"id":"88f60f68-fec7-47f9-84a4-a5e94638592e","description":"<h1 id=\"chat_session_status\">chat_session_status</h1>\n<p>This event updates the current state of the chat session. If the state is failed, the client application will assume that the chat session no longer exists.</p>\n<h2 id=\"format\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_status\",\n    \"state\": \"queued|connecting|connected|failed|completed\",\n    \"ewt\": \"&lt;estimated waiting time for queued status&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_ended\">chat_session_ended</h1>\n<p>This event indicates a normal termination of the chat session (e.g., when the chat session is closed by the agent). The client application will assume that the chat session no longer exists.</p>\n<h2 id=\"format-1\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_ended\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_party_joined\">chat_session_party_joined</h1>\n<p>This event indicates that a new party (i.e., a new agent) has joined the chat session.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>party_id</td>\n<td>Unique identifier of the chat party on the server side. A separate identifier is generated for each party (agent) that handles this chat session.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-2\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_party_joined\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"first_name\": \"&lt;party first name&gt;\",\n    \"last_name\": \"&lt;party last name&gt;\",\n    \"display_name\": \"&lt;party display name&gt;\",\n    \"type\": \"&lt;scenario|external|internal&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in milliseconds&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_party_left\">chat_session_party_left</h1>\n<p>This event indicates that one of the existing parties (e.g., an agent) has left the chat session.</p>\n<h2 id=\"parameters-1\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>party_id</td>\n<td>Unique identifier of the chat session on the server side. A separate identifier is generated for each party (e.g., an agent) that handles this chat session.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-3\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_party_left\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in milliseconds&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_message\">chat_session_message</h1>\n<p>This event contains a new chat message.</p>\n<h2 id=\"parameters-2\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>Unique identifier of the party that sends this message</td>\n</tr>\n<tr>\n<td>party_id</td>\n<td>Unique identifier of the chat session on the server side. A separate identifier is generated for each party (e.g., an agent) that handles this chat session. Note that party ID always matches the chat ID (i.e., when the event is received as part of chat session history).</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-4\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_message\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"msg\": \"&lt;chat message&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in milliseconds&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_message_delivered\">chat_session_message_delivered</h1>\n<p>The mobile application will receive this event when an agent or another party in the chat receives the message sent by the client application.</p>\n<h2 id=\"parameters-3\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ref_msg_id</td>\n<td>Unique identifier of the message that has been sent</td>\n</tr>\n<tr>\n<td>party_id</td>\n<td>Unique identifier of the party that the message was delivered to</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-5\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_message_delivered\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"ref_msg_id\": \"&lt;message id&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in seconds&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_message_read\">chat_session_message_read</h1>\n<p>The mobile application will receive this event when an agent or another party in the chat reads the message sent by the client application.</p>\n<h2 id=\"parameters-4\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ref_msg_id</td>\n<td>Unique identifier of the message that has been read</td>\n</tr>\n<tr>\n<td>party_id</td>\n<td>Unique identifier of the party that read the message</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-6\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_message_read\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"ref_msg_id\": \"&lt;message id&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in seconds&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_typing\">chat_session_typing</h1>\n<p>This event is sent when the agent starts typing.</p>\n<h2 id=\"parameters-5\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>party_id</td>\n<td>Unique identifier of the chat party on the server side. A separate identifier is generated for each party (e.g., an agent) that handles this chat session.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-7\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_typing\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in seconds&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_not_typing\">chat_session_not_typing</h1>\n<p>This event is sent when the agent stops typing.</p>\n<h2 id=\"parameters-6\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>party_id</td>\n<td>Unique identifier of the chat party on the server side. A separate identifier is generated for each party (e.g., an agent) that handles this chat session.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-8\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_not_typing\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in seconds&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_form_show\">chat_session_form_show</h1>\n<p>This event is sent to the request user’s input from the client application to be entered via a predefined form. The client application is normally supposed to display the specified form to the user and send back the entered data via the event <em>chat_session_form_data</em>.</p>\n<h2 id=\"format-9\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_form_show\",\n    \"form_request_id\": \"&lt;request ID that will be used by the client application to associate the response&gt;\",\n    \"form_name\": \"&lt;predefined form name known to the client application&gt;\",\n    \"form_timeout\": \"form timeout\",\n    \"timestamp\": \"&lt;UTC timestamp in seconds&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_secure_form_show\">chat_session_secure_form_show</h1>\n<p>This event is sent to notify the client application that it should display a secure, predefined form to the user and send back the entered data via the event <em>chat_session_secure_form_data</em>.</p>\n<h2 id=\"format-10\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_secure_form_show\",\n    \"form_request_id\": \"&lt;request ID that will be used by the client application in chat_session_secure_form_data&gt;\",\n    \"form_id\": \"&lt;Form ID&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in seconds&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_timeout_warning\">chat_session_timeout_warning</h1>\n<p>This event is sent to request that the specified text be displayed to the user of the client application. Typically, it is used to display an inactivity warning message.</p>\n<h2 id=\"format-11\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_timeout_warning\",\n    \"msg\": \"&lt;warning text&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in milliseconds&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_inactivity_timeout\">chat_session_inactivity_timeout</h1>\n<p>This event indicates the termination of the chat session due to the user’s inactivity and provides text to be displayed to the user. The client application will assume that the chat session no longer exists.</p>\n<h2 id=\"format-12\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_inactvity_timeout\",\n    \"msg\": \"&lt;inactivity timeout text&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in milliseconds&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_signaling\">chat_session_signaling</h1>\n<p>This event is a container message for WebRTC signaling messages from the server to the client. These messages are not stored in the chat session history.</p>\n<h2 id=\"format-13\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_signaling\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"data\": \"&lt;signaling message&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_file\">chat_session_file</h1>\n<p>This event provides notification that a file is being sent to the client. The client can use the parameter <em>file_id</em> to download the file.</p>\n<h2 id=\"parameters-7\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>party_id</td>\n<td>Unique identifier of the chat session on the server side. A separate identifier is generated for each party (agent) that handles this chat session.</td>\n</tr>\n<tr>\n<td>msg_id</td>\n<td>Unique identifier of the corresponding message</td>\n</tr>\n<tr>\n<td>partyId</td>\n<td>Unique identifier of the party that sends the message</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-14\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_file\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"file_id\": \"&lt;file id&gt;\",\n    \"file_type\": \"&lt;image|attachment&gt;\",\n    \"timestamp\": \"&lt;event time in Unix format&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_location\">chat_session_location</h1>\n<p>This event contains a new location message.</p>\n<h2 id=\"parameters-8\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>Unique identifier of the message</td>\n</tr>\n<tr>\n<td>url</td>\n<td>Map url (optional)</td>\n</tr>\n<tr>\n<td>latitude</td>\n<td>Latitude of the location</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>Longitude of the location</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-15\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_location\",\n    \"msg_id\": \"&lt;message id&gt;\"\n    \"url\": \"&lt;map url (optional)&gt;”,\n    \"latitude\": “&lt;latitude&gt;”,\n    \"longitude\": “&lt;longitude&gt;”,\n    \"timestamp\": \"&lt;UTC timestamp in seconds&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_cobrowsing_requested\">chat_session_cobrowsing_requested</h1>\n<p>This event is sent to the client application to request a co-browsing session.</p>\n<h2 id=\"format-16\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_cobrowsing_requested\",\n    \"msg_id\": \"&lt;message id&gt;\"\n}\n\n</code></pre>\n<h1 id=\"chat_session_case_set\">chat_session_case_set</h1>\n<p>The mobile application will receive this event when the scenario specifies the CRM Case ID for the chat session. Once a case is set, the mobile application may use the <strong>Get Case History</strong> method and the <strong>Close Case</strong> method.</p>\n<h2 id=\"parameters-9\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>case_id</td>\n<td>ID of the CRM case</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"format-17\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_case_set\",\n    \"case_id\": \"&lt;message id&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in seconds&gt;\"\n}\n\n</code></pre>\n","event":[{"listen":"prerequest","script":{"id":"74c849cc-8ae0-4a9b-a06a-13cb0c6808f2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5fde3b8e-ea0e-4835-b73a-eed8dc565869","type":"text/javascript","exec":[""]}}],"_postman_id":"88f60f68-fec7-47f9-84a4-a5e94638592e","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Signaling Message Types","item":[],"id":"cbfa83b6-7825-4939-9cb2-a8030f832bd6","description":"<h1 id=\"request-call\">Request Call</h1>\n<p>This message is sent from the client to request a WebRTC call.</p>\n<h2 id=\"format\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"REQUEST_CALL”,\n    \"offerVideo\": \"true|false\"\n}\n\n</code></pre>\n<h1 id=\"call-rejected\">Call Rejected</h1>\n<p>This message is sent from the server to indicate that a requested call was rejected.</p>\n<h2 id=\"format-1\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"CALL_REJECTED\",\n    \"reason_code\": \"&lt;reject reason code&gt;\",\n    \"reason\": \"TBD\"\n}\n\n</code></pre>\n<h1 id=\"offer-call\">Offer Call</h1>\n<p>This message is sent from the server to start a WebRTC session.</p>\n<h2 id=\"format-2\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"OFFER_CALL\",\n    \"offerVideo\": \"true|false\",\n    \"sdp\": \"}\n\n</code></pre>\n<h1 id=\"answer-call\">Answer Call</h1>\n<p>This message is sent from the client to confirm the WebRTC session started by the server.</p>\n<h2 id=\"format-3\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"ANSWER_CALL\",\n    \"sdp\": \"&lt;session description string&gt;\"\n}\n\n</code></pre>\n<h1 id=\"ice-candidate\">ICE Candidate</h1>\n<p>This message is sent from the client or server with ICE candidate description.</p>\n<h2 id=\"format-4\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"ICE_CANDIDATE\",\n    \"sdpMid\": \"&lt;candidate id&gt;\",\n    \"sdpMLineIndex\": \"&lt;candidate index&gt;\",\n    \"candidate\": \"&lt;candidate description&gt;\"\n}\n\n</code></pre>\n<h1 id=\"end-call\">End Call</h1>\n<p>This message is sent from the client or server to end the current WebRTC session.</p>\n<h2 id=\"format-5\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"END_CALL\"\n}\n\n</code></pre>\n","event":[{"listen":"prerequest","script":{"id":"3c7d9f11-fb79-410e-bf4c-10a40256a510","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b3ae99e1-3474-415a-b397-907c5d5363af","type":"text/javascript","exec":[""]}}],"_postman_id":"cbfa83b6-7825-4939-9cb2-a8030f832bd6","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}}],"id":"8e8ef85f-0c10-4bc5-a7ce-93bf841ca425","_postman_id":"8e8ef85f-0c10-4bc5-a7ce-93bf841ca425","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Calling List","item":[{"name":"Add Many Records","id":"f361702d-7fba-44f2-bf52-1b778800ab4a","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"fieldName_1\": \"value_1\", \r\n        \"fieldName_n\": \"value_n\"\r\n    },\r\n        {\r\n        \"fieldName_1\": \"value_1\", \r\n        \"fieldName_n\": \"value_n\"\r\n    }\r\n        //  ...\r\n]"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/addAll/<list_name>","description":"<p>This method adds multiple new records to the specified calling list. It returns an error if a record with the same values of unique keys as configured in the list definition already exists. </p>\n<p>Notes:</p>\n<ul>\n<li>Field names are provided as they were defined during list creation.</li>\n<li>Key fields and required fields are mandatory.</li>\n<li><strong>list_name</strong> is the name of the calling list (e.g., list.csv).</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success (may be partial success; additional problem description contained in response)</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","callinglist","addAll","<list_name>"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"c1edf1af-1cef-47fb-bc1f-b3f2c086a3f3","name":"Add Many Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer 15490315E83EBC929978DB0AE84D0AC63F0DC38AAB701A949FDEF6054E4A1AF9","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n    \"ID\": \"5\",\r\n    \"firstName\": \"Blade\",\r\n    \"lastName\": \"Clark\",\r\n    \"Phone\": \"14155555555\",\r\n    \"Status\": \"Gold\"\r\n    },\r\n    \r\n    {\r\n    \"ID\": \"6\",\r\n    \"firstName\": \"Eli\",\r\n    \"lastName\": \"Smit\",\r\n    \"Phone\": \"15105555555\",\r\n    \"Status\": \"Bronze\"\r\n    }\r\n] ","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/addAll/:list_name","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","callinglist","addAll",":list_name"],"variable":[{"key":"list_name","value":"list.csv"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"added\": 2\r\n}"}],"_postman_id":"f361702d-7fba-44f2-bf52-1b778800ab4a"},{"name":"Add Record","id":"85740ee4-d145-4849-973e-8d27bf1bf602","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"fieldName_1\": \"value_1\",\r\n    ...\r\n    \"fieldName_n\": \"value_n\"\r\n}"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/add/:list_name","description":"<p>This method adds a single new record to the specified calling list. It returns an error if a record with the same values of unique keys as configured in the list definition already exists.</p>\n<p>Notes:</p>\n<ul>\n<li>Field names are provided as they were defined during list creation.</li>\n<li>Key fields and required fields are mandatory.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success (response body is empty)</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found or invalid URL</td>\n</tr>\n<tr>\n<td>409</td>\n<td>Duplicate key error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","callinglist","add",":list_name"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"e3ef3eb3-1458-4328-ab26-647a0d698743","description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"}]}},"response":[{"id":"1b977787-6559-4d01-8773-fd177b74fd00","name":"Add Record","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer 15490315E83EBC929978DB0AE84D0AC63F0DC38AAB701A949FDEF6054E4A1AF9","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"ID\": \"4\",\r\n    \"firstName\": \"Post\",\r\n    \"lastName\": \"Melon\",\r\n    \"Phone\": \"16505555555\",\r\n    \"Status\": \"Platinum\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/add/:list_name","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","callinglist","add",":list_name"],"variable":[{"key":"list_name","value":"list.csv"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"85740ee4-d145-4849-973e-8d27bf1bf602"},{"name":"Delete All Records","id":"d6ae3a8e-c85c-4c2c-85c5-2ee702cd9a70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/deleteAll/:list_name","description":"<p>This method deletes all records from the calling list. List results are also deleted. It returns OK if the list exists but is empty already. Note that this method erases calling list results and it will do so regardless of whether the results have been exported or not.</p>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges, or modification of this type of list is not allowed</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","callinglist","deleteAll",":list_name"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"ca6de259-1ace-4495-bb28-070c4bdff4e2","description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"}]}},"response":[{"id":"08ecd92c-f5fa-4410-abef-3fac65d264fa","name":"Delete All Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer 15490315E83EBC929978DB0AE84D0AC63F0DC38AAB701A949FDEF6054E4A1AF9","type":"text"}],"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/deleteAll/:list_name","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","callinglist","deleteAll",":list_name"],"variable":[{"key":"list_name","value":"list.csv"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d6ae3a8e-c85c-4c2c-85c5-2ee702cd9a70"},{"name":"Get All Records","id":"36094733-7ba2-4813-a522-96a0448f04da","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fromIndex\": 123456,\r\n    \"maxSize\": 100\r\n}"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/getAll/:list_name/:campaign_name","description":"<p>Calling list records are sequentially numbered in order of insertion, beginning from zero. This method returns a list of records in the calling list that has an index that is greater than or to equal to the requested record index.</p>\n<p>Input parameters are \"initial record index\" and \"maximum size of returned list.\" Current implementation limits \"maxSize\" to 1000 records. All time values are returned in UTC.</p>\n<p>Notes:</p>\n<ul>\n<li>The returned list contains JSON objects sorted by index.</li>\n<li>The “entry” field of these objects contains a copy of the list entry</li>\n<li>Field names are provided as they were defined during list creation.</li>\n<li>The “status” field contains the results of calling this record in this campaign.</li>\n<li>Field names are predefined.</li>\n<li>“Completed” is always present; all other fields may be absent if the record was never called or never reached the agent.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found, campaign is not found, or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","callinglist","getAll",":list_name",":campaign_name"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"0af38a1b-e926-4d1a-8e62-62ba50b6f885","description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"},{"id":"ff583fb0-271c-45ec-b3f4-75519757c6fd","description":{"content":"<p>The name of the outbound campaign (e.g., Outbound Campaign)</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_name"}]}},"response":[{"id":"937826c6-944e-4c2f-abd7-b15c4d9f6698","name":"Get All Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer 15490315E83EBC929978DB0AE84D0AC63F0DC38AAB701A949FDEF6054E4A1AF9","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fromIndex\": 0,\r\n    \"maxSize\": \"100\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/getAll/:list_name/:campaign_name","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","callinglist","getAll",":list_name",":campaign_name"],"variable":[{"key":"list_name","value":"list.csv"},{"key":"campaign_name","value":"Outbound%20Campaign"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"entry\": {\n            \"firstname\": \"Graham\",\n            \"phone\": \"16509999999\",\n            \"id\": \"1\",\n            \"lastname\": \"Smith\",\n            \"status\": \"Gold\"\n        },\n        \"index\": 0,\n        \"status\": {\n            \"globalInteractionID\": \"0B767156-D012-4F63-A3E2-12ACFC2F26EA\",\n            \"lastCallDuration\": 0,\n            \"lastDisposition\": \"No disposition\",\n            \"totalAttempts\": 1,\n            \"completed\": false,\n            \"lastAgent\": \"elizabeth\",\n            \"lastPhone\": \"16509999999\",\n            \"lastDate\": \"2021-02-19T19:11:40.000\"\n        }\n    },\n    {\n        \"entry\": {\n            \"firstname\": \"Mike\",\n            \"phone\": \"16507777777\",\n            \"id\": \"2\",\n            \"lastname\": \"Miller\",\n            \"status\": \"Platinum\"\n        },\n        \"index\": 1,\n        \"status\": {\n            \"globalInteractionID\": \"3F4F2ACD-1233-42E3-8092-3A9F7D9D84BC\",\n            \"lastCallDuration\": 0,\n            \"lastDisposition\": \"Try again later\",\n            \"totalAttempts\": 1,\n            \"completed\": false,\n            \"lastAgent\": \"elizabeth\",\n            \"lastPhone\": \"16507777777\",\n            \"lastDate\": \"2021-02-19T19:12:21.000\"\n        }\n    },\n    {\n        \"entry\": {\n            \"firstname\": \"Katrina\",\n            \"phone\": \"16505555555\",\n            \"id\": \"3\",\n            \"lastname\": \"Johnson\",\n            \"status\": \"Silver\"\n        },\n        \"index\": 2,\n        \"status\": {\n            \"globalInteractionID\": \"9D914127-C1C4-4587-8B30-4E2A9790D184\",\n            \"lastCallDuration\": 0,\n            \"lastDisposition\": \"Product sold\",\n            \"totalAttempts\": 1,\n            \"completed\": true,\n            \"lastAgent\": \"elizabeth\",\n            \"lastPhone\": \"16505555555\",\n            \"lastDate\": \"2021-02-19T19:12:37.000\"\n        }\n    },\n    {\n        \"entry\": {\n            \"firstname\": \"Jenny\",\n            \"phone\": \"16502222222\",\n            \"id\": \"4\",\n            \"lastname\": \"Green\",\n            \"status\": \"Gold\"\n        },\n        \"index\": 3,\n        \"status\": {\n            \"globalInteractionID\": \"35DE77AC-5A37-4907-97CA-50B09B30ECDF\",\n            \"lastCallDuration\": 0,\n            \"lastDisposition\": \"Fast busy\",\n            \"totalAttempts\": 1,\n            \"completed\": false,\n            \"lastAgent\": \"elizabeth\",\n            \"lastPhone\": \"16502222222\",\n            \"lastDate\": \"2021-02-19T19:13:08.000\"\n        }\n    }\n]"}],"_postman_id":"36094733-7ba2-4813-a522-96a0448f04da"},{"name":"Get Completed Records","id":"85891eb4-b19f-436e-a9fe-ad0513c01ffe","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fromTime\": \"2013-03-01T13:15:06.456\",\r\n    \"maxSize\": \"100\"\r\n}"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/getCompleted/:list_name/:campaign_name","description":"<p>This method returns a list of completed records in the calling list that have a completion time that is greater than or equal to the requested initial time (UTC). Input parameters are the initial time in ISO format and the maximum size of the returned list. Current implementation limits \"maxSize\" to 1000 records. All time values are returned in UTC.</p>\n<p>Notes:</p>\n<ul>\n<li>The returned list contains JSON objects sorted by completion time.</li>\n<li>The “entry” field of these objects contains a copy of the list entry.</li>\n<li>Field names are provided as they were defined during list creation.</li>\n<li>The “status” field contains the results of calling this record in this campaign.</li>\n<li>Field names are predefined.</li>\n<li>“Completed” is always present; all other fields may be absent if record was never called or never reached agent.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found, campaign is not found, or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","callinglist","getCompleted",":list_name",":campaign_name"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"52b71d08-633d-4126-8649-c0cb2864bd03","description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"},{"id":"40aeac80-b41e-437a-999b-1aafeee6db90","description":{"content":"<p>The name of the outbound campaign (e.g., Outbound Campaign)</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_name"}]}},"response":[{"id":"3dd8633a-a243-4991-8a1e-621a1ac4d532","name":"Get Completed Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer 15490315E83EBC929978DB0AE84D0AC63F0DC38AAB701A949FDEF6054E4A1AF9","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fromTime\": \"2021-02-01T13:15:06.456\",\r\n    \"maxSize\": \"100\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/getChanged/:list_name/:campaign_name","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","callinglist","getChanged",":list_name",":campaign_name"],"variable":[{"key":"list_name","value":"list.csv"},{"key":"campaign_name","value":"Outbound%20Campaign"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"completedTime\": \"2021-02-19T19:12:37.000\",\n        \"entry\": {\n            \"firstname\": \"Katrina\",\n            \"phone\": \"16502222222\",\n            \"id\": \"3\",\n            \"lastname\": \"Johnson\",\n            \"status\": \"Silver\"\n        },\n        \"status\": {\n            \"globalInteractionID\": \"9D914127-C1C4-4587-8B30-4E2A9790D184\",\n            \"lastCallDuration\": 0,\n            \"lastDisposition\": \"Product sold\",\n            \"totalAttempts\": 1,\n            \"completed\": true,\n            \"lastAgent\": \"elizabeth\",\n            \"lastPhone\": \"16502222222\",\n            \"lastDate\": \"2021-02-19T19:12:37.000\"\n        }\n    }\n]"}],"_postman_id":"85891eb4-b19f-436e-a9fe-ad0513c01ffe"},{"name":"Get Updated Records","id":"1cc8cf5e-b179-428d-907a-843872052f46","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fromTime\": \"2013-03-01T13:15:06.456\",\r\n    \"maxSize\": \"100\"\r\n}"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/getCompleted/:list_name/:campaign_name","description":"<p>This method returns records of the specified calling list that have had any activity within the specified campaign since the requested initial time.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","callinglist","getCompleted",":list_name",":campaign_name"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"a0dcf1a5-a62c-4ce3-b9b5-a5df84b95b2a","description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"},{"id":"3dbc3705-e4ee-4be5-84d1-a989062fb584","description":{"content":"<p>The name of the outbound campaign (e.g., Outbound Campaign)</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_name"}]}},"response":[{"id":"e4da0033-c209-44b5-b375-afe0a613f8c4","name":"Get Updated Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer 15490315E83EBC929978DB0AE84D0AC63F0DC38AAB701A949FDEF6054E4A1AF9","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fromTime\": \"2021-01-01T13:15:06.456\",\r\n    \"maxSize\": \"100\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/getChanged/:list_name/:campaign_name","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","callinglist","getChanged",":list_name",":campaign_name"],"variable":[{"key":"list_name","value":"list.csv"},{"key":"campaign_name","value":"Outbound%20Campaign"}]}},"status":"Success","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"entry\": {\n            \"firstname\": \"Graham\",\n            \"phone\": \"16509999999\",\n            \"id\": \"1\",\n            \"lastname\": \"Smith\",\n            \"status\": \"Gold\"\n        },\n        \"completed\": false,\n        \"recordDisposition\": \"\",\n        \"recordDispositionCode\": \"\",\n        \"totalAttempts\": 1,\n        \"attempts\": [\n            {\n                \"call_attempted\": false,\n                \"disposition\": \"No disposition\",\n                \"dispositionCode\": \"\",\n                \"date\": \"2021-02-19T19:11:40.000\",\n                \"phone\": \"16509999999\",\n                \"callDuration\": 0,\n                \"dialingDuration\": 0,\n                \"callNotes\": \"\",\n                \"agent\": \"elizabeth\",\n                \"globalInteractionID\": \"0B767156-D012-4F63-A3E2-12ACFC2F26EA\",\n                \"CPADuration\": 0\n            }\n        ]\n    },\n    {\n        \"entry\": {\n            \"firstname\": \"Mike\",\n            \"phone\": \"16507777777\",\n            \"id\": \"2\",\n            \"lastname\": \"Miller\",\n            \"status\": \"Platinum\"\n        },\n        \"completed\": false,\n        \"recordDisposition\": \"\",\n        \"recordDispositionCode\": \"\",\n        \"totalAttempts\": 1,\n        \"attempts\": [\n            {\n                \"call_attempted\": false,\n                \"disposition\": \"Try again later\",\n                \"dispositionCode\": \"\",\n                \"date\": \"2021-02-19T19:12:21.000\",\n                \"phone\": \"16507777777\",\n                \"callDuration\": 0,\n                \"dialingDuration\": 0,\n                \"callNotes\": \"\",\n                \"agent\": \"elizabeth\",\n                \"globalInteractionID\": \"3F4F2ACD-1233-42E3-8092-3A9F7D9D84BC\",\n                \"CPADuration\": 0\n            }\n        ]\n    },\n    {\n        \"entry\": {\n            \"firstname\": \"Katrina\",\n            \"phone\": \"16505555555\",\n            \"id\": \"3\",\n            \"lastname\": \"Johnson\",\n            \"status\": \"Silver\"\n        },\n        \"completed\": true,\n        \"recordDisposition\": \"Product sold\",\n        \"recordDispositionCode\": \"\",\n        \"totalAttempts\": 1,\n        \"attempts\": [\n            {\n                \"call_attempted\": false,\n                \"disposition\": \"Product sold\",\n                \"dispositionCode\": \"\",\n                \"date\": \"2021-02-19T19:12:37.000\",\n                \"phone\": \"16505555555\",\n                \"callDuration\": 0,\n                \"dialingDuration\": 0,\n                \"callNotes\": \"\",\n                \"agent\": \"elizabeth\",\n                \"globalInteractionID\": \"9D914127-C1C4-4587-8B30-4E2A9790D184\",\n                \"CPADuration\": 0\n            }\n        ]\n    },\n    {\n        \"entry\": {\n            \"firstname\": \"Jenny\",\n            \"phone\": \"16502222222\",\n            \"id\": \"4\",\n            \"lastname\": \"Green\",\n            \"status\": \"Gold\"\n        },\n        \"completed\": false,\n        \"recordDisposition\": \"\",\n        \"recordDispositionCode\": \"\",\n        \"totalAttempts\": 1,\n        \"attempts\": [\n            {\n                \"call_attempted\": false,\n                \"disposition\": \"Fast busy\",\n                \"dispositionCode\": \"\",\n                \"date\": \"2021-02-19T19:13:08.000\",\n                \"phone\": \"16502222222\",\n                \"callDuration\": 0,\n                \"dialingDuration\": 0,\n                \"callNotes\": \"\",\n                \"agent\": \"elizabeth\",\n                \"globalInteractionID\": \"35DE77AC-5A37-4907-97CA-50B09B30ECDF\",\n                \"CPADuration\": 0\n            }\n        ]\n    }\n]"}],"_postman_id":"1cc8cf5e-b179-428d-907a-843872052f46"},{"name":"Query a Record","id":"bb522267-ab63-4593-9966-71fb93b7dae6","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"keyfieldName_1\": \"value_1\",\r\n    ...\r\n    \"keyfieldName_n\": \"value_n\"\r\n}"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/get/:list_name/:campaignname","description":"<p>This method queries the status of an existing record in the specified calling list in the specified campaign. It returns an error if a record with the same values of unique keys as configured in the list definition does not exist. All time values are returned in UTC.</p>\n<p>Notes:</p>\n<ul>\n<li>Campaign name is optional but has to be present.</li>\n<li>Use any string value instead.</li>\n<li>The request can contain either a full or partial set of fields for the object, but the key fields are mandatory.</li>\n<li>Only key fields are used for the object search; the non-key fields are ignored.</li>\n<li>There are two sub-objects in the returned JSON.</li>\n<li>The “entry” contains a copy of the list entry.</li>\n<li>Field names are provided as they were defined during list creation.</li>\n<li>The “status” contains the results of calling this record in this campaign.</li>\n<li>Field names are predefined.</li>\n<li>“Completed” is always present; all other fields may be absent if the record was never called or never reached agent.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found, record is not found, or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","callinglist","get",":list_name",":campaignname"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"22218abf-ee58-4d42-8d2f-91061f4c4d94","description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"},{"id":"fc629c22-521a-4224-addd-ab1f7fbde732","description":{"content":"<p>The name of outbound campaign (e.g., Outbound Campaign)</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaignname"}]}},"response":[{"id":"5b5cf51a-5321-44cb-9266-1036ba8a4edb","name":"Query a Record","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer 15490315E83EBC929978DB0AE84D0AC63F0DC38AAB701A949FDEF6054E4A1AF9","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"2\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/get/:list_name/:campaignname","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","callinglist","get",":list_name",":campaignname"],"variable":[{"key":"list_name","value":"list.csv"},{"key":"campaignname","value":"Outbound%20Campaign"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"entry\": {\n        \"firstname\": \"Mike\",\n        \"phone\": \"16505555555\",\n        \"id\": \"2\",\n        \"lastname\": \"Miller\",\n        \"status\": \"Platinum\"\n    },\n    \"status\": {\n        \"globalInteractionID\": \"3F4F2ACD-1233-42E3-8092-3A9F7D9D84BC\",\n        \"lastCallDuration\": 0,\n        \"lastDisposition\": \"Try again later\",\n        \"totalAttempts\": 1,\n        \"completed\": false,\n        \"lastAgent\": \"elizabeth\",\n        \"lastPhone\": \"16505555555\",\n        \"lastDate\": \"2021-02-19T19:12:21.000\"\n    }\n}"}],"_postman_id":"bb522267-ab63-4593-9966-71fb93b7dae6"},{"name":"Update Record","id":"de52f764-9ffe-4f74-a59d-bee3401185a6","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fieldName_1\": \"value_1\",\r\n    ...\r\n    \"fieldName_n\": \"value_n\"\r\n}"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/update/:list_name","description":"<p>This method updates fields in an existing record in the specified calling list. It returns an error if a record with the same values of unique keys as configured in the list definition does not exist. The unique keys cannot be changed.</p>\n<p><strong>Note</strong>: Updating a list record requires internal reprocessing of the entire calling list. Thus, if this method is applied to a list within a running campaign, the use of this list within the given campaign will be suspended until list reprocessing is complete. The suspension time will depend on the list size and, for long lists, may amount to tens of minutes. Other lists associated with the same campaign will not be affected.</p>\n<p>Other Notes:</p>\n<ul>\n<li>Field names are provided as they were defined during list creation.</li>\n<li>The request can contain either a full or partial set of fields for the object, but the key fields are mandatory.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found, record is not found, or invalid URL (body is empty)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","callinglist","update",":list_name"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"f6231988-0e6f-462c-8ebf-c53213bac654","description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"}]}},"response":[{"id":"6f6b5272-da0c-4e77-a22d-79ab35ca4db8","name":"Update Record","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer 15490315E83EBC929978DB0AE84D0AC63F0DC38AAB701A949FDEF6054E4A1AF9","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"ID\": \"4\",\r\n    \"firstName\": \"Posty\",\r\n    \"lastName\": \"Melon\",\r\n    \"Phone\": \"16505555555\",\r\n    \"Status\": \"Platinum\"\r\n}"},"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/callinglist/update/:list_name","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","callinglist","update",":list_name"],"variable":[{"key":"list_name","value":"list.csv"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"de52f764-9ffe-4f74-a59d-bee3401185a6"}],"id":"eef56bf6-e90e-4cbb-a64f-40d2ac9d3a37","description":"<h1 id=\"introduction\">Introduction</h1>\n<p>With the OneCloud CX List Management API you currently can:</p>\n<ul>\n<li>Manage the contents of <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-lists\">outbound calling lists</a></li>\n<li>Manage the contents of <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-do-not-call-lists\">Do Not Call lists</a></li>\n<li>Get information about <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-outbound-tab\">enabled outbound campaigns</a></li>\n</ul>\n<p>This document specifies the corresponding REST API methods, with example requests and responses. You can load this API into the <a href=\"https://www.getpostman.com/\">Postman API Development Environment</a> to interact with the API with your own access tokens.</p>\n","event":[{"listen":"prerequest","script":{"id":"a1bc3b13-0f55-4ec1-b3eb-922a3142d673","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"de86ee25-6b23-4f8f-8176-b4cbb11fcef4","type":"text/javascript","exec":[""]}}],"_postman_id":"eef56bf6-e90e-4cbb-a64f-40d2ac9d3a37","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Campaigns","item":[{"name":"Get Campaigns","id":"80237a68-c786-453f-b515-3b9c67bd9c01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://mytenant.cx.onecloud.com/configapi/v2/campaign/getAll/","description":"<p>This method returns the list of enabled campaigns and the calling lists currently associated with such campaigns. It does not return any disabled campaigns.</p>\n<p>Notes:</p>\n<ul>\n<li>An empty array can be returned if there are no enabled campaigns.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","campaign","getAll",""],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[]}},"response":[{"id":"65b8b2bf-4fab-4a2e-b2e1-dd117a305df6","name":"Get Campaigns","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer 15490315E83EBC929978DB0AE84D0AC63F0DC38AAB701A949FDEF6054E4A1AF9","type":"text"}],"url":"https://mytenant.cx.onecloud.com/configapi/v2/campaign/getAll/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\r\n    {\r\n        \"name\": \"CupIQ Dynamics Preview\",\r\n        \"state\": \"STOPPED\",\r\n        \"lists\": [\r\n            \"CupIQ Dynamics Preview.csv\"\r\n        ]\r\n    }\r\n]"}],"_postman_id":"80237a68-c786-453f-b515-3b9c67bd9c01"}],"id":"25832ece-154a-4570-8989-a016d7590d57","_postman_id":"25832ece-154a-4570-8989-a016d7590d57","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Do Not Call List","item":[{"name":"Add Records to DNC","id":"53ebc70f-977c-42da-9929-cff0180b4a5e","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    [\r\n        \"123456789\",\r\n        \"optional comment\"\r\n    ],\r\n   …\r\n   [\r\n        \"9999999999\",\r\n        \"optional comment\"\r\n    ]\r\n]"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/donotcalllist/add/:do_not_call_list_name","description":"<p>This method adds new records to the specified Do Not Call (DNC) list and returns the number of added (i.e., appended) records. Duplicates are ignored.</p>\n<p>An optional comment field value is inserted in the comment field of a geographic (postal) DNC record, campaign name field of an internal DNC record, and in the comment field of area codes DNC record. This method is supported for internal, geographic postal, area codes, and record exclusion <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-do-not-call-lists\">DNC lists</a>.</p>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges, or modification of this type of list is not allowed</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","donotcalllist","add",":do_not_call_list_name"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"2c13f596-6753-4dba-98ac-0fc2021622ff","description":{"content":"<p>The name of the Do Not Call list (e.g., DNC_List)</p>\n","type":"text/plain"},"type":"any","value":"","key":"do_not_call_list_name"}]}},"response":[{"id":"5ea99db1-3c6f-43a9-8ef2-09b80c56a5af","name":"Add Records to DNC","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer 15490315E83EBC929978DB0AE84D0AC63F0DC38AAB701A949FDEF6054E4A1AF9","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    [\r\n        \"123456789\",\r\n        \"optional comment\"\r\n    ],\r\n    [\r\n        \"9999999999\",\r\n        \"optional comment\"\r\n    ]\r\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/donotcalllist/add/:do_not_call_list_name","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","donotcalllist","add",":do_not_call_list_name"],"variable":[{"key":"do_not_call_list_name","value":"DNC_List"}]}},"status":"Success","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"added\": 2\r\n}"}],"_postman_id":"53ebc70f-977c-42da-9929-cff0180b4a5e"},{"name":"Replace Records in DNC","id":"08783a90-28d0-4937-979c-18d8156cbbe9","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    [\r\n        \"123456789\",\r\n        \"optional comment\"\r\n    ],\r\n   …\r\n   [\r\n        \"9999999999\",\r\n        \"optional comment\"\r\n    ]\r\n]"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/donotcalllist/replaceAll/:do_not_call_list_name","description":"<p>The method replaces all records in the specified Do Not Call (DNC) list and returns the number of newly inserted records. Duplicates are ignored. An optional comment field value is inserted in the comment field of a geographic (postal) DNC record, campaign name field of an internal DNC record, and in the comment field of area codes DNC record. This method is supported for internal, geographic postal area codes, and accounts' <a href=\"https://support.onecloud.com/portal/en/kb/articles/cx-do-not-call-lists\">DNC lists</a>.</p>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges, or modification of this type of list is not allowed</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","donotcalllist","replaceAll",":do_not_call_list_name"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"71fa5297-91cc-4f87-a3ff-f4460f9e8ae5","description":{"content":"<p>The name of the Do Not Call list (e.g., DNC_List)</p>\n","type":"text/plain"},"type":"any","value":"","key":"do_not_call_list_name"}]}},"response":[{"id":"54f20486-c6f7-4bf1-bb4c-8c97c16c9eb6","name":"Replace Records in DNC","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer 15490315E83EBC929978DB0AE84D0AC63F0DC38AAB701A949FDEF6054E4A1AF9","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    [\r\n        \"123456789\",\r\n        \"optional comment\"\r\n    ],\r\n    [\r\n        \"9999999999\",\r\n        \"optional comment\"\r\n    ]\r\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/donotcalllist/replaceAll/:do_not_call_list_name","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","donotcalllist","replaceAll",":do_not_call_list_name"],"variable":[{"key":"do_not_call_list_name","value":"DNC_List"}]}},"status":"Success","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"added\": 2\r\n}"}],"_postman_id":"08783a90-28d0-4937-979c-18d8156cbbe9"},{"name":"Delete All Records","id":"5bc0ef70-b756-4e21-8077-d1a37650543e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://mytenant.cx.onecloud.com/configapi/v2/donotcalllist/deleteAll/:do_not_call_list_name","description":"<p>This method deletes all records from the specified DNC List and returns the number of deleted records.</p>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges, or modification of this type of list is not allowed</td>\n</tr>\n<tr>\n<td>404</td>\n<td>DNC List is not found or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","donotcalllist","deleteAll",":do_not_call_list_name"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"87ec5d88-8e33-45b0-a90d-e0a8846dc9df","description":{"content":"<p>The name of the Do Not Call list (e.g., DNC_List)</p>\n","type":"text/plain"},"type":"any","value":null,"key":"do_not_call_list_name"}]}},"response":[{"id":"1c3cc4a0-cc1c-47ab-aeb3-04e7f5d6d72e","name":"Delete All Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/donotcalllist/deleteAll/:do_not_call_list_name","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","donotcalllist","deleteAll",":do_not_call_list_name"],"variable":[{"key":"do_not_call_list_name","value":null,"description":"The name of the Do Not Call list (e.g., DNC_List)"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5bc0ef70-b756-4e21-8077-d1a37650543e"},{"name":"Delete Records","id":"b062fa15-60fe-47e7-9f2e-9f1039bc3a91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"key\": \"9999999\"\r\n    },\r\n    {\r\n        \"key\": \"8888888\"\r\n    }\r\n]\r\n"},"url":"https://mytenant.cx.onecloud.com/configapi/v2/donotcalllist/delete/:do_not_call_list_name","description":"<p>This method deletes the list of specified records from the DNC List, returns the number of deleted records and list of errors if there are.</p>\n<p>Input parameters:</p>\n<ul>\n<li>List of DNC list record JSON objects</li>\n<li>Only the \"key\" field is required.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges, or modification of this type of list is not allowed</td>\n</tr>\n<tr>\n<td>404</td>\n<td>DNC List is not found or invalid URL  <br /></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}},"urlObject":{"protocol":"https","path":["configapi","v2","donotcalllist","delete",":do_not_call_list_name"],"host":["mytenant.cx.onecloud.com"],"query":[],"variable":[{"id":"034efef1-e757-4a2e-bee5-51c8ec041119","description":{"content":"<p>The name of the Do Not Call list (e.g., DNC_List)</p>\n","type":"text/plain"},"type":"any","value":null,"key":"do_not_call_list_name"}]}},"response":[{"id":"396a203d-3698-4356-8916-2d2e22ef1699","name":"Delete Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"key\": \"9999999\"\r\n    },\r\n    {\r\n        \"key\": \"8888888\"\r\n    }\r\n]\r\n"},"url":{"raw":"https://mytenant.cx.onecloud.com/configapi/v2/donotcalllist/delete/:do_not_call_list_name","protocol":"https","host":["mytenant.cx.onecloud.com"],"path":["configapi","v2","donotcalllist","delete",":do_not_call_list_name"],"variable":[{"key":"do_not_call_list_name","value":null,"description":"The name of the Do Not Call list (e.g., DNC_List)"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b062fa15-60fe-47e7-9f2e-9f1039bc3a91"}],"id":"60f5d6bb-9ba5-45b9-a5b4-09a573594a01","event":[{"listen":"prerequest","script":{"id":"331f37a1-94d7-409e-bb33-c046ed611921","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1b7a73c6-8141-4163-8229-995e6831b0fd","type":"text/javascript","exec":[""]}}],"_postman_id":"60f5d6bb-9ba5-45b9-a5b4-09a573594a01","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}},{"name":"Error Codes","item":[],"id":"0486485b-0746-4494-9265-5423851dda30","description":"<ul>\n<li><strong>400 Bad Request</strong> - Indicates that the requested operation cannot be performed either because it violates data integrity rules or not supported by the API. The body of the error message may contain information about a specific element of the request (e.g., a specific object property) that is causing the request to be rejected.</li>\n<li><strong>404 Not Found</strong> - For GET methods, indicates that the requested object cannot be found. For POST and PUT methods, indicates that one of the objects referred to in the properties specified in the request cannot be found. The body of the error message may indicate the type of object that could not be found (e.g., <em>user team not found</em>).</li>\n<li><strong>409 Conlict</strong> - Indicates that an object with the given value of a unique parameter (e.g., <em>username</em>) already exists.</li>\n<li><strong>415 Unsupported Media Type</strong> - The media type is either not specified or specified incorrectly.</li>\n<li><strong>500 Request Failed</strong> - Incorrect endpoint specification.</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"8c924088-8f19-423c-a932-62d0a8c58f94"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"c11cf206-9e69-4489-a28c-5a1c829ded2d"}}],"_postman_id":"0486485b-0746-4494-9265-5423851dda30","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]},"isInherited":true,"source":{"_postman_id":"2554f124-6b57-4229-8ffe-d7778d349e25","id":"2554f124-6b57-4229-8ffe-d7778d349e25","name":"OneCloud CX","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"myAccessTokenHereXXXXXXXXXXXXX"}]}},"event":[{"listen":"prerequest","script":{"id":"2254f942-9196-49b0-ad57-d7f8727dbae4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ff438376-b03e-4ef8-8204-72483d48fedc","type":"text/javascript","exec":[""]}}],"variable":[{"key":"tenant-url","value":"mytenant.cx.onecloud.com","type":"string"},{"key":"cx-api-key","value":"myapikeyhereXXXXXXXXXXXXXXXXXX","type":"string"},{"key":"username","value":"myuser"},{"key":"cx_access_token","value":"myAccessTokenHereXXXXXXXXXXXXX","type":"string"},{"key":"app_id","value":"<app_id>"},{"key":"Unique Client ID","value":"WebChat"}]}