{"info":{"_postman_id":"529d7119-d1fa-442e-b05f-db159b61cd7b","name":"Ytel API","description":"<html><head></head><body><p>Expand your functionality with Inbox, Workflow and our Rest APIs</p>\n<p>It's time to build! Connect with customers everywhere they want to engage with you - from text messages, emails, phone calls, and more.</p>\n<p>Our world class REST APIs will give you the power to turn your vision into reality.</p>\n<p>Documentation around our UI can be found on our <a href=\"https://docs.ytel.com/\">Ytel Documentation</a> site.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"489142","collectionId":"529d7119-d1fa-442e-b05f-db159b61cd7b","publishedId":"2s9YRDzAaD","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"0371e1"},"publishDate":"2023-10-24T19:12:23.000Z"},"item":[{"name":"CPaaS API","item":[{"name":"Authentication","item":[{"name":"Request a Token","id":"1bb5a22b-36b1-4300-9d63-70cae9ce366b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"captcha\": \"\",\n    \"grantType\": \"resource_owner_credentials\",\n    \"password\": \"{{password}}\",\n    \"refreshToken\": \"\",\n    \"username\": \"{{email}}\",\n    \"refreshDurationMinutes\": 120\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/auth/v3/token","description":"<p>Requests a bearer token for making requests to the Ytel API v4.</p>\n<p><code>grantType</code> accepted values:</p>\n<p>\"resource_owner_credentials\" or \"refresh_token\"</p>\n<p><code>captcha</code> is for future use and can be ignored.</p>\n<p><code>refreshDurationMinutes</code> is optional and represents the number of minutes for which a refresh token will be valid for.</p>\n","urlObject":{"protocol":"https","path":["auth","v3","token"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[{"id":"c0e16a73-596a-4059-a5d4-65934401514f","name":"Example Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"captcha\": \"\",\n    \"grantType\": \"resource_owner_credentials\",\n    \"password\": \"{{password}}\",\n    \"refreshToken\": \"\",\n    \"username\": \"{{email}}\",\n    \"refreshDurationMinutes\": 120\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/auth/v3/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1125"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit-Second","value":"25"},{"key":"RateLimit-Limit","value":"25"},{"key":"RateLimit-Remaining","value":"24"},{"key":"RateLimit-Reset","value":"1"},{"key":"X-RateLimit-Remaining-Second","value":"24"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"content-encoding","value":"gzip"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-Kong-Upstream-Latency","value":"109"},{"key":"X-Kong-Proxy-Latency","value":"1"},{"key":"Via","value":"kong/2.8.3"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accessToken\": \"syJ0eXAiOiJ.GciOiJSUzI1NiJ9.eyJzdWIiOiIxNzNjNmY3.J1SGFzaCI6Ijg2Mjc2MTVkYTk1YjYzM2\",\n            \"refreshToken\": \"syJ0eXA.GciOiJSUzI1NiJ9.eyJzdWIiOiIxN.WNjdCI6IjE3M2M2ZjdmLWM5MTEtZjgyMy1mYjJkLWw\",\n            \"tokenType\": \"Bearer\"\n        }\n    ]\n}"}],"_postman_id":"1bb5a22b-36b1-4300-9d63-70cae9ce366b"}],"id":"1e77b154-c236-4fb6-8050-14197a292be2","description":"<p>This API generates a token for the v4 API Endpoints <strong>only</strong>.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"b85aebe2-80b1-4ec1-a376-e2d873c9cfa6"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"67d40927-48a1-4810-b37f-75ac81b6c00a"}}],"_postman_id":"1e77b154-c236-4fb6-8050-14197a292be2"},{"name":"Account Management","item":[{"name":"Get Account","id":"642d129e-9475-4cc1-ae8d-9e1af26c75ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"https://api.ytel.com/ams/v3/accounts","description":"<p>Retrieves details about the current account.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"642d129e-9475-4cc1-ae8d-9e1af26c75ef"},{"name":"Get Account Address","id":"47e39769-45aa-4b76-bccc-125940503872","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"https://api.ytel.com/ams/v3/accounts/address/","description":"<p>Retrieves the physical address of the current account.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","address",""],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"47e39769-45aa-4b76-bccc-125940503872"},{"name":"Get Subaccounts","id":"86e2e76a-fbe9-4a87-9443-04ff5fe2acab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"https://api.ytel.com/ams/v3/accounts/subaccounts","description":"<p>Retrieves details about all of an account's subaccounts.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","subaccounts"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"86e2e76a-fbe9-4a87-9443-04ff5fe2acab"},{"name":"Edit Account","id":"9b78e442-f97b-47d8-899c-2dda1ecda520","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"domain\": \"\",\n  \"name\": \"Apple Lending\",\n  \"phone\": \"+1234567899\",\n  \"isParentAcct\": false,\n  \"parentAcctId\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n  \"source\": \"Customer\",\n  \"status\": 1,\n  \"id\": null\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/accounts","description":"<p>Edits the details about an account. This method will replace all editable fields on an account with the provided values.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b78e442-f97b-47d8-899c-2dda1ecda520"},{"name":"Edit Account Status","id":"0e50ce23-e3dd-418f-8ea5-7002718c9a03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"inactive\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/accounts/status/:accountId","description":"<p>Adjust the active/inactive state of a subaccount.</p>\n<p>Valid values: <em>active</em>, <em>inactive</em>, <em>and closed</em>.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","status",":accountId"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"e7241ec1-b404-443c-8ddd-0f32c2674f03","type":"any","value":null,"key":"accountId"}]}},"response":[],"_postman_id":"0e50ce23-e3dd-418f-8ea5-7002718c9a03"},{"name":"Create Sub-Account","id":"4e7dee3a-9491-4a31-af04-94bd22c6e881","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"domain\": \"\",\n  \"name\": \"Apple Lending\",\n  \"phone\": \"+1234567899\",\n  \"isParentAcct\": false,\n  \"parentAcctId\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n  \"source\": \"Customer\",\n  \"status\": 1,\n  \"id\": null\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/accounts","description":"<p>Some customers like to organize their users under companies. To achieve this a sub-account can be created for a sub-organization and users can be created under that sub-account.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4e7dee3a-9491-4a31-af04-94bd22c6e881"},{"name":"Delete Subaccount","id":"336e4c88-a424-4534-87b3-6d4a6fda67d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"https://api.ytel.com/ams/v3/accounts/:accountSid","description":"<p>Deletes a subaccount.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts",":accountSid"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"6cfa0e24-ff67-43e5-b30e-fc503ed3f617","type":"any","value":null,"key":"accountSid"}]}},"response":[],"_postman_id":"336e4c88-a424-4534-87b3-6d4a6fda67d6"},{"name":"Get Account Funds","id":"de5aafa4-5c68-4411-83b0-52bee94f2111","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"https://api.ytel.com/ams/v3/accounts/totalFunds","description":"<p>Retrieves the existing balance for the account. This is only available for parent accounts.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","totalFunds"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"de5aafa4-5c68-4411-83b0-52bee94f2111"},{"name":"Get Account Balance Alerts","id":"25e422dc-b3eb-4fd1-ad12-19aba7d281e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"https://api.ytel.com/ams/v3/accounts/balanceAlert","description":"<p>Retrieves the existing balance alerts for the account. Balance alerts are events that will fire when balance thresholds are met.</p>\n<p>This is only available for parent accounts.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","balanceAlert"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"25e422dc-b3eb-4fd1-ad12-19aba7d281e5"},{"name":"Add Account Balance Alert","id":"4ac6657f-ace9-4fe4-ae54-a484b2194fdf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"balanceAlertAmount\": 20.00,\n    \"minAlertAmount\": 1.00,\n    \"emailAddress\": \"myEmail@mycompany.com\"\n}"},"url":"https://api.ytel.com/ams/v3/accounts/balanceAlert","description":"<p>Adds a new balance alerts for the account. A balance alert will be sent to the specified email address each time the account's balance drops below the specified threshold.</p>\n<p>This is only available for parent accounts.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","balanceAlert"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4ac6657f-ace9-4fe4-ae54-a484b2194fdf"}],"id":"8f035c0a-f7bd-4340-8647-c951f63556db","description":"<p>Account management endpoints allow for viewing data about an account and it's subaccounts.</p>\n<p><strong>Account and User management endpoints require a token generated by the Authentication endpoint. A long lived token generated in the UI will not work with these endpoints.</strong></p>\n<p>Standard values on an account:</p>\n<ul>\n<li><p><strong>id</strong>: Account id. This is a UUID.</p>\n</li>\n<li><p><strong>name</strong>: Name of the account.</p>\n</li>\n<li><p><strong>emailAddress</strong>: Email address of the primary contact for the account.</p>\n</li>\n<li><p><strong>contactId</strong>: Deprecated field.</p>\n</li>\n<li><p><strong>ytelCompanyId</strong>: Deprecated field.</p>\n</li>\n<li><p><strong>parentAcctId</strong>: Account id of this account's parent account. If this account is a parent, it will be the same as <strong>id</strong>.</p>\n</li>\n<li><p><strong>isParentAcctId</strong>: True if it is a parent account, False if it is a subaccount.</p>\n</li>\n<li><p><strong>phone</strong>: Phone number to use for contacting the account owner.</p>\n</li>\n<li><p><strong>source</strong>: Source of the account.</p>\n</li>\n<li><p><strong>firstName</strong>: First name of the account owner.</p>\n</li>\n<li><p><strong>lastName</strong>: Last name of the account owner.</p>\n</li>\n<li><p><strong>accountStatus</strong>: Whether the account is active or now.</p>\n</li>\n</ul>\n","_postman_id":"8f035c0a-f7bd-4340-8647-c951f63556db","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Account Configuration","item":[{"name":"Get Account Configs","id":"e6a3ee44-e311-4e0c-b993-3bd60b435c66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.ytel.com/ams/v3/accounts/config","description":"<p>Retrieves all account configs for the account.</p>\n<p>It will take an optional list of keys if the *keys* parameter is sent. Keys will be comma separated.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","config"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e6a3ee44-e311-4e0c-b993-3bd60b435c66"},{"name":"Get Account Config","id":"ae6b8246-85e5-49c8-b483-af0e101569f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.ytel.com/ams/v3/accounts/config/:key","description":"<p>Retrieves a single account configs by the name of the key.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","config",":key"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"a18dd388-bd47-459c-b815-273281532a65","type":"any","value":"funded","key":"key"}]}},"response":[],"_postman_id":"ae6b8246-85e5-49c8-b483-af0e101569f4"},{"name":"Save Account Config","id":"1059250e-4cba-4cf7-a9c3-16b3de56818d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"key\": \"company_phone\",\n    \"value\": \"+18005551234\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/accounts/config","description":"<p>Saves a single account config. Note that not all account configs are editable. Attempting to edit a non-editable account config will result in a permission denied error.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","config"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1059250e-4cba-4cf7-a9c3-16b3de56818d"},{"name":"Save Multiple Account Configs","id":"a84a2620-c279-42f0-a300-cf9d9eac4c54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    {\n        \"key\": \"state\",\n        \"value\": \"CA\"\n    },\n    {\n        \"key\": \"zip\",\n        \"value\": \"90210\"\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/accounts/config","description":"<p>Saves multiple account configs at the same time. Note that not all account configs are editable. Attempting to edit a non-editable account config will result in a permission denied error.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","config"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a84a2620-c279-42f0-a300-cf9d9eac4c54"},{"name":"Delete Account Config","id":"6bb721b6-c684-4e62-acc8-19e76d143a34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.ytel.com/ams/v3/accounts/config/:key","description":"<p>Deletes a single account config by name. Note that the account config must be editable.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","config",":key"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"249ded3d-ef70-43ba-9736-a3dba8c13c2e","type":"any","value":"funded","key":"key"}]}},"response":[],"_postman_id":"6bb721b6-c684-4e62-acc8-19e76d143a34"},{"name":"Get External Account Configs","id":"304fc373-ba18-4efa-bdaa-cfaafe707f68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.ytel.com/ams/v3/accounts/external/config","description":"<p>Retrieves all account configs associated with external services for the account.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","external","config"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"304fc373-ba18-4efa-bdaa-cfaafe707f68"},{"name":"Save External Account Config","id":"6a6aa5a9-3227-4740-ad08-8801bdae8490","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"sendgrid\",\n    \"key\": \"api_key\",\n    \"encryptedValue\": \"NotARealApiKey\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/accounts/external/config","description":"<p>Saves a single external account config. The <em>provider</em> and <em>key</em> are required and either the <em>value</em> or <em>encryptedValue</em> are required depending on which key is being sent.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","external","config"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a6aa5a9-3227-4740-ad08-8801bdae8490"},{"name":"Save Multiple External Account Configs","id":"06b486d1-c637-4cee-b97d-f0a14e7626c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    {\n        \"provider\": \"mailgun\",\n        \"key\": \"domain\",\n        \"value\": \"mymailgundomain\"\n    },\n    {\n        \"provider\": \"mailgun\",\n        \"key\": \"api_key\",\n        \"encryptedValue\": \"NotARealKey\"\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/accounts/external/config","description":"<p>Saves multiple external account configs at the same time.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","external","config"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"06b486d1-c637-4cee-b97d-f0a14e7626c9"},{"name":"Delete External Account Config by Provider","id":"e6b02f5a-741b-4b0f-8ddb-8c94204e04b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.ytel.com/ams/v3/accounts/external/config/:provider","description":"<p>Deletes all external account configs associated with the specified provider.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","external","config",":provider"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"265f52b5-1eb3-4a8b-a48b-a5b11c16fb9e","type":"any","value":null,"key":"provider"}]}},"response":[],"_postman_id":"e6b02f5a-741b-4b0f-8ddb-8c94204e04b2"},{"name":"Delete External Account Config by Provider and Key","id":"3f5b79d0-a156-4f71-9006-c034b25d46a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.ytel.com/ams/v3/accounts/external/config/:provider/:key","description":"<p>Deletes a single external account config specified by provider and key.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","accounts","external","config",":provider",":key"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"c8d16118-c93d-462b-a820-749e66155af4","type":"any","value":null,"key":"provider"},{"id":"c9a0e023-620f-41ad-8aa1-a14684a3998f","type":"any","value":null,"key":"key"}]}},"response":[],"_postman_id":"3f5b79d0-a156-4f71-9006-c034b25d46a5"}],"id":"04724429-57f5-4233-b303-6ec4c1dccbaf","description":"<p>The account configuration endpoints allow for reading and writing for various key/value pairs associated with an account. The majority of the account configurations are read-only and cannot be directly manipulated.</p>\n<p>External account configurations are used for communicating with external systems. Data for these account configurations need the associated provider, the key, and a value that may be encrypted. Data that is encrypted is stored in an encrypted format and only decrypted when attempting to communicate with the external provider.</p>\n","_postman_id":"04724429-57f5-4233-b303-6ec4c1dccbaf","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"AI/ML","item":[{"name":"Reword text","id":"a95b47ed-6e10-451d-9a82-1e15475990ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"••••••"}],"body":{"mode":"raw","raw":"{\n    \"text\": \"Hello OSCAR TEST 🖐️,  this is Jessica with Test Company. Your account is past due. We're here to help! Want to set up a call or share a good time?\",\n    \"type\": \"sms\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/ai/reword","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","ai","reword"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a95b47ed-6e10-451d-9a82-1e15475990ff"}],"id":"4624a821-6772-43d9-aa92-9260dd4210f6","_postman_id":"4624a821-6772-43d9-aa92-9260dd4210f6","description":"","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Assets","item":[{"name":"Get Assets","id":"29f8f71f-a6f2-40e1-ae49-f3f7ad394d75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/v4/asset/","description":"<p>Retrieve a list of all assets hosted publicly within the Ytel ecosystem.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","asset",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"d54cc3e2-d64a-4cd8-ba6a-eebdc0fbeea9","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":"{{url}}/v4/asset/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"3055","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 10,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"type\": \"audio\",\n            \"name\": \"file_example_MP3_700KB.mp3\",\n            \"description\": null,\n            \"creationDate\": 1617037251215,\n            \"modificationDate\": 1617037251215,\n            \"status\": 1,\n            \"publicUrl\": \"https://client-assets.ytel.com/e77e9ca3-8239-40fe-b43e-4acf065f1700.mp3\",\n            \"duration\": 0,\n            \"mimeType\": \"audio/mpeg\",\n            \"size\": 764176\n        },\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"type\": \"audio\",\n            \"name\": \"myaudio.wav\",\n            \"description\": null,\n            \"creationDate\": 1617669481388,\n            \"modificationDate\": 1617669481388,\n            \"status\": 1,\n            \"publicUrl\": \"https://client-assets.ytel.com/644c560c-h732-4618-87b9-849994bb9a09.wav\",\n            \"duration\": 16,\n            \"mimeType\": \"audio/wave\",\n            \"size\": 6459630\n        }\n    ]\n}"}],"_postman_id":"29f8f71f-a6f2-40e1-ae49-f3f7ad394d75"},{"name":"Get Assets by Type","id":"17622b1a-d302-4c6d-bf87-f9282489bb9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/v4/asset/","description":"<p>Retrieve a list of all assets hosted publicly within the Ytel ecosystem.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","asset",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"0e6b1ee2-96f9-4934-b36c-47301841eef2","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint."}],"url":"{{url}}/v4/asset/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3055"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-RateLimit-Remaining-second","value":"149"},{"key":"X-RateLimit-Limit-second","value":"150"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 10,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"type\": \"audio\",\n            \"name\": \"file_example_MP3_700KB.mp3\",\n            \"description\": null,\n            \"creationDate\": 1617037251215,\n            \"modificationDate\": 1617037251215,\n            \"status\": 1,\n            \"publicUrl\": \"https://client-assets.ytel.com/e77e9ca3-8239-40fe-b43e-4acf065f1700.mp3\",\n            \"duration\": 0,\n            \"mimeType\": \"audio/mpeg\",\n            \"size\": 764176\n        },\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"type\": \"audio\",\n            \"name\": \"myaudio.wav\",\n            \"description\": null,\n            \"creationDate\": 1617669481388,\n            \"modificationDate\": 1617669481388,\n            \"status\": 1,\n            \"publicUrl\": \"https://client-assets.ytel.com/644c560c-h732-4618-87b9-849994bb9a09.wav\",\n            \"duration\": 16,\n            \"mimeType\": \"audio/wave\",\n            \"size\": 6459630\n        }\n    ]\n}"}],"_postman_id":"17622b1a-d302-4c6d-bf87-f9282489bb9a"},{"name":"Delete Asset","id":"98ebaf75-ef79-4593-b3b1-7f6ee1199e60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/v4/asset/:type/:name/","description":"<p>Delete a Ytel hosted asset.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","asset",":type",":name",""],"host":["{{url}}"],"query":[],"variable":[{"id":"ca606d9b-05e3-4cb3-836b-f8c95b558329","description":{"content":"<p>We accept types <code>audio</code>, <code>mms-image</code>, <code>meme-image</code>, <code>inboundxml</code></p>\n","type":"text/plain"},"type":"any","value":"audio","key":"type"},{"id":"eac29f71-f732-43d7-bf28-9f5bb04ce399","description":{"content":"<p>The name of the file in the UI used for identification.</p>\n","type":"text/plain"},"type":"any","value":"testwav.wav","key":"name"}]}},"response":[{"id":"557cd7d0-b90c-4d91-b9d0-85a47ee91b14","name":"Sample Request","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/v4/asset/:type/:name/","host":["{{url}}"],"path":["v4","asset",":type",":name",""],"variable":[{"key":"type","value":"audio","description":"We accept types `audio`, `mms-image`, `meme-image`, `inboundxml`"},{"key":"name","value":"testwav.wav","description":"The name of the file in the UI used for identification."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"366","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"type\": \"audio\",\n            \"name\": \"testwav.wav\",\n            \"description\": null,\n            \"creationDate\": 1617680772856,\n            \"modificationDate\": 1617680772856,\n            \"status\": 1,\n            \"publicUrl\": \"https://client-assets.ytel.com/83dcb6d6-5513-4962-4911-541d33774000.wav\",\n            \"duration\": 16,\n            \"mimeType\": \"audio/wav\",\n            \"size\": 6459630\n        }\n    ]\n}"}],"_postman_id":"98ebaf75-ef79-4593-b3b1-7f6ee1199e60"},{"name":"Upload Asset","id":"11c83d87-937a-4a62-9dc6-9ce8982b5bba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"multipart/form-data","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"","description":"<p>Your Audio, Image or InboundXML file. (.wav, .mp3, .png,.gif, .jpg, .xml)</p>\n","type":"file","src":"/Users/testwav.wav"},{"key":"type","value":"audio","description":"<p>We accept types <code>audio</code>, <code>mms-image</code>, <code>meme-image</code>, <code>inboundxml</code></p>\n","type":"text"},{"key":"name","value":"myaudio.wav","description":"<p>The name of the resulting file in the UI for identification.</p>\n","type":"text"}]},"url":"{{url}}/v4/asset/","description":"<p>The <strong>publicUrl</strong> returned may be used in future API requests.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","asset",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"6ad5915e-bff5-4c6c-9ffa-075343752d87","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"multipart/form-data","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"","description":"Your Audio, Image or InboundXML file. (.wav, .mp3, .png,.gif, .jpg, .xml)","type":"file","src":["/Users/testwav.wav"]},{"key":"type","value":"audio","description":"We accept types `audio`, `mms-image`, `meme-image`, `inboundxml`","type":"text"},{"key":"name","value":"myaudio.wav","description":"The name of the resulting file in the UI for identification.","type":"text"}]},"url":"{{url}}/v4/asset/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"367","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"type\": \"audio\",\n            \"name\": \"myaudio.wav\",\n            \"description\": null,\n            \"creationDate\": 1617669481388,\n            \"modificationDate\": 1617669481388,\n            \"status\": 1,\n            \"publicUrl\": \"https://client-assets.ytel.com/644cf6df-7652-4618-8412-849994bb9a00.wav\",\n            \"duration\": 16,\n            \"mimeType\": \"audio/wave\",\n            \"size\": 6459630\n        }\n    ]\n}"}],"_postman_id":"11c83d87-937a-4a62-9dc6-9ce8982b5bba"},{"name":"Update Asset","id":"602c0fa0-e5fd-45de-a3f7-77c5a1e78453","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"multipart/form-data"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"body":{"mode":"formdata","formdata":[{"key":"","description":"<p>Your Audio, Image or InboundXML file. (.wav, .mp3, .png,.gif, .jpg, .xml)</p>\n","type":"file","src":"/Users/testwav.wav"},{"key":"type","value":"audio","description":"<p>We accept types <code>audio</code>, <code>mms-image</code>, <code>meme-image</code>, <code>inboundxml</code></p>\n","type":"text"},{"key":"name","value":"myaudio.wav","description":"<p>The name of the resulting file in the UI for identification.</p>\n","type":"text"}]},"url":"{{url}}/v4/asset/","description":"<p>The <strong>publicUrl</strong> returned may be used in future API requests.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","asset",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"6135d29b-cc89-405d-be70-ec77155d32e4","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"multipart/form-data"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint."}],"body":{"mode":"formdata","formdata":[{"key":"","description":"Your Audio, Image or InboundXML file. (.wav, .mp3, .png,.gif, .jpg, .xml)","type":"file","src":["/Users/testwav.wav"]},{"key":"type","value":"audio","description":"We accept types `audio`, `mms-image`, `meme-image`, `inboundxml`","type":"text"},{"key":"name","value":"myaudio.wav","description":"The name of the resulting file in the UI for identification.","type":"text"}]},"url":"{{url}}/v4/asset/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"367"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-RateLimit-Remaining-second","value":"149"},{"key":"X-RateLimit-Limit-second","value":"150"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"type\": \"audio\",\n            \"name\": \"myaudio.wav\",\n            \"description\": null,\n            \"creationDate\": 1617669481388,\n            \"modificationDate\": 1617669481388,\n            \"status\": 1,\n            \"publicUrl\": \"https://client-assets.ytel.com/644cf6df-7652-4618-8412-849994bb9a00.wav\",\n            \"duration\": 16,\n            \"mimeType\": \"audio/wave\",\n            \"size\": 6459630\n        }\n    ]\n}"}],"_postman_id":"602c0fa0-e5fd-45de-a3f7-77c5a1e78453"}],"id":"09d9655d-2a18-4695-b297-feb9011737f9","description":"<p>Assets are Audio, Image, and InboundXML files that are hosted within the Ytel ecosystem.</p>\n<p>This allows for us to host and utilize your files from a resource local to us. This results in a performance gain for your application.</p>\n<p>By default a user may only see and modify assets that are owned by the user or have been shared with them either directly or by inclusion within a work group. Users with the asset-read permission have the ability to see all assets in the system. Users with the asset-update permission have the ability to modify any assets in the system.</p>\n","_postman_id":"09d9655d-2a18-4695-b297-feb9011737f9","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Billing","item":[{"name":"Get Usage","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5716dc0c-ff2f-41d0-8f68-3a6abd5f290a"}}],"id":"7f6cc58c-a814-459f-9fc0-99ec7d6bffa2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{url}}/v4/billing/report/?startDate=2021-01-10&endDate=2021-01-11&accountSid=","description":"<p>Gets a usage report for an account between two days (inclusive) in UTC. There is a limit to pulling 90 days of usage at a time.</p>\n<ul>\n<li><strong>rowCount</strong>: Number of instances this item was billed in the given time range.</li>\n<li><strong>billedCount</strong>: Number of items billed. This may be different than the row count for entries where multiple items are billed at the same time. For example a large sms message may be billed for 2 or 3 messages on a single send.</li>\n<li><strong>totalDuration</strong>: Number of seconds for this item. Not always present for things without a duration.</li>\n<li><strong>cost</strong>: Base charge for these items.</li>\n<li><strong>finalCost</strong>: Total cost for these items. For rows with surcharges, this will include those values.</li>\n<li><strong>serviceType</strong>: The general category for this item. Examples: call, sms</li>\n<li><strong>subType</strong>: Subtype of this item.</li>\n<li><strong>lob</strong>: Line of business. Example: api, broadcast</li>\n<li><strong>description</strong>: Human readable description for what the charge is for</li>\n<li><strong>itemCode</strong>: Billable item code.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","billing","report",""],"host":["{{url}}"],"query":[{"description":{"content":"<p>Start date in the format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"startDate","value":"2021-01-10"},{"description":{"content":"<p>End date in the format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"endDate","value":"2021-01-11"},{"description":{"content":"<p>The Account you would like to look up.  This parameter is optional.</p>\n","type":"text/plain"},"key":"accountSid","value":""}],"variable":[]}},"response":[{"id":"061da12d-d4d8-4d5f-9153-4c250642b019","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text","disabled":true},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/billing/report/?startDate=2021-01-10&endDate=2021-01-11&accountSid=","host":["{{url}}"],"path":["v4","billing","report",""],"query":[{"key":"startDate","value":"2021-01-10","description":"Start date in the format YYYY-MM-DD"},{"key":"endDate","value":"2021-01-11","description":"End date in the format YYYY-MM-DD"},{"key":"accountSid","value":"","description":"The Account you would like to look up.  This parameter is optional."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"2703","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 15,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"billedCount\": 4,\n            \"rowCount\": 4,\n            \"totalDuration\": 54,\n            \"finalCost\": 0,\n            \"cost\": 0,\n            \"serviceType\": \"call\",\n            \"subType\": \"cti\",\n            \"lob\": \"api\",\n            \"description\": \"API toll free inbound call - US\",\n            \"itemCode\": \"ActiUS\"\n        },\n        {\n            \"billedCount\": 8,\n            \"rowCount\": 4,\n            \"totalDuration\": 0,\n            \"finalCost\": 0,\n            \"cost\": 0,\n            \"serviceType\": \"mrc_did\",\n            \"subType\": \"nu\",\n            \"lob\": \"api\",\n            \"description\": \"API local number - US\",\n            \"itemCode\": \"AnuUS\"\n        },\n        {\n            \"billedCount\": 1187,\n            \"rowCount\": 58,\n            \"totalDuration\": 62184,\n            \"finalCost\": 0,\n            \"cost\": 0,\n            \"serviceType\": \"call\",\n            \"subType\": \"ci\",\n            \"lob\": \"api\",\n            \"description\": \"API local inbound call - US\",\n            \"itemCode\": \"AciUS\"\n        },\n        {\n            \"billedCount\": 2,\n            \"rowCount\": 2,\n            \"totalDuration\": 0,\n            \"finalCost\": 0,\n            \"cost\": 0,\n            \"serviceType\": \"mrc_did\",\n            \"subType\": \"nu\",\n            \"lob\": \"broadcast\",\n            \"description\": \"Broadcast number \",\n            \"itemCode\": \"Bnu\"\n        },\n        {\n            \"billedCount\": 1149,\n            \"rowCount\": 48,\n            \"totalDuration\": 61842,\n            \"finalCost\": 0,\n            \"cost\": 0,\n            \"serviceType\": \"call\",\n            \"subType\": \"co\",\n            \"lob\": \"api\",\n            \"description\": \"API local outbound call - US\",\n            \"itemCode\": \"AcoUS\"\n        },\n        {\n            \"billedCount\": 2,\n            \"rowCount\": 1,\n            \"totalDuration\": 30,\n            \"finalCost\": 0.5,\n            \"cost\": 0.5,\n            \"serviceType\": \"call\",\n            \"subType\": \"co\",\n            \"lob\": \"api\",\n            \"description\": \"API local outbound call - PR\",\n            \"itemCode\": \"AcoPR\"\n        },\n        {\n            \"billedCount\": 4,\n            \"rowCount\": 4,\n            \"totalDuration\": 0,\n            \"finalCost\": 0,\n            \"cost\": 0,\n            \"serviceType\": \"sms\",\n            \"subType\": \"sco\",\n            \"lob\": \"api\",\n            \"description\": \"API short code outbound SMS - US\",\n            \"itemCode\": \"AscoUS\"\n        },\n        {\n            \"billedCount\": 1173,\n            \"rowCount\": 114,\n            \"totalDuration\": 0,\n            \"finalCost\": 0,\n            \"cost\": 0,\n            \"serviceType\": \"sms\",\n            \"subType\": \"so\",\n            \"lob\": \"api\",\n            \"description\": \"API local outbound SMS - US\",\n            \"itemCode\": \"AsoUS\"\n        },\n        {\n            \"billedCount\": 1,\n            \"rowCount\": 1,\n            \"totalDuration\": 0,\n            \"finalCost\": 0,\n            \"cost\": 0,\n            \"serviceType\": \"sms\",\n            \"subType\": \"sci\",\n            \"lob\": \"api\",\n            \"description\": \"API short code inbound SMS - US\",\n            \"itemCode\": \"AsciUS\"\n        },\n        {\n            \"billedCount\": 4,\n            \"rowCount\": 1,\n            \"totalDuration\": 0,\n            \"finalCost\": 0,\n            \"cost\": 0,\n            \"serviceType\": \"sms\",\n            \"subType\": \"sblock\",\n            \"lob\": \"api\",\n            \"description\": \"International block - US\",\n            \"itemCode\": \"AsblockUS\"\n        },\n        {\n            \"billedCount\": 12,\n            \"rowCount\": 9,\n            \"totalDuration\": 0,\n            \"finalCost\": 0,\n            \"cost\": 0,\n            \"serviceType\": \"sip\",\n            \"subType\": \"sipo\",\n            \"lob\": \"api\",\n            \"description\": \"API SIP outbound call - US\",\n            \"itemCode\": \"AsipoUS\"\n        },\n        {\n            \"billedCount\": 575,\n            \"rowCount\": 49,\n            \"totalDuration\": 0,\n            \"finalCost\": 0,\n            \"cost\": 0,\n            \"serviceType\": \"sms\",\n            \"subType\": \"si\",\n            \"lob\": \"api\",\n            \"description\": \"API local inbound SMS - US\",\n            \"itemCode\": \"AsiUS\"\n        },\n        {\n            \"billedCount\": 2900,\n            \"rowCount\": 94,\n            \"totalDuration\": 0,\n            \"finalCost\": 0,\n            \"cost\": 0,\n            \"serviceType\": \"carrierlu\",\n            \"subType\": \"carrierlu\",\n            \"lob\": \"api\",\n            \"description\": \"API carrier lookup - US\",\n            \"itemCode\": \"AcaUS\"\n        },\n        {\n            \"finalCost\": 0.00702,\n            \"cost\": 0.00702,\n            \"description\": \"Tax total\",\n            \"itemCode\": \"Tax\"\n        },\n        {\n            \"finalCost\": 0.0487,\n            \"cost\": 0.0487,\n            \"description\": \"Surcharge total\",\n            \"itemCode\": \"Surcharge\"\n        }\n    ]\n}"}],"_postman_id":"7f6cc58c-a814-459f-9fc0-99ec7d6bffa2"}],"id":"8e00ac3d-cdf8-49f1-b9bb-a2df43e662a6","description":"<p>Used to obtain your billing usage summary data. These endpoints are intended to be used within the UI.</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"b345ca07-029d-4bba-a8ac-3d4f4f47400a"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"a12fc1ed-b113-4fb1-aa36-77dff534e9e1"}}],"_postman_id":"8e00ac3d-cdf8-49f1-b9bb-a2df43e662a6","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Call","item":[{"name":"Make Call","id":"5c454c03-4e28-40ba-9b45-f156963ead1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"from\": \"{{fromnumber}}\",\n    \"to\": \"{{tonumber}}\",\n    \"url\": \"{{xmlurl}}\",\n    \"statusCallbackUrl\": \"{{callbackurl}}\",\n    \"metadata\": {\n        \"referenceId\": \"myrefId\",\n        \"leadId\": \"leadId\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/call/","description":"<p>Initiates a phone call. This endpoint supports multiple different ways to start a call with many fields that are mutually exclusive.</p>\n<p>For the destination phone number either the <strong>to</strong> field or the <strong>contactId</strong> field must be provided. If a <strong>contactId</strong> is provided, the destination number will be looked up from their contact information.</p>\n<p>For the source phone number either the <strong>from</strong> field or the <strong>numberSetId</strong> field must be provided. If the <strong>numberSetId</strong> field is used, a number will be chosen from the number set at random.</p>\n<p>The <strong>url</strong> parameter is required and points to an InboundXML file that describes how the call should be handled. The default method for sending data is <code>POST</code>. If you would like to specify the method you can pass <code>GET</code> or <code>POST</code> in the <strong>urlMethod</strong> JSON object.</p>\n<p>The <strong>statusCallbackUrl</strong> and <strong>fallbackUrl</strong> are REST endpoints that will be contacted at the completion of the phone call. In the event that there is an error with the statusCallbackUrl, the fallbackUrl will be used.</p>\n<p>The heartbeatCallbackUrl will be hit every 60 seconds while the call is active.</p>\n<p>The record and <strong>recordCallbackUrl</strong> parameters dictate whether the call will be recorded. If set to true (default false) after the recording is complete a callback will be made to the url specified in recordCallbackUrl.</p>\n<p>The <strong>ifMachine</strong> and <strong>ifMachineCallbackUrl</strong> parameters dictate what will happen if an answering machine or voice mail is detected. ifMachine may be one of hangup or continue. ifMachineCallabckUrl will be called with a callback if specified.</p>\n<p>The <strong>timeout</strong> parameter specifies the number of seconds that will be waited for a call to be connected.</p>\n<p>The <strong>playDtmf</strong> parameter specifies a set of dialtones to play after a call is completed. The valid values are 0-9,#,*.</p>\n<p>The <strong>hideCallerId</strong> parameter specifies whether the callerId will be hidden. Default false.</p>\n<p>The <strong>checkFederalDnc</strong> parameter specifies whether the federal dnc should be checked. Default false. This will result in an error if the account does not have access to the federal dnc.</p>\n<p>The <strong>metadata</strong> parameter will allow for passing key/value pairs. If provided, these values will be available on the call log record as well as any callbacks that are configured for calls.</p>\n<p>We recommend using number sets and contacts since these will result in fewer changes over time.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","call",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"70fabfe3-3fb0-4d8e-9143-789b2f04a1ee","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"from\": \"+19495061234\",\n    \"to\": \"+19492221234\",\n    \"url\": \"https://customapps.ytel.com/m360/examples/welcome/index.php\",\n    \"statusCallbackUrl\": \"https://test.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/call/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"133","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"callSid\": \"a8aafe80-5aae-11eb-9851-d9f3c95a077a\",\n            \"createdTime\": \"2021-01-19 23:32:56\"\n        }\n    ]\n}"}],"_postman_id":"5c454c03-4e28-40ba-9b45-f156963ead1a"},{"name":"Make Group Call","id":"a4c69ba6-6e9b-460c-96d0-0c3b81acc747","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from\": \"+1951356123\",\n  \"to\": [\"+17142221234\", \"+17142220000\"],\n  \"url\": \"https://customapps.ytel.com/m360/examples/welcome/index.php\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/groupcall/","description":"<p>Initiates multiple phone calls. This endpoint supports multiple different ways to start a call with many fields that are mutually exclusive. Note this is not a conference call and the contacted users will all receive the same call handling.</p>\n<p>For the destination phone number either the <strong>to</strong> field or the <strong>contactIds</strong> field must be provided. If a <strong>contactIds</strong> is provided, the destination number will be looked up from their contact information.</p>\n<p>For the source phone number either the <strong>from</strong> field or the <strong>numberSetId</strong> field must be provided. If the <strong>numberSetId</strong> field is used, a number will be chosen from the number set at random.</p>\n<p>The <strong>url</strong> parameter is required and points to an InboundXML file that describes how the call should be handled. For more information see: <a href=\"https://docs.ytel.com/docs/getting-started-now\">https://docs.ytel.com/docs/getting-started-now</a></p>\n<p>The <strong>statusCallbackUrl</strong> and <strong>fallbackUrl</strong> are REST endpoints that will be contacted at the completion of the phone call. In the event that there is an error with the <strong>statusCallbackUrl</strong>, the <strong>fallbackUrl</strong> will be used.</p>\n<p>The <strong>heartbeatCallbackUrl</strong> will be hit every 60 seconds while the call is active.</p>\n<p>The <strong>record</strong> and <strong>recordCallbackUrl</strong> parameters dictate whether the call will be recorded. If set to true (default false) after the recording is complete a callback will be made to the url specified in <strong>recordCallbackUrl</strong>.</p>\n<p>The <strong>transcribe</strong> and <strong>transcibeCallbackUrl</strong> parameters dictate whether the call will be transcribed. If set to true (default false) after the transcription is complete a callback will be made to the url specified in <strong>transcribeCallbackUrl</strong>.</p>\n<p>The <strong>ifMachine</strong> and <strong>ifMachineCallbackUrl</strong> parameters dictate what will happen if an answering machine or voice mail is detected. <strong>ifMachine</strong> may be one of <code>hangup</code> or <code>continue</code>. <strong>ifMachineCallabckUrl</strong> will be called with a callback if specified.</p>\n<p>The <strong>timeout</strong> parameter specifies the number of seconds that will be waited for a call to be connected.</p>\n<p>The <strong>playDtmf</strong> parameter specifies a set of dialtones to play after a call is completed. The valid values are <code>0-9,#,\\*</code>.</p>\n<p>The <strong>hideCallerId</strong> parameter specifies whether the callerId will be hidden. Default false.</p>\n<p>The <strong>groupConfirmKey</strong> parameter indicates the number that should be pressed by a participant to cancel all other calls. The <strong>groupConfirmFile</strong> plays the DTMF prompt to the answering party.</p>\n<p>The <strong>metadata</strong> parameter will allow for passing key/value pairs. If provided, these values will be available on the call log record as well as any callbacks that are configured for calls.</p>\n<p>We recommend using number sets and contacts since these will result in fewer changes over time.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","groupcall",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4c69ba6-6e9b-460c-96d0-0c3b81acc747"},{"name":"Send digit","id":"bac85b60-f58d-4030-a09e-3290061a7182","protocolProfileBehavior":{"disabledSystemHeaders":{"accept":true,"accept-encoding":true,"connection":true,"content-length":true,"content-type":true,"host":true},"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"playDtmf\": \"0123456789*#\"\r\n}"},"url":"{{url}}/v4/call/sendDigit/:callSid","description":"<p>Sends phone number digit sounds to the specified call.</p>\n<p>The <strong>playDtmf</strong> parameter is the series of dtmf tones that will be played into the call. Valid values are <code>0-9,*,#</code>.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","call","sendDigit",":callSid"],"host":["{{url}}"],"query":[],"variable":[{"id":"9bbabd91-ee6f-41f1-bb2d-660317bf8488","description":{"content":"<p>Call id that will be adjusted</p>\n","type":"text/plain"},"type":"any","value":"deafbeef-1111-1111-abba-cab0fade4de8","key":"callSid"}]}},"response":[],"_postman_id":"bac85b60-f58d-4030-a09e-3290061a7182"},{"name":"Record Call","id":"f9fb55e1-d0a3-45d8-9e00-432d6819ec0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"timeLimit\": \"100\",\n  \"callbackUrl\": \"https://aab6d95b5690dd0c56572306c11a4ceb.m.pipedream.net\",\n  \"direction\": \"both\",\n  \"fileFormat\": \"mp3\",\n  \"stopRecordingOnKey\": \"0\"\n\n}"},"url":"{{url}}/v4/call/record/:callSid ","description":"<p>Begins recording of a call.</p>\n<p>The <strong>timeLimit</strong> parameter is the maximum number of seconds to record. This must be set and set to a positive value.</p>\n<p>The <strong>callbackUrl</strong> parameter is the endpoint that will be hit after the call recording is completed.</p>\n<p>The <strong>direction</strong> parameter specifies which direction of the call will be recorded. Valid values are in, out, and both.</p>\n<p>The <strong>fileFormat</strong> parameter specifies the file format that the recording will be saved in. Valid values are mp3 and wav.</p>\n<p>The <strong>stopRecordingOnKey</strong> parameter is the dtmf tone that will stop recording. Optional.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","call","record",":callSid "],"host":["{{url}}"],"query":[],"variable":[{"id":"e7171442-d693-4053-bcf7-1cf631665861","type":"any","value":"","key":"callSid "}]}},"response":[{"id":"b3093ed2-e9a0-471c-ace7-120a4255d481","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"timeLimit\": \"100\",\n  \"callbackUrl\": \"https://aab6d95b5690dd0c56572306c11a4ceb.m.pipedream.net\",\n  \"direction\": \"both\",\n  \"fileFormat\": \"mp3\",\n  \"stopRecordingOnKey\": \"0\"\n\n}"},"url":{"raw":"{{url}}/v4/call/record/:callSid ","host":["{{url}}"],"path":["v4","call","record",":callSid "],"variable":[{"key":"callSid ","value":"c8239610-6570-11eb-b88e-cfc638968ed7"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"66","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"sentToCall\": true\n        }\n    ]\n}"}],"_postman_id":"f9fb55e1-d0a3-45d8-9e00-432d6819ec0a"},{"name":"Play Audio","id":"942e4c7f-ec0d-468c-a40d-53b9a6b76bd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"sayText\": \"Hello from Ytel\"\n}"},"url":"{{url}}/v4/call/play/:callSid","description":"<p>Plays audio for an ongoing call.</p>\n<p>The <strong>audioUrl</strong> parameter is a url for an audio file that will be played into the existing call. This is mutually exclusive with sayText.</p>\n<p>The <strong>sayText</strong> parameter is text that will be converted to audio and played into the call. This is mutually exclusive with audioUrl.</p>\n<p>The <strong>length</strong> parameter is the length of the audio file. Default 0.</p>\n<p>The <strong>mix</strong> parameter indicates whether the audio should be mixed into the existing all. Default false.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"sayText\": \"Hello from Ytel\"\n}\n</code></pre><p>and</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"audioUrl\": \"https://customapps.ytel.com/operations/matt/cluck.mp3\"\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","call","play",":callSid"],"host":["{{url}}"],"query":[],"variable":[{"id":"febc5979-334f-4318-a568-eb0bbd7c80dc","type":"any","value":"950ca760-5b5e-11eb-8226-13e20bbc9f4f","key":"callSid"}]}},"response":[{"id":"42333315-530a-4a08-8597-d80d15f79209","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"sayText\": \"Hello from Ytel\"\n}"},"url":{"raw":"{{url}}/v4/call/play/:callSid","host":["{{url}}"],"path":["v4","call","play",":callSid"],"variable":[{"key":"callSid","value":"f590eb70-6570-11eb-b88e-cfc638968ed7"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"66","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"sentToCall\": true\n        }\n    ]\n}"}],"_postman_id":"942e4c7f-ec0d-468c-a40d-53b9a6b76bd8"},{"name":"Interupt Call","id":"1f1667c3-6b62-404e-9b4a-4e3a4a8e50c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"completed\",\n  \"url\": \"https://customapps.ytel.com/m360/examples/welcome/index.php\",\n  \"urlMethod\": \"POST\"\n}"},"url":"{{url}}/v4/call/interrupt/:callSid","description":"<p>Interrupts an ongoing call.</p>\n<p>The <strong>status</strong> parameter indicates how the call should be interrupted. Valid values are <code>completed</code> and <code>canceled</code>. These values indicate how the call will be recorded in the logs.</p>\n<p>The <strong>url</strong> parameter is used in conjuction with the status set to completed to continue the call with a new InboundXML file. If this field is not present, the call will be killed.</p>\n<p>You may also specify the method of the post to the <strong>url</strong> resource by adding the <strong>urlMethod</strong> object and passing <code>GET</code> or <code>POST</code> (POST is the default) as the value.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","call","interrupt",":callSid"],"host":["{{url}}"],"query":[],"variable":[{"id":"92858474-2fe2-4301-9a65-e106ce0acbf8","type":"any","value":"950ca760-5b5e-11eb-8226-13e20bbc9f4f","key":"callSid"}]}},"response":[{"id":"77928609-d94c-4f51-ba1e-3317ebc6cee4","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"completed\",\n  \"url\": \"https://customapps.ytel.com/m360/examples/welcome/index.php\"\n}"},"url":{"raw":"{{url}}/v4/call/interrupt/:callSid","host":["{{url}}"],"path":["v4","call","interrupt",":callSid"],"variable":[{"key":"callSid","value":"9e8f5c30-6570-11eb-a1e5-9fe1056eab31"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"66","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"sentToCall\": true\n        }\n    ]\n}"}],"_postman_id":"1f1667c3-6b62-404e-9b4a-4e3a4a8e50c0"},{"name":"Get Live Calls","id":"e4c534f7-eabd-41d0-b55e-06bca320b451","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/call/live","description":"<p>This request gets a list of active calls for the account associated with the Bearer Token. After a call is terminated, it should not show in this list.</p>\n<p><strong>callSid</strong> is a unique identifier for each call or leg of the call.</p>\n<p><strong>createdAt</strong> is when the call started.</p>\n<p>In rare cases where termination is not recorded properly, the <strong>expiresAt</strong> value is used internally to filter them out.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","call","live"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"c1943f90-896d-4f63-8439-ed082bd02720","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}"},{"key":"Accept","value":"application/json"}],"url":"{{url}}/v4/call/live"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 2,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"callSid\": \"3a0197cd-8799-4aaa-b06a-3d73466739a2\",\n            \"to\": \"+12223334444\",\n            \"from\": \"+13334445555\",\n            \"direction\": \"outbound\",\n            \"clientId\": null,\n            \"timeStarted\": 1705434723800,\n            \"expiresAt\": 1705456323800\n        },\n        {\n            \"callSid\": \"b8967e80-b4a8-11ee-85e6-9d409c3ff1e6\",\n            \"to\": \"+12223334444\",\n            \"from\": \"+13334445555\",\n            \"direction\": \"outbound\",\n            \"clientId\": null,\n            \"timeStarted\": 1705434725480,\n            \"expiresAt\": 1705456325480\n        }\n    ]\n}"}],"_postman_id":"e4c534f7-eabd-41d0-b55e-06bca320b451"}],"id":"895202ff-b15b-400c-9a4a-6d6236be38b4","_postman_id":"895202ff-b15b-400c-9a4a-6d6236be38b4","description":"","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Carrier","item":[{"name":"Get Carrier","event":[{"listen":"test","script":{"id":"47f1ef36-bf21-48bb-a0d7-6114b98b1274","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Response time is less than 500ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(500);","});","pm.test(\"Check Company\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.payload[0].company).to.eql(\"T-Mobile USA Inc\");","});","pm.test(\"Check API Version\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.payload[0].apiVersion).to.eql(\"4\");","});","pm.test(\"Check Network\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.payload[0].network).to.eql(\"T-Mobile\");","});","pm.test(\"Check Wireless\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.payload[0].wireless).to.eql(true);","});","pm.test(\"Check City\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.payload[0].city).to.eql(\"Irvine\");","});","pm.test(\"Check Status\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.payload[0].status).to.eql(true);","});",""],"type":"text/javascript"}}],"id":"1fb0b7af-ce76-4175-8696-0ad519633b92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/carrier/lookup/:phoneNumber/","description":"<p>Lookup carrier information for a phone number.</p>\n<p>Returned fields:</p>\n<ul>\n<li><strong>apiVersion</strong>: always 4</li>\n<li><strong>carrierSid</strong>: transaction id for the carrier lookup</li>\n<li><strong>phoneNumber</strong>: phone number that was passed in for the lookup request</li>\n<li><strong>network</strong>: Name of the network. There is little consistency for these names. If looking for a particular carrier you'll want to do a case-insensitive search for the major carrier name (ex: verizon, sprint, att, etc.) and remove all non-alpha characters.</li>\n<li><strong>wireless</strong>: Boolean value indicating if it is a wireless number.</li>\n<li><strong>zipCode</strong>: zip code where the phone is registered</li>\n<li><strong>city</strong>: city where the phone is registered</li>\n<li><strong>state</strong>: state where the phone is registered</li>\n<li><strong>status</strong>: currently always true</li>\n<li><strong>dateCreated</strong>: last time data was updated</li>\n</ul>\n<p>Of note, the city, state, and zip codes are not necessarily where the owner of the phone resides.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","carrier","lookup",":phoneNumber",""],"host":["{{url}}"],"query":[],"variable":[{"id":"27b1004b-5277-481c-9833-22da1b65ea50","description":{"content":"<p>E.164 Formatted phone number</p>\n","type":"text/plain"},"type":"any","value":"{{tonumber}}","key":"phoneNumber"}]}},"response":[{"id":"04d4319d-9570-4ee0-b203-a09b996e8b61","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/carrier/lookup/:phoneNumber/","host":["{{url}}"],"path":["v4","carrier","lookup",":phoneNumber",""],"variable":[{"key":"phoneNumber","value":"+15714345400","description":"E.164 Formatted phone number"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"361","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"148","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"apiVersion\": \"4\",\n            \"carrierSid\": \"58f04910-5502-11eb-8226-13e20bbc9f4f\",\n            \"phoneNumber\": \"+15714345400\",\n            \"network\": \"Level 3\",\n            \"company\": \"Level 3 Communications LLC\",\n            \"wireless\": false,\n            \"zipCode\": \"20601\",\n            \"city\": \"Waldorf\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"status\": true,\n            \"dateCreated\": \"2020-11-05T13:47:31.996Z\",\n            \"date\": 1610475413537\n        }\n    ]\n}"}],"_postman_id":"1fb0b7af-ce76-4175-8696-0ad519633b92"}],"id":"8dc0e9ed-8333-4fc3-b310-99cf6177b6ae","description":"<p>Phone number carrier related endpoints.</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"723ff679-e275-4645-bacf-2cbfa0fba1e1"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"f26b5be5-57c6-4253-af80-b89d5246309c"}}],"_postman_id":"8dc0e9ed-8333-4fc3-b310-99cf6177b6ae","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Conference","item":[{"name":"List conference members","id":"bf01b1b7-938e-46a2-83b3-b3f824304728","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"url":"{{url}}/v4/conference/{{confId}}/member/","description":"<p>Get a list of member ID's and their data by conference ID</p>\n<p>Return payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"confId\": UUID,\n  \"members\": [\n    \"memberId\": Integer, // member ID of this member used for other APIs\n    \"name\": String,  // name of this channel. usually the phone number associated with the external entity\n    \"callSid\": UUID, // callSid of the member\n    \"callerIdName\": String, //Caller ID name string used if outbound\n    \"callerIdNumber\": String, //caller ID number string used if outbound\n    \"mute\": boolean,  // currently muted or not\n    \"deaf\": boolean,  // currently deaf or not. meaning can't hear anyone\n    \"ghost\": boolean  // is a ghost member.  meaning this member doesn't count as a full member.  Usualy something like a Recording line.\n  ]\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conference","{{confId}}","member",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf01b1b7-938e-46a2-83b3-b3f824304728"},{"name":"Kick conference member","id":"10bceb59-cccc-4d1d-a2cd-d0dc9068d49f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"url":"{{url}}/v4/conference/{{confId}}/member/{{memberId}}/kick","description":"<p>Kick a member from a conferece. you provide the conference ID and the Member ID you wich to kick form the conference. Currently this has the same effect as hangup conference member.</p>\n<p>Return payload</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">{\n  \"sentToCall\": boolean // if it was able to be sent\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conference","{{confId}}","member","{{memberId}}","kick"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"10bceb59-cccc-4d1d-a2cd-d0dc9068d49f"},{"name":"Hangup conference member","id":"5c5ee3b9-d47c-4675-a90f-721423d82375","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"url":"{{url}}/v4/conference/{{confId}}/member/{{memberId}}/hangup","description":"<p>Hangup the call leg that the conference memeber joined on. Again this requires the conference ID and the member ID. In this case it speicifically hangs up the call.</p>\n<p>Return payload</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"sentToCall\": boolean // if it was able to be sent\n}\n\n</code></pre>","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conference","{{confId}}","member","{{memberId}}","hangup"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5c5ee3b9-d47c-4675-a90f-721423d82375"},{"name":"Mute conference memeber","id":"b8514ede-8d4b-46ee-8f49-538732dfd1df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"url":"{{url}}/v4/conference/{{confId}}/member/{{memberId}}/mute","description":"<p>Mute a conference member by conference ID and member ID</p>\n<p>Return payload</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"sentToCall\": boolean // if it was able to be sent\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conference","{{confId}}","member","{{memberId}}","mute"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8514ede-8d4b-46ee-8f49-538732dfd1df"},{"name":"Un-mute conference member","id":"2b9339ff-34f9-4c27-a11f-1a63f01097a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"url":"{{url}}/v4/conference/{{confId}}/member/{{memberId}}/mute","description":"<p>If a member has been muted by the API, unmute them by conference ID and member ID</p>\n<p>Return payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sentToCall\": boolean // if it was able to be sent\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conference","{{confId}}","member","{{memberId}}","mute"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b9339ff-34f9-4c27-a11f-1a63f01097a9"},{"name":"Deaf conference member","id":"f5a3fadd-0092-4679-8856-485031e0c3b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"url":"{{url}}/v4/conference/{{confId}}/member/{{memberId}}/deaf","description":"<p>Deaf a conference member by conference ID and member ID. This makes it so they will hear nothing from the conference. This does not mute them, they will still be able to speak unless muted.</p>\n<p>Return payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"sentToCall\": boolean // if it was able to be sent\n}\n\n</code></pre>","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conference","{{confId}}","member","{{memberId}}","deaf"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f5a3fadd-0092-4679-8856-485031e0c3b8"},{"name":"Un-deaf conference member","id":"86005c44-8b26-424e-94b4-ed5ceb711871","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"url":"{{url}}/v4/conference/{{confId}}/member/{{memberId}}/deaf","description":"<p>Un-deaf a conference member by conference ID and member ID. If they were set to deaf, now they will be able to hear the conference again.</p>\n<p>Return payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"sentToCall\": boolean // if it was able to be sent\n}\n\n</code></pre>","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conference","{{confId}}","member","{{memberId}}","deaf"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"86005c44-8b26-424e-94b4-ed5ceb711871"},{"name":"Play and leave conference","id":"3aea0c9c-6b47-49a6-8dd0-4167ffbc7587","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"confId\": \"{{confId}}\",\n    \"audioUrl\": \"{{audioUrl}}\",\n    \"hangupCallSid\": \"{{hangupCallSid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/conference/{{confId}}/exitAudio","description":"<p>This will play audio into the conference while allowing you to speicify a callSid to hangup on. General use case is you want to play an audio file and leave the conference yourself, so you would specify your call SID here. Reaons for this is if there are less that 2 members in the conference everyone will be forced to leave. While the audio is playing it will maintain that requirement.</p>\n<p>Return payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"sentToCall\": boolean // if it was able to be sent\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conference","{{confId}}","exitAudio"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3aea0c9c-6b47-49a6-8dd0-4167ffbc7587"},{"name":"Add member to conference","id":"eff53b1a-56f7-45bb-868b-ef9fe475d2fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"body":{"mode":"raw","raw":"{\n\t\"from\": \"{{account_phonenumber}}\",  //required\n\t\"to\":\"{{destination_phonenumber}}\", // required\n    \"confId\":\"{{confId}}\", // required\n    \"mute\": boolean, // optional to join muted\n    \"deaf\": boolean, // optional to join Deaf\n    \"noSpeakToList\": [\"\"] // optional list of callSid or memberID's that this member will not be able to talk to on the conference.\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/conference/{{confId}}/participant","description":"<p>Add a pariticipant to an active conference.</p>\n<p>Request</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"from\": \"{{account_phonenumber}}\",  //required\n    \"to\":\"{{destination_phonenumber}}\", // required\n    \"confId\":\"{{confId}}\", // required\n    \"mute\": boolean, // optional to join muted\n    \"deaf\": boolean, // optional to join Deaf\n    \"noSpeakList\": [\"\"] // optional list of callSid or memberID's that this member will not be able to talk to on the conference.\n}\n\n</code></pre><p>Return payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"callSid\": UUID, // New call ID that was created\n  \"createdTime\": String // timestamp of the created call time.\n}\n\n</code></pre>","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conference","{{confId}}","participant"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eff53b1a-56f7-45bb-868b-ef9fe475d2fb"},{"name":"Add listen only member","id":"76adfa36-6403-49e1-8a0f-91ac1edf6845","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"body":{"mode":"raw","raw":"{\n\t\"from\": \"{{account_phonenumber}}\",\n\t\"to\":\"{{destination_number}}\",\n    \"confId\":\"{{confId}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/conference/{{confId}}/listen","description":"<p>Add a member to a conference, but in listen only mode.</p>\n<p>Return payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"callSid\": UUID, // New call ID that was created\n  \"createdTime\": String // timestamp of the created call time.\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conference","{{confId}}","listen"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"76adfa36-6403-49e1-8a0f-91ac1edf6845"},{"name":"AudioMapping","id":"e2a1e3a7-a3c0-4ed6-a56f-9df94bd12dd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"body":{"mode":"raw","raw":"[\n    {\n      \"source\": {{memberId}},\n      \"destination\": {{memberId}},\n      \"linkType\": \"nospeak|clear\"\n    }\n]","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/conference/{{confId}}/audioMap","description":"<p>This endpoint allows you advanced control of member to member audio mapping. Who can hear who. Using \"nospeak\" would mean audio in the direction form source to destination will not flow. Using \"clear\" will remove this rule.</p>\n<p>Return payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sentToCall\": boolean // if it was able to be sent\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conference","{{confId}}","audioMap"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2a1e3a7-a3c0-4ed6-a56f-9df94bd12dd3"},{"name":"Clear mute all","id":"d08ee012-b737-48c9-af00-bb1a5b1f604a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"url":"{{url}}/v4/conference/{{confId}}/member/{{memberId}}/clearAllMute","description":"<p>Removes all audio mappings and muting for the member ID passed.</p>\n<p>Return payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"sentToCall\": boolean // if it was able to be sent\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conference","{{confId}}","member","{{memberId}}","clearAllMute"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d08ee012-b737-48c9-af00-bb1a5b1f604a"}],"id":"85853639-1074-42c0-9e28-663409b1d1e9","description":"<p>Conferences come have two types.</p>\n<p>First is referred to as miniconf, the other is a standard conference.</p>\n<p>A miniconf is designed to allow a small number of members to be on the phone, but with the requirement that there be at least two people on the line. Once the level of people have gone above 1 if it falls below two the converence will end.</p>\n<p>Standard conferences will be covered at a later time.</p>\n<p>Mini conferences are automatically used for Proxy type calls and WebRTC calls inbound and outbound. API initiated, standard inbound, or XML based dial command the miniconf option is available to request it be created for the call. This is gernally used only when bridging two calls together. Reasons for this are to offer more functionality. Like playing audio to all members or listening into a call etc.</p>\n","_postman_id":"85853639-1074-42c0-9e28-663409b1d1e9","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Contacts","item":[{"name":"Get Contacts","id":"72439b8e-2aa0-4005-82ab-814aafb2e740","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/contact/","description":"<p>Retrieves up to 1000 contacts on the account.</p>\n<p>This endpoint is the equivalent of sending a search request with no parameters.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","contact",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"963aea33-4688-4af0-9b33-4bd8a28f2a1f","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":"{{url}}/v4/contact/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"425815","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"contactId\": \"19a36c7d-0031-4029-bd5d-a767a630281c\",\n            \"created\": \"dad585a0-8409-11ea-a38d-21ccd70bc11f\",\n            \"dnc\": 0,\n            \"timezone\": -128,\n            \"extData\": {\n                \"firstname\": \"John\",\n                \"phonenumber1\": \"+15556901234\",\n                \"externalid\": \"externalid1234\",\n                \"lastname\": \"Tester\"\n            },\n            \"keys\": [\n                \"+15556901234\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"72439b8e-2aa0-4005-82ab-814aafb2e740"},{"name":"Add Contact","id":"8ba8b9b1-0cc8-4ed7-acca-4cbc38f59969","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"extData\": {\r\n    \t\"firstname\":\"John\",\r\n    \t\"lastname\":\"Tester\",\r\n    \t\"phonenumber1\":\"+17142220000\",\r\n    \t\"email1\":\"johntester@testemail.com\",\r\n    \t\"address1\":\"1101 Northshore Dr.\",\r\n    \t\"city1\":\"Columbia\",\r\n    \t\"zip1\":\"65203\",\r\n    \t\"country1\":\"US\",\r\n    \t\"notes\":\"This is another contact.\"\r\n    },\r\n  \"keys\":[\r\n  \t\"+17142220000\",\r\n  \t\"johntester.alt@testemail.com\"\r\n  ]\r\n}\r\n"},"url":"{{url}}/v4/contact/","description":"<p>Adds a new contact.</p>\n<p>In the event of a key conflict, this will return an error with the existing contactId.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","contact",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"25eb0143-e4f5-4973-b5ef-8d57344669e7","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Content-type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"extData\": {\r\n    \t\"firstname\":\"John\",\r\n    \t\"lastname\":\"Tester\",\r\n    \t\"phonenumber1\":\"+17142220000\",\r\n    \t\"email1\":\"johntester@testemail.com\",\r\n    \t\"address1\":\"1101 Northshore Dr.\",\r\n    \t\"city1\":\"Columbia\",\r\n    \t\"zip1\":\"65203\",\r\n    \t\"country1\":\"US\",\r\n    \t\"notes\":\"This is another contact.\"\r\n    },\r\n  \"keys\":[\r\n  \t\"+17142220000\",\r\n  \t\"johntester.alt@testemail.com\"\r\n  ]\r\n}\r\n"},"url":"{{url}}/v4/contact/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"513","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"contactId\": \"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf\",\n            \"created\": \"86b0cea0-5a80-11eb-a4f7-51ea502320d5\",\n            \"dnc\": 0,\n            \"timezone\": -24,\n            \"extData\": {\n                \"firstname\": \"John\",\n                \"email1\": \"johntester@testemail.com\",\n                \"city1\": \"Columbia\",\n                \"phonenumber1\": \"+17142220000\",\n                \"notes\": \"This is another contact.\",\n                \"address1\": \"1101 Northshore Dr.\",\n                \"country1\": \"US\",\n                \"zip1\": \"65203\",\n                \"lastname\": \"Tester\"\n            },\n            \"keys\": [\n                \"+17142220000\",\n                \"johntester.alt@testemail.com\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"8ba8b9b1-0cc8-4ed7-acca-4cbc38f59969"},{"name":"Search Contacts","id":"59b7e6fa-0ce8-49e6-a01d-7d561841c512","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"size\": 5000,\n    \"keys\": [\n        \"+17142220000\"\n    ],\n    \"statements\": [\n        {\n            \"operation\": \"contains\",\n            \"value\": \"John\",\n            \"variable\": \"firstname\"\n        }\n    ]\n}"},"url":"{{url}}/v4/contact/search","description":"<p>Allows searching for contacts. There are two different modes, key search and statement search. If both are provided it will only do a key search.</p>\n<p>When doing a key search all the records that have one of the provided keys will be returned.</p>\n<p>When doing a statement search all records that match all of the criteria will be returned. Each statement must contain three values <strong>variable</strong>, <strong>operation</strong>, and <strong>value</strong>. The <strong>variable</strong> will be one of the <strong>extData</strong> keys. <strong>operation</strong> must be either <em>equal</em>, <em>equals</em>, or <em>contains</em>. <strong>value</strong> is the value that will be matched against. In the example below it will find all contacts what have a first name that contains \"Roy\".</p>\n<p>The <strong>size</strong> parameter is only valid for statement searches. It is currently capped at 10,000 results.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","contact","search"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"33e293cf-14ed-4cbe-bf27-663738d93b0a","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"size\": 5000,\n    \"keys\": [\n        \"+17142220000\"\n    ],\n    \"statements\": [\n        {\n            \"operation\": \"contains\",\n            \"value\": \"John\",\n            \"variable\": \"firstname\"\n        }\n    ]\n}"},"url":"{{url}}/v4/contact/search"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"513","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"contactId\": \"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf\",\n            \"created\": \"86b0cea0-5a80-11eb-a4f7-51ea502320d5\",\n            \"dnc\": 0,\n            \"timezone\": -24,\n            \"extData\": {\n                \"firstname\": \"John\",\n                \"email1\": \"johntester@testemail.com\",\n                \"city1\": \"Columbia\",\n                \"phonenumber1\": \"+17142220000\",\n                \"notes\": \"This is another contact.\",\n                \"address1\": \"1101 Northshore Dr.\",\n                \"country1\": \"US\",\n                \"zip1\": \"65203\",\n                \"lastname\": \"Tester\"\n            },\n            \"keys\": [\n                \"+17142220000\",\n                \"johntester.alt@testemail.com\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"59b7e6fa-0ce8-49e6-a01d-7d561841c512"},{"name":"Upload Contacts","id":"98351518-6dfa-4c53-a0a8-e5c4ebc65e25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"parts","description":"<p>The file containing your contact records</p>\n","type":"file","src":"/Users/matt/Desktop/contacts.txt"}]},"url":"{{url}}/v4/contact/upload?conflictMode=REJECT","description":"<p>Uploads a csv file that will be populated as contacts in the system.</p>\n<p>The first line will be the header, which will map to extData fields on the contact</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>phonenumber1,firstname,lastname,candy\n+17148675309,Jenny,Doe,red hots\n+17148675310,John,Doe,snickers\n</code></pre><p>There is an optional <strong>conflictMode</strong> variable that can be passed when uploading a list. This value can be <strong>REJECT</strong> (default), <strong>APPEND</strong>, <strong>OVERWRITE</strong>, or <strong>REPLACE</strong>. \nModes:</p>\n<ul>\n<li><strong>REJECT</strong> The new data is rejected. The existing data is preserved. This will generate an error.</li>\n<li><strong>REPLACE</strong> The new data is inserted. Existing data is removed.</li>\n<li><strong>APPEND</strong> New data is inserted. Existing data is preserved. Key conflicts keep the old data.</li>\n<li><strong>OVERWRITE</strong> New data is inserted. Existing data is preserved unless there is a key conflict where it is replaced.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","contact","upload"],"host":["{{url}}"],"query":[{"key":"conflictMode","value":"REJECT"}],"variable":[]}},"response":[{"id":"ed503575-494c-413f-b9e4-28fd606578f0","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"parts","type":"file","src":["/Users/matt/Desktop/contacts.txt"]}]},"url":{"raw":"{{url}}/v4/contact/upload?conflictMode=REJECT","host":["{{url}}"],"path":["v4","contact","upload"],"query":[{"key":"conflictMode","value":"REJECT"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"169","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"processedRows\": 1,\n            \"successRows\": 1,\n            \"failedRows\": 0,\n            \"contactIds\": {\n                \"1\": \"8f321ea8-ed31-4f47-8bde-7f70ab328145\"\n            },\n            \"errors\": null\n        }\n    ]\n}"}],"_postman_id":"98351518-6dfa-4c53-a0a8-e5c4ebc65e25"},{"name":"Upload Contacts Async","id":"4b027484-17d3-4e12-ba5a-ea678674d13c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"parts","description":"<p>The file containing your contact records</p>\n","type":"file","src":"/Users/matt/Desktop/contacts.txt"}]},"url":"{{url}}/v4/contact/uploadAsync?conflictMode=REJECT&callback=websocket&incrementalCallback=true","description":"<p>Uploads a csv file that will be populated as contacts in the system asynchronously.</p>\n<p>The first line will be the header, which will map to extData fields on the contact</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>phonenumber1,firstname,lastname,candy\n+17148675309,Jenny,Doe,red hots\n+17148675310,John,Doe,snickers\n</code></pre><p>There is an optional <strong>conflictMode</strong> variable that can be passed when uploading a list. This value can be <strong>REJECT</strong> (default), <strong>APPEND</strong>, <strong>OVERWRITE</strong>, or <strong>REPLACE</strong>. \nModes:</p>\n<ul>\n<li><strong>REJECT</strong> The new data is rejected. The existing data is preserved. This will generate an error.</li>\n<li><strong>REPLACE</strong> The new data is inserted. Existing data is removed.</li>\n<li><strong>APPEND</strong> New data is inserted. Existing data is preserved. Key conflicts keep the old data.</li>\n<li><strong>OVERWRITE</strong> New data is inserted. Existing data is preserved unless there is a key conflict where it is replaced.</li>\n</ul>\n<p>If the optional <strong>callback</strong> parameter is passed then a callback will be made upon the completion of the file upload. Valid values are <strong>websocket</strong>, the id of a webhook, or a URL. Additionally if the <strong>incrementalCallback</strong> (default false) parameter is set to true then status updates will be sent to the configured callback. If using a webhook, the id must correspond to a webhook of type <strong>api_callback</strong>.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","contact","uploadAsync"],"host":["{{url}}"],"query":[{"key":"conflictMode","value":"REJECT"},{"key":"callback","value":"websocket"},{"key":"incrementalCallback","value":"true"}],"variable":[]}},"response":[{"id":"aa68bdee-4db6-4633-aba4-6a8225bfb3c1","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"parts","type":"file","src":["/Users/matt/Desktop/contacts.txt"]}]},"url":{"raw":"{{url}}/v4/contact/upload?conflictMode=REJECT","host":["{{url}}"],"path":["v4","contact","upload"],"query":[{"key":"conflictMode","value":"REJECT"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"169","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"processedRows\": 1,\n            \"successRows\": 1,\n            \"failedRows\": 0,\n            \"contactIds\": {\n                \"1\": \"8f321ea8-ed31-4f47-8bde-7f70ab328145\"\n            },\n            \"errors\": null\n        }\n    ]\n}"}],"_postman_id":"4b027484-17d3-4e12-ba5a-ea678674d13c"},{"name":"Edit Contact","id":"15bd7530-ddb8-4ca9-89f8-9f4849943075","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"extData\": {\r\n    \"variablename\": \"update contact data\",\r\n    \"firstname\": \"John\",\r\n    \"lastname\": \"Tester\",\r\n    \"externalcontactkey\": \"myuniqueid\",\r\n    \"phonenumber1\": \"+16192331234\"\r\n  },\r\n  \"keys\": [\r\n  \t\"+16192331234\",\r\n    \"myuniqueid\"\r\n  ],\r\n  \"rmkeys\": [\r\n    \"myolduniqueid\"\r\n  ]\r\n}"},"url":"{{url}}/v4/contact/:contactId","description":"<p>Edits a contact.</p>\n<p>Similar to uploading a list, this has an optional <strong>conflictMode</strong> parameter (default <strong>REPLACE</strong>). Using <strong>REJECT</strong> will result in an error. Using <strong>APPEND</strong> will result in the existing contact data remaining with new key/value pairs being added. <strong>OVERWRITE</strong> will replace existing key/value pairs but not remove existing ones.</p>\n<p>In any case, only non-null fields that are passed in will be updated.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","contact",":contactId"],"host":["{{url}}"],"query":[],"variable":[{"id":"31fc635e-6640-4593-bb74-ace876b00bc7","description":{"content":"<p>The contactId of the record to edit</p>\n","type":"text/plain"},"type":"any","value":"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf","key":"contactId"}]}},"response":[{"id":"e7ac7195-6edd-4895-a4d3-c41760c8965e","name":"Sample Request","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"extData\": {\r\n    \"variablename\": \"update contact data\",\r\n    \"firstname\": \"John\",\r\n    \"lastname\": \"Tester\",\r\n    \"externalcontactkey\": \"myuniqueid\",\r\n    \"phonenumber1\": \"+16192331234\"\r\n  },\r\n  \"keys\": [\r\n  \t\"+16192331234\",\r\n    \"myuniqueid\"\r\n  ],\r\n  \"rmkeys\": [\r\n    \"myolduniqueid\"\r\n  ]\r\n}"},"url":{"raw":"{{url}}/v4/contact/:contactId","host":["{{url}}"],"path":["v4","contact",":contactId"],"variable":[{"key":"contactId","value":"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf","description":"contactId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"469","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"148","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"contactId\": \"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf\",\n            \"created\": \"86b0cea0-5a80-11eb-a4f7-51ea502320d5\",\n            \"dnc\": 0,\n            \"timezone\": -32,\n            \"extData\": {\n                \"firstname\": \"John\",\n                \"externalcontactkey\": \"myuniqueid\",\n                \"phonenumber1\": \"+16192331234\",\n                \"variablename\": \"update contact data\",\n                \"lastname\": \"Tester\"\n            },\n            \"keys\": [\n                \"+16192331234\",\n                \"myuniqueid\"\n            ],\n            \"rmkeys\": [\n                \"+17142220000\",\n                \"johntester.alt@testemail.com\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"15bd7530-ddb8-4ca9-89f8-9f4849943075"},{"name":"Archive Contact","id":"066565ea-1fae-4b0b-9590-13602f679e53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/v4/contact/:contactId","description":"<p>Deletes a contact. Like other archive endpoints there is no way to search for archived contacts.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","contact",":contactId"],"host":["{{url}}"],"query":[],"variable":[{"id":"8733970e-625a-4922-932e-1d583764b42d","description":{"content":"<p>The Contact ID of the record to archive</p>\n","type":"text/plain"},"type":"any","value":"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf","key":"contactId"}]}},"response":[{"id":"fde7c0b2-0386-42ea-9d8b-97f86f463021","name":"Sample Request","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/v4/contact/:contactId","host":["{{url}}"],"path":["v4","contact",":contactId"],"variable":[{"key":"contactId","value":"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf","description":"The Contact ID of the record to archive"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"469","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\n            \"contactId\": \"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf\",\n            \"created\": \"86b0cea0-5a80-11eb-a4f7-51ea502320d5\",\n            \"dnc\": 0,\n            \"timezone\": -32,\n            \"extData\": {\n                \"firstname\": \"John\",\n                \"externalcontactkey\": \"myuniqueid\",\n                \"phonenumber1\": \"+16192331234\",\n                \"variablename\": \"update contact data\",\n                \"lastname\": \"Tester\"\n            },\n            \"keys\": [\n                \"+16192331234\",\n                \"myuniqueid\"\n            ],\n            \"rmkeys\": [\n                \"+17142220000\",\n                \"johntester.alt@testemail.com\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"066565ea-1fae-4b0b-9590-13602f679e53"},{"name":"Get Contact","id":"8030dbc1-aa5d-407b-a995-456b270a953d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/contact/:contactId/","description":"<p>Retrieves a contact by its contactId.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","contact",":contactId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"397dca53-c35e-4177-ac51-0f5513080ea4","description":{"content":"<p>The Contact ID of the person to retrieve</p>\n","type":"text/plain"},"type":"any","value":"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf","key":"contactId"}]}},"response":[{"id":"12fe2c18-70c0-4fea-9824-cff85a7e71e0","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/contact/:contactId/","host":["{{url}}"],"path":["v4","contact",":contactId",""],"variable":[{"key":"contactId","value":"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf","description":"The Contact ID of the person to retrieve"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"469","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\n            \"contactId\": \"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf\",\n            \"created\": \"86b0cea0-5a80-11eb-a4f7-51ea502320d5\",\n            \"dnc\": 0,\n            \"timezone\": -32,\n            \"extData\": {\n                \"firstname\": \"John\",\n                \"externalcontactkey\": \"myuniqueid\",\n                \"phonenumber1\": \"+16192331234\",\n                \"variablename\": \"update contact data\",\n                \"lastname\": \"Tester\"\n            },\n            \"keys\": [\n                \"+16192331234\",\n                \"myuniqueid\"\n            ],\n            \"rmkeys\": [\n                \"+17142220000\",\n                \"johntester.alt@testemail.com\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"8030dbc1-aa5d-407b-a995-456b270a953d"},{"name":"Unarchive Contact","id":"c0608c8c-d9db-4af2-ad87-c5c5acc9f6fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/v4/contact/:contactId/unarchive","description":"<p>Returns a previously archived contact to available. If there is a key conflict this will fail.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","contact",":contactId","unarchive"],"host":["{{url}}"],"query":[],"variable":[{"id":"84749f31-eb9e-43f3-ba61-0a07ce7bd8c6","description":{"content":"<p>The Contact ID of the person to unarchive</p>\n","type":"text/plain"},"type":"any","value":"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf","key":"contactId"}]}},"response":[{"id":"6d1d9bf9-a4ea-49a5-93b5-1bcb19d63a51","name":"Sample Request","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/v4/contact/:contactId/unarchive","host":["{{url}}"],"path":["v4","contact",":contactId","unarchive"],"variable":[{"key":"contactId","value":"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf","description":"The Contact ID of the person to unarchive"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"469","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\n            \"contactId\": \"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf\",\n            \"created\": \"86b0cea0-5a80-11eb-a4f7-51ea502320d5\",\n            \"dnc\": 0,\n            \"timezone\": -32,\n            \"extData\": {\n                \"firstname\": \"John\",\n                \"externalcontactkey\": \"myuniqueid\",\n                \"phonenumber1\": \"+16192331234\",\n                \"variablename\": \"update contact data\",\n                \"lastname\": \"Tester\"\n            },\n            \"keys\": [\n                \"+16192331234\",\n                \"myuniqueid\"\n            ],\n            \"rmkeys\": [\n                \"+17142220000\",\n                \"johntester.alt@testemail.com\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"c0608c8c-d9db-4af2-ad87-c5c5acc9f6fe"}],"id":"308c4761-3fd4-4282-a518-0f6f9b81490a","description":"<p>Contacts are provided as a way to store information about a user. Many of the apis can use a contact in place of a phone number because there can be additional metadata stored with the account.</p>\n<p>This is an example contact:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n \"accountSid\": \"6291c31a-e7e0-499f-b720-210e4aea3745\",\n \"contactId\": \"daab0b00-631f-11ea-a59f-c5e932a2cc31\",\n \"created\": \"170a1241-0ca3-11ea-bd7e-0b63ac28d9d8\",\n \"dnc\": 0,\n \"timezone\": -32,\n \"extData\": {\n    \"firstname\": \"John\",\n    \"lastname\": \"Doe\",\n    \"phonenumber1\": \"+13105551234\",\n    \"animal\": \"cat\"\n },\n \"keys\": [\n    \"+13105551234\"\n ]\n}\n</code></pre><ul>\n<li><strong>contactId</strong> is a randomly generated UUID created at the time the contact is created.</li>\n<li><strong>created</strong> is a time UUID also created at the time the contact was created.</li>\n<li><strong>dnc</strong> tracks the \"Do Not Call\" status of a contact. A value of 1 indicates that they should not be contacted.</li>\n<li><strong>timezone</strong> is the calculated timezone id based upon either the contact's country and zip (preferred), or the phone number.</li>\n<li><strong>extData</strong> is any metadata associated with the contact.</li>\n<li><strong>keys</strong> are unique lookup keys. Some of these are computed based upon <strong>extData</strong>.</li>\n<li><strong>lastUsed</strong>, <strong>lastInbox</strong>, and <strong>lastMethod</strong> are internal values used for conversations within Inbox and are not editable fields.</li>\n</ul>\n<h2 id=\"extdata\">ExtData</h2>\n<p>ExtData is a String:String map of additional data for the contact. Some of the fields are treated special by Ytel's systems and most of these are postfixed by the number 1. Other fields named similarly with different numerical postfixes will be subject to the same validation (if any). The keys in extData are all lowercase and will be lowercased on import.</p>\n<ul>\n<li><strong>phonenumber1</strong> is the primary phone number and must be a valid E164 formatted number. Endpoints that use take a contactId will use this as the phone number for the call or sms. This field will be automatically populated into keys.</li>\n<li><strong>email1</strong> is the primary email address. This must be formatted as an email address.</li>\n<li><strong>state1</strong> is the two letter abbreviation for the US state the contact is in. International contacts should leave this blank.</li>\n<li><strong>zip1</strong> is zip code of the contact.</li>\n<li><strong>country1</strong> is the two letter country code of the contact.</li>\n<li><strong>firstname</strong>, <strong>lastname</strong>, and <strong>notes</strong> are convenience values used by the UI.</li>\n</ul>\n","_postman_id":"308c4761-3fd4-4282-a518-0f6f9b81490a","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"DNC","item":[{"name":"Add Dnc","id":"80a72161-a736-47d3-ab14-41316a89557a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"endpoint\": \"+15558675309\",\n  \"selector\": \"CUSTOMER_GLOBAL\",\n  \"subtype\": \"sms\",\n  \"selectors\": [ \"CUSTOMER_GLOBAL\", \"+15551234567\"],\n  \"subtypes\": [\"sms\", \"call\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/dnc","description":"<p>Add a number to your DNC that should not be contacted.</p>\n<p>The <strong>endpoint</strong> is the phone number that should not be contacted. It should be formatted in the E164 format.</p>\n<p>The <strong>subtype</strong> is an optional parameter for what type of contact should not be made. Valid values are <strong>sms</strong> and <strong>call</strong>, with sms being the default.</p>\n<p>The <strong>selector</strong> is another optional parameter. This can either be an owned phone number or <strong>CUSTOMER_GLOBAL</strong> with the default being CUSTOMER_GLOBAL. Setting this value to something other than CUSTOMER_GLOBAL will only block sms/calls for the number specified.</p>\n<p>If you need to add a DNC for both call and sms, two rows will be required.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","dnc"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"80a72161-a736-47d3-ab14-41316a89557a"},{"name":"Upload DNC","id":"ec8fc280-0bdd-4628-bc6b-16a9b9a9d300","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","value":null}]},"url":"{{url}}/v4/dnc/bulk","description":"<p>Upload a file containing a set of numbers that should not be contacted.</p>\n<p>The file must start with a header row. Valid headers are <strong>endpoint</strong>, <strong>subtype</strong>, and <strong>selector</strong>. </p>\n<p>The <strong>endpoint</strong> is the phone number that should not be contacted. It should be formatted in the E164 format.</p>\n<p>The <strong>subtype</strong> is an optional parameter for what type of contact should not be made. Valid values are <strong>sms</strong> and <strong>call</strong>, with sms being the default.</p>\n<p>The <strong>selector</strong> is another optional parameter. This can either be an owned phone number or <strong>CUSTOMER_GLOBAL</strong> with the default being CUSTOMER_GLOBAL. Setting this value to something other than CUSTOMER_GLOBAL will only block sms/calls for the number specified.</p>\n<p>If you need to add a DNC for both call and sms, two rows will be required.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","dnc","bulk"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec8fc280-0bdd-4628-bc6b-16a9b9a9d300"},{"name":"Upload DNC Async","id":"0046c1cd-73f0-45e3-9d1c-b0976f6299aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","value":null}]},"url":"{{url}}/v4/dnc/bulk","description":"<p>Upload a file containing a set of numbers that should not be contacted asynchronously.</p>\n<p>The file must start with a header row. Valid headers are <strong>endpoint</strong>, <strong>subtype</strong>, and <strong>selector</strong>. </p>\n<p>The <strong>endpoint</strong> is the phone number that should not be contacted. It should be formatted in the E164 format.</p>\n<p>The <strong>subtype</strong> is an optional parameter for what type of contact should not be made. Valid values are <strong>sms</strong> and <strong>call</strong>, with sms being the default.</p>\n<p>The <strong>selector</strong> is another optional parameter. This can either be an owned phone number or <strong>CUSTOMER_GLOBAL</strong> with the default being CUSTOMER_GLOBAL. Setting this value to something other than CUSTOMER_GLOBAL will only block sms/calls for the number specified.</p>\n<p>If you need to add a DNC for both call and sms, two rows will be required.</p>\n<p>The optional <strong>callback</strong> parameter will determine which mechanism is used for sending a callback. Valid values are <em>websocket</em>, an id of a webhook of type <em>api_callback</em>, or a url.</p>\n<p>The optional <strong>incrementalCallback</strong> parameter if set to true will result in status results while the dnc list is being processed.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","dnc","bulk"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0046c1cd-73f0-45e3-9d1c-b0976f6299aa"},{"name":"Check DNC","id":"a6411fc0-487f-40c4-b485-5f6da8826fae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/dnc/:endpoint/:selector/:subtype/","description":"<p>Returns the DNC details for the given endpoint, selector, and subtype.</p>\n<p>If there is not an entry for this combination it will return a standard error response indicating that the entry could not be found.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","dnc",":endpoint",":selector",":subtype",""],"host":["{{url}}"],"query":[],"variable":[{"id":"fc542f42-8f33-4ec1-bd86-602d507aeab4","type":"any","value":null,"key":"endpoint"},{"id":"b72aecbd-e40e-4e4b-98a6-de0d9de35c59","type":"any","value":null,"key":"selector"},{"id":"c245e449-da66-4338-9912-20002afbb667","type":"any","value":null,"key":"subtype"}]}},"response":[],"_postman_id":"a6411fc0-487f-40c4-b485-5f6da8826fae"}],"id":"747210aa-689f-48dd-9b93-3f9b739f0c57","description":"<p>Endpoints for managing DNC (Do Not Contact) lists.</p>\n<p>Each DNC entry has three primary attributes: <strong>endpoint</strong>, <strong>subtype</strong>, and <strong>selector</strong>.</p>\n<p>The <strong>endpoint</strong> is the phone number that should not be contacted.</p>\n<p>The <strong>subtype</strong> is the communication channel that is blocked. Valid values are <em>sms</em>, <em>call</em>, and <em>bypass</em>. Call and SMS blocking will prevent contacting a number via that contact method. The bypass subtype allows a number that is on on of Ytel's internal block lists to be contacted.</p>\n<p>The <strong>selector</strong> is used to determine where the call or sms is not allowed to originate from. There is a special value <strong>CUSTOMER_GLOBAL</strong> that will block all outbound communication on the given channel from all owned numbers. Alternatively it can be set to an owned number.</p>\n","_postman_id":"747210aa-689f-48dd-9b93-3f9b739f0c57","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Inbound Routing","item":[{"name":"RouteTag","item":[{"name":"Get all RouteTags","id":"7d1b633e-80d3-4e3c-8865-6b82045cd6ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/route/tag","description":"<p>Returns all route tags for the account.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","route","tag"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7d1b633e-80d3-4e3c-8865-6b82045cd6ec"},{"name":"Get RouteTag","id":"6b6c669a-5182-4e6f-8b3e-b4a45c28e9f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/route/tag/:routeTag","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","route","tag",":routeTag"],"host":["{{url}}"],"query":[],"variable":[{"id":"2722bfcc-d0b0-453d-ac26-a2837a0cdf77","type":"any","value":null,"key":"routeTag"}]}},"response":[],"_postman_id":"6b6c669a-5182-4e6f-8b3e-b4a45c28e9f5"},{"name":"Delete RouteTag","id":"238dc9ab-3274-4705-85e4-f2eb791bba41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/route/tag/:routeTag","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","route","tag",":routeTag"],"host":["{{url}}"],"query":[],"variable":[{"id":"22be4b9a-a9d5-47b5-a717-a29092fae0b9","type":"any","value":"ERER","key":"routeTag"}]}},"response":[],"_postman_id":"238dc9ab-3274-4705-85e4-f2eb791bba41"},{"name":"Add RouteTag","id":"123702ba-8400-487e-8fe1-6df8ee679177","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"routeTag\": \"buffalo\",\n    \"description\": \"buffalo\",\n    \"distributionType\": \"2\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/route/tag/","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","route","tag",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"123702ba-8400-487e-8fe1-6df8ee679177"},{"name":"Update RouteTag","id":"4a259ea3-4202-45cc-bc99-cfc074a0fd1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"routeTag\": \"Xmas route\",\n    \"description\": \"Christmas sms list\",\n    \"distributionType\": \"2\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/route/tag","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","route","tag"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a259ea3-4202-45cc-bc99-cfc074a0fd1a"},{"name":"Assign RouteTag to number(s)","id":"6c145ec0-7eaa-4476-b6f0-0186f1fbb6ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"phoneNumbers\": [\"+15553497775\"],\n    \"routeTag\": \"buffalo\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/route/tag/assign","description":"<p>Assign routeTag to a list of numbers or a numberSetId.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","route","tag","assign"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6c145ec0-7eaa-4476-b6f0-0186f1fbb6ed"},{"name":"Delete RouteTag from number(s)","id":"e3a8807c-d1a9-4db2-bd0c-f9d451d13ce3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"phoneNumbers\": [\"+15553497775\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/route/tag/assign","description":"<p>Remove any route tag assigned to the list of numbers or numbers assigned to a numberSetId</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","route","tag","assign"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e3a8807c-d1a9-4db2-bd0c-f9d451d13ce3"}],"id":"0497ca3e-857e-4add-913c-c4ea5e1af8b1","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"891fe848-c123-4211-a682-cf582217a594"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"4fb43013-0401-4e98-bbb8-f813048c282b"}}],"_postman_id":"0497ca3e-857e-4add-913c-c4ea5e1af8b1","description":"","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"RouteDest","item":[{"name":"Get RouteDest for routeTag","id":"8b4ec2d4-b438-4fde-b303-8cf6c150454f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/route/dest/:routeTag","description":"<p>Return all route destinations for the specified route tag.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","route","dest",":routeTag"],"host":["{{url}}"],"query":[],"variable":[{"id":"04b98384-41f8-4f12-a100-3b61114911d5","type":"any","value":"callTest","key":"routeTag"}]}},"response":[],"_postman_id":"8b4ec2d4-b438-4fde-b303-8cf6c150454f"},{"name":"Delete RouteDest","id":"fd968eb3-a5cd-4308-b25e-e6ec7fd18e44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"routeTag\": \"ERER\",\n    \"srcType\": \"sms\",\n    \"dest\": \"+15554717204\",\n    \"destType\": \"call-relay\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/route/dest","description":"<p>Return all route destinations for the specified route tag.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","route","dest"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fd968eb3-a5cd-4308-b25e-e6ec7fd18e44"},{"name":"Get all RouteDest for account","id":"3e0c944e-4ccc-4a41-962e-f2090e6d2dd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/route/dest/","description":"<p>Return all route destinations for the specified route tag.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","route","dest",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e0c944e-4ccc-4a41-962e-f2090e6d2dd4"},{"name":"Get RouteDest Single Entry","id":"5349949b-9f9b-4bbe-85dd-305903a41ee1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/route/dest/:routeTag/:sourceType/:destination/:destinationType","description":"<p>Return all route destinations for the specified route tag.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","route","dest",":routeTag",":sourceType",":destination",":destinationType"],"host":["{{url}}"],"query":[],"variable":[{"id":"c9dee7cf-ecc9-4457-a1da-0dfe1e5ce2e3","type":"any","value":"callTest","key":"routeTag"},{"id":"96d0d999-b264-4f3c-9d0a-2a18bf42e307","type":"any","value":"call","key":"sourceType"},{"id":"0e230432-ed25-472a-8051-6b6a2272b0b5","type":"any","value":"callTestXml","key":"destination"},{"id":"f97a9c34-3adb-4075-888b-d4a5ba2194cc","type":"any","value":"call","key":"destinationType"}]}},"response":[],"_postman_id":"5349949b-9f9b-4bbe-85dd-305903a41ee1"},{"name":"Add RouteDest","id":"25dfd385-d6ce-4f2c-9c3e-7e197ec5c94b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":" {\n   \"routeTag\": \"buffalo\",\n   \"scrType\": \"sms\",\n   \"dest\": \"chip\",\n   \"destType\": \"inbox\",\n   \"name\": \"buffalo to inbox\",\n   \"description\": \"\",\n   \"distributionType\": 1,\n   \"callbackUrl\": \"\",\n   \"options\": [],\n   \"applyTags\": [],\n   \"priority\": 1,\n   \"ruleSetId\": \"3dcde161-1b00-11ec-bfe1-d58d9b9bb3f6\",\n   \"status\": 1\n }","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/route/dest","description":"<p>Add a new route destination for a route tag.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","route","dest"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"25dfd385-d6ce-4f2c-9c3e-7e197ec5c94b"},{"name":"Update RouteDest","id":"875e7198-dd0d-4798-99f6-a34de7459c25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n            \"accountSid\": \"6291c31c-e7e0-499f-b720-210e4aea3721\",\n            \"routeTag\": \"callTest\",\n            \"srcType\": \"call\",\n            \"dest\": \"callTestXml\",\n            \"destType\": \"call\",\n            \"name\": \"Test inbound call xml\",\n            \"created\": null,\n            \"description\": \"Test inbound call\",\n            \"distributionType\": 1,\n            \"callbackUrl\": null,\n            \"options\": {\n                \"callXml\": \"<response><Play>http://www.moviesoundclips.net/tv1/orangeisthenewblack/freak.mp3</Play><Redirect method='Post'>https://webhook.site/fe693d5b-9e53-4aec-a8cb-12223</Redirect></response>\"\n            },\n            \"applyTags\": null,\n            \"priority\": 1,\n            \"ruleSetId\": \"542da420-98dd-11ec-81df-fb49300e03c2\",\n            \"status\": 1\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/route/dest","description":"<p>Update an existing route destination</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","route","dest"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"875e7198-dd0d-4798-99f6-a34de7459c25"}],"id":"2375b566-375e-49ea-830c-0c844e2f85d9","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"1676a3bc-ed29-41f3-9137-a2a63f61bcc5"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"14cabd5f-19a4-424a-b4f4-9286dc057d1f"}}],"_postman_id":"2375b566-375e-49ea-830c-0c844e2f85d9","description":"","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}}],"id":"57b5b7e4-f8ea-4c9a-a0f4-7f3bf6977999","description":"<p>Inbound routing allows for changing destinations for incoming sms or calls based on configured criteria.</p>\n<p>All webhooks that are configured with the type <code>inroute</code> will be called on each inbound call or sms to provide additional variables that can be used for routing rules. Each configured variable must be given a name and will have a value provided by a lookup into the response payload by following the JsonPath defined in the webhook variable.</p>\n","_postman_id":"57b5b7e4-f8ea-4c9a-a0f4-7f3bf6977999","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Inbox","item":[{"name":"Get inbox","id":"3ed35fcc-786c-43cb-b71a-985476bae721","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/inbox/?inbox={{accountsid}}","description":"<p>Returns the list of all conversations that had a their last publishable event during the specified time period. By default the most recent 100 events over the past 30 days.</p>\n<p>The values in the response are as follows:  </p>\n<p><strong>accountSid</strong>: The account id</p>\n<p><strong>inbox</strong>: Name of the inbox (by default this is the accountSid)</p>\n<p><strong>partition</strong>: Day that the event happened represented as an integer in YYYMMDD format.</p>\n<p><strong>time</strong>: A timeUUID for when the event happened.</p>\n<p><strong>timestamp</strong>: Milliseconds since the epoch for when the event happened.</p>\n<p><strong>contact</strong>: A snapshot of the contact object. Refer to documentation about contacts for the contents of this field.</p>\n<p><strong>contactId</strong>: The contactId associated with the event.</p>\n<p><strong>event</strong>: The body of the event. Refer to the documentation about conversations for the contents.</p>\n<p><strong>source:</strong> Deprecated field used for internal routing.</p>\n<p><strong>status</strong>: The read/unread status of an event.</p>\n<p><strong>open</strong>: Whether the conversation is still in an open or closed state. By default closed conversations are not returned.</p>\n<p><strong>type</strong>: Type of the event. This will be the same as the type within the <em>event</em> object.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","inbox",""],"host":["{{url}}"],"query":[{"description":{"content":"<p>Name of the inbox. Default inbox is the accountSid.</p>\n","type":"text/plain"},"key":"inbox","value":"{{accountsid}}"},{"disabled":true,"description":{"content":"<p>UUID of the inbox entry that all returned entries should be before.</p>\n","type":"text/plain"},"key":"lastTime","value":""},{"disabled":true,"description":{"content":"<p>Number of records to return</p>\n","type":"text/plain"},"key":"limit","value":"100"},{"disabled":true,"description":{"content":"<p>Status filter for conversations (default open)</p>\n","type":"text/plain"},"key":"open","value":"open"},{"disabled":true,"description":{"content":"<p>Earliest day of data to return. </p>\n","type":"text/plain"},"key":"startDate","value":""},{"disabled":true,"description":{"content":"<p>Last day of data to return</p>\n","type":"text/plain"},"key":"endDate","value":""},{"disabled":true,"description":{"content":"<p>Number of days of data to return</p>\n","type":"text/plain"},"key":"days","value":""}],"variable":[]}},"response":[{"id":"181fd3d3-f0c4-488b-9484-739bce14578a","name":"Sample Request","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/v4/inbox/?inbox={{accountsid}}","host":["{{url}}"],"path":["v4","inbox",""],"query":[{"key":"inbox","value":"{{accountsid}}","description":"Name of the inbox. Default inbox is the accountSid."},{"key":"lastTime","value":null,"description":"UUID of the inbox entry that all returned entries should be before.\n","type":"text","disabled":true},{"key":"limit","value":"100","description":"Number of records to return","type":"text","disabled":true},{"key":"open","value":"open","description":"Status filter for conversations (default open)\n","type":"text","disabled":true},{"key":"startDate","value":null,"description":"Earliest day of data to return. ","type":"text","disabled":true},{"key":"endDate","value":null,"description":"Last day of data to return","type":"text","disabled":true},{"key":"days","value":null,"description":"Number of days of data to return","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"93334","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-RateLimit-Remaining-Second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-Second","value":"150","enabled":true},{"key":"RateLimit-Limit","value":"150","enabled":true},{"key":"RateLimit-Remaining","value":"149","enabled":true},{"key":"RateLimit-Reset","value":"1","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Kong-Upstream-Latency","value":"62","enabled":true},{"key":"X-Kong-Proxy-Latency","value":"2","enabled":true},{"key":"Via","value":"kong/2.8.1","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\n            \"inbox\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\n            \"partition\": 20221111,\n            \"time\": \"db31d030-6156-11ed-8f22-3d2972e44898\",\n            \"timestamp\": 1668126119091,\n            \"contact\": {\n                \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\n                \"contactId\": \"3f343ca7-91a8-4b03-90a7-141b26b90658\",\n                \"created\": \"28874e20-cbc3-11ec-90a8-fb85a106d9fa\",\n                \"lastUsed\": \"c9408680-d12f-11ec-b913-21a06f2e7cb2\",\n                \"lastInbox\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\n                \"lastMethod\": \"sms\",\n                \"extData\": {\n                    \"phonenumber1\": \"+19495551234\"\n                },\n                \"keys\": [\n                    \"+19495551234\"\n                ],\n                \"eventCount\": 0,\n                \"dnc\": 0\n            },\n            \"contactId\": \"3f343ca7-91a8-4b03-90a7-141b26b90658\",\n            \"event\": {\n                \"body\": \"Hello world\",\n                \"mediaUrl\": \"\",\n                \"type\": \"sms\",\n                \"messageId\": \"db31d030-6156-11ed-8f22-3d2972e44898\",\n                \"direction\": \"in\",\n                \"attributes\": {\n                    \"phonenumber1\": \"+19495551234\"\n                },\n                \"to\": \"+19498675309\",\n                \"from\": \"+19495551234\",\n                \"time\": 1668126119091\n            },\n            \"source\": {\n                \"sourceId\": \"fsi\"\n            },\n            \"status\": \"unread\",\n            \"open\": \"open\",\n            \"type\": \"sms\"\n        }\n    ]\n}"}],"_postman_id":"3ed35fcc-786c-43cb-b71a-985476bae721"},{"name":"Get Inbox Names","id":"3da26774-a58f-465a-8c85-f09c5b1e2ba1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/inbox/name","description":"<p>Returns the list of all conversations that had a their last publishable event during the specified time period. By default the most recent 100 events over the past 30 days.</p>\n<p>The values in the response are as follows:  </p>\n<p><strong>accountSid</strong>: The account id</p>\n<p><strong>inbox</strong>: Name of the inbox (by default this is the accountSid)</p>\n<p><strong>partition</strong>: Day that the event happened represented as an integer in YYYMMDD format.</p>\n<p><strong>time</strong>: A timeUUID for when the event happened.</p>\n<p><strong>timestamp</strong>: Milliseconds since the epoch for when the event happened.</p>\n<p><strong>contact</strong>: A snapshot of the contact object. Refer to documentation about contacts for the contents of this field.</p>\n<p><strong>contactId</strong>: The contactId associated with the event.</p>\n<p><strong>event</strong>: The body of the event. Refer to the documentation about conversations for the contents.</p>\n<p><strong>source:</strong> Deprecated field used for internal routing.</p>\n<p><strong>status</strong>: The read/unread status of an event.</p>\n<p><strong>open</strong>: Whether the conversation is still in an open or closed state. By default closed conversations are not returned.</p>\n<p><strong>type</strong>: Type of the event. This will be the same as the type within the <em>event</em> object.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","inbox","name"],"host":["{{url}}"],"query":[{"disabled":true,"description":{"content":"<p>UUID of the inbox entry that all returned entries should be before.</p>\n","type":"text/plain"},"key":"lastTime","value":""},{"disabled":true,"description":{"content":"<p>Number of records to return</p>\n","type":"text/plain"},"key":"limit","value":"100"},{"disabled":true,"description":{"content":"<p>Status filter for conversations (default open)</p>\n","type":"text/plain"},"key":"open","value":"open"},{"disabled":true,"description":{"content":"<p>Earliest day of data to return. </p>\n","type":"text/plain"},"key":"startDate","value":""},{"disabled":true,"description":{"content":"<p>Last day of data to return</p>\n","type":"text/plain"},"key":"endDate","value":""},{"disabled":true,"description":{"content":"<p>Number of days of data to return</p>\n","type":"text/plain"},"key":"days","value":""}],"variable":[]}},"response":[],"_postman_id":"3da26774-a58f-465a-8c85-f09c5b1e2ba1"},{"name":"Update Inbox status","id":"19a8f281-4aeb-44ad-adec-019a1ef90fd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"accountSid\": \"{{accountSid}}\",\n    \"inbox\": \"{{accountSid}}\",\n    \"partition\": 20180620,\n    \"time\": \"bdfcac40-74d1-11e8-91cc-e77ffb6be75e\",\n    \"status\": \"read\",\n    \"open\": \"closed\",\n    \"type\": \"SMS\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/inbox","description":"<p>Updates the status of a conversation within the inbox. This is most typically used to mark a conversation is read by setting the <strong>status</strong> to <em>read</em> or to close a conversation to closed by setting the <strong>open</strong> to <em>closed</em>.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","inbox"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"19a8f281-4aeb-44ad-adec-019a1ef90fd8"},{"name":"Get Conversation","id":"cfbab63d-00c7-4921-9c81-a0faacc57c90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/conversation/?contactId=222cd43d-f4c2-4400-9e74-baa1ee4fce81","description":"<p>Gets the conversation involving the specified contact. If attempting to page, the <strong>lastId</strong> parameter can be used to retrieve events prior to that event.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conversation",""],"host":["{{url}}"],"query":[{"description":{"content":"<p>Contact ID of the conversation you want to view</p>\n","type":"text/plain"},"key":"contactId","value":"222cd43d-f4c2-4400-9e74-baa1ee4fce81"},{"disabled":true,"description":{"content":"<p>UUID of the conversation event that all returned events will be before.</p>\n","type":"text/plain"},"key":"lastId","value":""},{"disabled":true,"description":{"content":"<p>Number of rows to return (default 1000)</p>\n","type":"text/plain"},"key":"size","value":""}],"variable":[]}},"response":[{"id":"bd405888-0497-421c-93b6-7716917066fb","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/conversation/?contactId=222cd43d-f4c2-4400-9e74-baa1ee4fce81","host":["{{url}}"],"path":["v4","conversation",""],"query":[{"key":"contactId","value":"222cd43d-f4c2-4400-9e74-baa1ee4fce81","description":"Contact ID of the conversation you want to view"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"31855","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"contactId\": \"222cd43d-f4c2-4400-9e74-baa1ee4fce81\",\n            \"time\": \"3c044860-59ad-11eb-ba6f-89648e7154ae\",\n            \"event\": {\n                \"messageId\": \"3c044860-59ad-11eb-ba6f-89648e7154ae\",\n                \"to\": \"+19098021234\",\n                \"from\": \"411411\",\n                \"direction\": \"out\",\n                \"body\": \"Ytel Connect:\\nPatrick Tester\\nTest Line\\n909-802-1234\\ntest@Ytel.com\",\n                \"tags\": [],\n                \"attributes\": {\n                    \"phonenumber1\": \"+19098021234\"\n                },\n                \"version\": \"\",\n                \"type\": \"sms\",\n                \"time\": 0\n            },\n            \"status\": \"sent\",\n            \"type\": \"sms\"\n        }\n    ]\n}"}],"_postman_id":"cfbab63d-00c7-4921-9c81-a0faacc57c90"},{"name":"Send Message","id":"6a9beeaf-eabb-4a29-9a19-960247d51666","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\r\n    \"from\": \"+19513561234\",\r\n    \"to\": \"+19492221234\",\r\n    \"text\": \"Hello from inbox.\",\r\n    \"source\": {\r\n        \"sourceId\": \"fsi\"\r\n    },\r\n    \"metadata\": {\r\n        \"repliedToMessageTime\": \"8f8dad90-2dcb-11eb-8aec-370be68b78ad\",\r\n        \"contactId\": \"da54d682-4d48-4f13-a4ee-07c850c05bb8\",\r\n        \"publish\": true\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/conversation","description":"<p>Sends a message to a contact over the specified channel. This is intended for use by Ytel Inbox UI. For sending SMS messages, use the general purpose SMS endpoint.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conversation"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"53877516-c64c-4a41-9efe-185e83a91b61","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\r\n    \"from\": \"+19513562111\",\r\n    \"to\": \"+19495553223\",\r\n    \"text\": \"Hello from inbox.\",\r\n    \"source\": {\r\n        \"sourceId\": \"fsi\"\r\n    },\r\n    \"metadata\": {\r\n        \"repliedToMessageTime\": \"8f8dad90-2dcb-11eb-8aec-370be68b78ad\",\r\n        \"contactId\": \"6c846983-a188-488a-a310-d20eb1ce00a9\",\r\n        \"publish\": true\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/conversation"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"769","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"request\": {\n                \"callbackUrl\": null,\n                \"detaillogResponseFormat\": \"response_format\",\n                \"dlrEnabled\": true,\n                \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n                \"messageSid\": \"1e294460-5a95-11eb-9a67-59113aa55d66\",\n                \"source\": {\n                    \"sourceId\": \"fsi\",\n                    \"clientId\": \"24554439-118f-4265-bde9-0789702990ae\"\n                },\n                \"from\": \"+19513561234\",\n                \"numberSetId\": null,\n                \"to\": \"+19492221234\",\n                \"contactId\": null,\n                \"text\": \"Hello from inbox.\",\n                \"metadata\": {\n                    \"repliedToMessageTime\": \"8f8dad90-2dcb-11eb-8aec-370be68b78ad\",\n                    \"currentMessageTime\": null,\n                    \"contactId\": \"6c846983-a188-488a-a310-d20eb1ce00a9\",\n                    \"publish\": true,\n                    \"origin\": \"inbox\"\n                },\n                \"mediaUrl\": null,\n                \"sms\": true,\n                \"mms\": false\n            },\n            \"messageSid\": \"1e294460-5a95-11eb-9a67-59113aa55d66\",\n            \"scheduledTime\": 1611088206,\n            \"messageCount\": 1,\n            \"responseStatus\": true\n        }\n    ]\n}"}],"_postman_id":"6a9beeaf-eabb-4a29-9a19-960247d51666"},{"name":"Create Inbox","id":"8180668e-9fca-47f6-96ee-4d13cab91fff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"TestBox\",\r\n    \"displayName\": \"Funny Name\",\r\n    \"clientIds\": [\r\n        \"{{clientId}}\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/inbox/create","description":"<p>Sends a message to a contact over the specified channel. This is intended for use by Ytel Inbox UI. For sending SMS messages, use the general purpose SMS endpoint.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","inbox","create"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8180668e-9fca-47f6-96ee-4d13cab91fff"},{"name":"Delete Inbox","id":"5a7ff2fb-1b41-4cbf-8421-c5f35ccf63bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"url":"{{url}}/v4/inbox/{{inboxName}}","description":"<p>Sends a message to a contact over the specified channel. This is intended for use by Ytel Inbox UI. For sending SMS messages, use the general purpose SMS endpoint.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","inbox","{{inboxName}}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a7ff2fb-1b41-4cbf-8421-c5f35ccf63bb"},{"name":"Update Inbox","id":"7ae3510e-12c9-48a4-ad77-14d4d2e29b60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"accountSid\": \"{{accountSid}}\",\n    \"name\": \"testbox\",\n    \"displayName\": \"Funny Name\",\n    \"clientIds\": []\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/inbox/{{inboxName}}","description":"<p>Sends a message to a contact over the specified channel. This is intended for use by Ytel Inbox UI. For sending SMS messages, use the general purpose SMS endpoint.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","inbox","{{inboxName}}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ae3510e-12c9-48a4-ad77-14d4d2e29b60"},{"name":"Add conversation notes","id":"f59d3bfd-a1c0-41f1-b52b-7e7e235d4153","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"contactId\": \"da54d682-4d48-4f13-a4ee-07c850c05bb8\",\r\n    \"from\": \"+19513561234\",\r\n    \"to\": \"+19492221234\",\r\n    \"notes\": \"Irate customer due to service outage. Added $50 in credit to their account.\",\r\n    \"metadata\": {\r\n        \"repliedToMessageTime\": \"8f8dad90-2dcb-11eb-8aec-370be68b78ad\",\r\n        \"contactId\": \"da54d682-4d48-4f13-a4ee-07c850c05bb8\",\r\n        \"publish\": true\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/conversation/notes","description":"<p>This will add inline notes into a conversation.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conversation","notes"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f59d3bfd-a1c0-41f1-b52b-7e7e235d4153"},{"name":"Add conversation external event","id":"c092a432-936f-4b52-9b7c-daa71a5b77cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"contactId\": \"da54d682-4d48-4f13-a4ee-07c850c05bb8\",\r\n    \"from\": \"+19513561234\",\r\n    \"to\": \"+19492221234\",\r\n    \"description\": \"Customer form fill data\",\r\n    \"url\": \"http://localhost/formFillResults?id=da54d682-4d48-4f13-a4ee-07c850c05bb8\",\r\n    \"metadata\": {\r\n        \"repliedToMessageTime\": \"8f8dad90-2dcb-11eb-8aec-370be68b78ad\",\r\n        \"contactId\": \"da54d682-4d48-4f13-a4ee-07c850c05bb8\",\r\n        \"publish\": true\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/conversation/event","description":"<p>This will add a link to an external event into a conversation with the provided description.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","conversation","event"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c092a432-936f-4b52-9b7c-daa71a5b77cb"}],"id":"811c9eda-e426-4864-9845-c677f2559d22","description":"<p>The inbox provides a way to view the conversations that an account has with their contacts. The basic GET request for an inbox will provide a preview of all recent conversations that have a publishable event. Publishable events are generally inbound communication where the contact has provided new data such as sending an inbound sms or leaving a voicemail.</p>\n<p>An inbox conversation will be composed of one or more events detailing the various interactions that have happened with the contact. Currently the following event types are supported: <strong>sms</strong>, <strong>call</strong>, <strong>voicemail</strong>, <strong>recording</strong>, <strong>notes</strong>, and <strong>externalEvent</strong>. All events will have the following core set of fields: <em>type</em>, <em>messageId</em>, <em>direction</em>, <em>tags</em>, <em>attributes</em>, <em>to</em>, <em>from</em>, <em>version</em>, and <em>time</em>. The <em>type</em> attribute indicates which type it is. The <em>messageId</em> field is a unique identifier which will correlate with the relevant unique identifier for it's type (ex: messageId will be the smsSid for an sms). The <em>direction</em> attribute indicates whether it is inbound or outbound communication. The <em>tags</em> and <em>attributes</em> are both for metadata. The <em>to</em> and <em>from</em> fields indicate the phone numbers involved in the conversation. The <em>version</em> field is used to identify the version of the event (currently unused). The <em>time</em> is a UUID that includes the time the event happened (in many cases this will be the same as messageId).</p>\n<p>An <strong>sms</strong> event represents an inbound or outbound sms or mms message. It will have the following additional fields: <em>body</em> and <em>mediaUrl</em>. Body will be the message body, mediaUrl will be the url for an MMS message. Generally either body or mediaUrl will be present.</p>\n<p>A <strong>call</strong> event represents a phone call. It will have the <em>duration</em> field, which represents the duration of the phone call.</p>\n<p>A <strong>voicemail</strong> event represents a voicemail. It will have the following additional fields: <em>duration</em> and <em>recordingUrl</em>. The duration is the length of the voicemail. The recordingUrl is the location where the recording is stored. Note that a voicemail recording will not include the voicemail greeting.</p>\n<p>A <strong>recording</strong> event represents a recording of a phone call. It will have the following additional fields: <em>duration</em> and <em>recordingUrl</em>. The duration is the length of the recording. The recordingUrl is the location where the recording is stored. Recordings will include the entire length of a call.</p>\n<p>A <strong>notes</strong> event represents conversational notes. These are intended to allow a user to add inline notes into a conversation that are not sent to a contact. It will have the <em>notes</em> additional field.</p>\n<p>An <strong>externalEvent</strong> event represents an external event that is recorded in the conversation. This is intended to allow for recording of events that happen external to Ytel to be injected into a conversation. It supports the additional fields: <em>description</em> and <em>url</em>. The description is a description of the event and the url is an external url that can be followed for more information.</p>\n<p><strong>Websockets</strong><br />One important non-http aspect of Inbox is the ability to connect to Ytel's websocket API. One can connect via:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>wss://api.ytel.com/interact-websockets/ws?authtoken={access_token}&amp;inbox={inboxName}\n\n</code></pre><p>Once connected, this will provide a number of events that are published to that inbox. Messages will come in the format of:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"messageType\": \"{sms | voicemail | login success}\",\n    \"messagePayloadObject\": {\n        \"accountSid\": \"{accountSid as string}\",\n        \"inboxKey\": \"{inboxName as string}\",\n        \"contactId\": \"{contactId as string}\",\n        \"status\": \"{unread | read}\",\n        \"inboxPartition\": {yyyymmdd as number},\n        \"contact\": {\n            \"contactId\": \"{contactId as string}\",\n            \"extData\": {\n                \"email1\": \"test@example.com\",\n                \"firstname\": \"Test\",\n                \"lastname\": \"User\",\n                \"phonenumber1\": \"+15558675309\"\n            },\n            \"keys\": [\n                \"+15558675309\",\n                \"test@example.com\"\n            ],\n            \"lastInbox\": \"{inboxName as string}\",\n            \"lastUsed\": \"{timeUUID as string}\"\n        },\n        \"event\": {\n            \"body\": \"This is an example sms body\",\n            \"direction\": \"{in | out}\",\n            \"mediaUrl\": \"\",\n            \"attributes\": {\n                \"phonenumber1\": \"+15558675309\"\n            },\n            \"to\": \"+15557778888\",\n            \"messageId\": \"{uuid as string}\",\n            \"from\": \"+15558675309\",\n            \"time\": 1716321152087,\n            \"type\": \"sms\"\n        },\n        \"eventId\": \"{uuid as string}\",\n        \"type\": \"sms\"\n    },\n    \"utcTimestamp\": \"{yyyy-MM-dd hh:mm:ss as string}\"\n}\n\n</code></pre>","_postman_id":"811c9eda-e426-4864-9845-c677f2559d22","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"IVR","item":[{"name":"Get IVRs","id":"e89c9f73-f084-426b-bc53-4a98d0d3b258","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"url":"{{url}}/ivr/","description":"<p>Returns all IVR menus for the account</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"&lt;UUID&gt;\",\n            \"ivrName\": \"new-ivr\",\n            \"configurationOptions\": {\n                \"ttsVoice\": \"en-au-premium-female-1\",\n                \"maxAttempts\": 3,\n                \"timeout\": 3,\n                \"minDigits\": 1,\n                \"maxDigits\": 1,\n                \"say\": \"Overall greeting\",\n                \"play\": null,\n                \"recording\": false,\n                \"description\": \"hi\"\n            },\n            \"version\": 7,\n            \"menus\": [\n                {\n                    \"ivrName\": \"new-ivr\",\n                    \"menuId\": \"Menu 2\",\n                    \"say\": \"Menu 2\",\n                    \"play\": \"\",\n                    \"recording\": false,\n                    \"entry\": false,\n                    \"version\": 7,\n                    \"options\": [\n                        {\n                            \"say\": \"Option 1\",\n                            \"dtmfKey\": 1,\n                            \"actions\": [\n                                {\n                                    \"type\": \"say\",\n                                    \"value\": \"Action 1\"\n                                }\n                            ]\n                        }\n                    ]\n                },\n                {\n                    \"ivrName\": \"new-ivr\",\n                    \"menuId\": \"Menu 1\",\n                    \"say\": \"Menu 1\",\n                    \"play\": \"\",\n                    \"recording\": false,\n                    \"entry\": true,\n                    \"version\": 7,\n                    \"options\": [\n                        {\n                            \"say\": \"Option 1\",\n                            \"dtmfKey\": 1,\n                            \"actions\": [\n                                {\n                                    \"type\": \"say\",\n                                    \"value\": \"Action 1\"\n                                },\n                                {\n                                    \"type\": \"workflow\",\n                                    \"value\": \"&lt;UUID&gt;\"\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ]\n        }\n    ]\n}\n\n</code></pre>","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["ivr",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e89c9f73-f084-426b-bc53-4a98d0d3b258"},{"name":"Delete IVR","id":"fdb5d76f-a7e0-4106-858d-6d6f7cf77fc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"url":"{{url}}/ivr/my-ivr","description":"<p>Deletes an ivr menu</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["ivr","my-ivr"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fdb5d76f-a7e0-4106-858d-6d6f7cf77fc9"},{"name":"Get IVR Archives","id":"fdab526b-9ca2-4925-85a2-ff47e3ad8dd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"url":"{{url}}/ivr/my-ivr/archived","description":"<p>Returns the archived version of an IVR menu. This is primarily used to tie reporting statistics to older menu versions.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"&lt;UUID&gt;\",\n            \"ivrName\": \"ff\",\n            \"configurationOptions\": {\n                \"ttsVoice\": \"de-de-premium-female-2\",\n                \"maxAttempts\": 3,\n                \"timeout\": 3,\n                \"minDigits\": 1,\n                \"maxDigits\": 1,\n                \"say\": \"ff\",\n                \"play\": null,\n                \"recording\": false,\n                \"description\": \"\"\n            },\n            \"version\": 1,\n            \"menus\": [\n                {\n                    \"ivrName\": \"ff\",\n                    \"menuId\": \"ff\",\n                    \"say\": \"f\",\n                    \"play\": \"\",\n                    \"recording\": false,\n                    \"entry\": true,\n                    \"version\": 1,\n                    \"options\": [\n                        {\n                            \"say\": \"f\",\n                            \"dtmfKey\": 1,\n                            \"actions\": [\n                                {\n                                    \"type\": \"say\",\n                                    \"value\": \"f\"\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ]\n        }\n    ]\n}\n\n</code></pre>","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["ivr","my-ivr","archived"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fdab526b-9ca2-4925-85a2-ff47e3ad8dd7"},{"name":"Create IVR","id":"8e432f81-df68-4256-a953-fb8ee3e2a341","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"body":{"mode":"raw","raw":"{\n            \"accountSid\": \"<UUID>\",\n            \"ivrName\": \"ff\",\n            \"configurationOptions\": {\n                \"ttsVoice\": \"de-de-premium-female-2\",\n                \"maxAttempts\": 3,\n                \"timeout\": 3,\n                \"minDigits\": 1,\n                \"maxDigits\": 1,\n                \"say\": \"ff\",\n                \"play\": null,\n                \"recording\": false,\n                \"description\": \"\"\n            },\n            \"version\": 1,\n            \"menus\": [\n                {\n                    \"ivrName\": \"ff\",\n                    \"menuId\": \"ff\",\n                    \"say\": \"f\",\n                    \"play\": \"\",\n                    \"recording\": false,\n                    \"entry\": true,\n                    \"version\": 1,\n                    \"options\": [\n                        {\n                            \"say\": \"f\",\n                            \"dtmfKey\": 1,\n                            \"actions\": [\n                                {\n                                    \"type\": \"say\",\n                                    \"value\": \"f\"\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ]\n        }","options":{"raw":{"language":"json"}}},"url":"{{url}}/ivr","description":"<p>Creates an IVR.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["ivr"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e432f81-df68-4256-a953-fb8ee3e2a341"},{"name":"Update IVR","id":"488c3421-13a7-4206-be9a-e8b7dd52174e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"body":{"mode":"raw","raw":"{\n            \"accountSid\": \"<UUID>\",\n            \"ivrName\": \"ff\",\n            \"configurationOptions\": {\n                \"ttsVoice\": \"de-de-premium-female-2\",\n                \"maxAttempts\": 3,\n                \"timeout\": 3,\n                \"minDigits\": 1,\n                \"maxDigits\": 1,\n                \"say\": \"ff\",\n                \"play\": null,\n                \"recording\": false,\n                \"description\": \"\"\n            },\n            \"version\": 1,\n            \"menus\": [\n                {\n                    \"ivrName\": \"ff\",\n                    \"menuId\": \"ff\",\n                    \"say\": \"f\",\n                    \"play\": \"\",\n                    \"recording\": false,\n                    \"entry\": true,\n                    \"version\": 1,\n                    \"options\": [\n                        {\n                            \"say\": \"f\",\n                            \"dtmfKey\": 1,\n                            \"actions\": [\n                                {\n                                    \"type\": \"say\",\n                                    \"value\": \"f\"\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ]\n        }","options":{"raw":{"language":"json"}}},"url":"{{url}}/ivr/my-ivr","description":"<p>Updates an IVR</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["ivr","my-ivr"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"488c3421-13a7-4206-be9a-e8b7dd52174e"}],"id":"b2589217-b143-402f-abfc-f3ad486109f7","description":"<p>The IVR system allows users to create an auto attendant to handle inbound phone calls with predefined options.</p>\n<p>Key terms:</p>\n<ul>\n<li>Menu - A menu within the overall IVR. Uniquely identified by the menuId.</li>\n<li>Option - A DTMF selectable option in a single Menu. Uniquely identified by the dtmfKey.</li>\n<li>Action - An action to be executed when an Option is selected. Has a number of subtypes that can execute different functionality. They are processed in the order they were saved. hangup and nextMenu are terminal actions that cannot have any actions following them. Subtypes:<ul>\n<li>say - Text to speech for the provided text.</li>\n<li>play - Plays the provided asset.</li>\n<li>dial - Dials a provided phone number.</li>\n<li>nextMenu - Next menu to transition to when selected.</li>\n<li>hangup - Hangs up the call.</li>\n<li>workflow - Executes the selected workflow id.</li>\n</ul>\n</li>\n<li>Version - Each IVR is versioned for reporting purposes. Any changes to an IVR menu will increment the passed version by 1 (one).</li>\n<li>Selectable Voices - There are many voice types available for use. Please see the list below:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[\n  {\n    key: 'de-de-premium-female-1',\n    text: 'German (Germany) Premium Female 1'\n  },\n  {\n    key: 'de-de-premium-female-2',\n    text: 'German (Germany) Standard Female 2'\n  },\n  {\n    key: 'de-de-premium-male-1',\n    text: 'German (Germany) Premium Male 1'\n  },\n  {\n    key: 'de-de-premium-male-2',\n    text: 'German (Germany) Premium Male 2'\n  },\n  {\n    key: 'de-de-standard-female-1',\n    text: 'German (Germany) Standard Female 1'\n  },\n  {\n    key: 'de-de-standard-male-1',\n    text: 'German (Germany) Standard Male 1'\n  },\n  {\n    key: 'en-au-premium-female-1',\n    text: 'English (Australia) Premium Female 1'\n  },\n  {\n    key: 'en-au-premium-female-2',\n    text: 'English (Australia) Premium Female 2'\n  },\n  {\n    key: 'en-au-premium-male-1',\n    text: 'English (Australia) Premium Male 1'\n  },\n  {\n    key: 'en-au-premium-male-2',\n    text: 'English (Australia) Premium Male 2'\n  },\n  {\n    key: 'en-au-standard-female-1',\n    text: 'English (Australia) Standard Female 1'\n  },\n  {\n    key: 'en-au-standard-female-2',\n    text: 'English (Australia) Standard Female 2'\n  },\n  {\n    key: 'en-au-standard-male-1',\n    text: 'English (Australia) Standard Male 1'\n  },\n  {\n    key: 'en-au-standard-male-2',\n    text: 'English (Australia) Standard Male 2'\n  },\n  {\n    key: 'en-gb-premium-female-1',\n    text: 'English (UK) Premium Female 1'\n  },\n  {\n    key: 'en-gb-premium-female-2',\n    text: 'English (UK) Premium Female 2'\n  },\n  { key: 'en-gb-premium-male-1', text: 'English (UK) Premium Male 1' },\n  { key: 'en-gb-premium-male-2', text: 'English (UK) Premium Male 2' },\n  {\n    key: 'en-gb-standard-female-1',\n    text: 'English (UK) Standard Female 1'\n  },\n  {\n    key: 'en-gb-standard-female-2',\n    text: 'English (UK) Standard Female 2'\n  },\n  {\n    key: 'en-gb-standard-male-1',\n    text: 'English (UK) Standard Male 1'\n  },\n  {\n    key: 'en-gb-standard-male-2',\n    text: 'English (UK) Standard Male 2'\n  },\n  {\n    key: 'en-us-premium-female-1',\n    text: 'English (US) Premium Female 1'\n  },\n  {\n    key: 'en-us-premium-female-2',\n    text: 'English (US) Premium Female 2'\n  },\n  {\n    key: 'en-us-premium-female-3',\n    text: 'English (US) Premium Female 3'\n  },\n  { key: 'en-us-premium-male-1', text: 'English (US) Premium Male 1' },\n  { key: 'en-us-premium-male-2', text: 'English (US) Premium Male 2' },\n  { key: 'en-us-premium-male-3', text: 'English (US) Premium Male 3' },\n  {\n    key: 'en-us-standard-female-1',\n    text: 'English (US) Standard Female 1'\n  },\n  {\n    key: 'en-us-standard-female-2',\n    text: 'English (US) Standard Female 2'\n  },\n  {\n    key: 'en-us-standard-male-1',\n    text: 'English (US) Standard Male 1'\n  },\n  {\n    key: 'en-us-standard-male-2',\n    text: 'English (US) Standard Male 2'\n  },\n  {\n    key: 'es-es-standard-female-1',\n    text: 'Spanish (Spain) Standard Female 1'\n  },\n  {\n    key: 'fr-ca-standard-female-1',\n    text: 'French (Canada) Standard Female 1'\n  },\n  {\n    key: 'fr-ca-standard-female-2',\n    text: 'French (Canada) Standard Female 1'\n  },\n  {\n    key: 'fr-ca-standard-male-1',\n    text: 'French (Canada) Standard Male 1'\n  },\n  {\n    key: 'fr-ca-standard-male-2',\n    text: 'French (Canada) Standard Male 2'\n  },\n  {\n    key: 'fr-fr-premium-female-1',\n    text: 'French (France) Premium Female 1'\n  },\n  {\n    key: 'fr-fr-premium-female-2',\n    text: 'French (France) Premium Female 2'\n  },\n  {\n    key: 'fr-fr-premium-male-1',\n    text: 'French (France) Premium Male 1'\n  },\n  {\n    key: 'fr-fr-premium-male-2',\n    text: 'French (France) Premium Male 2'\n  },\n  {\n    key: 'fr-fr-standard-female-1',\n    text: 'French (France) Standard Female 1'\n  },\n  {\n    key: 'fr-fr-standard-female-2',\n    text: 'French (France) Standard Female 2'\n  },\n  {\n    key: 'fr-fr-standard-male-1',\n    text: 'French (France) Standard Male 1'\n  },\n  {\n    key: 'fr-fr-standard-male-2',\n    text: 'French (France) Standard Male 2'\n  },\n  { key: 'it-it-premium-female-1', text: 'Italian Premium Female 1' },\n  { key: 'it-it-standard-female-1', text: 'Italian Standard Female 1' },\n  { key: 'ja-jp-premium-female-1', text: 'Japanese Premium Female 1' },\n  {\n    key: 'ja-jp-standard-female-1',\n    text: 'Japanese Standard Female 1'\n  },\n  {\n    key: 'ko-kr-premium-female-1',\n    text: 'Korean (South Korea) Premium Female 1'\n  },\n  {\n    key: 'ko-kr-standard-female-1',\n    text: 'Korean (South Korea) Standard Female 1'\n  },\n  {\n    key: 'nl-nl-premium-female-1',\n    text: 'Dutch (Netherlands) Premimum Female 1'\n  },\n  {\n    key: 'nl-nl-standard-female-1',\n    text: 'Dutch (Netherlands) Standard Female 1'\n  },\n  {\n    key: 'pt-br-standard-female-1',\n    text: 'Portuguese (Brazil) Standard Female 1'\n  },\n  { key: 'sv-se-premium-female-1', text: 'Swedish Premium Female 1' },\n  { key: 'sv-se-standard-female-1', text: 'Swedish Standard Female 1' },\n  { key: 'tr-tr-premium-female-1', text: 'Turkish Premium Female 1' },\n  { key: 'tr-tr-standard-female-1', text: 'Turkish Standard Female 1' }\n]\n\n</code></pre>","_postman_id":"b2589217-b143-402f-abfc-f3ad486109f7","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Live List","item":[{"name":"Get User Live Lists","id":"a2907426-6d0b-4731-a92f-0146686e217a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/livelist","description":"<p>Returns all the live lists that are accessible to the currently logged in user.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","livelist"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a2907426-6d0b-4731-a92f-0146686e217a"},{"name":"Preview Live List","id":"cbfffc99-5863-4895-88e7-12c7fa36d611","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/livelist/queue/:name","description":"<p>Returns the first X items that are in the live list queue without removing any of them from the queue. The returned items may be expired.</p>\n<p>The user must either have been granted access to the list or have administrative access to lists.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","livelist","queue",":name"],"host":["{{url}}"],"query":[{"disabled":true,"description":{"content":"<p>Number of items to return (default 1)</p>\n","type":"text/plain"},"key":"size","value":"1"}],"variable":[{"id":"d111aa3f-ca1d-43e6-a8fe-f546c40cf887","type":"any","value":null,"key":"name"}]}},"response":[],"_postman_id":"cbfffc99-5863-4895-88e7-12c7fa36d611"},{"name":"Get Live List Next","id":"c72296ba-14e5-4459-9f85-04feffb92a5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{url}}/v4/livelist/queue/:name","description":"<p>Returns the next unexpired contact from the live list and removes it and all expired contacts before it from the list. If there are no remaining items when this is called an error will be returned.</p>\n<p>The user must either have been granted access to the list or have administrative access to lists.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","livelist","queue",":name"],"host":["{{url}}"],"query":[],"variable":[{"id":"659991fc-0760-40e7-b2c5-d5d2990ce945","type":"any","value":null,"key":"name"}]}},"response":[],"_postman_id":"c72296ba-14e5-4459-9f85-04feffb92a5d"},{"name":"Remove Live List Next","id":"2b279b85-dbf7-4295-8dc5-d5fc79c552d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/v4/livelist/queue/:name","description":"<p>Removes the next unexpired contact from the live list and all expired contacts before it. If there are no remaining items when this is called an error will be returned.</p>\n<p>The user must either have been granted access to the list or have administrative access to lists.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","livelist","queue",":name"],"host":["{{url}}"],"query":[],"variable":[{"id":"659991fc-0760-40e7-b2c5-d5d2990ce945","type":"any","value":null,"key":"name"}]}},"response":[],"_postman_id":"2b279b85-dbf7-4295-8dc5-d5fc79c552d9"},{"name":"Get All Live Lists","id":"b3f2405b-cb9b-4191-a024-e029b52b9d63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/livelist","description":"<p>Returns all the live lists on the account with the list of users that have been assigned access to those lists.</p>\n<p>This is only accessible to users with the <em>account owner</em> or <em>settings admin</em> roles.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","livelist"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3f2405b-cb9b-4191-a024-e029b52b9d63"},{"name":"Create Live List","id":"25c0831e-ce8f-492b-ba89-ae2370006545","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"listName\": \"test_live_list\",\n    \"clientIds\": [\n        \"00000000-0000-0000-0000-000000000000\",\n        \"00000000-0000-0000-0000-000000000001\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/livelist","description":"<p>Creates a new live list with the given name. The specified clientIds will be given access to the new list. The clientIds represent the ID for the Ytel users applied to the list.</p>\n<p>This endpoint can only be accessed by users with the the <em>account owner</em> or <em>settings admin</em> roles.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","livelist"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"25c0831e-ce8f-492b-ba89-ae2370006545"},{"name":"Edit Live List","id":"59ec1890-4629-46fe-bbfa-9a23e09eafd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"clientIds\": [\n        \"00000000-0000-0000-0000-000000000000\",\n        \"00000000-0000-0000-0000-000000000001\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/livelist/:name","description":"<p>Adjusts the list of users that can access the named live list.</p>\n<p>This endpoint can only be accessed by users with the the <em>account owner</em> or <em>settings admin</em> roles.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","livelist",":name"],"host":["{{url}}"],"query":[],"variable":[{"id":"224a873d-5975-40d9-9faf-efdf18dbc4a9","type":"any","value":"name of the live list","key":"name"}]}},"response":[],"_postman_id":"59ec1890-4629-46fe-bbfa-9a23e09eafd6"},{"name":"Delete Live List","id":"a9cbfcb0-ccd8-479c-98b4-7aa1e414ee55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/v4/livelist/:name","description":"<p>Deletes the named live list.</p>\n<p>This endpoint can only be accessed by users with the the <em>account owner</em> or <em>settings admin</em> roles.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","livelist",":name"],"host":["{{url}}"],"query":[],"variable":[{"id":"6bb361e5-102e-48ff-b69d-2b57c4b13265","type":"any","value":"name of the live list","key":"name"}]}},"response":[],"_postman_id":"a9cbfcb0-ccd8-479c-98b4-7aa1e414ee55"},{"name":"Websocket livelist notification","id":"3d9399c0-1725-4289-8994-bd910a8a2a23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"url":"wss://api.ytel.com/websocket-service/ws/livelist?token=bearerToken","description":"<p>The live list websocket supports subscribing to events when a live list is modified by contacts being added to the list. By default a user will be subscribed to all lists that they have access to (if the <strong>lists</strong> parameter is provided, only the provided lists will provide notifications).</p>\n<p>Every 20-30 seconds a keep-alive message will be sent with an empty JSON object. This should be responded to with the same empty payload to keep the socket alive.</p>\n<p>When a contact is added to a live list, the websocket will send a payload that looks like:  </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"listName\": \"myFirstList\",\n  \"queueSize\": 5\n}\n\n</code></pre>\n<p>This message will only be sent for low queue sizes (under 10). It is expected that users that are subscribing to lists will proactively poll their subscribed lists when they are available and use this notification to be able to rapidly respond to a new contact being added to a live list.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"wss","path":["websocket-service","ws","livelist"],"host":["api","ytel","com"],"query":[{"key":"token","value":"bearerToken"},{"disabled":true,"description":{"content":"<p>Optional list of live lists to subscribe to. If not present it will subscribe to all lists.</p>\n","type":"text/plain"},"key":"lists","value":"myFirstList,mySecondList"}],"variable":[]}},"response":[],"_postman_id":"3d9399c0-1725-4289-8994-bd910a8a2a23"}],"id":"4d7bf4d8-133d-4b5c-b456-bb89f191aa1f","description":"<p>Live lists are a way to generate a queue of contacts that should be acted upon in a time limited manner by a specified set of users. Contacts can only be added to a live list through workflows.</p>\n<p>Many of the endpoints may only be accessed by users with the <em>account owner</em> role or the <em>settings admin</em> role.</p>\n","_postman_id":"4d7bf4d8-133d-4b5c-b456-bb89f191aa1f","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Logs","item":[{"name":"Get Call Logs","id":"ecd31157-55eb-4a2b-9263-25a15237306a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"<p>Generated using the v4 Authentication endpoint.</p>\n","key":"Authorization","type":"text","value":"Bearer {Your Authentication Token}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"url":"{{url}}/v4/logs/call/?startDate=20200301&endDate=20200302&limit=1","description":"<p>Retrieves the call logs between a start date and an end date.</p>\n<p>Response Values:</p>\n<ul>\n<li><p><strong>accountSid</strong>: Account id</p>\n</li>\n<li><p><strong>yearMonthDay</strong>: Compressed year month day in the format YYYY-MM-DD.</p>\n</li>\n<li><p><strong>callSid</strong>: Unique transaction id of this call.</p>\n</li>\n<li><p><strong>apiVersion</strong>: The version of the api that was used for this call.</p>\n</li>\n<li><p><strong>cost</strong>: How much this particular call cost.</p>\n</li>\n<li><p><strong>createdTime</strong>: Time when the call was received by Ytel. This generally corresponds to the time a call was dialed.</p>\n</li>\n<li><p><strong>direction</strong>: inbound or outbound call.</p>\n</li>\n<li><p><strong>duration</strong>: Length of the call in seconds.</p>\n</li>\n<li><p><strong>durationBilled</strong>: Number of seconds billed for the call. This may not be the same as duration.</p>\n</li>\n<li><p><strong>endTime</strong>: Time that the call ended.</p>\n</li>\n<li><p><strong>startTime</strong>: Time that the call was answered.</p>\n</li>\n<li><p><strong>to:</strong> Number receiving the call. For outbound this will be the customer number, for inbound it will be the owned number.</p>\n</li>\n<li><p><strong>from</strong>: Number initiating the call. For outbound this will be an owned number, for inbound it will be the customer number.</p>\n</li>\n<li><p><strong>status</strong>: Status of the call. Possible values: completed</p>\n</li>\n<li><p><strong>type</strong>: Type of the call. Possible values: call</p>\n</li>\n<li><p><strong>voiceMailStatus</strong>: (Legacy) Not In Use</p>\n</li>\n<li><p><strong>date</strong>: Time that the call was initiated in seconds from the epoch.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","logs","call",""],"host":["{{url}}"],"query":[{"description":{"content":"<p>start date (UTC) formatted as YYYY-MM-DD</p>\n","type":"text/plain"},"key":"startDate","value":"20200301"},{"description":{"content":"<p>end date (UTC) formatted as YYYY-MM-DD</p>\n","type":"text/plain"},"key":"endDate","value":"20200302"},{"description":{"content":"<p>max records to return (capped at 5000)</p>\n","type":"text/plain"},"key":"limit","value":"1"},{"disabled":true,"description":{"content":"<p>optional filter to only show calls in the given direction (inbound/outbound)</p>\n","type":"text/plain"},"key":"direction","value":"inbound"},{"disabled":true,"description":{"content":"<p>optional filter to only show calls with the given status (</p>\n","type":"text/plain"},"key":"status","value":"completed"},{"disabled":true,"description":{"content":"<p>optional filter to only show calls with the given type</p>\n","type":"text/plain"},"key":"type","value":""},{"disabled":true,"description":{"content":"<p>optional filter to only show calls associated with the given workflow</p>\n","type":"text/plain"},"key":"campaignId","value":""},{"disabled":true,"description":{"content":"<p>optional filter to only show calls to the given number</p>\n","type":"text/plain"},"key":"to","value":""},{"disabled":true,"description":{"content":"<p>optional filter to only show calls from the given number</p>\n","type":"text/plain"},"key":"from","value":""},{"disabled":true,"description":{"content":"<p>optional offset to find additional records</p>\n","type":"text/plain"},"key":"offset","value":""}],"variable":[]}},"response":[{"id":"0a696fb3-2500-4b1c-a533-fbcb2279eb72","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Generated using the v4 Authentication endpoint.","key":"Authorization","type":"text","value":"Bearer {Your Authentication Token}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"url":{"raw":"{{url}}/v4/logs/call/?startDate=2020-03-01&endDate=2020-03-02&limit=1","host":["{{url}}"],"path":["v4","logs","call",""],"query":[{"key":"startDate","value":"2020-03-01","description":"start date (UTC) formatted as YYYY-MM-DD"},{"key":"endDate","value":"2020-03-02","description":"end date (UTC) formatted as YYYY-MM-DD"},{"key":"limit","value":"1","description":"max records to return"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"522","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"yearMonthDay\": \"20200301\",\n            \"callSid\": \"e0860f96-f480-43ce-bba3-2aef8d01d2b0\",\n            \"apiVersion\": \"V3\",\n            \"callDuration\": 8,\n            \"cost\": 0.00112,\n            \"createdTime\": \"2020-03-01 00:29:45\",\n            \"direction\": \"inbound\",\n            \"duration\": 8,\n            \"durationBilled\": 12,\n            \"from\": \"+15558851008\",\n            \"endTime\": \"2020-03-01 00:29:53\",\n            \"startTime\": \"2020-03-01 00:29:45\",\n            \"status\": \"completed\",\n            \"to\": \"+15559238223\",\n            \"type\": \"call\",\n            \"rvmCallerId\": null,\n            \"voiceMailStatus\": null,\n            \"date\": 1583022585565\n        }\n    ]\n}"}],"_postman_id":"ecd31157-55eb-4a2b-9263-25a15237306a"},{"name":"Export CDR/MDR Logs","id":"025edcc2-3b79-457f-895c-11bc24ed9689","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"test@yt-inc.com\",\n  \"startdate\": \"2022-10-01\",\n  \"enddate\": \"2022-10-31\",\n  \"type\": \"1\"\n}"},"url":"{{url}}/v4/logs/export","description":"<p>Grabs all logs for the specified period and emails them to the email that is provided in the API.</p>\n<p>The current limitations:</p>\n<ul>\n<li><strong>There is a 3 month limit on the date range.</strong></li>\n<li><strong>The created logs will be deleted after 48 hours.</strong></li>\n<li><strong>The API is limited to 3 request per hour.</strong></li>\n</ul>\n<p>Processing of the log files generally takes 15 seconds,</p>\n<p>Request Values:</p>\n<ul>\n<li><strong>email</strong>: The email where logs should be sent.</li>\n<li><strong>startdate</strong>: Compressed year month day in the format YYYY-MM-DD.</li>\n<li><strong>enddate</strong>: Compressed year month day in the format YYYY-MM-DD.</li>\n<li><strong>type</strong>: 1 = Calls, 2 = SMS</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","logs","export"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"9bf1c131-85f6-4036-9af8-6cedc04c84d0","name":"Export CDR/MDR Logs","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"test@yt-inc.com\",\n  \"startdate\": \"2022-10-01\",\n  \"enddate\": \"2022-10-31\",\n  \"type\": \"1\"\n}"},"url":"{{url}}/v4/logs/export"},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 24 Jan 2023 19:18:02 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Remaining-Hour","value":"0"},{"key":"X-RateLimit-Limit-Hour","value":"1"},{"key":"Retry-After","value":"2518"},{"key":"RateLimit-Reset","value":"2518"},{"key":"RateLimit-Limit","value":"1"},{"key":"RateLimit-Remaining","value":"0"},{"key":"Content-Length","value":"41"},{"key":"X-Kong-Response-Latency","value":"2"},{"key":"Server","value":"kong/2.8.3"}],"cookie":[],"responseTime":null,"body":"{\n    \"Message360\": \n    {\n        \"ResponseStatus\": 1,\n        \"Message\": \n        {\n            \"ApiVersion\": \"4\",\n            \"LogID\": \"0bccc5609c1c11edad9e4f8cf7a9d8e0\",\n            \"Status\": \"processing\"\n        }\n    }\n}"}],"_postman_id":"025edcc2-3b79-457f-895c-11bc24ed9689"},{"name":"Get Call Detail Log","id":"1f780345-49b2-4a3e-b942-b3f9617e70c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"<p>Generated using the v4 Authentication endpoint.</p>\n","key":"Authorization","type":"text","value":"Bearer {Your Authentication Token}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"url":"{{url}}/v4/logs/call/details/:callSid/","description":"<p>Retrieves an individual call log by id.</p>\n<p>Response Values:</p>\n<ul>\n<li><strong>accountSid</strong>: Account id</li>\n<li><strong>yearMonthDay</strong>: Compressed year month day in the format YYYYMMDD.</li>\n<li><strong>callSid</strong>: Unique transaction id of this call.</li>\n<li><strong>apiVersion</strong>: The version of the api that was used for this call.</li>\n<li><strong>cost</strong>: How much this particular call cost.</li>\n<li><strong>createdTime</strong>: When this row was created (generally the same as startTime)</li>\n<li><strong>direction</strong>: inbound or outbound call.</li>\n<li><strong>duration</strong>: Length of the call in seconds.</li>\n<li><strong>durationBilled</strong>: Number of seconds billed for the call. This may not be the same as duration.</li>\n<li><strong>endTime</strong>: Time that the call ended.</li>\n<li><strong>startTime</strong>: Time that the call was initiated.</li>\n<li><strong>to</strong> Number receiving the call. For outbound this will be the customer number, for inbound it will be the owned number.</li>\n<li><strong>from</strong>: Number initiating the call. For outbound this will be an owned number, for inbound it will be the customer number.</li>\n<li><strong>status</strong>: Status of the call. Possible values: completed</li>\n<li><strong>type</strong>: Type of the call. Possible values: call</li>\n<li><strong>rvmCallerId</strong>:</li>\n<li><strong>voiceMailStatus</strong>:</li>\n<li><strong>date</strong>: Time that the call was initiated in seconds from the epoch.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","logs","call","details",":callSid",""],"host":["{{url}}"],"query":[],"variable":[{"id":"90e66b71-3e1c-46d5-81ea-fca0b8815a21","type":"any","value":"24a009cb-15f9-d7f7-29e1-5f6c9a9ed4e0","key":"callSid"}]}},"response":[{"id":"27477849-22ca-4e6d-8ba5-be207a678965","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Generated using the v4 Authentication endpoint.","key":"Authorization","type":"text","value":"Bearer {Your Authentication Token}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"url":"{{url}}/v4/logs/call/details/e0860f96-f480-43ce-bba3-2aef8d01d2b0/20200301/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"522","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"yearMonthDay\": \"20200301\",\n            \"callSid\": \"e0860f96-f480-43ce-bba3-2aef8d01d2b0\",\n            \"apiVersion\": \"V3\",\n            \"callDuration\": 8,\n            \"cost\": 0.00112,\n            \"createdTime\": \"2020-03-01 00:29:45\",\n            \"direction\": \"inbound\",\n            \"duration\": 8,\n            \"durationBilled\": 12,\n            \"from\": \"+15558851008\",\n            \"endTime\": \"2020-03-01 00:29:53\",\n            \"startTime\": \"2020-03-01 00:29:45\",\n            \"status\": \"completed\",\n            \"to\": \"+15559238223\",\n            \"type\": \"call\",\n            \"rvmCallerId\": null,\n            \"voiceMailStatus\": null,\n            \"date\": 1583022585565\n        }\n    ]\n}"}],"_postman_id":"1f780345-49b2-4a3e-b942-b3f9617e70c1"},{"name":"Get SMS Logs","id":"fe3a68fa-c3d2-4adb-a389-0b0f92ddf7a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/logs/sms/?startDate=2021-01-09&endDate=2021-01-10&limit=1","description":"<p>Gets sms logs for the given time range.</p>\n<p>Fields:</p>\n<ul>\n<li><strong>accountSid</strong>: Account Id.</li>\n<li><strong>yearMonthDay</strong>: Date sms was sent in YYYYMMDD format.</li>\n<li><strong>smsSid</strong>: Transaction id of the sms message.</li>\n<li><strong>apiVersion</strong>: Api version that was used for sending.</li>\n<li><strong>body</strong>: Body of the message</li>\n<li><strong>callbackMethod</strong>: Callback method (GET or POST)</li>\n<li><strong>callbackUrl</strong>: Url which received the callback</li>\n<li><strong>direction</strong>: Direction of the sms message (inbound or outbound)</li>\n<li><strong>dlrStatus</strong>: Status of the sms delivery.</li>\n<li><strong>errorMessage</strong>: Error message if any</li>\n<li><strong>fromCountryCode</strong>: Country code prefix for the from number.</li>\n<li><strong>from</strong>: From number. For inbound this will be the customer number, for outbound it will be the owned number</li>\n<li><strong>numberType</strong>: Type of number. Valid values are <em>regular</em>.</li>\n<li><strong>price</strong>: Price for the sms message</li>\n<li><strong>smsCount</strong>: Number of messages. Computed based on the length are character set.</li>\n<li><strong>smsType</strong>: Type of the sms. Valid values are <em>so</em>, <em>si</em>, <em>sto</em>, <em>sti</em>, <em>sco</em>, <em>sci</em>.</li>\n<li><strong>surcharge</strong>: Additional surcharge from the carrier.</li>\n<li><strong>termCarrier</strong>: Carrier from the customer number.</li>\n<li><strong>to</strong>: To number. For inbound this will be the owned number, for outbound this will be the customer number.</li>\n<li><strong>toCountryCode</strong>: Country code prefix for the to number.</li>\n<li><strong>useType</strong>: Regular</li>\n<li><strong>date</strong>: Seconds since epoch that the sms message was sent.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","logs","sms",""],"host":["{{url}}"],"query":[{"description":{"content":"<p>start date (UTC) formatted as YYYY-MM-DD</p>\n","type":"text/plain"},"key":"startDate","value":"2021-01-09"},{"description":{"content":"<p>end date (UTC) formatted as YYYY-MM-DD</p>\n","type":"text/plain"},"key":"endDate","value":"2021-01-10"},{"description":{"content":"<p>max records to return (maximum 5000)</p>\n","type":"text/plain"},"key":"limit","value":"1"},{"disabled":true,"description":{"content":"<p>optional filter to only show sms sent in one direction (inbound/outbound)</p>\n","type":"text/plain"},"key":"direction","value":"in"},{"disabled":true,"description":{"content":"<p>optional filter to only show sms with a particular status (success/failed)</p>\n","type":"text/plain"},"key":"status","value":"failed"},{"disabled":true,"description":{"content":"<p>optional filter to only show sms with a particular type (regular/tollfree)</p>\n","type":"text/plain"},"key":"type","value":"regular"},{"disabled":true,"description":{"content":"<p>optional filter to only show sms associated with a particular workflow</p>\n","type":"text/plain"},"key":"campaignId","value":""},{"disabled":true,"description":{"content":"<p>optional filter to only show sms with the given to number. Must be in E164 format.</p>\n","type":"text/plain"},"key":"to","value":""},{"disabled":true,"description":{"content":"<p>optional filter to only show sms sent from the given number.</p>\n","type":"text/plain"},"key":"from","value":""},{"disabled":true,"description":{"content":"<p>optional offset to find additional records</p>\n","type":"text/plain"},"key":"offset","value":""}],"variable":[]}},"response":[{"id":"511756e4-d953-4ff9-9eba-1a9dd530f9a6","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/logs/sms/?startDate=2021-01-09&endDate=2021-01-10&limit=1","host":["{{url}}"],"path":["v4","logs","sms",""],"query":[{"key":"startDate","value":"2021-01-09","description":"start date (UTC) formatted as YYYY-MM-DD"},{"key":"endDate","value":"2021-01-10","description":"end date (UTC) formatted as YYYY-MM-DD"},{"key":"limit","value":"1","description":"max records to return"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"836","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"yearMonthDay\": \"20210109\",\n            \"smsSid\": \"af2c5810-52d6-11eb-8214-896651f1fc24\",\n            \"apiVersion\": \"3\",\n            \"body\": \"Testing 11456455128714554046 at 2021-01-09 11:59:13\",\n            \"callbackMethod\": \"POST\",\n            \"callbackUrl\": \"https://yourdomain.com\",\n            \"direction\": \"inbound\",\n            \"dlrStatus\": null,\n            \"errorMessage\": null,\n            \"fromCountryCode\": 1,\n            \"fromCountry\": \"US\",\n            \"from\": \"+15553518870\",\n            \"numberType\": \"regular\",\n            \"price\": 0,\n            \"smsCount\": null,\n            \"smsType\": \"si\",\n            \"status\": \"success\",\n            \"surcharge\": 0,\n            \"termCarrier\": \"T-Mobile\",\n            \"to\": \"+14009993000\",\n            \"toCountryCode\": 1,\n            \"toCountry\": \"US\",\n            \"useType\": \"regular\",\n            \"opt\": null,\n            \"metaData\": {\n                \"app\": \"fsi\"\n            },\n            \"paccountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"date\": 1610236758033\n        }\n    ]\n}"}],"_postman_id":"fe3a68fa-c3d2-4adb-a389-0b0f92ddf7a5"},{"name":"Get SMS Detail Log","id":"69d96840-d7d5-4002-967c-86871a202e58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/logs/sms/details/:smsSid/","description":"<p>Gets the details about a single sms message looked up by the message id.</p>\n<p>The payload is essentially identical to getting a batch of sms logs by day(s).</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","logs","sms","details",":smsSid",""],"host":["{{url}}"],"query":[],"variable":[{"id":"b399d017-7c64-4155-b381-48d0e9d7538d","description":{"content":"<p>smsSid</p>\n","type":"text/plain"},"type":"any","value":"af2c5810-52d6-11eb-8214-896651f1fc20","key":"smsSid"}]}},"response":[{"id":"eaf265d9-a7d3-4a64-933e-363ba32ec9cf","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/logs/sms/details/:smsSid/:date/","host":["{{url}}"],"path":["v4","logs","sms","details",":smsSid",":date",""],"variable":[{"key":"smsSid","value":"af2c5810-52d6-11eb-8214-896651f1fc24","description":"smsSid"},{"key":"date","value":"20210109","description":"date in YYYYMMDD format"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"836","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"yearMonthDay\": \"20210109\",\n            \"smsSid\": \"af2c5810-52d6-11eb-8214-896651f1fc24\",\n            \"apiVersion\": \"3\",\n            \"body\": \"Testing 11456455128714554046 at 2021-01-09 11:59:13\",\n            \"callbackMethod\": \"POST\",\n            \"callbackUrl\": \"https://yourdomain.com\",\n            \"direction\": \"inbound\",\n            \"dlrStatus\": null,\n            \"errorMessage\": null,\n            \"fromCountryCode\": 1,\n            \"fromCountry\": \"US\",\n            \"from\": \"+15553518870\",\n            \"numberType\": \"regular\",\n            \"price\": 0,\n            \"smsCount\": null,\n            \"smsType\": \"si\",\n            \"status\": \"success\",\n            \"surcharge\": 0,\n            \"termCarrier\": \"T-Mobile\",\n            \"to\": \"+14009993000\",\n            \"toCountryCode\": 1,\n            \"toCountry\": \"US\",\n            \"useType\": \"regular\",\n            \"opt\": null,\n            \"metaData\": {\n                \"app\": \"fsi\"\n            },\n            \"paccountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"date\": 1610236758033\n        }\n    ]\n}"}],"_postman_id":"69d96840-d7d5-4002-967c-86871a202e58"},{"name":"Call Recordings","id":"37faeb63-392d-46bd-8e47-89ecc3357f5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/logs/recording/?callSid=722e2560-f632-11ec-b1f1-8d4764fd08ab&startDate=2022-01-01&recordingSid=542e2590-f632-11ec-b1f1-8d4764fd08ak&limit=5","description":"<p>Returns the call recording for a particular call, recording, or date. <em>(None of the fields are required)</em></p>\n<p><strong>NOTE</strong>: If you put a startDate with the callSid, it assumes that is the date of the call. If the callSid is the only param provided, the system will do the work to find the requested data.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","logs","recording",""],"host":["{{url}}"],"query":[{"description":{"content":"<p>The Call ID of the of the call of the recording</p>\n","type":"text/plain"},"key":"callSid","value":"722e2560-f632-11ec-b1f1-8d4764fd08ab"},{"description":{"content":"<p>The date of the call. Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"startDate","value":"2022-01-01"},{"description":{"content":"<p>The Recording ID of the call</p>\n","type":"text/plain"},"key":"recordingSid","value":"542e2590-f632-11ec-b1f1-8d4764fd08ak"},{"description":{"content":"<p>The number of records to return (limit 5000)</p>\n","type":"text/plain"},"key":"limit","value":"5"},{"disabled":true,"description":{"content":"<p>Offset for lookup of additional records</p>\n","type":"text/plain"},"key":"lastCallSid","value":""}],"variable":[]}},"response":[{"id":"d426478a-f003-4d7c-b578-fc96d9ef2d78","name":"Example Response","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/logs/recording/?callSid=fd9173f4-d078-43c9-a61b-9c73e7c6b190&startDate=2022-06-27","host":["{{url}}"],"path":["v4","logs","recording",""],"query":[{"key":"callSid","value":"fd9173f4-d078-43c9-a61b-9c73e7c6b190","description":"The Call ID of the of the call of the recording"},{"key":"startDate","value":"2022-06-27","description":"The date of the call. Format YYYY-MM-DD"},{"key":"recordingSid","value":"542e2590-f632-11ec-b1f1-8d4764fd08ak","description":"The Recording ID of the call","disabled":true},{"key":"limit","value":"5","description":"The number of records to return","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"758","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-RateLimit-Limit-Second","value":"150","enabled":true},{"key":"RateLimit-Limit","value":"150","enabled":true},{"key":"RateLimit-Remaining","value":"149","enabled":true},{"key":"RateLimit-Reset","value":"1","enabled":true},{"key":"X-RateLimit-Remaining-Second","value":"149","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"vary","value":"Origin","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-Kong-Upstream-Latency","value":"9","enabled":true},{"key":"X-Kong-Proxy-Latency","value":"2","enabled":true},{"key":"Via","value":"kong/2.8.1","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"yearMonthDay\": \"20220627\",\n            \"callSid\": \"fd9173f4-d078-43c9-a61b-9c73e7c6b19r\",\n            \"recordingSid\": \"9dd1b8b0-f5ac-11ec-837e-617776b555d4\",\n            \"apiVersion\": \"V3\",\n            \"actionPerformed\": null,\n            \"actionMethod\": null,\n            \"callbackMethod\": \"POST\",\n            \"callbackUrl\": \"https://api.test.com/radar/inbound/bf9c6aae-ea60-48b5e-1b3c42fed621/f611cb17-a4a6-4259-b522-d8bf78f6\",\n            \"duration\": 34,\n            \"fileUploadStatus\": 1,\n            \"isActive\": 1,\n            \"isRequest\": null,\n            \"recordingDate\": 1656288192309,\n            \"recordingDirection\": \"inbound\",\n            \"recordingUrl\": \"https://storage.googleapis.com/m360/m360-173c6f7f-c911-f823-fb2d-a13e5c307/2022-06-27/1656288192_fd9173f4-d078-43c9-a61b-6e.mp3\",\n            \"request\": null,\n            \"response\": null\n        }\n    ]\n}"}],"_postman_id":"37faeb63-392d-46bd-8e47-89ecc3357f5f"},{"name":"Get Carrier Lookup logs","id":"339e10eb-41b3-4213-8d14-bd4f7d89c61d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/logs/carrier/?startDate=2022-01-01&endDate=2022-01-04&limit=5","description":"<p>Returns the carrier lookups for the given dates. <em>(None of the fields are required)</em></p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","logs","carrier",""],"host":["{{url}}"],"query":[{"description":{"content":"<p>The start date of the carrier lookups. Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"startDate","value":"2022-01-01"},{"description":{"content":"<p>The end date of the carrier lookups. Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"endDate","value":"2022-01-04"},{"description":{"content":"<p>The number of records to return (limit 5000)</p>\n","type":"text/plain"},"key":"limit","value":"5"},{"disabled":true,"description":{"content":"<p>Last id to be used as an offset for searching for for carrier logs</p>\n","type":"text/plain"},"key":"lastId","value":""}],"variable":[]}},"response":[{"id":"2b4188da-b3b7-44bc-b244-a5df39727f46","name":"Example Response","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint."}],"url":{"raw":"{{url}}/v4/logs/recording/?callSid=fd9173f4-d078-43c9-a61b-9c73e7c6b190&startDate=2022-06-27","host":["{{url}}"],"path":["v4","logs","recording",""],"query":[{"key":"callSid","value":"fd9173f4-d078-43c9-a61b-9c73e7c6b190","description":"The Call ID of the of the call of the recording"},{"key":"startDate","value":"2022-06-27","description":"The date of the call. Format YYYY-MM-DD"},{"key":"recordingSid","value":"542e2590-f632-11ec-b1f1-8d4764fd08ak","description":"The Recording ID of the call","disabled":true},{"key":"limit","value":"5","description":"The number of records to return","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"758"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit-Second","value":"150"},{"key":"RateLimit-Limit","value":"150"},{"key":"RateLimit-Remaining","value":"149"},{"key":"RateLimit-Reset","value":"1"},{"key":"X-RateLimit-Remaining-Second","value":"149"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Kong-Upstream-Latency","value":"9"},{"key":"X-Kong-Proxy-Latency","value":"2"},{"key":"Via","value":"kong/2.8.1"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"yearMonthDay\": \"20220627\",\n            \"callSid\": \"fd9173f4-d078-43c9-a61b-9c73e7c6b19r\",\n            \"recordingSid\": \"9dd1b8b0-f5ac-11ec-837e-617776b555d4\",\n            \"apiVersion\": \"V3\",\n            \"actionPerformed\": null,\n            \"actionMethod\": null,\n            \"callbackMethod\": \"POST\",\n            \"callbackUrl\": \"https://api.test.com/radar/inbound/bf9c6aae-ea60-48b5e-1b3c42fed621/f611cb17-a4a6-4259-b522-d8bf78f6\",\n            \"duration\": 34,\n            \"fileUploadStatus\": 1,\n            \"isActive\": 1,\n            \"isRequest\": null,\n            \"recordingDate\": 1656288192309,\n            \"recordingDirection\": \"inbound\",\n            \"recordingUrl\": \"https://storage.googleapis.com/m360/m360-173c6f7f-c911-f823-fb2d-a13e5c307/2022-06-27/1656288192_fd9173f4-d078-43c9-a61b-6e.mp3\",\n            \"request\": null,\n            \"response\": null\n        }\n    ]\n}"}],"_postman_id":"339e10eb-41b3-4213-8d14-bd4f7d89c61d"},{"name":"Get Debug logs","id":"8f9d50c3-825c-405e-8060-c0463c70cc82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/logs/debug/:id","description":"<p>This returns data that can be useful for debugging interactions that happen internal to Ytel systems for diagnosing what happened with a call, sms, or workflow.</p>\n<p>Fields returned:<br /><strong>accountSid</strong>: The account id that generated this event.</p>\n<p><strong>uniqueId</strong>: The id of the sms, call, or individual workflow execution (campaignRunId).</p>\n<p><strong>data</strong>: Raw body of the event. This is generally escaped json.</p>\n<p><strong>level</strong>: Will always be 1.</p>\n<p><strong>clientId</strong>: Optional field that associates a user with the action.</p>\n<p><strong>type</strong>: Type of the action</p>\n<p><strong>date</strong>: Milliseconds since the epoch when the event happened</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","logs","debug",":id"],"host":["{{url}}"],"query":[],"variable":[{"id":"bdd4a721-c60e-4852-a502-73541410571f","description":{"content":"<p>Returns debug logs associated with the given id. Id is typically an smsSid, callSid, or campaignRunId.</p>\n","type":"text/plain"},"type":"any","value":"6be998f3-d47e-4b17-b80b-0456cf070179","key":"id"}]}},"response":[{"id":"3fddfee2-c9f1-486d-bd74-5697f00812e7","name":"Get Debug logs","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/v4/logs/debug/:id","host":["{{url}}"],"path":["v4","logs","debug",":id"],"variable":[{"key":"id","value":"6be998f3-d47e-4b17-b80b-0456cf070179","description":"Returns debug logs associated with the given id. Id is typically an smsSid, callSid, or campaignRunId.\n"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"7019","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-RateLimit-Remaining-Second","value":"99","enabled":true},{"key":"X-RateLimit-Limit-Second","value":"100","enabled":true},{"key":"RateLimit-Limit","value":"100","enabled":true},{"key":"RateLimit-Remaining","value":"99","enabled":true},{"key":"RateLimit-Reset","value":"1","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Kong-Upstream-Latency","value":"8","enabled":true},{"key":"X-Kong-Proxy-Latency","value":"2","enabled":true},{"key":"Via","value":"kong/2.8.1","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 10,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"7c8693c6-976e-4324-9123-2c1d811605f9\",\n            \"uniqueid\": \"b2c3f96e-608b-11ed-928b-90b11c3529e4\",\n            \"data\": \"{\\\"uri\\\":\\\"https://customapps.ytel.com/m360/examples/welcome/index.php\\\",\\\"method\\\":\\\"post\\\",\\\"parameters\\\":\\\"carrier=&wireless=&zipcode=&city=&AccountSid=7c8693c6-976e-4324-9123-2c1d811605f9&From=+19792896588&To=+19792432907&CallSid=6be998f3-d47e-4b17-b80b-0456cf070179\\\"}\",\n            \"level\": 1,\n            \"clientId\": null,\n            \"type\": \"httpreq\",\n            \"date\": 1668038863426\n        },\n        {\n            \"accountSid\": \"7c8693c6-976e-4324-9123-2c1d811605f9\",\n            \"uniqueid\": \"b2cb6c30-608b-11ed-902a-77bf30607936\",\n            \"data\": \"{\\\"uri\\\":\\\"https://en4zif4dskxne.x.pipedream.net/\\\",\\\"method\\\":\\\"POST\\\",\\\"headers\\\":\\\"\\\",\\\"parameters\\\":\\\"[  \\\\n  {\\\\n    \\\\\\\"FieldId\\\\\\\": 64,\\\\n    \\\\\\\"Value\\\\\\\": \\\\\\\"{\\\\\\\"callSid\\\\\\\":\\\\\\\"6be998f3-d47e-4b17-b80b-0456cf070179\\\\\\\",\\\\\\\"apiVersion\\\\\\\":\\\\\\\"V3\\\\\\\",\\\\\\\"billCountry\\\\\\\":\\\\\\\"US\\\\\\\",\\\\\\\"callType\\\\\\\":\\\\\\\"call\\\\\\\",\\\\\\\"calledNumber\\\\\\\":\\\\\\\"+19792432907\\\\\\\",\\\\\\\"callerNumber\\\\\\\":\\\\\\\"+19792896588\\\\\\\",\\\\\\\"createdTime\\\\\\\":\\\\\\\"Nov 10, 2022, 12:07:43 AM\\\\\\\",\\\\\\\"direction\\\\\\\":\\\\\\\"inbound\\\\\\\",\\\\\\\"fromCountry\\\\\\\":\\\\\\\"US\\\\\\\",\\\\\\\"fromCountryCode\\\\\\\":1,\\\\\\\"serverIp\\\\\\\":\\\\\\\"172.21.116.12\\\\\\\",\\\\\\\"startTime\\\\\\\":\\\\\\\"Nov 10, 2022, 12:07:43 AM\\\\\\\",\\\\\\\"status\\\\\\\":\\\\\\\"in-progress\\\\\\\",\\\\\\\"toCountry\\\\\\\":\\\\\\\"US\\\\\\\",\\\\\\\"toCountryCode\\\\\\\":1}\\\\\\\"\\\\n}\\\\n]\\\"}\",\n            \"level\": 1,\n            \"clientId\": null,\n            \"type\": \"httpreq\",\n            \"date\": 1668038863475\n        },\n        {\n            \"accountSid\": \"7c8693c6-976e-4324-9123-2c1d811605f9\",\n            \"uniqueid\": \"b2d30364-608b-11ed-928b-90b11c3529e4\",\n            \"data\": \"{\\\"headers\\\":\\\"text/html; charset=UTF-8\\\\r\\\",\\\"body\\\":\\\"<Response><Say type=\\\\\\\"ssml\\\\\\\">The number you called is currently not set up. Please visit app.ytel.com to login to your account and setup your number.</Say><Hangup></Hangup></Response>\\\",\\\"code\\\":\\\"200\\\"}\",\n            \"level\": 1,\n            \"clientId\": null,\n            \"type\": \"httpresp\",\n            \"date\": 1668038863524\n        },\n        {\n            \"accountSid\": \"7c8693c6-976e-4324-9123-2c1d811605f9\",\n            \"uniqueid\": \"b2d61c5c-608b-11ed-928b-90b11c3529e4\",\n            \"data\": \"{\\\"action\\\":\\\"Text-To-Speech\\\",\\\"parameter\\\":\\\"Text: The number you called is currently not set up. Please visit app.ytel.com to login to your account and setup your number., Voice: , Type: ssml\\\",\\\"response\\\":\\\"Voice Used: en-us-standard-female-1\\\",\\\"actionTm\\\":1668038863545,\\\"success\\\":true}\",\n            \"level\": 1,\n            \"clientId\": null,\n            \"type\": \"callaction\",\n            \"date\": 1668038863545\n        },\n        {\n            \"accountSid\": \"7c8693c6-976e-4324-9123-2c1d811605f9\",\n            \"uniqueid\": \"b2f05950-608b-11ed-902a-77bf30607936\",\n            \"data\": \"{\\\"headers\\\":\\\"date: Thu, 10 Nov 2022 00:07:43 GMT\\\\ncontent-type: application/json; charset=utf-8\\\\ncontent-length: 16\\\\nx-powered-by: Express\\\\naccess-control-allow-origin: *\\\\nx-pd-status: sent to primary\\\",\\\"body\\\":\\\" : {\\\\\\\"success\\\\\\\":true}\\\",\\\"code\\\":\\\"200\\\"}\",\n            \"level\": 1,\n            \"clientId\": null,\n            \"type\": \"httpresp\",\n            \"date\": 1668038863717\n        },\n        {\n            \"accountSid\": \"7c8693c6-976e-4324-9123-2c1d811605f9\",\n            \"uniqueid\": \"b79a483a-608b-11ed-928b-90b11c3529e4\",\n            \"data\": \"{\\\"action\\\":\\\"SAY\\\",\\\"parameter\\\":\\\"Say: The number you called is currently not set up. Please visit app.ytel.com to login to your account and setup your number.\\\",\\\"response\\\":\\\"SAY Loop #: 1 of 1 elapsed time 8 no interruption\\\",\\\"actionTm\\\":1668038871541,\\\"success\\\":true}\",\n            \"level\": 1,\n            \"clientId\": null,\n            \"type\": \"callaction\",\n            \"date\": 1668038871541\n        },\n        {\n            \"accountSid\": \"7c8693c6-976e-4324-9123-2c1d811605f9\",\n            \"uniqueid\": \"b7a52ed0-608b-11ed-902a-77bf30607936\",\n            \"data\": \"{\\\"uri\\\":\\\"https://en4zif4dskxne.x.pipedream.net/\\\",\\\"method\\\":\\\"POST\\\",\\\"headers\\\":\\\"\\\",\\\"parameters\\\":\\\"[  \\\\n  {\\\\n    \\\\\\\"FieldId\\\\\\\": 64,\\\\n    \\\\\\\"Value\\\\\\\": \\\\\\\"{\\\\\\\"callSid\\\\\\\":\\\\\\\"6be998f3-d47e-4b17-b80b-0456cf070179\\\\\\\",\\\\\\\"apiVersion\\\\\\\":\\\\\\\"V3\\\\\\\",\\\\\\\"billCountry\\\\\\\":\\\\\\\"US\\\\\\\",\\\\\\\"callType\\\\\\\":\\\\\\\"call\\\\\\\",\\\\\\\"calledNumber\\\\\\\":\\\\\\\"+19792432907\\\\\\\",\\\\\\\"callerNumber\\\\\\\":\\\\\\\"+19792896588\\\\\\\",\\\\\\\"createdTime\\\\\\\":\\\\\\\"Nov 10, 2022, 12:07:43 AM\\\\\\\",\\\\\\\"direction\\\\\\\":\\\\\\\"inbound\\\\\\\",\\\\\\\"duration\\\\\\\":8,\\\\\\\"endTime\\\\\\\":\\\\\\\"Nov 10, 2022, 12:07:51 AM\\\\\\\",\\\\\\\"fromCountry\\\\\\\":\\\\\\\"US\\\\\\\",\\\\\\\"fromCountryCode\\\\\\\":1,\\\\\\\"serverIp\\\\\\\":\\\\\\\"172.21.116.12\\\\\\\",\\\\\\\"startTime\\\\\\\":\\\\\\\"Nov 10, 2022, 12:07:43 AM\\\\\\\",\\\\\\\"status\\\\\\\":\\\\\\\"completed\\\\\\\",\\\\\\\"toCountry\\\\\\\":\\\\\\\"US\\\\\\\",\\\\\\\"toCountryCode\\\\\\\":1,\\\\\\\"hangupBy\\\\\\\":\\\\\\\"TERMINATOR END\\\\\\\",\\\\\\\"metadata\\\\\\\":{}}\\\\\\\"\\\\n}\\\\n]\\\"}\",\n            \"level\": 1,\n            \"clientId\": null,\n            \"type\": \"httpreq\",\n            \"date\": 1668038871613\n        },\n        {\n            \"accountSid\": \"7c8693c6-976e-4324-9123-2c1d811605f9\",\n            \"uniqueid\": \"b7a57cf0-608b-11ed-902a-77bf30607936\",\n            \"data\": \"{\\\"uri\\\":\\\"https://api.airtable.com/v0/appdKJrvVfWlE17DQ/Table%201\\\",\\\"method\\\":\\\"POST\\\",\\\"headers\\\":\\\"Authorization: Token\\\\nContent-Type: application/json\\\",\\\"parameters\\\":\\\"{\\\\n  \\\\\\\"records\\\\\\\": [\\\\n    {\\\\n      \\\\\\\"fields\\\\\\\": {\\\\n\\\\\\\"callsid\\\\\\\":  \\\\\\\"6be998f3-d47e-4b17-b80b-0456cf070179\\\\\\\",\\\\n\\\\\\\"calltype\\\\\\\": \\\\\\\"call\\\\\\\",\\\\n\\\\\\\"duration\\\\\\\": \\\\\\\"8\\\\\\\",\\\\n\\\\\\\"callednumber\\\\\\\": \\\\\\\"+19792432907\\\\\\\",\\\\n\\\\\\\"callernumber\\\\\\\": \\\\\\\"+19792896588\\\\\\\",\\\\n\\\\\\\"apiversion\\\\\\\": \\\\\\\"V3\\\\\\\",\\\\n\\\\\\\"billcountry\\\\\\\": \\\\\\\"US\\\\\\\",\\\\n\\\\\\\"createdtime\\\\\\\": \\\\\\\"2022-11-10T00:07:43+0000\\\\\\\",\\\\n\\\\\\\"dtmfentered\\\\\\\": \\\\\\\"%DTMFENTERED%\\\\\\\"\\\\n}\\\\n    }\\\\n  ]\\\\n}\\\"}\",\n            \"level\": 1,\n            \"clientId\": null,\n            \"type\": \"httpreq\",\n            \"date\": 1668038871615\n        },\n        {\n            \"accountSid\": \"7c8693c6-976e-4324-9123-2c1d811605f9\",\n            \"uniqueid\": \"b7bc1230-608b-11ed-902a-77bf30607936\",\n            \"data\": \"{\\\"headers\\\":\\\"date: Thu, 10 Nov 2022 00:07:51 GMT\\\\ncontent-type: application/json; charset=utf-8\\\\ncontent-length: 16\\\\nx-powered-by: Express\\\\naccess-control-allow-origin: *\\\\nx-pd-status: sent to primary\\\",\\\"body\\\":\\\" : {\\\\\\\"success\\\\\\\":true}\\\",\\\"code\\\":\\\"200\\\"}\",\n            \"level\": 1,\n            \"clientId\": null,\n            \"type\": \"httpresp\",\n            \"date\": 1668038871763\n        },\n        {\n            \"accountSid\": \"7c8693c6-976e-4324-9123-2c1d811605f9\",\n            \"uniqueid\": \"b8ec54d0-608b-11ed-902a-77bf30607936\",\n            \"data\": \"{\\\"headers\\\":\\\"access-control-allow-headers: authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with\\\\naccess-control-allow-methods: DELETE,GET,OPTIONS,PATCH,POST,PUT\\\\naccess-control-allow-origin: *\\\\nairtable-uncompressed-content-length: 342\\\\nContent-Type: application/json; charset=utf-8\\\\nDate: Thu, 10 Nov 2022 00:07:53 GMT\\\\nServer: Tengine\\\\nSet-Cookie: brw=brwCqSMGgx4iGgb5h; path=/; expires=Fri, 10 Nov 2023 00:07:51 GMT; domain=.airtable.com; samesite=none; secure\\\\nStrict-Transport-Security: max-age=31536000; includeSubDomains; preload\\\\nVary: Accept-Encoding\\\\nX-Content-Type-Options: nosniff\\\\nX-Frame-Options: DENY\\\\nContent-Length: 342\\\\nConnection: keep-alive\\\",\\\"body\\\":\\\" : {\\\\\\\"records\\\\\\\":[{\\\\\\\"id\\\\\\\":\\\\\\\"recIz6MrDMN1bOK9b\\\\\\\",\\\\\\\"createdTime\\\\\\\":\\\\\\\"2022-11-10T00:07:52.000Z\\\\\\\",\\\\\\\"fields\\\\\\\":{\\\\\\\"callsid\\\\\\\":\\\\\\\"6be998f3-d47e-4b17-b80b-0456cf070179\\\\\\\",\\\\\\\"calltype\\\\\\\":\\\\\\\"call\\\\\\\",\\\\\\\"duration\\\\\\\":\\\\\\\"8\\\\\\\",\\\\\\\"callednumber\\\\\\\":\\\\\\\"+19792432907\\\\\\\",\\\\\\\"callernumber\\\\\\\":\\\\\\\"+19792896588\\\\\\\",\\\\\\\"apiversion\\\\\\\":\\\\\\\"V3\\\\\\\",\\\\\\\"billcountry\\\\\\\":\\\\\\\"US\\\\\\\",\\\\\\\"createdtime\\\\\\\":\\\\\\\"2022-11-10T00:07:43+0000\\\\\\\",\\\\\\\"dtmfentered\\\\\\\":\\\\\\\"%DTMFENTERED%\\\\\\\"}}]}\\\",\\\"code\\\":\\\"200\\\"}\",\n            \"level\": 1,\n            \"clientId\": null,\n            \"type\": \"httpresp\",\n            \"date\": 1668038873757\n        }\n    ]\n}"}],"_postman_id":"8f9d50c3-825c-405e-8060-c0463c70cc82"}],"id":"c1f28e07-eb18-4580-b9f7-aea76a066024","description":"<p>The logs endpoints exist to allow users to get the transactional logs of each billable request by time in a date range.</p>\n<p><strong>Note: 13 months of data is being stored for Call Logs and SMS logs</strong></p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"ab61f5fa-36c6-4125-8db5-1680c48258d3"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"ce10d851-ce99-4039-b421-c86e557ff37e"}}],"_postman_id":"c1f28e07-eb18-4580-b9f7-aea76a066024","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Numbers","item":[{"name":"Get Numbers","id":"4179d026-5171-4cfe-a3ce-a6d8a0d12a6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/number/?nextKey=KzE5NDk1NTU0NDQ0&size=100","description":"<p>Retrieves numbers on the account.</p>\n<p>Fields:</p>\n<ul>\n<li><p><strong>accountSid</strong>: Account id</p>\n</li>\n<li><p><strong>phoneSid</strong>: Unique id for this phone number</p>\n</li>\n<li><p><strong>phoneNumber</strong>: Phone number for this record in E164 format.</p>\n</li>\n<li><p><strong>voiceUrl</strong>: Url to hit when an inbound voice call is received.</p>\n</li>\n<li><p><strong>voiceMethod</strong>: HTTP method to use in conjunction with the <strong>voiceUrl</strong>. Valid values GET and POST.</p>\n</li>\n<li><p><strong>voiceFallbackUrl</strong>: Url to use if <strong>voiceUrl</strong> fails.</p>\n</li>\n<li><p><strong>voiceFallbackMethod</strong>: HTTP method for <strong>voiceFallbackUrl</strong>.</p>\n</li>\n<li><p><strong>smsUrl</strong>: Url to hit when an inbound sms is received.</p>\n</li>\n<li><p><strong>smsMethod</strong>: HTTP method to use with <strong>smsUrl</strong>.</p>\n</li>\n<li><p><strong>smsFallbackUrl</strong>: Url to hit if <strong>smsUrl</strong> fails.</p>\n</li>\n<li><p><strong>smsFallbackMethod</strong>: HTTP method for <strong>smsFallbackUrl</strong>.</p>\n</li>\n<li><p><strong>heartbeatUrl</strong>: Url to hit for heartbeat messages.</p>\n</li>\n<li><p><strong>heartbeatMethod</strong>: HTTP method for <strong>heartbeatUrl</strong>.</p>\n</li>\n<li><p><strong>hangupCallbackUrl</strong>: Url to hit when a call is completed.</p>\n</li>\n<li><p><strong>hangupCallbackMethod</strong>: HTTP method for <strong>hangupCallbackUrl</strong>.</p>\n</li>\n<li><p><strong>renewalDate</strong>: Next time that this number will be billed. Milliseconds from the epoch.</p>\n</li>\n<li><p><strong>purchaseDate</strong>: Time the number was purchased. Milliseconds from the epoch.</p>\n</li>\n<li><p><strong>region</strong>: Where the number is based based on prefix. Format is Country-State (or Province).</p>\n</li>\n<li><p><strong>timezone</strong>: Timezone id where the number is based.</p>\n</li>\n<li><p><strong>numberSetId</strong>: Number set that this number belongs to.</p>\n</li>\n<li><p><strong>attributes</strong>: List of attributes for the number. Current set is <em>voice-enabled</em>, <em>sms-enabled</em>, and <em>mms-enabled</em>.</p>\n</li>\n<li><p><strong>numberType</strong>: Type of the number.</p>\n</li>\n<li><p><strong>keywordActions</strong>: A mapping of actions to take when a particular keyword is received. Currently this only supports starting a campaign.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","number",""],"host":["{{url}}"],"query":[{"description":{"content":"<p>base64 encoded phone number (E.164 format) the record should start with</p>\n","type":"text/plain"},"key":"nextKey","value":"KzE5NDk1NTU0NDQ0"},{"description":{"content":"<p>Number of records to return</p>\n","type":"text/plain"},"key":"size","value":"100"}],"variable":[]}},"response":[{"id":"abe1c035-68cb-46cb-a9ea-1c243d891fc2","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/number/?offset=0","host":["{{url}}"],"path":["v4","number",""],"query":[{"key":"offset","value":"0","description":"The record to start with"},{"key":"pageSize","value":"1","description":"Number of records to return","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"361748","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 576,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"phoneSid\": \"25431e50-6866-11ea-9ea9-d1464f98b813\",\n            \"phoneNumber\": \"+15552283797\",\n            \"voiceUrl\": \"https://testdomain.com\",\n            \"voiceMethod\": \"GET\",\n            \"voiceFallbackUrl\": \"\",\n            \"voiceFallbackMethod\": \"POST\",\n            \"renewalDate\": 1611101028432,\n            \"purchaseDate\": 1584459850921,\n            \"region\": \"US-NJ\",\n            \"timezone\": -20,\n            \"smsUrl\": \"\",\n            \"smsMethod\": \"POST\",\n            \"smsFallbackUrl\": \"\",\n            \"smsFallbackMethod\": \"POST\",\n            \"heartbeatUrl\": \"\",\n            \"heartbeatMethod\": \"POST\",\n            \"hangupCallbackUrl\": \"\",\n            \"hangupCallbackMethod\": \"POST\",\n            \"attributes\": [\n                \"voice-enabled\"\n            ],\n            \"numberType\": 1\n        },\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"phoneSid\": \"8567a510-6886-11ea-9b6f-e6478104197e\",\n            \"phoneNumber\": \"+15552283811\",\n            \"voiceUrl\": \"https://testdomain.com\",\n            \"voiceMethod\": \"GET\",\n            \"voiceFallbackUrl\": \"\",\n            \"voiceFallbackMethod\": \"POST\",\n            \"renewalDate\": 1611360251655,\n            \"purchaseDate\": 1584473756124,\n            \"region\": \"US-NJ\",\n            \"timezone\": -20,\n            \"smsUrl\": \"\",\n            \"smsMethod\": \"POST\",\n            \"smsFallbackUrl\": \"\",\n            \"smsFallbackMethod\": \"POST\",\n            \"heartbeatUrl\": \"\",\n            \"heartbeatMethod\": \"POST\",\n            \"hangupCallbackUrl\": \"\",\n            \"hangupCallbackMethod\": \"POST\",\n            \"attributes\": [\n                \"voice-enabled\"\n            ],\n            \"numberType\": 1\n        }\n    ]\n}"}],"_postman_id":"4179d026-5171-4cfe-a3ce-a6d8a0d12a6f"},{"name":"Get Available Numbers","id":"58d4fecb-b43b-4c8f-a060-515feabd1c0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/number/available/?areaCode=714&offset=0&size=3","description":"<p>Gets a list of available voice enabled numbers for purchase. All voice enabled number can be SMS enabled through Campaign Registry (long code) and Verified Sender (toll-free).</p>\n<p>Parameters:</p>\n<ul>\n<li><p><strong>areaCode</strong>: <em>all</em> or a comma separated list of area codes (ex: 213,714,619)</p>\n</li>\n<li><p><strong>offset</strong>: unused</p>\n</li>\n<li><p><strong>size</strong>: Number of results per area code. Default 20.</p>\n</li>\n</ul>\n<p>Response</p>\n<ul>\n<li><p><strong>phoneNumber</strong>: Phone number that is available for purchase.</p>\n</li>\n<li><p><strong>region</strong>: Region where the number is associated with. Based on the prefix of the number.</p>\n</li>\n<li><p><strong>timezone</strong>: Timezone id for the phone number.</p>\n</li>\n<li><p><strong>attributes</strong>: List of attributes. Valid values are <em>voice-enabled</em>, <em>sms-enabled</em>, <em>mms-enabled</em>.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","number","available",""],"host":["{{url}}"],"query":[{"description":{"content":"<p>comma separated list of area codes or all for all</p>\n","type":"text/plain"},"key":"areaCode","value":"714"},{"description":{"content":"<p>offset</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>number of results to return per area code</p>\n","type":"text/plain"},"key":"size","value":"3"}],"variable":[]}},"response":[{"id":"5e8cb5aa-a7c3-48ca-9599-715614dc6578","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/number/available/?areaCode=714&offset=0&size=3&type=sms","host":["{{url}}"],"path":["v4","number","available",""],"query":[{"key":"areaCode","value":"714","description":"comma separated list of area codes or `all` for all"},{"key":"offset","value":"0","description":"The record index to start listing at"},{"key":"size","value":"3","description":"The number of results to return per area code"},{"key":"type","value":"sms","description":"The type of number to return (sms, voice, tollfree)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"429","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 3,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"phoneNumber\": \"+17142421234\",\n            \"region\": \"US-CA\",\n            \"timezone\": -32,\n            \"attributes\": [\n                \"voice-enabled\",\n                \"sms-enabled\"\n            ],\n            \"numberType\": 1\n        },\n        {\n            \"phoneNumber\": \"+17144061234\",\n            \"region\": \"US-CA\",\n            \"timezone\": -32,\n            \"attributes\": [\n                \"mms-enabled\",\n                \"voice-enabled\",\n                \"sms-enabled\"\n            ],\n            \"numberType\": 1\n        },\n        {\n            \"phoneNumber\": \"+17142421234\",\n            \"region\": \"US-CA\",\n            \"timezone\": -32,\n            \"attributes\": [\n                \"voice-enabled\",\n                \"sms-enabled\"\n            ],\n            \"numberType\": 1\n        }\n    ]\n}"}],"_postman_id":"58d4fecb-b43b-4c8f-a060-515feabd1c0b"},{"name":"Purchase Number","id":"09b986ba-4911-4e41-8db1-03de9eca344b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"numberSetId\": \"b33f7d40-79b7-11ea-af46-7330668f35a8\",\r\n  \"phoneNumber\": [\r\n    \"+17142421234\"\r\n  ]\r\n}"},"url":"{{url}}/v4/number/purchase/","description":"<p>Purchase a list of phone numbers. If using a number set, all the newly purchased numbers will be configured with the settings of the number set. A subsequent call to edit the number to configure them is not necessary.</p>\n<p>Request fields:</p>\n<ul>\n<li><strong>phoneNumber</strong>: List of numbers to purchase in E164 format.</li>\n<li><strong>numberSetId</strong>: Optional number set id that all newly purchased numbers will be added to.</li>\n</ul>\n<p>Response will be the configuration for the newly purchased number. Refer to the documentation for Get Number for the response data.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","number","purchase",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"e04e0db6-ba7b-40de-b71b-723969fe98f9","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"phoneNumber\": [\r\n    \"+17142421234\"\r\n  ]\r\n}"},"url":"{{url}}/v4/number/purchase/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"233","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"phoneSid\": \"2d7645e0-55cb-11eb-941b-9bda39f83b79\",\n            \"phoneNumber\": \"+17142421234\",\n            \"renewalDate\": 1613240069438,\n            \"numberType\": 1\n        }\n    ],\n    \"error\": []\n}"}],"_postman_id":"09b986ba-4911-4e41-8db1-03de9eca344b"},{"name":"Release Number","id":"66de25cd-a814-4f95-b6fc-c975cea983e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"phoneNumber\": [\r\n    \"+12012281234\"\r\n  ]\r\n}"},"url":"{{url}}/v4/number/release/","description":"<p>Release ownership of a set of numbers.</p>\n<p>The payload for the response will be the previous configuration for the released numbers.</p>\n<p>Array maximum is 100</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","number","release",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f54f076e-d66b-412c-a83a-972a2108895c","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"phoneNumber\": [\r\n    \"+17142421234\"\r\n  ]\r\n}"},"url":"{{url}}/v4/number/release/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"222","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"phoneSid\": \"2d7645e0-55cb-11eb-941b-9bda39f83b79\",\n            \"phoneNumber\": \"+17142421234\",\n            \"renewalDate\": 1613240069438,\n            \"numberType\": 1\n        }\n    ]\n}"}],"_postman_id":"66de25cd-a814-4f95-b6fc-c975cea983e4"},{"name":"Move Numbers","id":"eeba675b-88d9-485f-a26f-11c12e8a0f56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"phoneNumbers\": [\r\n    \"+19892001234\"\r\n  ],\r\n  \"toAccountSid\": \"1e091839-3b9c-fe2e-1e5a-de6b748d8ff0\", \r\n  \"fromAccountSid\" : \"173c6f7f-c911-f823-fb2d-a13e4780c300\"\r\n}"},"url":"{{url}}/v4/number/transfer/","description":"<p>Transfer numbers from this account to a subaccount (if a parent account) or to a parent account (if a subaccount). To transfer numbers from one subaccount to another subaccount they must first be transferred to the parent and then to the other subaccount.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","number","transfer",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"dab8c92a-2cfb-4686-b845-0b5983f66b5e","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"phoneNumbers\": [\r\n    \"+19892001234\"\r\n  ],\r\n  \"toAccountSid\": \"1e091839-3b9c-fe2e-1e5a-de6b748d8ff0\", \r\n  \"fromAccountSid\" : \"173c6f7f-c911-f823-fb2d-a13e4780c300\"\r\n}"},"url":"{{url}}/v4/number/transfer/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"1464","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"1e091839-3b9c-fe2e-1e5a-de6b748d8ff0\",\n            \"phoneSid\": \"ae03cf50-4d27-11ea-a29d-d764c8e68237\",\n            \"friendlyName\": \"<br>\",\n            \"phoneNumber\": \"+19892001234\",\n            \"voiceUrl\": \"https://testdomain.com\",\n            \"voiceMethod\": \"GET\",\n            \"voiceFallbackUrl\": \"\",\n            \"voiceFallbackMethod\": \"POST\",\n            \"renewalDate\": 1610669135164,\n            \"purchaseDate\": 1581464340671,\n            \"region\": \"US-MI\",\n            \"timezone\": -20,\n            \"smsUrl\": \"\",\n            \"smsMethod\": \"POST\",\n            \"smsFallbackUrl\": \"\",\n            \"smsFallbackMethod\": \"POST\",\n            \"heartbeatUrl\": \"\",\n            \"heartbeatMethod\": \"POST\",\n            \"hangupCallbackUrl\": \"\",\n            \"hangupCallbackMethod\": \"POST\",\n            \"attributes\": [\n                \"voice-enabled\"\n            ],\n            \"numberType\": 1\n        }\n    ],\n    \"error\": []\n}"}],"_postman_id":"eeba675b-88d9-485f-a26f-11c12e8a0f56"},{"name":"Get Number","id":"252a7ce4-1ba0-4998-b727-7e32ebbf7a97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/number/:phoneNumber/","description":"<p>Retrieves the details for a single number in E164 format.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","number",":phoneNumber",""],"host":["{{url}}"],"query":[],"variable":[{"id":"52e30026-d936-4fc9-9135-a4f67264990d","description":{"content":"<p>The phone number to retrieve information on</p>\n","type":"text/plain"},"type":"any","value":"+19712201234","key":"phoneNumber"}]}},"response":[{"id":"cbf7dad7-e0c5-4711-ab09-fe0c83570f33","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint."}],"url":{"raw":"{{url}}/v4/number/:phoneNumber/","host":["{{url}}"],"path":["v4","number",":phoneNumber",""],"variable":[{"key":"phoneNumber","value":"+19495065906","description":"The phone number to retrieve information on"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1194"},{"key":"Connection","value":"keep-alive"},{"key":"RateLimit-Limit","value":"150"},{"key":"RateLimit-Remaining","value":"149"},{"key":"RateLimit-Reset","value":"1"},{"key":"X-RateLimit-Remaining-Second","value":"149"},{"key":"X-RateLimit-Limit-Second","value":"150"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-Kong-Upstream-Latency","value":"22"},{"key":"X-Kong-Proxy-Latency","value":"3"},{"key":"Via","value":"kong/2.8.3"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fn2d-a13e4780c300\",\n            \"phoneSid\": \"e2c28d1d-b290-e7ab-3d38-caa585427859\",\n            \"friendlyName\": \"Number Name\",\n            \"phoneNumber\": \"+19495065906\",\n            \"voiceUrl\": \"https:/test.com\",\n            \"cnam\": \"\",\n            \"countryName\": \"US\",\n            \"voiceMethod\": \"POST\",\n            \"voiceFallbackUrl\": \"\",\n            \"voiceFallbackMethod\": \"POST\",\n            \"renewalDate\": 1696118400000,\n            \"purchaseDate\": 1539987416358,\n            \"region\": \"US-CA\",\n            \"timezone\": -32,\n            \"smsUrl\": \"http://my.host.com/sms\",\n            \"smsMethod\": \"POST\",\n            \"smsFallbackUrl\": \"http://my.host2.com/sm\",\n            \"smsFallbackMethod\": \"POST\",\n            \"heartbeatUrl\": \"\",\n            \"heartbeatMethod\": \"GET\",\n            \"hangupCallbackUrl\": \"https://host.com\",\n            \"hangupCallbackMethod\": \"POST\",\n            \"reputationResults\": {},\n            \"ftcComplaintCount\": 0,\n            \"branded\": false,\n            \"remediation\": false,\n            \"attributes\": [\n                \"voice-enabled\"\n            ],\n            \"numberType\": 1\n        }\n    ]\n}"}],"_postman_id":"252a7ce4-1ba0-4998-b727-7e32ebbf7a97"},{"name":"Edit Number","id":"347889e5-86a4-4fe7-a4d7-7f76d63b7907","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"friendlyName\": \"My Number\",\r\n  \"hangupCallbackMethod\": \"POST\",\r\n  \"hangupCallbackUrl\": \"http://my.host.com/hangup\",\r\n  \"heartbeatMethod\": \"GET\",\r\n  \"heartbeatUrl\": \"http://my.host.com/heartbeat\",\r\n  \"smsMethod\": \"POST\",\r\n  \"smsUrl\": \"http://my.host.com/sms\",\r\n  \"smsFallbackMethod\": \"POST\",\r\n  \"smsFallbackUrl\": \"http://my.host2.com/sms\",\r\n  \"voiceMethod\": \"POST\",\r\n  \"voiceUrl\": \"http://my.host.com/voice\",\r\n  \"voiceFallbackMethod\": \"POST\",\r\n  \"voiceFallbackUrl\": \"http://my.host2.com/voice\"\r\n}"},"url":"{{url}}/v4/number/:phoneNumber/","description":"<p>Edit the configuration for a number. For numbers that are in a number set changes made here will be overridden if the number set is edited. It is highly recommended to not use this endpoint for numbers in a number set.</p>\n<p>Editable Items:</p>\n<ul>\n<li><strong>friendlyName</strong></li>\n<li><strong>hangupCallbackUrl</strong> and <strong>hangupCallbackMethod</strong></li>\n<li><strong>heartbeatUrl</strong> and <strong>heartbeatMethod</strong></li>\n<li><strong>voiceUrl</strong> and <strong>voiceMethod</strong></li>\n<li><strong>voiceFallbackUrl</strong> and <strong>voiceFallbackMethod</strong></li>\n<li><strong>smsUrl</strong> and <strong>smsMethod</strong></li>\n<li><strong>smsFallbackUrl</strong> and <strong>smsFallbackMethod</strong></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","number",":phoneNumber",""],"host":["{{url}}"],"query":[],"variable":[{"id":"078cfe17-4817-430a-9e0e-b21f44b25df1","description":{"content":"<p>phoneNumber</p>\n","type":"text/plain"},"type":"any","value":"+19892008187","key":"phoneNumber"}]}},"response":[{"id":"a7a6bbe7-3d65-4809-8b61-60d43a0d9324","name":"Sample Request","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"friendlyName\": \"My Number\",\r\n  \"hangupCallbackMethod\": \"POST\",\r\n  \"hangupCallbackUrl\": \"http://my.host.com/hangup\",\r\n  \"heartbeatMethod\": \"GET\",\r\n  \"heartbeatUrl\": \"http://my.host.com/heartbeat\",\r\n  \"smsMethod\": \"POST\",\r\n  \"smsUrl\": \"http://my.host.com/sms\",\r\n  \"smsFallbackMethod\": \"POST\",\r\n  \"smsFallbackUrl\": \"http://my.host2.com/sms\",\r\n  \"voiceMethod\": \"POST\",\r\n  \"voiceUrl\": \"http://my.host.com/voice\",\r\n  \"voiceFallbackMethod\": \"POST\",\r\n  \"voiceFallbackUrl\": \"http://my.host2.com/voice\"\r\n}"},"url":{"raw":"{{url}}/v4/number/:phoneNumber/","host":["{{url}}"],"path":["v4","number",":phoneNumber",""],"variable":[{"key":"phoneNumber","value":"+19892001234","description":"phoneNumber"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"655","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"phoneSid\": \"86c63570-58f5-11ea-8a00-1d419766bdd1\",\n            \"friendlyName\": \"My Number\",\n            \"phoneNumber\": \"+19892001234\",\n            \"voiceUrl\": \"http://my.host.com/voice\",\n            \"voiceMethod\": \"POST\",\n            \"voiceFallbackUrl\": \"http://my.host2.com/voice\",\n            \"voiceFallbackMethod\": \"POST\",\n            \"renewalDate\": 1612224248287,\n            \"smsUrl\": \"http://my.host.com/sms\",\n            \"smsMethod\": \"POST\",\n            \"smsFallbackUrl\": \"http://my.host2.com/sms\",\n            \"smsFallbackMethod\": \"POST\",\n            \"heartbeatUrl\": \"http://my.host.com/heartbeat\",\n            \"heartbeatMethod\": \"GET\",\n            \"hangupCallbackUrl\": \"http://my.host.com/hangup\",\n            \"hangupCallbackMethod\": \"POST\",\n            \"numberType\": 1\n        }\n    ]\n}"}],"_postman_id":"347889e5-86a4-4fe7-a4d7-7f76d63b7907"},{"name":"Assign WebRTC Number","id":"02a19255-9f37-494e-bbe3-4f2508bd6442","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\"phoneNumber\":\"{{fromnumber}}\"}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/number/webrtc/","description":"<p>The number in your account to assign to your WebRTC user.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","number","webrtc",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"654fd263-193c-4b7a-a388-514289e38ab1","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\"phoneNumber\":\"+12513561234\"}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/number/webrtc/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"1053","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"phoneSid\": \"13b22270-a29c-11e9-80d2-2d4429cd4b11\",\n            \"assignedUser\": \"24554439-118f-4265-bde9-0789702990ac\",\n            \"friendlyName\": \"Test Number\",\n            \"phoneNumber\": \"+12513561234\",\n            \"voiceUrl\": \"https://www.ytel.com/0bb882e9-1406-4d75-a2ca-test.xml\",\n            \"voiceMethod\": \"GET\",\n            \"voiceFallbackUrl\": \"\",\n            \"voiceFallbackMethod\": \"POST\",\n            \"renewalDate\": 1627257825840,\n            \"purchaseDate\": 1562712684047,\n            \"region\": \"US-CA\",\n            \"timezone\": -32,\n            \"smsUrl\": \"\",\n            \"smsMethod\": \"POST\",\n            \"smsFallbackUrl\": \"\",\n            \"smsFallbackMethod\": \"POST\",\n            \"heartbeatUrl\": \"\",\n            \"heartbeatMethod\": \"POST\",\n            \"hangupCallbackUrl\": \"\",\n            \"hangupCallbackMethod\": \"POST\",\n            \"attributes\": [\n                \"voice-enabled\",\n                \"sms-enabled\"\n            ],\n            \"numberType\": 1\n        }\n    ]\n}"}],"_postman_id":"02a19255-9f37-494e-bbe3-4f2508bd6442"}],"id":"024b3ad8-d552-4d56-8bb1-0d625bc9b348","description":"<p>Controls for adding, editing, and releasing numbers on an account.</p>\n","_postman_id":"024b3ad8-d552-4d56-8bb1-0d625bc9b348","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Dispositions","item":[{"name":"Get Dispositions","id":"86ef5625-467f-4a15-b927-ff8176d0211f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/disposition","description":"<p>Retrieves all dispositions in the system.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","disposition"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"86ef5625-467f-4a15-b927-ff8176d0211f"},{"name":"Create Disposition","id":"106501f4-7a2f-40fa-9040-f3638ecbda64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"key\": \"major_sale\",\n    \"description\": \"Major Sale\",\n    \"tags\": [\"human\", \"sale\"],\n    \"direction\": \"both\",\n    \"triggeredCampaignId\": \"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/disposition","description":"<p>Adds a new disposition.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","disposition"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"106501f4-7a2f-40fa-9040-f3638ecbda64"},{"name":"Edit Disposition","id":"4c3753e1-fa2c-4ec8-b08c-7f340eb94db3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"key\": \"major_sale\",\n    \"description\": \"Major Sale\",\n    \"tags\": [\"human\", \"sale\"],\n    \"direction\": \"both\",\n    \"triggeredCampaignId\": \"c0b13242-777d-4e89-b9b2-fb5c14a1bbcf\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/disposition/:key","description":"<p>Editss an existing disposition. If editing a default disposition only the triggeredCampaignId may be set.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","disposition",":key"],"host":["{{url}}"],"query":[],"variable":[{"id":"69002cea-c330-4073-afc5-9d447a416d27","type":"any","value":null,"key":"key"}]}},"response":[],"_postman_id":"4c3753e1-fa2c-4ec8-b08c-7f340eb94db3"},{"name":"Delete Disposition","id":"364451fe-055e-4da6-883b-84dcc1033da6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/disposition/:key","description":"<p>Editss an existing disposition. If editing a default disposition only the triggeredCampaignId may be set.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","disposition",":key"],"host":["{{url}}"],"query":[],"variable":[{"id":"366fde00-411e-4855-a09b-a00b2d102229","type":"any","value":null,"key":"key"}]}},"response":[],"_postman_id":"364451fe-055e-4da6-883b-84dcc1033da6"}],"id":"fbdd6959-e6d4-4107-8fda-2c8b6d5d6271","description":"<p>Dispositions are used to annotate how a call or conversation has been concluded. There are some system default dispositions that cannot be modified with the exception of assigning a workflow to them to be triggered when a disposition is assigned.</p>\n<p>Fields in a disposition:</p>\n<ul>\n<li><strong>accountSid</strong>: Associate account Id</li>\n<li><strong>key</strong>: Unique identifier for the disposition</li>\n<li><strong>description</strong>: User visible description of the disposition</li>\n<li><strong>tags</strong>: List of tags that are associated with the disposition. Valid tags are: <em>human</em>, <em>sale</em>, <em>dnc</em>, <em>contact</em>, <em>not interested</em>, <em>unworkable</em>, <em>callback</em>, <em>completed</em>, <em>answering machine</em>.</li>\n<li><strong>direction</strong>: Directions that are applicable for assignment of a disposition. Valid directions are: <em>inbound</em>, <em>outbound</em>, <em>both</em>.</li>\n<li><strong>triggeredCampaignId</strong>: Workflow that should be triggered when this disposition is assigned.</li>\n</ul>\n","_postman_id":"fbdd6959-e6d4-4107-8fda-2c8b6d5d6271","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Number Sets","item":[{"name":"Get Number Sets","id":"91701a3e-f5da-426d-b35b-d35733c9e11d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/numberset/","description":"<p>Retrieves all the number sets associated with this account.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","numberset",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"7f555448-ea4a-4c41-ae32-8364d162673d","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":"{{url}}/v4/numberset/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"3491","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"numberSetId\": \"c1b50051-24fe-11eb-b763-f778b3dc78df\",\n            \"name\": \"Test Set\",\n            \"forwardNumber\": \"\",\n            \"callerIdName\": \"\",\n            \"voiceUrl\": \"\",\n            \"voiceMethod\": \"POST\",\n            \"voiceFallbackUrl\": \"\",\n            \"voiceFallbackMethod\": \"POST\",\n            \"hangupCallbackUrl\": \"\",\n            \"hangupCallbackMethod\": \"POST\",\n            \"smsUrl\": \"\",\n            \"smsMethod\": \"POST\",\n            \"smsFallbackUrl\": \"\",\n            \"smsFallbackMethod\": \"POST\",\n            \"heartbeatUrl\": \"\",\n            \"heartbeatMethod\": \"POST\"\n        }\n    ]\n}"}],"_postman_id":"91701a3e-f5da-426d-b35b-d35733c9e11d"},{"name":"Add Number Set","id":"2630c0e9-bf8a-463f-b11d-b8810ca1058d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\r\n    \"name\": \"My number set\",\r\n    \"numberSetId\": \"\",\r\n    \"voiceUrl\": \"http://my.host.com/voice\",\r\n    \"voiceMethod\": \"POST\",\r\n    \"voiceFallbackUrl\": \"http://my.host2.com/voice\",\r\n    \"voiceFallbackMethod\": \"POST\",\r\n    \"hangupCallbackUrl\": \"http://my.host.com/hangup\",\r\n    \"hangupCallbackMethod\": \"POST\",\r\n    \"heartbeatUrl\": \"http://my.host.com/heartbeat\",\r\n    \"heartbeatMethod\": \"POST\",\r\n    \"smsUrl\": \"http://my.host.com/sms\",\r\n    \"smsFallbackUrl\": \"http://my.host2.com/sms\",\r\n    \"smsFallbackMethod\": \"POST\",\r\n    \"phoneNumbers\": [\r\n    \"+19892001234\"\r\n  ],\r\n    \"keywordActions\": {\r\n        \"HI\": {\r\n            \"campaignId\": \"e8861980-5165-11e9-b3b4-55cdbe9b37b5\"\r\n        }\r\n    }\r\n}"},"url":"{{url}}/v4/numberset/","description":"<p>Creates a new number set. If a list of phone numbers is provided in the payload they will be added to the number set.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","numberset",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"4b801811-cf20-41dc-9f76-af2cd26a9265","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\r\n    \"forwardNumber\": \"\",\r\n    \"callerIdName\": \"\",\r\n    \"name\": \"My number set\",\r\n    \"numberSetId\": \"\",\r\n    \"voiceUrl\": \"http://my.host.com/voice\",\r\n    \"voiceMethod\": \"POST\",\r\n    \"voiceFallbackUrl\": \"http://my.host2.com/voice\",\r\n    \"voiceFallbackMethod\": \"POST\",\r\n    \"hangupCallbackUrl\": \"http://my.host.com/hangup\",\r\n    \"hangupCallbackMethod\": \"POST\",\r\n    \"heartbeatUrl\": \"http://my.host.com/heartbeat\",\r\n    \"heartbeatMethod\": \"POST\",\r\n    \"smsUrl\": \"http://my.host.com/sms\",\r\n    \"smsMethod\": \"POST\",\r\n    \"smsFallbackUrl\": \"http://my.host2.com/sms\",\r\n    \"smsFallbackMethod\": \"POST\",\r\n    \"phoneNumbers\": [\r\n    \"+19892001234\"\r\n  ],\r\n    \"keywordActions\": {\r\n        \"HI\": {\r\n            \"campaignId\": \"e8861980-5165-11e9-b3b4-55cdbe9b37b5\"\r\n        }\r\n    }\r\n}"},"url":"{{url}}/v4/numberset/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"730","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"numberSetId\": \"85792550-5788-11eb-9a67-59113aa55d66\",\n            \"name\": \"My number set\",\n            \"forwardNumber\": \"\",\n            \"callerIdName\": \"\",\n            \"voiceUrl\": \"http://my.host.com/voice\",\n            \"voiceMethod\": \"POST\",\n            \"voiceFallbackUrl\": \"http://my.host2.com/voice\",\n            \"voiceFallbackMethod\": \"POST\",\n            \"hangupCallbackUrl\": \"http://my.host.com/hangup\",\n            \"hangupCallbackMethod\": \"POST\",\n            \"smsUrl\": \"http://my.host.com/sms\",\n            \"smsMethod\": \"POST\",\n            \"smsFallbackUrl\": \"http://my.host2.com/sms\",\n            \"smsFallbackMethod\": \"POST\",\n            \"heartbeatUrl\": \"http://my.host.com/heartbeat\",\n            \"heartbeatMethod\": \"POST\",\n            \"phoneNumbers\": [\n                \"+19892001234\"\n            ],\n            \"keywordActions\": {\n                \"HI\": {\n                    \"campaignId\": \"e8861980-5165-11e9-b3b4-55cdbe9b37b5\"\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"2630c0e9-bf8a-463f-b11d-b8810ca1058d"},{"name":"Add Number to Set","id":"4ed15c99-ed3d-454a-9a72-1d376da48e63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"numberSetId\": \"0e275620-52a2-11ea-810d-915e5688a0a1\",\r\n  \"phoneNumbers\": [\r\n    \"+19892001234\"\r\n  ]\r\n}"},"url":"{{url}}/v4/numberset/addnumber/","description":"<p>Adds a list of phone numbers to a number set.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","numberset","addnumber",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"99702a0e-7161-4ec9-90db-914972b90b6b","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"numberSetId\": \"0e275620-52a2-11ea-810d-915e5688a0a1\",\r\n  \"phoneNumbers\": [\r\n    \"+19892001234\"\r\n  ]\r\n}"},"url":"{{url}}/v4/numberset/addnumber/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"200","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\n            \"numberSetId\": \"0e275620-52a2-11ea-810d-915e5688a0a1\",\n            \"name\": \"test2\",\n            \"phoneNumbers\": [\n                \"+19892001234\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"4ed15c99-ed3d-454a-9a72-1d376da48e63"},{"name":"Get Number Set","id":"1bd7f3be-080d-4d70-81e8-2bbaf5a790cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/numberset/:numberSetId/","description":"<p>Get a number set by id.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","numberset",":numberSetId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"c1d867ad-ec1e-49bf-b786-51ba40377ff8","description":{"content":"<p>The Number Set ID to view</p>\n","type":"text/plain"},"type":"any","value":"0e275620-52a2-11ea-810d-915e5688a0a1","key":"numberSetId"}]}},"response":[{"id":"71efca96-2fe0-4ac9-a623-03cb61cd9772","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/numberset/:numberSetId/","host":["{{url}}"],"path":["v4","numberset",":numberSetId",""],"variable":[{"key":"numberSetId","value":"0e275620-52a2-11ea-810d-915e5688a0a1","description":"The Number Set ID to view"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"200","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"numberSetId\": \"0e275620-52a2-11ea-810d-915e5688a0a1\",\n            \"name\": \"test2\",\n            \"phoneNumbers\": [\n                \"+19892001234\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"1bd7f3be-080d-4d70-81e8-2bbaf5a790cf"},{"name":"Edit Number Set","id":"b2b5fded-6d28-45bf-8985-426fca263e0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"accountSid\": \"1c2fbdd9-2a1c-f3a2-0cb1-cff2290024b\",\r\n    \"forwardNumber\": \"\",\r\n    \"callerIdName\": \"\",\r\n    \"name\": \"My number set\",\r\n    \"numberSetId\": \"995f3620-aa79-11ea-9401-4394f1d456e8\",\r\n    \"voiceUrl\": \"http://my.host2.com/voice\",\r\n    \"voiceMethod\": \"POST\",\r\n    \"voiceFallbackUrl\": \"http://my.host2.com/voice2\",\r\n    \"voiceFallbackMethod\": \"POST\",\r\n    \"hangupCallbackUrl\": \"http://my.host2.com/hangup\",\r\n    \"hangupCallbackMethod\": \"POST\",\r\n    \"heartbeatUrl\": \"http://my.host2.com/heartbeat\",\r\n    \"heartbeatMethod\": \"POST\",\r\n    \"smsUrl\": \"http://my.host2.com/sms\",\r\n    \"smsMethod\": \"POST\",\r\n    \"smsFallbackUrl\": \"http://my.host2.com/sms2\",\r\n    \"smsFallbackMethod\": \"POST\",\r\n     \"phoneNumbers\": [\r\n    \"+19999999999\"\r\n  ],\r\n    \"keywordActions\": {\r\n        \"HI\": {\r\n            \"campaignId\": \"a16ee280-a5af-11ea-a211-c7aac7851d9b\"\r\n        }\r\n    }\r\n}"},"url":"{{url}}/v4/numberset/:numberSetId/","description":"<p>Edits a number set. This does not allow for adjusting the numbers in the number set.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","numberset",":numberSetId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"9dd85b2f-e502-41cb-9fea-20178f82ed1c","description":{"content":"<p>numberSetId</p>\n","type":"text/plain"},"type":"any","value":"numberSetId19","key":"numberSetId"}]}},"response":[],"_postman_id":"b2b5fded-6d28-45bf-8985-426fca263e0e"},{"name":"Delete Number Set","id":"466bfad2-4c13-43bf-b0f3-a67353e44a4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/v4/numberset/:numberSetId/","description":"<p>Deletes a number set.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","numberset",":numberSetId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"a5251a52-8e7e-429b-8389-f00f9a2e0763","description":{"content":"<p>Number Set ID to delete</p>\n","type":"text/plain"},"type":"any","value":"0e275620-52a2-11ea-810d-915e5688a0a1","key":"numberSetId"}]}},"response":[{"id":"c06eda00-06fa-4691-a7fd-bbe8fcb789a1","name":"Sample Request","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/v4/numberset/:numberSetId/","host":["{{url}}"],"path":["v4","numberset",":numberSetId",""],"variable":[{"key":"numberSetId","value":"0e275620-52a2-11ea-810d-915e5688a0a1","description":"Number Set ID to delete"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"186","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\n            \"numberSetId\": \"0e275620-52a2-11ea-810d-915e5688a0a1\",\n            \"name\": \"test2\",\n            \"phoneNumbers\": []\n        }\n    ]\n}"}],"_postman_id":"466bfad2-4c13-43bf-b0f3-a67353e44a4c"},{"name":"Delete Numbers from Set","id":"29c75c61-6afc-4d1f-b082-28a44497c00e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/v4/numberset/:numberSetId/:phoneNumbers/","description":"<p>Removes a list of phone numbers from a number set.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","numberset",":numberSetId",":phoneNumbers",""],"host":["{{url}}"],"query":[],"variable":[{"id":"decd58d7-8c3d-423b-8616-d1afb0cf20cd","description":{"content":"<p>Number Set ID to remove number from</p>\n","type":"text/plain"},"type":"any","value":"0e275620-52a2-11ea-810d-915e5688a0a1","key":"numberSetId"},{"id":"1ff1bfff-9d3e-47cf-b89f-0cf531c989ad","description":{"content":"<p>the number to remove in E164 format</p>\n","type":"text/plain"},"type":"any","value":"+19892001234","key":"phoneNumbers"}]}},"response":[{"id":"611f0c80-fe47-4118-b50c-6c2eddffc966","name":"Sample Request","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/v4/numberset/:numberSetId/:phoneNumbers/","host":["{{url}}"],"path":["v4","numberset",":numberSetId",":phoneNumbers",""],"variable":[{"key":"numberSetId","value":"0e275620-52a2-11ea-810d-915e5688a0a1","description":"Number Set ID to remove number from"},{"key":"phoneNumbers","value":"+19892001234","description":"the number to remove in E164 format"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"186","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\n            \"numberSetId\": \"0e275620-52a2-11ea-810d-915e5688a0a1\",\n            \"name\": \"test2\",\n            \"phoneNumbers\": []\n        }\n    ]\n}"}],"_postman_id":"29c75c61-6afc-4d1f-b082-28a44497c00e"}],"id":"c55a6a39-083f-4268-a6cd-f23ce05e5168","description":"<p>Number Sets are provided as a way to simplify management of phone numbers and api usage. Most of the management of numbers and number sets is best done through the UI.</p>\n<p>In general numbers in a number set all share the same configurations. Adjustments that are made to a number set are propagated to all the numbers in the number set. Similarly any numbers that are added to a number set are updated to share the same configuration of all the numbers in the number set.</p>\n<p>When being used by APIs, numbers in a number set are generally chosen at random to spread out the usage across the numbers in a number set. This allows for higher transactional volume since individual phone numbers are generally rate limited to approximately 1 qps and have max daily capacity limits.</p>\n<p>When specifying keyword actions the format is the exact match key that will trigger the action. Within the body of the definition is the action that will be performed. Currently the only supported action is triggering a campaign.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"accountSid\": \"6291c31a-e7e0-499f-b720-210e4aea3745\",\n  \"numberSetId\": \"be9c67a0-4d13-11ea-8a1f-6139612c1544\",\n  \"name\": \"My cool set\",\n  \"forwardNumber\": \"unused\",\n  \"callerIdName\": \"unused\",\n  \"voiceUrl\": \"www.mycompany.com/voice\",\n  \"voiceMethod\": \"POST\",\n  \"voiceFallbackUrl\": \"www.mycompany.com/voicefallback\",\n  \"voiceFallbackMethod\": \"GET\",\n  \"hangupCallbackUrl\": \"www.mycompany.com/hangup\",\n  \"hangupCallbackMethod\": \"POST\",\n  \"phoneNumbers\": [\"+12223334444\"],\n  \"smsUrl\": \"www.mycompany.com/sms\",\n  \"smsMethod\": \"POST\",\n  \"smsFallbackUrl\": \"www.mycompany.com/smsfallback\",\n  \"smsFallbackMethod\": \"GET\",\n  \"heartbeatUrl\": \"www.mycompany.com/heartbeat\",\n  \"heartbeatMethod\": \"POST\",\n  \"keywordActions\": {\n     \"myspecialkeyword\": {\n         \"campaignId\": \"d28165d0-1c6d-11ea-bd7b-6b2a3d952a97\"\n     }\n  }\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>name</strong>: Name of the number set</p>\n</li>\n<li><p><strong>forwardNumber</strong>: currently unused</p>\n</li>\n<li><p><strong>callerIdName</strong>: currently unused</p>\n</li>\n<li><p><strong>voiceUrl</strong>: Url to hit when an inbound voice call is received.</p>\n</li>\n<li><p><strong>phoneNumbers</strong>: Phone numbers associated with the number set. <strong>Only present when querying by numberSetId</strong>.</p>\n</li>\n<li><p><strong>voiceMethod</strong>: HTTP method to use in conjunction with the voiceUrl. Valid values GET and POST.</p>\n</li>\n<li><p><strong>voiceFallbackUrl</strong>: Url to use if voiceUrl fails.</p>\n</li>\n<li><p><strong>voiceFallbackMethod</strong>: HTTP method for voiceFallbackUrl.</p>\n</li>\n<li><p><strong>smsUrl</strong>: Url to hit when an inbound sms is received.</p>\n</li>\n<li><p><strong>smsMethod</strong>: HTTP method to use with smsUrl.</p>\n</li>\n<li><p><strong>smsFallbackUrl</strong>: Url to hit if smsUrl fails.</p>\n</li>\n<li><p><strong>smsFallbackMethod</strong>: HTTP method for smsFallbackUrl.</p>\n</li>\n<li><p><strong>heartbeatUrl</strong>: Url to hit for heartbeat messages.</p>\n</li>\n<li><p><strong>heartbeatMethod</strong>: HTTP method for heartbeatUrl.</p>\n</li>\n<li><p><strong>hangupCallbackUrl</strong>: Url to hit when a call is completed.</p>\n</li>\n<li><p><strong>hangupCallbackMethod</strong>: HTTP method for hangupCallbackUrl.</p>\n</li>\n<li><p><strong>keywordActions</strong>: A mapping of actions to take when a particular keyword is received. Currently this only supports starting a campaign.</p>\n</li>\n</ul>\n","_postman_id":"c55a6a39-083f-4268-a6cd-f23ce05e5168","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Saved Contact Queries","item":[{"name":"Get Saved Contact Queries","id":"e1814b1f-4aab-479c-a916-d3cd0cf8a6d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/query/contact","description":"<p>Returns back all of the saved contact queries in the system.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","query","contact"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e1814b1f-4aab-479c-a916-d3cd0cf8a6d3"},{"name":"Add Saved Query","id":"195101b6-f689-463d-a3c2-4aa3d0a559f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"queryName\": \"non-test contacts\",\n    \"query\": {\n        \"from\":0,\n        \"size\":5000,\n        \"statements\":[\n            {\"variable\":\"firstname\",\"operation\":\"exists\",\"negated\":false},\n            {\"variable\":\"firstname\",\"operation\":\"contains\",\"value\":\"test\",\"negated\":true}]}\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/query/contact","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","query","contact"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"195101b6-f689-463d-a3c2-4aa3d0a559f4"},{"name":"Update Saved Query","id":"d638d02c-dc8b-49aa-b88f-a371d55eedb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"queryName\": \"non-test contacts\",\n    \"query\": {\n        \"from\":0,\n        \"size\":5000,\n        \"statements\":[\n            {\"variable\":\"firstname\",\"operation\":\"exists\",\"negated\":false},\n            {\"variable\":\"firstname\",\"operation\":\"contains\",\"value\":\"test\",\"negated\":true}]}\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/query/contact/:queryId","description":"<p>Replaces the saved query with the given id.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","query","contact",":queryId"],"host":["{{url}}"],"query":[],"variable":[{"id":"1cb417f1-dacf-4914-8c8b-9892b8c99dbe","description":{"content":"<p>Id of the saved query</p>\n","type":"text/plain"},"type":"any","value":null,"key":"queryId"}]}},"response":[],"_postman_id":"d638d02c-dc8b-49aa-b88f-a371d55eedb5"}],"id":"36cd782e-869f-4a69-a80b-2429cd17911f","description":"<p>Saved queries are named queries that can be recalled at some later point in time.</p>\n<p>For use with Contacts, these saved queries can be used for list management or to quickly find specific sets of contacts for testing.</p>\n","_postman_id":"36cd782e-869f-4a69-a80b-2429cd17911f","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Scripts","item":[{"name":"Get Scripts","id":"cd06a569-1bc1-4805-a421-648be06b0618","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/scriptadmin","description":"<p>Retrieves all scripts saved in the system. This is only available to users with the script-admin permission.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","scriptadmin"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd06a569-1bc1-4805-a421-648be06b0618"},{"name":"Get Script by Id","id":"3b55aebd-9cdf-4fe3-ace1-fefd6e9ee75f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/scriptadmin/:scriptId","description":"<p>Retrieves a scripts by id. This is only available to users with the script-admin permission.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","scriptadmin",":scriptId"],"host":["{{url}}"],"query":[],"variable":[{"id":"adbcc0b9-b784-409f-acf5-e0cfd469bb12","type":"any","value":"","key":"scriptId"}]}},"response":[],"_postman_id":"3b55aebd-9cdf-4fe3-ace1-fefd6e9ee75f"},{"name":"Create Script","id":"dd9d8400-b6f7-41a9-a759-be4e0374fc05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"My First Script\",\n    \"externalURL\":null,\n    \"questions\": [\n        {\n            \"context\": \"Get the first name if unknown.\",\n            \"question\": \"What is your first name?\",\n            \"type\": \"string\",\n            \"variableName\": \"first_name\",\n            \"save\": true,\n            \"filters\": [\n                {\n                    \"negated\": true,\n                    \"variable\": \"first_name\",\n                    \"operation\": \"exists\"\n                }\n            ]\n        },\n        {\n            \"context\": \"Greet the customer and ask how to route\",\n            \"question\": \"Hi %%FIRST_NAME%%, what can I do to help you today?\"\n        },\n        {\n            \"question\": \"On a scale of 1 to 5 how would you rate this call?\",\n            \"type\": \"integer\",\n            \"variableName\": \"call_rating\",\n            \"save\": false,\n            \"minNumericValue\": 1,\n            \"maxNumericValue\": 5\n        }\n    ]\n}\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/scriptadmin","description":"<p>Saves a new script This is only available to users with the script-admin permission.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","scriptadmin"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd9d8400-b6f7-41a9-a759-be4e0374fc05"},{"name":"Edit Script","id":"f447c599-008a-4689-b3ae-f753f62b7dcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"My First Saved Script\",\n    \"externalURL\":null,\n    \"questions\": [\n        {\n            \"context\": \"Get the first name if unknown.\",\n            \"question\": \"What is your first name?\",\n            \"type\": \"string\",\n            \"variableName\": \"first_name\",\n            \"save\": true,\n            \"filters\": [\n                {\n                    \"negated\": true,\n                    \"variable\": \"first_name\",\n                    \"operation\": \"exists\"\n                }\n            ]\n        },\n        {\n            \"context\": \"Greet the customer and ask how to route\",\n            \"question\": \"Hi %%FIRST_NAME%%, what can I do to help you today?\"\n        },\n        {\n            \"question\": \"On a scale of 1 to 5 how would you rate this call?\",\n            \"type\": \"integer\",\n            \"variableName\": \"call_rating\",\n            \"save\": false,\n            \"minNumericValue\": 1,\n            \"maxNumericValue\": 5\n        }\n    ]\n}\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/scriptadmin/:scriptId","description":"<p>Updates an existing script This is only available to users with the script-admin permission.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","scriptadmin",":scriptId"],"host":["{{url}}"],"query":[],"variable":[{"id":"69df1ea3-a01a-425c-9dd9-fc8c82d38d0f","description":{"content":"<p>id of the script</p>\n","type":"text/plain"},"type":"any","value":"","key":"scriptId"}]}},"response":[],"_postman_id":"f447c599-008a-4689-b3ae-f753f62b7dcd"},{"name":"Delete script","id":"67b8e9e2-c71c-4225-8dd8-6e4449fe2344","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/v4/scriptadmin/:scriptId","description":"<p>Deletes a scripts by id. This is only available to users with the script-admin permission.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","scriptadmin",":scriptId"],"host":["{{url}}"],"query":[],"variable":[{"id":"243e511f-1ca9-4427-9e22-0d0acc2710d8","type":"any","value":"","key":"scriptId"}]}},"response":[],"_postman_id":"67b8e9e2-c71c-4225-8dd8-6e4449fe2344"},{"name":"Get Script for Contact","id":"a1c645c6-9d20-4a1e-a1bf-1b77ffb1f640","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/script/:scriptId?contactId","description":"<p>Gets a script for execution with data populated for the given contact.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","script",":scriptId"],"host":["{{url}}"],"query":[{"key":"contactId","value":null}],"variable":[{"id":"b6bd7094-addb-4847-b5a6-ac863bcd6bcd","type":"any","value":"","key":"scriptId"}]}},"response":[],"_postman_id":"a1c645c6-9d20-4a1e-a1bf-1b77ffb1f640"},{"name":"Get Script for Contact Copy","id":"7a3e0704-fbcc-424c-a226-fe188df42a9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"contactId\": \"1234c32b-e7e0-499f-b720-210e4aea3745\",\n    \"responses\": {\n        \"firstname\": \"John\",\n        \"lastname\": \"Doe\",\n        \"rating\": \"7\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/script/:scriptId","description":"<p>Executes a script and processes the responses from the script.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","script",":scriptId"],"host":["{{url}}"],"query":[],"variable":[{"id":"b6bd7094-addb-4847-b5a6-ac863bcd6bcd","type":"any","value":"","key":"scriptId"}]}},"response":[],"_postman_id":"7a3e0704-fbcc-424c-a226-fe188df42a9f"}],"id":"fd7769c9-f7fd-4154-88b4-3e04d6aaa874","description":"<p>Scripts allow for setting a series of questions or prompts that can be processed by an agent.</p>\n<p>There are two sets of endpoints for scripts. The first is intended to be used by an administrator to configure scripts, the second is intended to be used by an agent when talking with a contact.</p>\n<p>A script must contain either an externalUrl and/or one or more questions. An externalUrl is a url that should be opened in a new window when the script is presented. Each question that passes the optional filter will be shown when the script is presented.</p>\n<p>After a script is presented, it can be submitted. Any questions that are marked as being saved will be saved to the contact. Additionally the completion options will be evaluated based upon data contained on the contact and data included with the script submission to determine which script options should be presented to the agent upon submission.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"accountSid\": \"6291c31a-e7e0-499f-b720-210e4aea3745\",\n    \"scriptId\": \"be9c67a0-4d13-11ea-8a1f-6139612c1544\",\n    \"name\": \"My First Script\",\n    \"externalURL\":null,\n    \"questions\": [\n        {\n            \"context\": \"Get the first name if unknown.\",\n            \"question\": \"What is your first name?\",\n            \"type\": \"string\",\n            \"variableName\": \"first_name\",\n            \"save\": true,\n            \"filters\": [\n                {\n                    \"negated\": true,\n                    \"variable\": \"first_name\",\n                    \"operation\": \"exists\"\n                }\n            ]\n        },\n        {\n            \"context\": \"Greet the customer and ask how to route\",\n            \"question\": \"Hi %%FIRST_NAME%%, what can I do to help you today?\"\n        },\n        {\n            \"question\": \"On a scale of 1 to 5 how would you rate this call?\",\n            \"type\": \"integer\",\n            \"variableName\": \"call_rating\",\n            \"save\": false,\n            \"minNumericValue\": 1,\n            \"maxNumericValue\": 10\n        }\n    ],\n    \"completionOptions\": [\n      {\n        \"filters\": [\n          \"variable\": \"call_rating\",\n          \"operation\": \"greater_than\",\n          \"value\": 3\n        ],\n        \"type\": \"transfer\",\n        \"details\": {\n          \"transferNumber\": \"+17145551234\"\n        }\n      },\n      {\n        \"type\": \"campaign\",\n        \"details\": {\n          \"campaignId\": \"1234c31a-e7e0-499f-b720-210e4aea3745\"\n        }\n      }, \n      {\n        \"filters\": [\n          \"negated\": true\n          \"variable\": \"call_rating\",\n          \"operation\": \"greater_than\",\n          \"value\": 3\n        ],\n        \"type\": \"script\",\n        \"details\": {\n          \"scriptId\": \"1234c31a-e7e0-499f-b720-210e4aea3745\"\n        }\n      }\n    ]\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>accountSid</strong>: The account associated with this script.</p>\n</li>\n<li><p><strong>scriptId</strong>: Unique id for a script.</p>\n</li>\n<li><p><strong>name</strong>: Display name for the script.</p>\n</li>\n<li><p><strong>externalUrl</strong>: URL that will be opened when a script is being evaluated.</p>\n</li>\n<li><p><strong>questions</strong>: The list of questions that should be asked.</p>\n</li>\n<li><p><strong>completionOptions</strong>: Optional set of actions that an agent can choose from once the script has been evaluated.</p>\n</li>\n<li><p><strong>callbackId</strong>: Reference to a callback to be invoked when the script has completed.</p>\n</li>\n</ul>\n<p>Fields within a question:</p>\n<ul>\n<li><p><strong>context</strong>: Optional context for the question. Intended not to be read to the contact.</p>\n</li>\n<li><p><strong>question</strong>: Script to be read to the contact.</p>\n</li>\n<li><p><strong>type</strong>: Data type of the response for validation. Valid types: <em>string</em>, <em>integer</em>, <em>decimal</em>, <em>boolean</em>.</p>\n</li>\n<li><p><strong>variableName</strong>: Name of the variable the the response will be stored in.</p>\n</li>\n<li><p><strong>save</strong>: Boolean value to determine if the response should be stored onto the contact.</p>\n</li>\n<li><p><strong>options</strong>: List of option values suitable as keys.</p>\n</li>\n<li><p><strong>displayOptions</strong>: List of display values for items in the <em>options</em> list. Must be the same size as <em>options</em>.</p>\n</li>\n<li><p><strong>minNumericValue</strong>: Minimum valid value for a numeric value</p>\n</li>\n<li><p><strong>maxNumericValue</strong>: Maximum valid value for a numeric value</p>\n</li>\n<li><p><strong>filters</strong>: List of statements that must be true for the question to be shown. If no filters exist for a question it will be shown.</p>\n</li>\n</ul>\n<p>Note that script validation options are intended for frontend validation and are not validated on script submission.</p>\n<p>Fields within a completion option:</p>\n<ul>\n<li><p><strong>filters</strong>: List of statements that must be true for the option to be available. If no filters exist for a completion option it will always be presented.</p>\n</li>\n<li><p><strong>type</strong>: Action type that can be performed. Valid values: <em>transfer</em>, <em>campaign</em>, <em>hangup</em>, <em>script</em>.</p>\n</li>\n<li><p><strong>details</strong>: Key/value pairs that are associated with the completion option type. <em>transfer</em> requires a <em>transferNumber</em>. <em>campaign</em> requires a <em>campaignId.</em> <em>hangup</em> has no required options. <em>script</em> requires a <em>scriptId</em>.</p>\n</li>\n</ul>\n<p>Statements for filters have the following fields:</p>\n<ul>\n<li><p><strong>negated</strong>: Whether the statement evaluation should be flipped. Default false.</p>\n</li>\n<li><p><strong>variable</strong>: Name of the variable to be checked</p>\n</li>\n<li><p><strong>operation</strong>: Operation to be performed. Valid values: <em>equals</em>, <em>equals_one_of</em>, <em>contains</em>, <em>contains_one_of</em>, <em>begins_with</em>, <em>ends_with</em>, <em>less_than</em>, <em>greater_than</em>, <em>exists</em>.</p>\n</li>\n<li><p><strong>value</strong>: Value to check against. Required for everything other than <em>exists</em>.</p>\n</li>\n</ul>\n","_postman_id":"fd7769c9-f7fd-4154-88b4-3e04d6aaa874","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Shortcodes","item":[{"name":"Edit Shortcode","id":"e36b58dd-2825-4cd8-a882-0bf6714e16fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"friendlyName\": \"My dedicated short code\",\r\n  \"smsMethod\": \"GET\",\r\n  \"smsUrl\": \"http://my.host.com/sms\",\r\n  \"smsFallbackMethod\": \"POST\",\r\n  \"smsFallbackUrl\": \"http://my.host2.com/sms\"\r\n}"},"url":"{{url}}/v4/shortcode/:phoneNumber/","description":"<p>Edits editable fields on a shared short code.</p>\n<p>Editable fields:</p>\n<ul>\n<li><strong>friendlyName</strong></li>\n<li><strong>smsUrl</strong> and <strong>smsMethod</strong></li>\n<li><strong>smsFallbackUrl</strong> and <strong>smsFallbackMethod</strong></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","shortcode",":phoneNumber",""],"host":["{{url}}"],"query":[],"variable":[{"id":"9f1a8f71-a270-4b06-855f-fe001fb7d2bb","description":{"content":"<p>phoneNumber</p>\n","type":"text/plain"},"type":"any","value":"12345","key":"phoneNumber"}]}},"response":[{"id":"e59a0351-a668-4bba-abde-1ea7e3194b24","name":"Sample Request","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"friendlyName\": \"My dedicated short code\",\r\n  \"smsMethod\": \"GET\",\r\n  \"smsUrl\": \"http://my.host.com/sms\",\r\n  \"smsFallbackMethod\": \"POST\",\r\n  \"smsFallbackUrl\": \"http://my.host2.com/sms\"\r\n}"},"url":{"raw":"{{url}}/v4/shortcode/:phoneNumber/","host":["{{url}}"],"path":["v4","shortcode",":phoneNumber",""],"variable":[{"key":"phoneNumber","value":"12345","description":"phoneNumber"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"301","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"friendlyName\": \"My dedicated short code\",\n            \"phoneNumber\": \"12345\",\n            \"smsUrl\": \"http://my.host.com/sms\",\n            \"smsMethod\": \"GET\",\n            \"smsFallbackUrl\": \"http://my.host2.com/sms\",\n            \"smsFallbackMethod\": \"POST\",\n            \"numberType\": 4\n        }\n    ]\n}"}],"_postman_id":"e36b58dd-2825-4cd8-a882-0bf6714e16fe"}],"id":"8d557b1d-36e4-4a8f-8dca-3fa1a18c18dc","description":"<p>Shortcode Controller</p>\n","_postman_id":"8d557b1d-36e4-4a8f-8dca-3fa1a18c18dc","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"SMS","item":[{"name":"Send SMS","id":"57796607-3624-491a-8e19-4f3967e2d60d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from\": \"{{fromnumber}}\",\n  \"text\": \"Hello World!!\",\n  \"to\": \"{{tonumber}}\",\n  \"deliveryStatusEnabled\": \"true\",\n  \"messageStatusCallback\": \"{{callbackurl}}\",\n  \"metadata\": {\n      \"leadId\": \"myLeadId\",\n      \"customId\": \"myCustomId\"\n  }\n}"},"url":"{{url}}/v4/sms/","description":"<p>Sends an SMS message. This endpoint supports multiple different ways to send an SMS message with many fields that are mutually exclusive.</p>\n<p>For the destination phone number either the <strong>to</strong> field or the <strong>contactId</strong> field must be provided. If a <strong>contactId</strong> is provided, the destination number will be looked up from their contact information.</p>\n<p>For the source phone number either the <strong>from</strong> field or the <strong>numberSetId</strong> field must be provided. If the <strong>numberSetId</strong> field is used, a number will be chosen from the number set at random.</p>\n<p>For the message body either the <strong>text</strong> field or the <strong>smsTemplateId</strong> field must be provided. If using a template, the <strong>extData</strong> field will be used for any template replacements. If a contact is specified, the provided extData will be used preferentially over the data in the contact when expanding the template.</p>\n<p>If sending an MMS message, the <strong>mediaUrl</strong> property must be provided. In this case the body fields are optional.</p>\n<p>Setting the <strong>deliveryStatusEnabled</strong> flag (default false) will result in a DLR callback.</p>\n<p>Setting the <strong>messageStatusCallback</strong> will result in a POST of json data once the message is sent.</p>\n<p>The <strong>metadata</strong> parameter will allow for passing key/value pairs. If provided, these values will be available on the sms log record as well as any callbacks that are configured for sms.</p>\n<p>We recommend using number sets, contacts, and sms templates for API usage since these will result in fewer changes over time.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","sms",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"18a364d1-e4c1-4962-90b4-76def1ae222f","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from\": \"+19513561234\",\n  \"text\": \"Hello World!\",\n  \"to\": \"+19492221234\"\n}"},"url":"{{url}}/v4/sms/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"363","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"messageSid\": \"0ed34990-5ceb-11eb-b685-d322c09b20ac\",\n            \"to\": \"+19492221234\",\n            \"from\": \"+19513561234\",\n            \"text\": \"Hello World!\",\n            \"messageCount\": 1,\n            \"messageStatusMethod\": \"POST\",\n            \"messageStatusCallback\": null,\n            \"deliveryStatusEnabled\": null,\n            \"mediaUrl\": \"\",\n            \"toCC\": 1,\n            \"toCountry\": \"US\",\n            \"fromCC\": 1,\n            \"fromCountry\": \"US\",\n            \"scheduledTm\": 1611345020\n        }\n    ]\n}"}],"_postman_id":"57796607-3624-491a-8e19-4f3967e2d60d"}],"id":"18c353bf-61f6-44d1-be84-f6fe30e5dc59","description":"<p>Endpoints for sending SMS messages to a user.</p>\n","_postman_id":"18c353bf-61f6-44d1-be84-f6fe30e5dc59","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"SMS Templates","item":[{"name":"Get Templates","id":"eafbdd7e-b543-4438-8f81-4876f0f7f864","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/smstemplate/","description":"<p>Retrieves all sms templates on the account.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","smstemplate",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"ee9d1181-35ef-4487-9d3d-dba231c8b04c","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":"{{url}}/v4/smstemplate/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"3067","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 2,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"templateId\": \"5dabc780-3a34-11e9-b009-c14bf1e5a058\",\n            \"templateText\": \"liquid ice!\",\n            \"templateTitle\": \"Water On The Rocks\"\n        },\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"templateId\": \"b8418190-83ed-11ea-a38d-21ccd70bc11f\",\n            \"templateText\": \"Hi %FIRSTNAME% that you for your purchase in %PURCHASE_LOCATION% in %PURCHASE_YEAR%\",\n            \"templateTitle\": \"Example\",\n            \"lastUsed\": 1587509780545\n        }\n    ]\n}"}],"_postman_id":"eafbdd7e-b543-4438-8f81-4876f0f7f864"},{"name":"Add Template","id":"c9aa41cc-6b44-404b-b63b-9fc8c813f8e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"templateText\": \"Hello %%VARIABLENAME%% world!\",\r\n  \"templateTitle\": \"Hello world.\",\r\n  \"templateMediaUrl\": \"https://www.example.com/image.png\"\r\n}"},"url":"{{url}}/v4/smstemplate/","description":"<p>Adds a new sms template. Each template must have at least one of <em>templateText</em> and <em>templateMediaUrl</em>.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","smstemplate",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"11528f75-9098-4b44-932a-0168b81cff6c","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"templateText\": \"Hello %%VARIABLENAME%% world!\",\r\n  \"templateTitle\": \"Hello world.\",\r\n  \"templateMediaUrl\": \"https://www.example.com/image.png\"\r\n}"},"url":"{{url}}/v4/smstemplate/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"285","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"templateId\": \"3539d410-5f65-11eb-a080-51e25f7d5918\",\n            \"templateText\": \"Hello %%VARIABLENAME%% world!\",\n            \"templateTitle\": \"Hello world.\",\n            \"templateMediaUrl\": \"https://www.example.com/image.png\"\n        }\n    ]\n}"}],"_postman_id":"c9aa41cc-6b44-404b-b63b-9fc8c813f8e6"},{"name":"Edit Template","id":"a60d27d3-dce8-4dfb-9a79-24355f5d6dfe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"templateText\": \"Hello %%VARIABLENAME%% world. Now with updated template text\",\r\n  \"templateTitle\": \"Hello world.\"\r\n}"},"url":"{{url}}/v4/smstemplate/:templateId","description":"<p>editTemplate</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","smstemplate",":templateId"],"host":["{{url}}"],"query":[],"variable":[{"id":"6421509d-7b55-47a4-8428-fbe535486d48","description":{"content":"<p>template id</p>\n","type":"text/plain"},"type":"any","value":"3539d410-5f65-11eb-a080-51e25f7d5918","key":"templateId"}]}},"response":[{"id":"5255c7d1-4796-4da9-bc04-70831e86b1c4","name":"Sample Request","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"templateText\": \"Hello %%VARIABLENAME%% world. Now with updated template text\",\r\n  \"templateTitle\": \"Hello world.\"\r\n}"},"url":{"raw":"{{url}}/v4/smstemplate/:templateId","host":["{{url}}"],"path":["v4","smstemplate",":templateId"],"variable":[{"key":"templateId","value":"3539d410-5f65-11eb-a080-51e25f7d5918","description":"template id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"316","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"templateId\": \"3539d410-5f65-11eb-a080-51e25f7d5918\",\n            \"templateText\": \"Hello %%VARIABLENAME%% world. Now with updated template text\",\n            \"templateTitle\": \"Hello world.\",\n            \"templateMediaUrl\": \"https://www.example.com/image.png\"\n        }\n    ]\n}"}],"_postman_id":"a60d27d3-dce8-4dfb-9a79-24355f5d6dfe"},{"name":"Get Template","id":"6f814658-fb97-40a0-adb9-2d256b14c08d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/smstemplate/:templateId/","description":"<p>Get and sms template by id.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","smstemplate",":templateId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"88bd5d3d-fa29-4f85-8f3e-2bb373cefba5","description":{"content":"<p>template id to get</p>\n","type":"text/plain"},"type":"any","value":"3539d410-5f65-11eb-a080-51e25f7d5918","key":"templateId"}]}},"response":[{"id":"2cad0ed0-704c-4d8c-bf02-a41b9eda2799","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/smstemplate/:templateId/","host":["{{url}}"],"path":["v4","smstemplate",":templateId",""],"variable":[{"key":"templateId","value":"3539d410-5f65-11eb-a080-51e25f7d5918","description":"template id to get"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"316","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"templateId\": \"3539d410-5f65-11eb-a080-51e25f7d5918\",\n            \"templateText\": \"Hello %%VARIABLENAME%% world. Now with updated template text\",\n            \"templateTitle\": \"Hello world.\",\n            \"templateMediaUrl\": \"https://www.example.com/image.png\"\n        }\n    ]\n}"}],"_postman_id":"6f814658-fb97-40a0-adb9-2d256b14c08d"},{"name":"Archive Template","id":"0c484cdf-d505-45e7-972a-132fdea07ae5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/v4/smstemplate/:templateId","description":"<p>Archives an sms template. Like all other archive operations, there is no way to search for archived data.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","smstemplate",":templateId"],"host":["{{url}}"],"query":[],"variable":[{"id":"e47ab8e2-0c37-4810-9910-42ef2e69ba8f","description":{"content":"<p>template id to archive</p>\n","type":"text/plain"},"type":"any","value":"3539d410-5f65-11eb-a080-51e25f7d5918","key":"templateId"}]}},"response":[{"id":"c1a31770-7d74-4388-87bd-10ba7454c15d","name":"Sample Request","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/v4/smstemplate/:templateId","host":["{{url}}"],"path":["v4","smstemplate",":templateId"],"variable":[{"key":"templateId","value":"3539d410-5f65-11eb-a080-51e25f7d5918","description":"template id to archive"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"316","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"templateId\": \"3539d410-5f65-11eb-a080-51e25f7d5918\",\n            \"templateText\": \"Hello %%VARIABLENAME%% world. Now with updated template text\",\n            \"templateTitle\": \"Hello world.\",\n            \"templateMediaUrl\": \"https://www.example.com/image.png\"\n        }\n    ]\n}"}],"_postman_id":"0c484cdf-d505-45e7-972a-132fdea07ae5"},{"name":"Unarchive Template","id":"b4f4f604-6858-433a-a2d4-2c2664a7b807","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/v4/smstemplate/:templateId/unarchive","description":"<p>Restores a previously archived template.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","smstemplate",":templateId","unarchive"],"host":["{{url}}"],"query":[],"variable":[{"id":"812d71f1-213b-43f4-a4f2-6e5e09d94c00","description":{"content":"<p>templateId to Unarchive</p>\n","type":"text/plain"},"type":"any","value":"3539d410-5f65-11eb-a080-51e25f7d5918","key":"templateId"}]}},"response":[{"id":"54ee769a-68e9-4c3f-b655-19f9b4f9f586","name":"Sample Request","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/v4/smstemplate/:templateId/unarchive","host":["{{url}}"],"path":["v4","smstemplate",":templateId","unarchive"],"variable":[{"key":"templateId","value":"3539d410-5f65-11eb-a080-51e25f7d5918","description":"template Id to Unarchive"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"316","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"templateId\": \"3539d410-5f65-11eb-a080-51e25f7d5918\",\n            \"templateText\": \"Hello %%VARIABLENAME%% world. Now with updated template text\",\n            \"templateTitle\": \"Hello world.\",\n            \"templateMediaUrl\": \"https://www.example.com/image.png\"\n        }\n    ]\n}"}],"_postman_id":"b4f4f604-6858-433a-a2d4-2c2664a7b807"}],"id":"a98499b5-3dca-4a58-9f64-bdbbe0ebffda","description":"<p>Sms templates are a way to preconfigure a message and optionally have variables in the template replaced with provided variables.</p>\n<p>The content of a template may look like:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>This is your first templatized text from Ytel with no variables.\n</code></pre><p>or</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Hello %%VARIABLENAME%% world!\n</code></pre><p>or</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Hello %%VARIABLENAME|fallback text%% world!\n</code></pre><p>The naming convention for variables in templates is all UPPERCASE between two sets of <code>%%</code>.</p>\n<p>When the template is evaluated it will look for a variable named <code>variablename</code>. Apis that support sms templates will also take both a contact id and additional extData. If both are provided, the provided extData is examined first with a fallback to the contact's extData.</p>\n<p>If a <code>|</code> character is present immediately following the variable, the text following it up until the next set of <code>%%</code> characters will be used as fallback text in the event that the variable is not found.</p>\n<p>Example data structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\n  \"templateId\": \"8ebb25d0-bde9-11e9-a801-4bd9a183fd0d\",\n  \"templateText\": \"Hello %%VARIABLENAME%% world!\",\n  \"templateTitle\": \"Hello world\",\n  \"templateMediaUrl\": \"https://www.example.com/image.png\",\n  \"lastUsed\": \"2020-03-19 11:45:45\"\n}\n</code></pre><ul>\n<li><strong>accountSid</strong>: Account id</li>\n<li><strong>templateId</strong>: Generated unique id</li>\n<li><strong>templateText</strong>: Text of the template.</li>\n<li><strong>templateTitle</strong>: Friendly name for the template, not visible to the end consumer.</li>\n<li><strong>templateMediaUrl</strong>: Url used for an MMS message. This should be a link to an image file.</li>\n<li><strong>lastUsed</strong>: Last timestamp that a template was used by a campaign</li>\n</ul>\n","_postman_id":"a98499b5-3dca-4a58-9f64-bdbbe0ebffda","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Statistics","item":[{"name":"Aggregate Statistics","id":"b60004e3-8991-4ec3-b12a-4a753df45e28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/statistics/aggregate?startTimeMs=&endTimeMs=&minutesAggregate=","description":"<p>Returns back some basic aggregate statistics for events that have happened between the provided start and end times. If these are not provided it will default to the last hour with data aggregated into buckets by minute.</p>\n<p>Each bucket of results will contain the following:<br /><strong>timeMs</strong>: Beginning of the time period for the bucket in epoch millis</p>\n<p><strong>callsDialed</strong>: Number of phone calls that were initiated</p>\n<p><strong>outboundCallsStarted</strong>: Number of outbound calls that connected</p>\n<p><strong>inboundCallsStarted</strong>: Number of inbound calls that connected</p>\n<p><strong>callsCompleted</strong>: Number of calls that finished</p>\n<p><strong>inboundSms</strong>: Number of inbound sms messages received</p>\n<p><strong>outboundSms</strong>: Number of outbound sms messages sent</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","statistics","aggregate"],"host":["{{url}}"],"query":[{"description":{"content":"<p>Earliest time for data in epoch milliseconds</p>\n","type":"text/plain"},"key":"startTimeMs","value":""},{"description":{"content":"<p>Last time for data in epoch milliseconds</p>\n","type":"text/plain"},"key":"endTimeMs","value":""},{"description":{"content":"<p>Number of minutes to aggregate together</p>\n","type":"text/plain"},"key":"minutesAggregate","value":""}],"variable":[]}},"response":[],"_postman_id":"b60004e3-8991-4ec3-b12a-4a753df45e28"},{"name":"Hourly statistics","id":"762066d5-226d-4a90-8a81-6c40b02bd8d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/statistics/numbers/hourly?startTimeMs=&endTimeMs=&grouping=&phoneNumber=&campaignId=","description":"<p>This endpoint will return hourly statistics of usage grouped either by phone number or workflow with optional filtering to only see the results for a single phone number or workflow.</p>\n<p>Returned values:<br /><strong>campaignId</strong>: Associated workflow if grouping by workflow.</p>\n<p><strong>number</strong>: Phone number if grouping by phone number</p>\n<p><strong>hourMs</strong>: Start of the aggregated hour in epoch milli.</p>\n<p><strong>sms</strong>: Data object containing information about sms traffic.</p>\n<p><strong>sms.inbound</strong>: Number of sms inbound messages.</p>\n<p><strong>sms.outbound</strong>: Number of sms outbound messages.</p>\n<p><strong>call</strong>: Data object containing information about call data. These are separated by call type.</p>\n<p><strong>call.inbound</strong>: Number of inbound calls completed during this period of time.</p>\n<p><strong>call.outbound</strong>: Number of outbound calls completed during this period of time.</p>\n<p><strong>call.inboundDurationSeconds</strong>: Number of seconds of inbound calls completed during this period of time.</p>\n<p><strong>call.outboundDurationSeconds</strong>: Number of seconds of outbound calls completed during this period of time.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","statistics","numbers","hourly"],"host":["{{url}}"],"query":[{"description":{"content":"<p>Earliest time for data in epoch milliseconds</p>\n","type":"text/plain"},"key":"startTimeMs","value":""},{"description":{"content":"<p>Last time for data in epoch milliseconds</p>\n","type":"text/plain"},"key":"endTimeMs","value":""},{"description":{"content":"<p>How aggregates should be grouped. Valid values: phoneNumber or campaignId</p>\n","type":"text/plain"},"key":"grouping","value":""},{"description":{"content":"<p>Filter to only show results for a single phone number</p>\n","type":"text/plain"},"key":"phoneNumber","value":""},{"description":{"content":"<p>Filter to only show results for a single workflow</p>\n","type":"text/plain"},"key":"campaignId","value":""}],"variable":[]}},"response":[],"_postman_id":"762066d5-226d-4a90-8a81-6c40b02bd8d3"},{"name":"Communication aggregate statistics","id":"8ef4bb9d-4f5a-4b01-9cf2-dfb48fcfd0e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/statistics/communications/aggregate?startTimeMs=&endTimeMs=&grouping=&aggregatePeriod=&minSpend=&maxSpend=&minDuration=&maxDuration=&phoneNumbers=&webrtcClientIds=&numberSetId=&sortByHourMs","description":"<p>Returns aggregate statistics for the given period of time aggregated by the aggregation period.</p>\n<p>Returned values:<br /><strong>hourMs</strong>: Start of the time period in epoch millis.</p>\n<p><strong>number</strong>: Phone number for the aggregation period if aggregating by phone number.</p>\n<p><strong>webrtcUserId</strong>: Webrtc user's client id if aggregating by webrtc users.</p>\n<p><strong>numberSetId</strong>: Number set id if aggregating by number sets.</p>\n<p><strong>sms</strong>: Data about sms messages during the aggregation period.</p>\n<p><strong>sms.inbound</strong>: Number of inbound sms messages.</p>\n<p><strong>sms.outbound</strong>: Number of outbound sms messages.</p>\n<p><strong>sms.inboundCost</strong>: Cost of all inbound sms messages.</p>\n<p><strong>sms.outboundCost</strong>: Cost of all outbound sms messages.</p>\n<p><strong>sms.minMessageCount</strong>: Smallest size of a single billable sms message.</p>\n<p><strong>sms.maxMessageCount</strong>: Largest size of a single billable sms message.</p>\n<p><strong>sms.optOuts</strong>: Number of sms opt outs received.</p>\n<p><strong>call</strong>: Call data about calls completed during the aggregation period grouped by call type.</p>\n<p><strong>call.inboundCount</strong>: Number of inbound calls completed.</p>\n<p><strong>call.outboundCount</strong>: Number of outbound calls completed.</p>\n<p><strong>call.inboundCallDuration</strong>: Duration of all inbound calls in seconds.</p>\n<p><strong>call.outboundCallDuration</strong>: Duration of all outbound calls in seconds.</p>\n<p><strong>call.minInboundDuration</strong>: Minimum duration of inbound calls in seconds.</p>\n<p><strong>call.maxInboundDuration</strong>: Maximum duration of inbound calls in seconds.</p>\n<p><strong>call.minOutboundDuration</strong>: Minimum duration of outbound calls in seconds.</p>\n<p><strong>call.maxOutboundDuration</strong>: Maximum duration of outbound calls in seconds.</p>\n<p><strong>call.inboundCost</strong>: Total cost of all inbound calls.</p>\n<p><strong>call.outboundCost</strong>: Total cost of all outbound calls.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","statistics","communications","aggregate"],"host":["{{url}}"],"query":[{"description":{"content":"<p>Earliest time for data in epoch milliseconds</p>\n","type":"text/plain"},"key":"startTimeMs","value":""},{"description":{"content":"<p>Last time for data in epoch milliseconds</p>\n","type":"text/plain"},"key":"endTimeMs","value":""},{"description":{"content":"<p>How aggregates should be grouped. Valid values: phoneNumber, webrtcUser, numberSet, none. Default: none</p>\n","type":"text/plain"},"key":"grouping","value":""},{"description":{"content":"<p>Units of time that aggregation is done for. Valid values: hours, days, weeks. Default: hours</p>\n","type":"text/plain"},"key":"aggregatePeriod","value":""},{"description":{"content":"<p>Filter for minimum charged . Default: none (optional)</p>\n","type":"text/plain"},"key":"minSpend","value":""},{"description":{"content":"<p>Filter for maximum charged. Default: none (optional)</p>\n","type":"text/plain"},"key":"maxSpend","value":""},{"description":{"content":"<p>Filter for minimum duration of calls. Default: none (optional)</p>\n","type":"text/plain"},"key":"minDuration","value":""},{"description":{"content":"<p>Filter for maximum duration of calls. Default: none (optional)</p>\n","type":"text/plain"},"key":"maxDuration","value":""},{"description":{"content":"<p>Filter to only show results for the specified phone numbers. Comma separated list. Default: none (optional)</p>\n","type":"text/plain"},"key":"phoneNumbers","value":""},{"description":{"content":"<p>Filter to only show results for the specified webrtc users. Comma separated list. Default: none (optional)</p>\n","type":"text/plain"},"key":"webrtcClientIds","value":""},{"description":{"content":"<p>Filter to only show results for a single number set. Default: none (optional)</p>\n","type":"text/plain"},"key":"numberSetId","value":""},{"description":{"content":"<p>Sort direction based on startTimeMs, can be asc or desc</p>\n","type":"text/plain"},"key":"sortByHourMs","value":""}],"variable":[]}},"response":[],"_postman_id":"8ef4bb9d-4f5a-4b01-9cf2-dfb48fcfd0e9"}],"id":"d9a32a00-3774-4068-8654-49c60907be26","_postman_id":"d9a32a00-3774-4068-8654-49c60907be26","description":"","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Timezones","item":[{"name":"Get Timezones","id":"19b8bcdc-adf3-4fea-bbce-6394de4377e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/timezone/","description":"<p>Get all timezones.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","timezone",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"06dc2b7b-ea2c-4780-bdc1-8a53c48de916","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":"{{url}}/v4/timezone/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"904","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 11,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"timezoneId\": -20,\n            \"name\": \"EST/EDT\",\n            \"systemName\": \"EST5EDT\",\n            \"dst\": 1,\n            \"offset\": -5\n        },\n        {\n            \"timezoneId\": -28,\n            \"name\": \"MST/MDT\",\n            \"systemName\": \"MST7MDT\",\n            \"dst\": 1,\n            \"offset\": -7\n        },\n        {\n            \"timezoneId\": -32,\n            \"name\": \"PST/PDT\",\n            \"systemName\": \"PST8PDT\",\n            \"dst\": 1,\n            \"offset\": -8\n        },\n        {\n            \"timezoneId\": 0,\n            \"name\": \"UTC\",\n            \"systemName\": \"UTC\",\n            \"dst\": 0,\n            \"offset\": 0\n        },\n        {\n            \"timezoneId\": -33,\n            \"name\": \"PST\",\n            \"systemName\": \"Etc/GMT-8\",\n            \"dst\": 0,\n            \"offset\": -8\n        },\n        {\n            \"timezoneId\": -29,\n            \"name\": \"MST\",\n            \"systemName\": \"US/Arizona\",\n            \"dst\": 0,\n            \"offset\": -7\n        },\n        {\n            \"timezoneId\": -128,\n            \"name\": \"Unknown\",\n            \"systemName\": null,\n            \"dst\": 0,\n            \"offset\": 0\n        },\n        {\n            \"timezoneId\": -24,\n            \"name\": \"CST/CDT\",\n            \"systemName\": \"CST6CDT\",\n            \"dst\": 1,\n            \"offset\": -6\n        },\n        {\n            \"timezoneId\": -25,\n            \"name\": \"CST\",\n            \"systemName\": \"Etc/GMT-6\",\n            \"dst\": 0,\n            \"offset\": -6\n        },\n        {\n            \"timezoneId\": -130,\n            \"name\": \"ANY\",\n            \"systemName\": null,\n            \"dst\": 0,\n            \"offset\": 0\n        },\n        {\n            \"timezoneId\": -21,\n            \"name\": \"EST\",\n            \"systemName\": \"Jamaica\",\n            \"dst\": 0,\n            \"offset\": -5\n        }\n    ]\n}"}],"_postman_id":"19b8bcdc-adf3-4fea-bbce-6394de4377e2"},{"name":"Get Timezone","id":"f645da01-6dd0-4072-bd06-55a514cf25ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/timezone/:timezoneId/","description":"<p>Get one timezone.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","timezone",":timezoneId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"66f7ecfc-8a4d-4a52-a4a6-a0e92c025f98","description":{"content":"<p>timezoneId</p>\n","type":"text/plain"},"type":"any","value":"-28","key":"timezoneId"}]}},"response":[{"id":"68da0851-0289-48b8-8845-c3499413c3d0","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/timezone/:timezoneId/","host":["{{url}}"],"path":["v4","timezone",":timezoneId",""],"variable":[{"key":"timezoneId","value":"-28","description":"timezoneId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"127","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"timezoneId\": -28,\n            \"name\": \"MST/MDT\",\n            \"systemName\": \"MST7MDT\",\n            \"dst\": 1,\n            \"offset\": -7\n        }\n    ]\n}"}],"_postman_id":"f645da01-6dd0-4072-bd06-55a514cf25ae"}],"id":"5a2c0d7c-1a22-4e3c-bf5d-483f560e1ec1","description":"<p>Timezones are in many places referred to by their internal id. These endpoints allow for looking up the static set of timezone data used by Ytel.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"timezoneId\": -20,\n  \"name\": \"EST/EDT\",\n  \"systemName\": \"EST5EDT\",\n  \"dst\": 1,\n  \"offset\": -5.0\n}\n</code></pre><ul>\n<li><strong>timezoneId</strong>: Id of the timezone</li>\n<li><strong>name</strong>: Name of the timezone</li>\n<li><strong>systemName</strong>: Alternative name for the timezone</li>\n<li><strong>dst</strong>: 1 for observes daylight savings time, 0 for not observes daylight savings time</li>\n<li><strong>offset</strong>: Number of hours off UTC this timezone is.</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"da7d8b99-69b3-4085-a172-8f73cfd2e5e9"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"a67b457c-8933-473f-86c4-e5f022116456"}}],"_postman_id":"5a2c0d7c-1a22-4e3c-bf5d-483f560e1ec1","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"User Management","item":[{"name":"Get Users","id":"b2dbf111-280c-41fa-a93b-b04cf49deb72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"https://api.ytel.com/ams/v3/users/","description":"<p>Returns data about all the users on an account.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users",""],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2dbf111-280c-41fa-a93b-b04cf49deb72"},{"name":"Get User by Id","id":"4b62b5cf-68f3-419b-849e-9183b7ff60ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"https://api.ytel.com/ams/v3/users/:clientId","description":"<p>Returns data about all the specified user.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users",":clientId"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"c54b7b18-f51a-40fe-8ead-a4fde41964a1","description":{"content":"<p>UUID that is the user's id</p>\n","type":"text/plain"},"type":"any","value":null,"key":"clientId"}]}},"response":[],"_postman_id":"4b62b5cf-68f3-419b-849e-9183b7ff60ef"},{"name":"Get User by Username","id":"91065b8f-326f-4a26-b9ac-33c4e0bce43e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"https://api.ytel.com/ams/v3/users/usernames/:username","description":"<p>Returns data about all the specified user.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users","usernames",":username"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"da32136a-b41c-458d-a963-4b26854b1092","description":{"content":"<p>Username of a user</p>\n","type":"text/plain"},"type":"any","value":null,"key":"username"}]}},"response":[],"_postman_id":"91065b8f-326f-4a26-b9ac-33c4e0bce43e"},{"name":"Create User","id":"692c552d-e428-4c66-a029-4d9dbcb07ea7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"belongAcctId\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n  \"clientId\": null,\n  \"firstName\": \"Annie\",\n  \"lastName\": \"Apple\",\n  \"password\": \"&OneOneTwoTwo222\",\n  \"phone\": \"+1234567899\",\n  \"roles\": [\n    \"webrtc-agent\"\n  ],\n  \"status\": \"active\",\n  \"username\": \"example@dev.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/users","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"692c552d-e428-4c66-a029-4d9dbcb07ea7"},{"name":"Edit User","id":"e8902746-1ccb-423b-934f-ffc87e338202","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"firstName\": \"Annie\",\n  \"lastName\": \"Apple\",\n  \"phone\": \"+1234567899\",\n  \"roles\": [\n    \"webrtc-agent\"\n  ],\n  \"username\": \"example@dev.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/users/:clientId","description":"<p>Modifies basic details about a user. Any fields that are provided will replace existing data about the user and any field not passed will retain the old value. The <strong>roles</strong> field is the only exception and must be sent every time with the set of roles that the user should have.</p>\n<p>The following properties may not be modified using this endpoint:</p>\n<ul>\n<li>password</li>\n<li>status</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users",":clientId"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"1801e3c7-4edc-47f6-bb0b-64038936e01a","description":{"content":"<p>UUID for the user's clientId</p>\n","type":"text/plain"},"type":"any","value":null,"key":"clientId"}]}},"response":[],"_postman_id":"e8902746-1ccb-423b-934f-ffc87e338202"},{"name":"Edit User by Username","id":"3c7beb4e-132c-4e19-aadb-73e51406256c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"firstName\": \"Annie\",\n  \"lastName\": \"Apple\",\n  \"phone\": \"+1234567899\",\n  \"roles\": [\n    \"webrtc-agent\"\n  ],\n  \"username\": \"example@dev.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/users/usernames/:username","description":"<p>Modifies basic details about a user. Any fields that are provided will replace existing data about the user and any field not passed will retain the old value. The <strong>roles</strong> field is the only exception and must be sent every time with the set of roles that the user should have.</p>\n<p>The following properties may not be modified using this endpoint:</p>\n<ul>\n<li>password</li>\n<li>status</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users","usernames",":username"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"7de4ca87-37bb-43cd-80eb-123915602f4c","type":"any","value":null,"key":"username"}]}},"response":[],"_postman_id":"3c7beb4e-132c-4e19-aadb-73e51406256c"},{"name":"Change Password","id":"e2a9aa82-1764-40c7-a21f-583825c7a05e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"oldPassword\": \"badOldPassword\",\n    \"newPassword\": \"newGoodPassword\",\n    \"pincode\": 1234\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/users/password/update","description":"<p>Updates a user's password from <strong>oldPassword</strong> to <strong>newPassword</strong>. This will fail if the <strong>oldPassword</strong> does not match the user's current password.</p>\n<p>If 2FA is enabled for the user the <strong>pincode</strong> is required.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users","password","update"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2a9aa82-1764-40c7-a21f-583825c7a05e"},{"name":"Change User Status","id":"bdd7f7db-955d-4165-a66b-796dbf20fc33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"status\": \"active\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/users/status/:clientId","description":"<p>Changes a user's active state. Valid values: <em>active</em> and <em>inactive</em>.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users","status",":clientId"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"605fa672-9d5a-4057-9a0d-2d96f9d2ca8f","type":"any","value":null,"key":"clientId"}]}},"response":[],"_postman_id":"bdd7f7db-955d-4165-a66b-796dbf20fc33"},{"name":"Delete User","id":"976aea4f-7ea1-4939-bdc2-0949341eaecf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"https://api.ytel.com/ams/v3/users/:clientId","description":"<p>Deletes a user.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users",":clientId"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"de635fcc-b07d-4af9-bdd0-c9021bda082e","description":{"content":"<p>UUID for the user's clientId</p>\n","type":"text/plain"},"type":"any","value":null,"key":"clientId"}]}},"response":[],"_postman_id":"976aea4f-7ea1-4939-bdc2-0949341eaecf"},{"name":"Delete User by Username","id":"ececfb19-5d6b-440c-bbe6-eedbc918b39f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"https://api.ytel.com/ams/v3/users/usernames/:username","description":"<p>Deletes a user.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users","usernames",":username"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"52a8ac8c-694e-4205-bc56-5373596ecd4f","type":"any","value":null,"key":"username"}]}},"response":[],"_postman_id":"ececfb19-5d6b-440c-bbe6-eedbc918b39f"},{"name":"Get Webrtc User Statuses","id":"0e4ce9e6-859a-47e5-8dc9-4055c88a063b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"status\": \"available\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/users/webtrc/list","description":"<p>Get's the current status of all webphone users.</p>\n<p>Values returned:  </p>\n<ul>\n<li><strong>key.accountSid</strong>: accountId of the account</li>\n<li><strong>key.clientId</strong>: userId of the user</li>\n<li><strong>login</strong>: Time of login</li>\n<li><strong>status</strong>: User's status</li>\n<li><strong>callsid</strong>: UUID for the call that the user is in (if any).</li>\n<li><strong>confId</strong>: UUID for the conference that the user is in (if any).</li>\n<li><strong>lastAction</strong>: Time of the last action performed by the user.</li>\n<li><strong>username</strong>: Username of the webrtc user</li>\n<li><strong>number</strong>: Number assigned to the user</li>\n<li><strong>numberSetId</strong>: Numberset id that the user has been assigned.</li>\n<li><strong>serverIds</strong>: Ids of the server(s) that the user is connected to.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users","webtrc","list"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e4ce9e6-859a-47e5-8dc9-4055c88a063b"},{"name":"Get Webrtc User Status","id":"b2814e5c-e665-4201-a45f-3f9fcbcd62a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"status\": \"available\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/users/webtrc/:clientId","description":"<p>Get's the current status of a webphone user.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users","webtrc",":clientId"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"3caae871-a8b6-4a6b-b3b3-5cc694895cbe","description":{"content":"<p>UUID of the user</p>\n","type":"text/plain"},"type":"any","value":null,"key":"clientId"}]}},"response":[],"_postman_id":"b2814e5c-e665-4201-a45f-3f9fcbcd62a3"},{"name":"Change User Webphone status","id":"ea764d83-c739-4952-9677-381ba3bc733a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"status\": \"available\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/users/webtrc/:clientId","description":"<p>Changes a user's webphone status. Valid status values are <em>available</em> and <em>unavailable</em>.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users","webtrc",":clientId"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"07614396-5a9d-4af6-855f-0fee6c6ad21a","type":"any","value":null,"key":"clientId"}]}},"response":[],"_postman_id":"ea764d83-c739-4952-9677-381ba3bc733a"},{"name":"Initialize 2fa","id":"740fcf18-24cc-4692-9c57-ca151989f768","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/users/setup2fa","description":"<p>Sets the user to require two factor authentication.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users","setup2fa"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"740fcf18-24cc-4692-9c57-ca151989f768"},{"name":"Check 2fa","id":"57ace6e7-21be-4628-a21d-1c0c5b38941e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"pincode\": 1234,\n    \"password\": \"goodPassword\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/users/confirm2fa","description":"<p>Checks to see if two factor authentication is a match.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users","confirm2fa"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"57ace6e7-21be-4628-a21d-1c0c5b38941e"},{"name":"Clear 2fa","id":"bcb4a2ec-c78b-4b5e-b2f8-92e251bee6f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"pincode\": 1234,\n    \"password\": \"goodPassword\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/users/clear2fa","description":"<p>Removes 2fa authentication from an account. Requires that the pincode and password match.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users","clear2fa"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bcb4a2ec-c78b-4b5e-b2f8-92e251bee6f6"},{"name":"Clear 2fa by Id","id":"9a339c65-5692-4145-bd4b-1adb5dbcd3de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"pincode\": 1234,\n    \"password\": \"goodPassword\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/users/clear2fa/:clientId","description":"<p>Removes 2fa authentication from another user. The password needs to match the clearing user's password and the pincode must be supplied if the clearing user has 2fa enabled.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","users","clear2fa",":clientId"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"b4cb55b9-8792-4d82-903a-ef42e234d346","type":"any","value":null,"key":"clientId"}]}},"response":[],"_postman_id":"9a339c65-5692-4145-bd4b-1adb5dbcd3de"},{"name":"Get Roles","id":"b050f55d-cbeb-4d7d-b401-35668a388484","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.ytel.com/ams/v2/roles/all","description":"<p>Retrieves a list of all known roles that can be assigned to a user and the privileges that the role allows.</p>\n<p>Data from this endpoint very rarely changes and can safely be cached nearly indefinitely.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">    {\n        \"name\": \"contact-admin\",\n        \"displayName\": \"Contacts\",\n        \"privileges\": [\n            \"contact-update\",\n            \"contact-delete\",\n            \"contact-read-all\",\n            \"contact-read\"\n        ]\n    }\n\n</code></pre>\n<p>Fields:  </p>\n<ul>\n<li><em>name</em>: Internal name of the role</li>\n<li><em>displayName</em>: Displayable name of the role</li>\n<li><em>privileges</em>: List of privileges that the role has been granted.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v2","roles","all"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b050f55d-cbeb-4d7d-b401-35668a388484"},{"name":"Get Privileges","id":"2f497dd0-ad65-4d23-9c57-7d9f5b94e8fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.ytel.com/ams/v2/privileges/all","description":"<p>Retrieves a list of all known roles that can be assigned to a user and the privileges that the role allows. The user authentication tokens will include the privileges as a bitmask. Offsets from 0-31 will be in the first number, offsets 32-63 will be in the second, etc.</p>\n<p>Data from this endpoint very rarely changes and can safely be cached nearly indefinitely.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">    {\n        \"name\": \"acct-create\",\n        \"displayName\": \"Account Create\",\n        \"binaryPos\": 7,\n        \"symbolicNumber\": 128\n    }\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><em>name</em>: Internal name for the privilege</li>\n<li><em>displayName</em>: Name for the privilege that can be displayed in a UI</li>\n<li><em>binaryPos</em>: Bit offset for the privilege</li>\n<li><em>symbolicNumber</em>: Computed value from <em>binaryPos</em>. Formula is 1 &lt;&lt; (_binaryPos_2).</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v2","privileges","all"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f497dd0-ad65-4d23-9c57-7d9f5b94e8fc"}],"id":"d57865bd-0a38-45c2-b121-1af89f7bece7","description":"<p>User management apis allow for the management of users that are allowed to login to Ytel systems.</p>\n<p><strong>Account and User management endpoints require a token generated by the Authentication endpoint. A long lived token generated in the UI will not work with these endpoints.</strong></p>\n<p>Users are uniquely identified by a <strong>clientId</strong>, which in many other systems would be the user id.</p>\n<p>Fields present on a user:</p>\n<ul>\n<li><strong>clientId</strong>: Unique identifier for a user</li>\n<li><strong>username</strong>: Login name for a user. This must be an email address and cannot be changed.</li>\n<li><strong>password</strong>: User password. This value is never returned by any api and stored in an encrypted state.</li>\n<li><strong>roles</strong>: Set of roles that a user has been granted. These dictate which api permissions a user is allowed to access.</li>\n<li><strong>userStatus</strong>: Active status of the user. Valid values: <em>active</em> and <em>inactive</em>.</li>\n<li><strong>belongAcctId</strong>: Account that this user belongs to.</li>\n<li><strong>parentAcctId</strong>: Parent account that is responsible for this account. If this user does not belong to a subaccount it will be the same as <strong>belongAcctId</strong>.</li>\n<li><strong>firstName</strong>: First name of a user</li>\n<li><strong>lastName</strong>: Last name of a user</li>\n<li><strong>displayName</strong>: Display name for the user.</li>\n<li><strong>emailAddress</strong>: Email address of a user for notifications. This will typically be the same as username, but may be changed.</li>\n<li><strong>phone</strong>: Phone number of the user.</li>\n<li><strong>source</strong>: Source for where the user came from.</li>\n<li><strong>avatar</strong>: Image for the user in the UI.</li>\n<li><strong>webrtcNumber</strong>: Webphone number assigned to this user.</li>\n<li><strong>ucaasExtension</strong>: extension for ucaas.</li>\n<li><strong>ucaasCode</strong>: code for ucaas.</li>\n<li><strong>twoFactorEnabled</strong>: Whether two factor authentication is enabled for this user.</li>\n</ul>\n","_postman_id":"d57865bd-0a38-45c2-b121-1af89f7bece7","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Webhooks","item":[{"name":"Get All Webhook Common Configurations","id":"dd193f20-e53a-4dbe-ae0c-b7268774711e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/callback/authentication/","description":"<p>Retrieves all common configuration data.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","callback","authentication",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"0f24fb46-b32a-47cc-a902-4898c9793336","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":"{{url}}/v4/callback/authentication/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"236","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"id\": \"355c2d70-408a-11eb-bf2c-419a0ebdd348\",\n            \"name\": \"Test Config\",\n            \"description\": \"Configuration for talking to example server\"\n        }\n    ]\n}"}],"_postman_id":"dd193f20-e53a-4dbe-ae0c-b7268774711e"},{"name":"Add Webook Common Configuration","id":"df2f9e3d-1eec-4483-a574-1c136b72ee4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Example config\",\n  \"description\": \"Configuration for talking to example server\",\n  \"headers\": {\n      \"Content-type\": \"application/json\",\n      \"MyCustomHeader\": \"my custom header value\"\n  },\n  \"authHeaders\": {\n      \"Authentication\": \"Bearer %ACCESS_TOKEN%\",\n      \"Username\": \"server username\",\n      \"Password\": \"server password\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/callback/authentication/","description":"<p>Creates a new common configuration</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","callback","authentication",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"469872b9-cfc9-4afb-b74e-3e51ae8c8cfb","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Example config\",\n  \"description\": \"Configuration for talking to example server\",\n  \"headers\": {\n      \"Content-type\": \"application/json\",\n      \"MyCustomHeader\": \"my custom header value\"\n  },\n  \"authHeaders\": {\n      \"Authentication\": \"Bearer %%ACCESS_TOKEN%%\",\n      \"Username\": \"server username\",\n      \"Password\": \"server password\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/callback/authentication/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"596","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"id\": \"b41770b0-5503-11eb-9a67-59113aa55d66\",\n            \"name\": \"Example config\",\n            \"description\": \"Configuration for talking to example server\",\n            \"headers\": {\n                \"Content-type\": \"application/json\",\n                \"MyCustomHeader\": \"my custom header value\"\n            },\n            \"authHeaders\": {\n                \"Username\": \"cKBtqNSKlIs1pXKL4nm57bsKgzp8/T0MNEru5r7OLBlTq/9e3pmrpd3gLVos+Bec\",\n                \"Authentication\": \"mIsiMqzN8AczEy/Ci7jo8xHksC5vtN+q+AdeSwvPs6W5IDPhu7z0L3KZLU8Um5zRH9Ub86aS/q/1TV5KG5ayDQ==\",\n                \"Password\": \"tF/02yi79HH9z4FTb3KQ2bwmBfuzK1nHaO+wlkbFz9F889rN0SFZQW7BSmKUIzL5\"\n            }\n        }\n    ]\n}"}],"_postman_id":"df2f9e3d-1eec-4483-a574-1c136b72ee4a"},{"name":"Edit Webhook Common Configuration","id":"46e007d0-019c-4496-a129-a2fcaa2cc75d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Example config\",\n  \"description\": \"Configuration for talking to example server\",\n  \"headers\": {\n      \"Content-type\": \"application/json\",\n      \"MyCustomHeader\": \"my custom header value\"\n  },\n  \"authHeaders\": {\n      \"Authentication\": \"Bearer %ACCESS_TOKEN%\",\n      \"Username\": \"server username\",\n      \"Password\": \"server password\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/callback/authentication/:callbackAuthId/","description":"<p>Edits a common configuration</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","callback","authentication",":callbackAuthId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"7ec8e75c-3023-4e77-a9bf-428243a6dcad","type":"any","value":"b41770b0-5503-11eb-9a67-59113aa55d66","key":"callbackAuthId"}]}},"response":[{"id":"0922b5e8-8798-45dc-ad6e-08dbafa3d7ef","name":"Sample Request","originalRequest":{"method":"PUT","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Example config\",\n  \"description\": \"Configuration for talking to example server\",\n  \"headers\": {\n      \"Content-type\": \"application/json\",\n      \"MyCustomHeader\": \"my custom header value\"\n  },\n  \"authHeaders\": {\n      \"Authentication\": \"Bearer %%ACCESS_TOKEN%%\",\n      \"Username\": \"server username\",\n      \"Password\": \"server password\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/v4/callback/authentication/:callbackAuthId/","host":["{{url}}"],"path":["v4","callback","authentication",":callbackAuthId",""],"variable":[{"key":"callbackAuthId","value":"b41770b0-5503-11eb-9a67-59113aa55d66"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"596","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"id\": \"b41770b0-5503-11eb-9a67-59113aa55d66\",\n            \"name\": \"Example config\",\n            \"description\": \"Configuration for talking to example server\",\n            \"headers\": {\n                \"Content-type\": \"application/json\",\n                \"MyCustomHeader\": \"my custom header value\"\n            },\n            \"authHeaders\": {\n                \"Username\": \"da/RnR8AHMOhJQ/zJdmKGzpDHDb6cczk/AWhd7j/p7q6HcdWspPEEh3+jNJ3uo9s\",\n                \"Authentication\": \"WPdfm62AVZHioHru39380eJNOoWbH86ZqV6Uv/Q0LlvIHJQt1n4YSvGj0QuSLYiQUNW6ZglLRoirDWtZys9PRQ==\",\n                \"Password\": \"fut4AWqUdggTxhVQGyj2eZtfpcG6+gQCDFqYQVK7F+ceFvZx5Tk9kX4OdCDJtwbR\"\n            }\n        }\n    ]\n}"}],"_postman_id":"46e007d0-019c-4496-a129-a2fcaa2cc75d"},{"name":"Get Webhook Common Configuration by Id","id":"90384871-9b9c-45b0-9815-2c5fae8f0784","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/callback/authentication/:callbackAuthId/","description":"<p>Edits a common configuration</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","callback","authentication",":callbackAuthId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"257d0498-d6f7-4f3a-a6fd-b1597c6002ca","type":"any","value":"b41770b0-5503-11eb-9a67-59113aa55d66","key":"callbackAuthId"}]}},"response":[{"id":"2d39328e-b5cb-403b-bf92-cb0af150a016","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/callback/authentication/:callbackAuthId/","host":["{{url}}"],"path":["v4","callback","authentication",":callbackAuthId",""],"variable":[{"key":"callbackAuthId","value":"b41770b0-5503-11eb-9a67-59113aa55d66"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"596","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"id\": \"b41770b0-5503-11eb-9a67-59113aa55d66\",\n            \"name\": \"Example config\",\n            \"description\": \"Configuration for talking to example server\",\n            \"headers\": {\n                \"Content-type\": \"application/json\",\n                \"MyCustomHeader\": \"my custom header value\"\n            },\n            \"authHeaders\": {\n                \"Username\": \"da/RnR8AHMOhJQ/zJdmKGzpDHDb6cczk/AWhd7j/p7q6HcdWspPEEh3+jNJ3uo9s\",\n                \"Authentication\": \"WPdfm62AVZHioHru39380eJNOoWbH86ZqV6Uv/Q0LlvIHJQt1n4YSvGj0QuSLYiQUNW6ZglLRoirDWtZys9PRQ==\",\n                \"Password\": \"fut4AWqUdggTxhVQGyj2eZtfpcG6+gQCDFqYQVK7F+ceFvZx5Tk9kX4OdCDJtwbR\"\n            }\n        }\n    ]\n}"}],"_postman_id":"90384871-9b9c-45b0-9815-2c5fae8f0784"},{"name":"Delete Webhook Common Configuration by Id","id":"ba30e455-aeb8-40d2-a6e9-38a7b0d610e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/callback/authentication/:callbackAuthId/","description":"<p>Edits a common configuration</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","callback","authentication",":callbackAuthId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"73820f64-fd92-4975-8a53-51d3005b4aaa","type":"any","value":"b41770b0-5503-11eb-9a67-59113aa55d66","key":"callbackAuthId"}]}},"response":[{"id":"e18e725a-b5dd-45e9-a3e2-64920493296d","name":"Sample Request","originalRequest":{"method":"DELETE","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/callback/authentication/:callbackAuthId/","host":["{{url}}"],"path":["v4","callback","authentication",":callbackAuthId",""],"variable":[{"key":"callbackAuthId","value":"b41770b0-5503-11eb-9a67-59113aa55d66"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"596","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"id\": \"b41770b0-5503-11eb-9a67-59113aa55d66\",\n            \"name\": \"Example config\",\n            \"description\": \"Configuration for talking to example server\",\n            \"headers\": {\n                \"Content-type\": \"application/json\",\n                \"MyCustomHeader\": \"my custom header value\"\n            },\n            \"authHeaders\": {\n                \"Username\": \"da/RnR8AHMOhJQ/zJdmKGzpDHDb6cczk/AWhd7j/p7q6HcdWspPEEh3+jNJ3uo9s\",\n                \"Authentication\": \"WPdfm62AVZHioHru39380eJNOoWbH86ZqV6Uv/Q0LlvIHJQt1n4YSvGj0QuSLYiQUNW6ZglLRoirDWtZys9PRQ==\",\n                \"Password\": \"fut4AWqUdggTxhVQGyj2eZtfpcG6+gQCDFqYQVK7F+ceFvZx5Tk9kX4OdCDJtwbR\"\n            }\n        }\n    ]\n}"}],"_postman_id":"ba30e455-aeb8-40d2-a6e9-38a7b0d610e0"},{"name":"Get All Webhook Configurations","id":"a502ec2b-dfc3-400d-ba50-120fe398fac3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/callback/configuration/","description":"<p>Gets all callback configurations.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","callback","configuration",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"3a8e430c-3b52-4424-a49c-89d7c59710c3","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":"{{url}}/v4/callback/configuration/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"594","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"eventType\": \"campaign_workflow_callback\",\n            \"id\": \"b490c8e0-24ff-11eb-9ddd-a51d8cc0e304\",\n            \"name\": \"WF Test\",\n            \"callbackServerConfigId\": \"355c2d70-408a-11eb-bf2c-419a0ebdd348\",\n            \"enabled\": true,\n            \"headers\": {\n                \"Content-Type\": \"application/json\"\n            },\n            \"url\": \"https://yourdomain.com\",\n            \"httpMethod\": \"POST\",\n            \"contentType\": \"JSON\",\n            \"bodyTemplate\": \"{\\n\\\"phone\\\":\\\"%PHONENUMBER1%\\\"\\n}\",\n            \"successPath\": \"HTTP_OK\",\n            \"successValue\": \"\"\n        }\n    ]\n}"}],"_postman_id":"a502ec2b-dfc3-400d-ba50-120fe398fac3"},{"name":"Add Webhook Configuration","id":"f0cac343-3e5b-4011-8269-34651cca7aa7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"eventType\": \"campaign_workflow_callback\",\n    \"name\": \"server callback\",\n    \"enabled\": true,\n    \"headers\": {\n        \"Content-Type\": \"application/json\"\n    },\n    \"url\": \"https://www.example.com/callbackUrl\",\n    \"httpMethod\": \"POST\",\n    \"contentType\": \"JSON\",\n    \"bodyTemplate\": \"{ \\\"user\\\": \\\"%CONTACT_ID%\\\" }\",\n    \"successPath\": \"$.status\",\n    \"successValue\": \"true\",\n    \"responseMapping\": {\n        \"firstname\": \"$.user.firstname\",\n        \"lastname\": \"$.user.lastname\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/callback/configuration/","description":"<p>Creates a new callback configuration.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","callback","configuration",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f9d28123-f9b2-40ef-a107-7df3c18c7e3e","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"eventType\": \"campaign_workflow_callback\",\n    \"name\": \"server callback\",\n    \"enabled\": true,\n    \"headers\": {\n        \"Content-Type\": \"application/json\"\n    },\n    \"url\": \"https://www.example.com/callbackUrl\",\n    \"httpMethod\": \"POST\",\n    \"contentType\": \"JSON\",\n    \"bodyTemplate\": \"{ \\\"user\\\": \\\"%%CONTACT_ID%%\\\" }\",\n    \"successPath\": \"$.status\",\n    \"successValue\": \"true\",\n    \"responseMapping\": {\n        \"firstname\": \"$.user.firstname\",\n        \"lastname\": \"$.user.lastname\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/callback/configuration/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"533","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"eventType\": \"campaign_workflow_callback\",\n            \"id\": \"93c9d4f0-55bd-11eb-8a79-2920273e2f39\",\n            \"name\": \"server callback\",\n            \"enabled\": true,\n            \"headers\": {\n                \"Content-Type\": \"application/json\"\n            },\n            \"url\": \"https://www.example.com/callbackUrl\",\n            \"httpMethod\": \"POST\",\n            \"contentType\": \"JSON\",\n            \"bodyTemplate\": \"{ \\\"user\\\": \\\"%CONTACT_ID%\\\" }\",\n            \"responseMapping\": {\n                \"firstname\": \"$.user.firstname\",\n                \"lastname\": \"$.user.lastname\"\n            },\n            \"successPath\": \"$.status\",\n            \"successValue\": \"true\"\n        }\n    ]\n}"}],"_postman_id":"f0cac343-3e5b-4011-8269-34651cca7aa7"},{"name":"Edit Webhook Configuration","id":"792d7294-75dd-4388-b813-12dba1ed6cb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"eventType\": \"campaign_workflow_callback\",\n    \"name\": \"server callback\",\n    \"enabled\": true,\n    \"headers\": {\n        \"Content-Type\": \"application/json\"\n    },\n    \"url\": \"https://www.example.com/callbackUrl\",\n    \"httpMethod\": \"POST\",\n    \"contentType\": \"JSON\",\n    \"bodyTemplate\": \"{ \\\"user\\\": \\\"%CONTACT_ID%\\\" }\",\n    \"successPath\": \"$.status\",\n    \"successValue\": \"true\",\n    \"responseMapping\": {\n        \"firstname\": \"$.user.firstname\",\n        \"lastname\": \"$.user.lastname\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/callback/configuration/:callbackId/","description":"<p>Edits an existing callback configuration.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","callback","configuration",":callbackId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"ff66bf19-a65c-466b-b2b7-53bfc62c3ed6","type":"any","value":"93c9d4f0-55bd-11eb-8a79-2920273e2f39","key":"callbackId"}]}},"response":[{"id":"34a61900-37a1-4acc-bf06-4ef8cb39d1b7","name":"Sample Request","originalRequest":{"method":"PUT","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"eventType\": \"campaign_workflow_callback\",\n    \"name\": \"server callback\",\n    \"enabled\": true,\n    \"headers\": {\n        \"Content-Type\": \"application/json\"\n    },\n    \"url\": \"https://www.example.com/callbackUrl\",\n    \"httpMethod\": \"POST\",\n    \"contentType\": \"JSON\",\n    \"bodyTemplate\": \"{ \\\"user\\\": \\\"%%CONTACT_ID%%\\\" }\",\n    \"successPath\": \"$.status\",\n    \"successValue\": \"true\",\n    \"responseMapping\": {\n        \"firstname\": \"$.user.firstname\",\n        \"lastname\": \"$.user.lastname\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/v4/callback/configuration/:callbackId/","host":["{{url}}"],"path":["v4","callback","configuration",":callbackId",""],"variable":[{"key":"callbackId","value":"93c9d4f0-55bd-11eb-8a79-2920273e2f39"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"533","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"eventType\": \"campaign_workflow_callback\",\n            \"id\": \"93c9d4f0-55bd-11eb-8a79-2920273e2f39\",\n            \"name\": \"server callback\",\n            \"enabled\": true,\n            \"headers\": {\n                \"Content-Type\": \"application/json\"\n            },\n            \"url\": \"https://www.example.com/callbackUrl\",\n            \"httpMethod\": \"POST\",\n            \"contentType\": \"JSON\",\n            \"bodyTemplate\": \"{ \\\"user\\\": \\\"%CONTACT_ID%\\\" }\",\n            \"responseMapping\": {\n                \"firstname\": \"$.user.firstname\",\n                \"lastname\": \"$.user.lastname\"\n            },\n            \"successPath\": \"$.status\",\n            \"successValue\": \"true\"\n        }\n    ]\n}"}],"_postman_id":"792d7294-75dd-4388-b813-12dba1ed6cb8"},{"name":"Get Webhook Configuration by Id","id":"4a5133e6-1b6d-47d6-9ba3-92a283831f78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/callback/configuration/:callbackId/","description":"<p>Edits an existing callback configuration.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","callback","configuration",":callbackId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"03e8733d-7d11-46fc-8291-bdd2884a0f23","type":"any","value":"93c9d4f0-55bd-11eb-8a79-2920273e2f39","key":"callbackId"}]}},"response":[{"id":"d2c3f264-030c-453a-92c8-5c5e11a1cc90","name":"Get Webhook Configuration by Id","originalRequest":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/callback/configuration/:callbackId/","host":["{{url}}"],"path":["v4","callback","configuration",":callbackId",""],"variable":[{"key":"callbackId","value":"93c9d4f0-55bd-11eb-8a79-2920273e2f39"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"533","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"eventType\": \"campaign_workflow_callback\",\n            \"id\": \"93c9d4f0-55bd-11eb-8a79-2920273e2f39\",\n            \"name\": \"server callback\",\n            \"enabled\": true,\n            \"headers\": {\n                \"Content-Type\": \"application/json\"\n            },\n            \"url\": \"https://www.example.com/callbackUrl\",\n            \"httpMethod\": \"POST\",\n            \"contentType\": \"JSON\",\n            \"bodyTemplate\": \"{ \\\"user\\\": \\\"%%CONTACT_ID%%\\\" }\",\n            \"responseMapping\": {\n                \"firstname\": \"$.user.firstname\",\n                \"lastname\": \"$.user.lastname\"\n            },\n            \"successPath\": \"$.status\",\n            \"successValue\": \"true\"\n        }\n    ]\n}"}],"_postman_id":"4a5133e6-1b6d-47d6-9ba3-92a283831f78"},{"name":"Delete Webhook Configuration","id":"a1a58259-3198-4716-bdd8-1032d4eee80c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/callback/configuration/:callbackId/","description":"<p>Edits an existing callback configuration.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","callback","configuration",":callbackId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"6ff8a86d-cc5b-4d1e-aec4-856f319be837","type":"any","value":"93c9d4f0-55bd-11eb-8a79-2920273e2f39","key":"callbackId"}]}},"response":[{"id":"3b1a2ccd-9c81-4af9-b58b-1931197a2851","name":"Sample Request","originalRequest":{"method":"DELETE","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/callback/configuration/:callbackId/","host":["{{url}}"],"path":["v4","callback","configuration",":callbackId",""],"variable":[{"key":"callbackId","value":"93c9d4f0-55bd-11eb-8a79-2920273e2f39"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"533","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"eventType\": \"campaign_workflow_callback\",\n            \"id\": \"93c9d4f0-55bd-11eb-8a79-2920273e2f39\",\n            \"name\": \"server callback\",\n            \"enabled\": true,\n            \"headers\": {\n                \"Content-Type\": \"application/json\"\n            },\n            \"url\": \"https://www.example.com/callbackUrl\",\n            \"httpMethod\": \"POST\",\n            \"contentType\": \"JSON\",\n            \"bodyTemplate\": \"{ \\\"user\\\": \\\"%%CONTACT_ID%%\\\" }\",\n            \"responseMapping\": {\n                \"firstname\": \"$.user.firstname\",\n                \"lastname\": \"$.user.lastname\"\n            },\n            \"successPath\": \"$.status\",\n            \"successValue\": \"true\"\n        }\n    ]\n}"}],"_postman_id":"a1a58259-3198-4716-bdd8-1032d4eee80c"}],"id":"53844db5-83b3-4635-88d9-e65c74d89778","description":"<p>Callbacks allow for Ytel to make HTTP requests to specified URLs when various events happen. Callbacks are composed of two components, a common configuration which can be shared among multiple callbacks and the actual configuration for the callback.</p>\n<p>The common configuration stores common header information that can be stored either in plain text or encrypted. An example payload for a new configuration:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"Example config\",\n  \"description\": \"Configuration for talking to example server\",\n  \"headers\": {\n      \"Content-type\": \"application/json\",\n      \"MyCustomHeader\": \"my custom header value\"\n  },\n  \"authHeaders\": {\n      \"Authentication\": \"Bearer %%ACCESS_TOKEN%%\",\n      \"Username\": \"server username\",\n      \"Password\": \"server password\",\n  }\n}\n\n</code></pre>\n<ul>\n<li><p><strong>name</strong>: Name of the common configuration</p>\n</li>\n<li><p><strong>description</strong>: Description of the common configuration</p>\n</li>\n<li><p><strong>headers</strong>: A key/value map of headers that will be sent as part of the callback.</p>\n</li>\n<li><p><strong>authHeaders</strong>: A key/value map of headers that will be sent as part of the callback. The values for this will be encrypted and are only decrypted when preparing to send a callback.</p>\n</li>\n</ul>\n<p>All headers support Ytel's standard variable replacement.</p>\n<p>For a callback to be set up it takes a payload that looks like:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"eventType\": \"campaign_workflow_callback\",\n    \"name\": \"server callback\",\n    \"callbackServerConfigId\": \"deafbeef-1234-5555-abba-cab0fade4de7\",\n    \"enabled\": true,\n    \"headers\": {\n        \"Content-Type\": \"application/json\"\n    },\n    \"url\": \"https://www.example.com/callbackUrl\",\n    \"httpMethod\": \"POST\",\n    \"contentType\": \"JSON\",\n    \"bodyTemplate\": \"{ \\\"user\\\": \\\"%%CONTACT_ID%%\\\" }\",\n    \"successPath\": \"$.status\",\n    \"successValue\": \"true\",\n    \"responseMapping\": {\n        \"firstname\": \"$.user.firstname\",\n        \"lastname\": \"$.user.lastname\"\n    }\n}\n\n</code></pre>\n<ul>\n<li><p><strong>eventType</strong>: The name of the event type that this callback is configured for.</p>\n</li>\n<li><p><strong>name</strong>: Friendly name for this callback.</p>\n</li>\n<li><p><strong>callbackServerConfigId</strong>: Id of the common configuration.</p>\n</li>\n<li><p><strong>enabled</strong>: True/False for whether this callback is enabled.</p>\n</li>\n<li><p><strong>headers</strong>: Additional headers or overrides of values in the common configuration.</p>\n</li>\n<li><p><strong>url</strong>: Url that will be hit when the callback is executed.</p>\n</li>\n<li><p><strong>httpMethod</strong>: HTTP method that will be used for the callback. Supports GET, POST, PUT, DELETE.</p>\n</li>\n<li><p><strong>bodyTemplate</strong>: The body that will be sent for POST or PUT requests.</p>\n</li>\n<li><p><strong>successPath</strong>: This should either be <code>HTTP_OK</code> for requests where a 2xx response is sufficient to mark success or the JsonPath path for where the success status is in the response.</p>\n</li>\n<li><p><strong>successValue</strong>: If <code>successPath</code> is not <code>HTTP_OK</code>, this is the expected value.</p>\n</li>\n<li><p><strong>responseMapping</strong>: key/value pairs of variables that should be set from the response. This is only relevant for some callbacks where data needs to be recorded from the callback.</p>\n</li>\n</ul>\n<p>Headers and bodyTemplates both support the standard Ytel variable replacement.</p>\n<p>Currently supported <strong>event_type</strong>s are <code>call_completion</code>, <code>call_dialing</code>, <code>call_in_progress</code>, <code>call_threshold</code>, <code>call_threshold_reset</code>, <code>campaign_status</code>, <code>campaign_workflow_callback</code>, <code>conference_start</code>, <code>conference_end</code>, <code>conference_guest_join</code>, <code>conference_guest_exit</code>, <code>dispo_status</code>, <code>inroute</code>, <code>live_list_status</code>, <code>recording</code>, <code>sms_inbound</code>, <code>sms_outbound</code>, <code>voicemail</code> and <code>webrtc_user_status</code>. The <code>campaign_workflow_callback</code> is a configuration for use with the callback node in a workflow. The others will trigger a callback every time an event of that type happens. Documentation for the <code>campaign_workflow_callback</code> is covered in the node descriptions for workflows as it is slightly different from the others. The <code>inroute</code> callback is triggered with each event that checks for inbound routing and is documented in the inbound routing section.</p>\n<p>All of the callbacks support a variable replacement for a variable called <code>payload</code>. This is raw JSON for the event and is non-configurable. Alternatively the individual fields can be accessed via variable replacement.</p>\n<p><strong>call_in_progress</strong>, <strong>call_dialing</strong>, and <strong>call_completion</strong> share the following variables: <em>callsid</em>, <em>apiversion</em>, <em>billcountry</em>, <em>calltype</em>, <em>callednumber</em>, <em>callernumber</em>, <em>callduration</em>, <em>createdtime</em>, <em>direction</em>, <em>duration</em>, <em>endtime</em>, <em>fromcountry</em>, <em>parentcallsid</em>, <em>serverip</em>, <em>status</em>, <em>tocountry</em>, <em>tocountrycode</em>, <em>rvmcallerid</em>, <em>voicemailstatus</em>, <em>webrtcusername</em>, <em>hangupby</em>, <em>dtmfentered</em>, and <em>metadata</em>. Additionally the key-value pairs from <em>metadata</em> are provided in the form <em>metadata.key</em>. Not all of these values are applicable for each of the events. <strong>call_dialing</strong> is fired when a call is dialed. <strong>call_in_progress</strong> is fired when there is an answer from the called number. <strong>call_completion</strong> is fired when a call is finished.</p>\n<p><strong>call_threshold</strong> and <strong>call_threshold_reset</strong> share the following variables: <em>phonenumber</em>, <em>thresholdmet</em>, and <em>resettimems</em>. The <em>thresholdmet</em> will be set to true if the configured threshold has been met for a phone number and will be false when the reset time has been reached. The <em>resettimems</em> is the time that the threshold reset message will be sent.</p>\n<p><strong>campaign_status</strong> supports the following variables: <em>accountsid</em>, <em>contactid</em>, <em>campaignid</em>, <em>campaignrunid</em>, <em>campaignpath</em>, <em>workflowversion</em>, <em>nextnode</em>, <em>status</em>, <em>lastphone</em>, <em>failurereason</em>. This event is fired anytime a workflow pauses or completes.</p>\n<p><strong>conference_start</strong>, <strong>conference_end</strong>, <strong>conference_guest_join</strong>, and <strong>conference_guest_exit</strong> share the following variables: <em>confid</em>, <em>callsid</em>, <em>guesttoken</em>, <em>shceduleid</em>, <em>serverip</em>, and <em>miniconf</em>.</p>\n<p><strong>dispo_status</strong> supports the following variables: <em>callsid</em>, <em>smssid</em>, <em>to</em>, <em>from</em>, <em>dispositions</em>, and <em>dispotimems</em>.</p>\n<p><strong>live_list_status</strong> supports the following variables: <em>accountsid</em>, <em>clientid</em>, <em>listname</em>, <em>length</em>, and <em>status</em>. This event is fired when a list is created, deleted, or the last entry in a list is removed.</p>\n<p><strong>recording</strong> supports the following variables:<br /><em>accountsid</em>, <em>callsid</em>, <em>recordingid</em>, <em>apiversion</em>, <em>actionperformed</em>, _actionmethod,_<em>duration</em>, <em>fileuploadstatus</em>, <em>isactive</em>, <em>isrequest</em>, <em>recordingdate</em>, <em>recordingdirection</em>, <em>recordingurl</em>, <em>request</em>, <em>response</em>, <em>webrtcusername</em>, <em>calltype</em>, <em>parentcalltype</em>, <em>parentcallsid</em>. This event is fired anytime a call is recorded.</p>\n<p><strong>sms_inbound</strong> supports the following variables: <em>to</em>, <em>from</em>, <em>body</em>. This event is fired any time an sms is received.</p>\n<p><strong>sms_outbound</strong> supports the following variables: <em>accountsid</em>, <em>smsid</em>, <em>to</em>, <em>from</em>, <em>body</em>, <em>messagecount</em>, <em>mediaurl</em>, <em>messagecount</em>, <em>tocountry</em>, <em>fromcountry</em>, <em>metadata</em>. This event is fired any time an sms is sent.</p>\n<p><strong>voicemail</strong> supports the following variables: <em>recordingid</em>, <em>accountsid</em>, <em>phonenumber</em>, <em>fromnumber</em>, <em>seconds</em>, <em>url</em>, <em>transcription</em>, <em>status</em>, and <em>metadata</em>. This event is fired anytime a voicemail is recorded.</p>\n<p><strong>webrtc_user_status</strong> supports the following variables: <em>clientid</em>, <em>accountsid</em>, <em>status</em>. This event is fired when a user logs into the webphone, logs out of the webphone, or manually changes their status.</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"2f0df69f-6565-481d-892c-4b21f1e11a1d"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"aa6fc57f-4851-46d5-b089-dd9893d6b5cb"}}],"_postman_id":"53844db5-83b3-4635-88d9-e65c74d89778","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Workflows","item":[{"name":"Campaigns","item":[{"name":"Get Campaigns","id":"fd887959-708f-4eb2-b6b2-551ef7939e44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/campaign/","description":"<p>Retrieve all Campaigns</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"a644c993-0a10-49f0-a39e-6cfe24d47247","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":"{{url}}/v4/campaign/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"6778","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"e8861980-5165-11e9-b3b4-55cdbe9b37b5\",\n            \"campaignName\": \"New campaign name\",\n            \"lastUsed\": 1586465105183,\n            \"sends\": 0,\n            \"clicks\": 0,\n            \"replies\": 0,\n            \"optOuts\": 0,\n            \"cost\": 0,\n            \"numberSet\": \"9c3080b2-9ba7-4d76-b362-60ec4c9bdeec\",\n            \"timezoneProtectionType\": 1,\n            \"timezoneProtectionTimezoneFixed\": -20,\n            \"timezoneProtectionStartTime\": \"08:00\",\n            \"timezoneProtectionEndTime\": \"22:00\",\n            \"workflowDisplayType\": 1,\n            \"workflowVersion\": 4\n        }\n    ]\n}"}],"_postman_id":"fd887959-708f-4eb2-b6b2-551ef7939e44"},{"name":"Add Campaign","id":"ad19efcf-55e9-49fe-a9f5-cdbe26e06ce7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"campaignName\": \"My First Campaign Test\",\r\n  \"numberSet\": \"9c3080b2-9ba7-4d76-b362-60ec4c9bdeec\",\r\n  \"timezoneProtectionType\": 0,\r\n  \"workflowDisplayType\": 1\r\n}"},"url":"{{url}}/v4/campaign/","description":"<p>Adds a new campaign.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"40043324-6c39-4191-8099-f135817b7fa4","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"campaignName\": \"My First Campaign Test\",\r\n  \"numberSet\": \"9c3080b2-9ba7-4d76-b362-60ec4c9bdeec\",\r\n  \"timezoneProtectionType\": 0,\r\n  \"workflowDisplayType\": 1\r\n}"},"url":"{{url}}/v4/campaign/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"370","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"165c6fa0-59c8-11eb-a080-51e25f7d5918\",\n            \"campaignName\": \"My First Campaign Test\",\n            \"sends\": 0,\n            \"clicks\": 0,\n            \"replies\": 0,\n            \"optOuts\": 0,\n            \"cost\": 0,\n            \"numberSet\": \"9c3080b2-9ba7-4d76-b362-60ec4c9bdeec\",\n            \"timezoneProtectionType\": 0,\n            \"workflowDisplayType\": 1,\n            \"workflowVersion\": 0\n        }\n    ]\n}"}],"_postman_id":"ad19efcf-55e9-49fe-a9f5-cdbe26e06ce7"},{"name":"Get Report","id":"adfd05fb-256d-46d0-a5f3-f7e122c992ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/campaign/report/?startDate=2021-01-15&endDate=2021-01-16&grouping=date","description":"<p>Gets a report of the performance and cost of one or more campaigns. This endpoint is intended to be used by the UI.</p>\n<p>Parameters:</p>\n<ul>\n<li><strong>campaignId</strong>: Optional. Get a report for a single campaign. If not present will retrieve all.</li>\n<li><strong>templateId</strong>: Optional. Get a report for all campaigns that use the given sms template.</li>\n<li><strong>startDate</strong>: Optional. Format is YYYY-MM-DD. Will default to 30 days prior to <em>endDate</em> or the last 30 days if not present.</li>\n<li><strong>endDate</strong>: Optional. Format is YYYY-MM-DD. Will default to 30 days after <em>startDate</em>* or today if it isn't present.</li>\n<li><strong>grouping</strong>: Optional. How to group results. Options: campaign, template, date. If not present will return 1 row with all results.</li>\n</ul>\n<p>Response:</p>\n<ul>\n<li><strong>campaignId</strong>: Id of the campaign</li>\n<li><strong>campaignName</strong>: Name of the campaign</li>\n<li><strong>sends</strong>: Number of times this campaign generated a billable outbound event. A campaign that sends multiple messages will over time will have multiple entries.</li>\n<li><strong>replies</strong>: Number of inbound messages to this campaign.</li>\n<li><strong>optOuts</strong>: Number of DNC requests this campaign has received.</li>\n<li><strong>cost</strong>: Base cost of the campaign. Does not include surcharge.</li>\n<li><strong>surcharge</strong>: Surcharges that resulted from this campaign.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign","report",""],"host":["{{url}}"],"query":[{"description":{"content":"<p>startDate in format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"startDate","value":"2021-01-15"},{"description":{"content":"<p>endDate in format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"endDate","value":"2021-01-16"},{"description":{"content":"<p>comma separated list of date, campaign, and/or template</p>\n","type":"text/plain"},"key":"grouping","value":"date"}],"variable":[]}},"response":[{"id":"45543cb9-5a60-4a83-9e41-2312882a6684","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/campaign/report/?startDate=2021-01-15&endDate=2021-01-16&grouping=date","host":["{{url}}"],"path":["v4","campaign","report",""],"query":[{"key":"startDate","value":"2021-01-15","description":"startDate in format YYYY-MM-DD"},{"key":"endDate","value":"2021-01-16","description":"endDate in format YYYY-MM-DD"},{"key":"grouping","value":"date","description":"comma separated list of date, campaign, and/or template"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"214","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 2,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"sends\": 287,\n            \"replies\": 0,\n            \"optOuts\": 0,\n            \"cost\": 0,\n            \"surcharge\": 0,\n            \"day\": \"2021-01-15\"\n        },\n        {\n            \"sends\": 287,\n            \"replies\": 0,\n            \"optOuts\": 0,\n            \"cost\": 0,\n            \"surcharge\": 0,\n            \"day\": \"2021-01-16\"\n        }\n    ]\n}"}],"_postman_id":"adfd05fb-256d-46d0-a5f3-f7e122c992ba"},{"name":"Edit Campaign","id":"c5413480-4a39-44ab-b936-d6e5de2f1596","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"campaignName\": \"New campaign name\",\r\n  \"numberSet\": \"9c3080b2-9ba7-4d76-b362-60ec4c9bdeec\",\r\n  \"timezoneProtectionEndTime\": \"22:00:00\",\r\n  \"timezoneProtectionStartTime\": \"08:00:00\",\r\n  \"timezoneProtectionTimezoneFixed\": -20,\r\n  \"timezoneProtectionType\": 1,\r\n  \"workflowDisplayType\": 1\r\n}"},"url":"{{url}}/v4/campaign/:campaignId/","description":"<p>Edit a campaign.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"7d567076-5daf-4fb2-88df-0419b3e9bae9","description":{"content":"<p>The campaignId to edit</p>\n","type":"text/plain"},"type":"any","value":"165c6fa0-59c8-11eb-a080-51e25f7d5918","key":"campaignId"}]}},"response":[{"id":"3e678909-90aa-49a1-aaaf-f14ec84d144f","name":"Sample Request","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"campaignName\": \"New campaign name\",\r\n  \"numberSet\": \"9c3080b2-9ba7-4d76-b362-60ec4c9bdeec\",\r\n  \"timezoneProtectionEndTime\": \"22:00:00\",\r\n  \"timezoneProtectionStartTime\": \"08:00:00\",\r\n  \"timezoneProtectionTimezoneFixed\": -20,\r\n  \"timezoneProtectionType\": 1,\r\n  \"workflowDisplayType\": 1\r\n}"},"url":{"raw":"{{url}}/v4/campaign/:campaignId/","host":["{{url}}"],"path":["v4","campaign",":campaignId",""],"variable":[{"key":"campaignId","value":"165c6fa0-59c8-11eb-a080-51e25f7d5918","description":"The campaignId to edit"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"477","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"165c6fa0-59c8-11eb-a080-51e25f7d5918\",\n            \"campaignName\": \"New campaign name\",\n            \"sends\": 0,\n            \"clicks\": 0,\n            \"replies\": 0,\n            \"optOuts\": 0,\n            \"cost\": 0,\n            \"numberSet\": \"9c3080b2-9ba7-4d76-b362-60ec4c9bdeec\",\n            \"timezoneProtectionType\": 1,\n            \"timezoneProtectionTimezoneFixed\": -20,\n            \"timezoneProtectionStartTime\": \"08:00\",\n            \"timezoneProtectionEndTime\": \"22:00\",\n            \"workflowDisplayType\": 1,\n            \"workflowVersion\": 0\n        }\n    ]\n}"}],"_postman_id":"c5413480-4a39-44ab-b936-d6e5de2f1596"},{"name":"Get Campaign","id":"5ffa8394-5f48-4d7c-b98b-cacfacf27a82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/campaign/:campaignId/","description":"<p>Get the details of a single campaign.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId",""],"host":["{{url}}"],"query":[],"variable":[{"id":"e1702760-36fe-412a-bf94-e0db404504b7","description":{"content":"<p>The campaignId to view</p>\n","type":"text/plain"},"type":"any","value":"165c6fa0-59c8-11eb-a080-51e25f7d5918","key":"campaignId"}]}},"response":[{"id":"c8ca3b62-c5b5-415b-9261-e7663ff79aba","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/campaign/:campaignId/","host":["{{url}}"],"path":["v4","campaign",":campaignId",""],"variable":[{"key":"campaignId","value":"165c6fa0-59c8-11eb-a080-51e25f7d5918","description":"The campaignId to view"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"477","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"165c6fa0-59c8-11eb-a080-51e25f7d5918\",\n            \"campaignName\": \"New campaign name\",\n            \"sends\": 0,\n            \"clicks\": 0,\n            \"replies\": 0,\n            \"optOuts\": 0,\n            \"cost\": 0,\n            \"numberSet\": \"9c3080b2-9ba7-4d76-b362-60ec4c9bdeec\",\n            \"timezoneProtectionType\": 1,\n            \"timezoneProtectionTimezoneFixed\": -20,\n            \"timezoneProtectionStartTime\": \"08:00\",\n            \"timezoneProtectionEndTime\": \"22:00\",\n            \"workflowDisplayType\": 1,\n            \"workflowVersion\": 0\n        }\n    ]\n}"}],"_postman_id":"5ffa8394-5f48-4d7c-b98b-cacfacf27a82"},{"name":"Send Campaign","id":"8300eb8f-9d69-4a02-880b-4c1670b660ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"campaignExtData\": {\r\n    \"variablename\": \"campaign send\"\r\n  },\r\n  \"contactId\": \"da54d682-4d48-4f13-a4ee-07c850c05bb8\"\r\n}"},"url":"{{url}}/v4/campaign/:campaignId/send","description":"<p>Triggers the sending of a campaign. When sending a campaign it will either start the campaign immediately or queue it for sending if it is currently outside of timezone protection. Be aware that queueing multiple messages to send at the very beginning of timezone protection may run into queueing issues if there is insufficient capacity.</p>\n<p>We recommend sending based on a <strong>contactId</strong>. If not provided, then a Contact will be created based upon the <strong>extData</strong> provided.</p>\n<p>In the event of a conflict either the behavior depends on the <strong>conflictMode</strong> (default OVERWRITE) to either REJECT, OVERWRITE, or APPEND extData and keys for the existing contact.</p>\n<p>If creating a new contact <strong>extData</strong> is required. <strong>keys</strong> is highly recommended, though some of these will be generated from <strong>extData</strong>. Refer to the Contacts section for more details.</p>\n<p>For data that is relevant only to the campaign <strong>campaignExtData</strong> should be used. When evaluating a campaign, the campaignExtData is used preferentially over the extData stored on the contact.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","send"],"host":["{{url}}"],"query":[],"variable":[{"id":"6925051b-f48f-46e1-b6cc-99f0ce03c372","description":{"content":"<p>campaignId</p>\n","type":"text/plain"},"type":"any","value":"165c6fa0-59c8-11eb-a080-51e25f7d5918","key":"campaignId"}]}},"response":[{"id":"1acb1e3a-54d1-4fa9-a6db-a38367cb30da","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"campaignExtData\": {\r\n    \"variablename\": \"campaign send\"\r\n  },\r\n  \"contactId\": \"da54d682-4d48-4f13-a4ee-07c850c05bb8\"\r\n}"},"url":{"raw":"{{url}}/v4/campaign/:campaignId/send","host":["{{url}}"],"path":["v4","campaign",":campaignId","send"],"variable":[{"key":"campaignId","value":"165c6fa0-59c8-11eb-a080-51e25f7d5918","description":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"266","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"165c6fa0-59c8-11eb-a080-51e25f7d5918\",\n            \"version\": 0,\n            \"contactId\": \"da54d682-4d48-4f13-a4ee-07c850c05bb8\",\n            \"campaignExtData\": {\n                \"variablename\": \"campaign send\"\n            }\n        }\n    ]\n}"}],"_postman_id":"8300eb8f-9d69-4a02-880b-4c1670b660ac"},{"name":"Archive Campaign","id":"73d6260a-53db-4208-8bb8-d08b1eb7a070","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/v4/campaign/:campaignId","description":"<p>Archives a campaign. Like other archive endpoints, there is no way to search for archived items.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId"],"host":["{{url}}"],"query":[],"variable":[{"id":"676464de-f527-4eb7-a8f3-fd2ff49f8a33","description":{"content":"<p>The campaignId you want to archive</p>\n","type":"text/plain"},"type":"any","value":"165c6fa0-59c8-11eb-a080-51e25f7d5918","key":"campaignId"}]}},"response":[{"id":"8af4ddcb-31d8-4943-af08-61862f837517","name":"Sample Request","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/v4/campaign/:campaignId","host":["{{url}}"],"path":["v4","campaign",":campaignId"],"variable":[{"key":"campaignId","value":"165c6fa0-59c8-11eb-a080-51e25f7d5918","description":"The campaignId you want to archive"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"477","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"165c6fa0-59c8-11eb-a080-51e25f7d5918\",\n            \"campaignName\": \"New campaign name\",\n            \"sends\": 0,\n            \"clicks\": 0,\n            \"replies\": 0,\n            \"optOuts\": 0,\n            \"cost\": 0,\n            \"numberSet\": \"9c3080b2-9ba7-4d76-b362-60ec4c9bdeec\",\n            \"timezoneProtectionType\": 1,\n            \"timezoneProtectionTimezoneFixed\": -20,\n            \"timezoneProtectionStartTime\": \"08:00\",\n            \"timezoneProtectionEndTime\": \"22:00\",\n            \"workflowDisplayType\": 1,\n            \"workflowVersion\": 0\n        }\n    ]\n}"}],"_postman_id":"73d6260a-53db-4208-8bb8-d08b1eb7a070"},{"name":"Unarchive Campaign","id":"e05cc7b6-0144-4e10-bc04-06bb2af509da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/v4/campaign/:campaignId/unarchive","description":"<p>Takes a campaign that had previously been archived and moves it back into usage.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","unarchive"],"host":["{{url}}"],"query":[],"variable":[{"id":"7b1664bc-6db2-4124-a698-5340b85825ed","description":{"content":"<p>The campaignId you would like to Unarchive</p>\n","type":"text/plain"},"type":"any","value":"165c6fa0-59c8-11eb-a080-51e25f7d5918","key":"campaignId"}]}},"response":[{"id":"922c1481-d4a7-42a4-8dbb-be94c65da94b","name":"Sample Request","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/v4/campaign/:campaignId/unarchive","host":["{{url}}"],"path":["v4","campaign",":campaignId","unarchive"],"variable":[{"key":"campaignId","value":"165c6fa0-59c8-11eb-a080-51e25f7d5918","description":"The campaignId you would like to Unarchive"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"477","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\n            \"campaignId\": \"165c6fa0-59c8-11eb-a080-51e25f7d5918\",\n            \"campaignName\": \"New campaign name\",\n            \"sends\": 0,\n            \"clicks\": 0,\n            \"replies\": 0,\n            \"optOuts\": 0,\n            \"cost\": 0,\n            \"numberSet\": \"9c3080b2-9ba7-4d76-b362-60ec4c9bdeec\",\n            \"timezoneProtectionType\": 1,\n            \"timezoneProtectionTimezoneFixed\": -20,\n            \"timezoneProtectionStartTime\": \"08:00\",\n            \"timezoneProtectionEndTime\": \"22:00\",\n            \"workflowDisplayType\": 1,\n            \"workflowVersion\": 0\n        }\n    ]\n}"}],"_postman_id":"e05cc7b6-0144-4e10-bc04-06bb2af509da"}],"id":"a2cbaf5c-7c98-4298-acda-461d392af289","description":"<p>Campaigns are a way to configure a series of configurable actions. With the exception of the send endpoint, all of these apis are best used through the UI.</p>\n<p>Campaigns are composed of two different sets of endpoints. The endpoints in this section are related to high level configuration data for the campaign, whereas the endpoints in the workflow section are related to the workflow associated with a campaign.</p>\n<p>Fields on a campaign:</p>\n<ul>\n<li><strong>campaignId</strong>: Internal id of the campaign. This value is a generated UUID.</li>\n<li><strong>campaignName</strong>: User visible name of the campaign.</li>\n<li><strong>lastUsed</strong>: Last time the campaign sent a message. Milliseconds since the epoch</li>\n<li><strong>numberSet</strong>: UUID of the number set for the campaign</li>\n<li><strong>timezoneProtectionType</strong>: O for none, 1 for recipient, 2 for fixed</li>\n<li><strong>timezoneProtectionFixed</strong>: timezoneId from Timezones endpoint. Required if <strong>timezoneProtectionType</strong> is 2</li>\n<li><strong>timezoneProtectionStartTime</strong>: Earliest time that a campaign can be sent. Format HH:MM:SS.</li>\n<li><strong>timezoneProtectionEndTime</strong>: Latest time that a campaign can be sent. Format HH:MM:SS.</li>\n<li><strong>workflowDisplayType</strong>: Key to the Ytel UI as to how to display the campaign</li>\n<li><strong>workflowVersion</strong>: Latest version of the workflow. This monotonically increases with each new version of the workflow associated with the campaign.</li>\n</ul>\n<p>Deprecated and unused fields:</p>\n<ul>\n<li>sends, clicks, replies, optOuts, cost</li>\n</ul>\n<p>Timezone protection will prevent sending of campaigns outside of the configured timezone protection times. For example if timezone protection is set between 9am and 5pm of the recipient's timezone then a campaign start that is received at 8:30am will be delayed until 9am.</p>\n","_postman_id":"a2cbaf5c-7c98-4298-acda-461d392af289","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Get Workflow","id":"ad56d0d2-03d2-45a1-850c-c00512556c8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/campaign/:campaignId/workflow","description":"<p>Retrieves the most recent workflow version for a campaign</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","workflow"],"host":["{{url}}"],"query":[],"variable":[{"id":"1d1be3fd-e65e-4f2c-aa4b-4baed89c999b","description":{"content":"<p>The Campaign ID of the workflow you would like to get</p>\n","type":"text/plain"},"type":"any","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","key":"campaignId"}]}},"response":[{"id":"f2246bba-3f50-478a-9546-feac04584717","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/campaign/:campaignId/workflow","host":["{{url}}"],"path":["v4","campaign",":campaignId","workflow"],"variable":[{"key":"campaignId","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","description":"The Campaign ID of the workflow you would like to get"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"259","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"24926fc0-59c8-11eb-a850-5d6f7436c35b\",\n            \"version\": 2,\n            \"workflow\": \"{\\\"schemaVersion\\\":1,\\\"startNode\\\":1,\\\"nodes\\\":[{\\\"id\\\":1,\\\"type\\\":\\\"control\\\"}]}\"\n        }\n    ]\n}"}],"_postman_id":"ad56d0d2-03d2-45a1-850c-c00512556c8f"},{"name":"Add workflow","id":"167cb252-9d26-47e0-9cf2-f542ce18808a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"workflow\": \"{\\\"schemaVersion\\\":1,\\\"startNode\\\":1,\\\"nodes\\\":[{\\\"id\\\":1,\\\"type\\\":\\\"smsSend\\\",\\\"smsTemplateId\\\":\\\"34ad8f70-3a5d-11e9-8399-fb8e8d19e153\\\"}]}\"\r\n}"},"url":"{{url}}/v4/campaign/:campaignId/workflow","description":"<p>Add a new campaign workflow. Refer to the notes for Workflow. In general creating or editing a workflow is best done through the UI rather than programmatically through the API.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","workflow"],"host":["{{url}}"],"query":[],"variable":[{"id":"2ecee2fa-7841-47ed-bd0c-a81d40650ac1","description":{"content":"<p>The Campaign ID of the workflow you would like to add the workflow to</p>\n","type":"text/plain"},"type":"any","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","key":"campaignId"}]}},"response":[{"id":"34d0cca8-cb5b-4ec6-bc5e-b2a000fb6dec","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"workflow\": \"{\\\"schemaVersion\\\":1,\\\"startNode\\\":1,\\\"nodes\\\":[{\\\"id\\\":1,\\\"type\\\":\\\"smsSend\\\",\\\"smsTemplateId\\\":\\\"34ad8f70-3a5d-11e9-8399-fb8e8d19e153\\\"}]}\"\r\n}"},"url":{"raw":"{{url}}/v4/campaign/:campaignId/workflow","host":["{{url}}"],"path":["v4","campaign",":campaignId","workflow"],"variable":[{"key":"campaignId","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","description":"The Campaign ID of the workflow you would like to add the workflow to"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"318","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"24926fc0-59c8-11eb-a850-5d6f7436c35b\",\n            \"version\": 3,\n            \"workflow\": \"{\\\"schemaVersion\\\":1,\\\"startNode\\\":1,\\\"nodes\\\":[{\\\"id\\\":1,\\\"type\\\":\\\"smsSend\\\",\\\"smsTemplateId\\\":\\\"34ad8f70-3a5d-11e9-8399-fb8e8d19e153\\\"}]}\"\n        }\n    ]\n}"}],"_postman_id":"167cb252-9d26-47e0-9cf2-f542ce18808a"},{"name":"Edit Workflow","id":"75386473-65d4-4553-b4a7-da465c55aaa6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"workflow\": \"{\\\"schemaVersion\\\":1,\\\"startNode\\\":1,\\\"nodes\\\":[{\\\"id\\\":1,\\\"type\\\":\\\"smsSend\\\",\\\"smsTemplateId\\\":\\\"34ad8f70-3a5d-11e9-8399-fb8e8d19e153\\\"}]}\"\r\n}"},"url":"{{url}}/v4/campaign/:campaignId/workflow","description":"<p>Edit the workflow for a campaign. This is best done through the UI.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","workflow"],"host":["{{url}}"],"query":[],"variable":[{"id":"6cd5727b-99d2-4e17-b601-cb641038a415","description":{"content":"<p>The Campaign ID that contains the workflow you would like to edit</p>\n","type":"text/plain"},"type":"any","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","key":"campaignId"}]}},"response":[{"id":"bfda8780-0eea-4a38-8205-286400ff5cb1","name":"Sample Request","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"workflow\": \"{\\\"schemaVersion\\\":1,\\\"startNode\\\":1,\\\"nodes\\\":[{\\\"id\\\":1,\\\"type\\\":\\\"smsSend\\\",\\\"smsTemplateId\\\":\\\"34ad8f70-3a5d-11e9-8399-fb8e8d19e153\\\"}]}\"\r\n}"},"url":{"raw":"{{url}}/v4/campaign/:campaignId/workflow","host":["{{url}}"],"path":["v4","campaign",":campaignId","workflow"],"variable":[{"key":"campaignId","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","description":"The Campaign ID that contains the workflow you would like to edit"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"318","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c307\",\n            \"campaignId\": \"24926fc0-59c8-11eb-a850-5d6f7436c35b\",\n            \"version\": 4,\n            \"workflow\": \"{\\\"schemaVersion\\\":1,\\\"startNode\\\":1,\\\"nodes\\\":[{\\\"id\\\":1,\\\"type\\\":\\\"smsSend\\\",\\\"smsTemplateId\\\":\\\"34ad8f70-3a5d-11e9-8399-fb8e8d19e153\\\"}]}\"\n        }\n    ]\n}"}],"_postman_id":"75386473-65d4-4553-b4a7-da465c55aaa6"}],"id":"0b782301-0929-4940-ad1d-eaf7fd6fe43c","description":"<p>Campaign workflows define how a campaign will run once initiated. Modifying a workflow is most safely done through the UI. The workflow itself is stringified JSON.</p>\n<p>This is an example (pre-stringified workflow):</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"schemaVersion\":1,\n  \"startNode\":1,\n  \"nodes\":[\n    {\n      \"id\":1,\n      \"type\":\"smsSend\",\n      \"children\":[2],\n      \"smsTemplateId\":\"8ebb25d0-bde9-11e9-a801-4bd9a183fd0d\"\n    },\n    {\n      \"id\":2,\n      \"type\":\"event\",\n      \"children\":[3,4,5],\n      \"timeoutData\":{\n        \"timeoutType\": \"wait\",\n        \"timeoutWaitNumber\":1,\n        \"timeoutWaitUnits\":\"minutes\",\n        \"timeoutTimezoneType\":\"recipient\",\n        \"timeoutTimezone\":null,\n        \"timeoutScheduleDate\":\"2020-03-10T16:58:15.855Z\",\n        \"timeoutPath\":5\n      },\n      \"conditions\":[\n        {\n          \"statements\":[\n            {\"variable\":\"node1.reply\",\"operation\":\"equals\",\"value\":\"1\"}\n          ],\n          \"path\":3\n         },\n         {\n           \"statements\":[\n             {\"variable\":\"\",\"operation\":\"equals\",\"value\":\"\"}\n           ],\"path\":4\n         }\n      ]\n    },\n    {\n      \"id\":3,\n      \"type\":\"smsSend\",\n      \"children\":[],\n      \"smsTemplateId\":\"0ade7370-be07-11e9-a801-4bd9a183fd0d\"\n    },\n    {\n      \"id\":4,\n      \"type\":\"smsSend\",\n      \"children\":[],\n      \"smsTemplateId\":\"d81bf5b0-ff48-11e9-877b-651da2c96fd9\"\n    },\n    {\n      \"id\":5,\n      \"type\":\"smsSend\",\n      \"children\":[6],\n      \"smsTemplateId\":\"636216f0-ef6c-11e9-b3f6-bba680f07a29\"\n    },\n    {\n      \"id\":6,\n      \"type\":\"timeDelay\",\n      \"children\":[7],\n      \"timeoutType\":\"wait\",\n      \"timeoutWaitNumber\":1,\n      \"timeoutWaitUnits\":\"minutes\",\n      \"timeoutTimezoneType\":\"recipient\",\n      \"timeoutTimezone\":null,\n      \"timeoutScheduleDate\":\"2020-03-10T22:17:21.185Z\"\n    },\n    {\n      \"id\":7,\n      \"type\":\"smsSend\",\n      \"children\":[],\n      \"smsTemplateId\":\"0ade7370-be07-11e9-a801-4bd9a183fd0d\"\n    }\n  ]\n}\n\n</code></pre>\n<p>Currently supported nodes types are:</p>\n<ul>\n<li><p>agentQueue</p>\n</li>\n<li><p>aiAssist</p>\n</li>\n<li><p>call</p>\n</li>\n<li><p>callback</p>\n</li>\n<li><p>campaign</p>\n</li>\n<li><p>carrierLookup</p>\n</li>\n<li><p>computation</p>\n</li>\n<li><p>condition</p>\n</li>\n<li><p>control</p>\n</li>\n<li><p>dnc</p>\n</li>\n<li><p>dncCheck</p>\n</li>\n<li><p>editContact</p>\n</li>\n<li><p>email</p>\n</li>\n<li><p>endRepeater</p>\n</li>\n<li><p>event</p>\n</li>\n<li><p>meme</p>\n</li>\n<li><p>percentage</p>\n</li>\n<li><p>random</p>\n</li>\n<li><p>repeater</p>\n</li>\n<li><p>section</p>\n</li>\n<li><p>smsSend</p>\n</li>\n<li><p>timeDelay</p>\n</li>\n</ul>\n<h2 id=\"agentqueue-aka-live-list\">AgentQueue (aka Live List)</h2>\n<p>The agentQueue node will add a contact into a live list. The name of the list must be provided in addition to a definition for how the contact will be expired. Valid values for <strong>expirationType</strong> are <em>fixed</em> and <em>campaignTimezoneProtection</em>. If the campaign timezone protection is used the contact expiration will be set to the end of the timezone protection time for the campaign. For fixed the contact will expire after a fixed period of time.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":7,\n  \"type\": \"agentQueue\",\n  \"children\": [9],\n  \"queueName\": \"testlist\",\n  \"expirationType\": \"fixed\",\n  \"expirationNumber\": 30,\n  \"expirationUnits\": \"minutes\"\n}\n\n</code></pre>\n<h2 id=\"ai-assist\">Ai Assist</h2>\n<p>The ai assist node will kick off a flow to interact with an AI agent. Execution will be paused on the workflow until the ai agent has completed. The <strong>aiAssistId</strong> is required.</p>\n<h2 id=\"call\">Call</h2>\n<p>A call node will initiate a phone call. The supported parameters mirror those of the v4/call endpoint with the exception of specifying the to and from numbers, which will be taken from the workflow.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":7,\n  \"type\": \"call\",\n  \"children\": [9],\n  \"url\": \"https://customapps.ytel.com/m360/examples/welcome/index.php\"\n}\n\n</code></pre>\n<h2 id=\"callback-aka-webhook\">Callback (aka Webhook)</h2>\n<p>A callback node will make a call to a remote webserver. Using the configured callback. The callback itself must be of type <em>campaign_workflow_callback</em>.</p>\n<p>When evaluating variables the standard variables are usable (contact extData and campaign extData). Additionally some contact and campaign related variables are populated. These are <em>contact_creation_time_ms, contact_creation_time_iso</em>, <em>contact_phone</em>, <em>contact_id</em>, <em>campaign_id</em>, <em>campaign_phone</em>, <em>campaign_path</em>, and <em>campaign_run_id</em>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":4,\n  \"type\":\"callback\",\n  \"children\":[5],\n  \"callbackId\":\"0ade7370-be07-11e9-a801-4bd9a183fd0d\"\n}\n\n</code></pre>\n<h2 id=\"campaign\">Campaign</h2>\n<p>A campaign node will trigger the start of a different campaign. Uses for this include doing initial messaging within one campaign to gather opt-in data and then switching to a different campaign on a different set of numbers once a positive opt-in has been recorded.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":3,\n  \"type\":\"campaign\",\n  \"campaignId\":\"0ade7370-be07-11e9-a801-4bd9a183fd0d\",\n  \"children\":[4]\n}\n\n</code></pre>\n<h2 id=\"carrierlookup\">CarrierLookup</h2>\n<p>This node performs a carrier lookup and populates campaign variables based upon the results. The following variables will be populated: <em>phonenumber1.wireless</em>, <em>phonenumber1.city</em>, <em>phonenumber1.state</em>, <em>phonenumber1.country</em>, <em>phonenumber1.zip</em>, <em>phonenumber1.network</em>, <em>phonenumber1.company</em>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 10,\n  \"type\": \"carrierLookup\",\n  \"children\": [11]\n}\n\n</code></pre>\n<h2 id=\"computation\">Computation</h2>\n<p>A computation node will execute one or more FreeMarker or JsonPath expressions. Refer to documentation about FreeMarker and JsonPath for syntax.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 11,\n  \"type\": \"computation\",\n  \"computations\": [\n    {\n      \"variable\": \"targetvariable1\",\n      \"type\": \"freemarker\",\n      \"freemarker\": \"freemarker expression\"\n    },\n    {\n      \"variable\": \"targetvariable2\",\n      \"type\": \"jsonpath\",\n      \"jsonPath\": \"$.path1.path2\",\n      \"jsonPathSourceVariable\": \"http_response_1\"\n    }\n  ]\n}\n\n</code></pre>\n<h2 id=\"condition\">Condition</h2>\n<p>A condition node will evaluate the current status of a contact with any additional campaign specific extData. Conditions on the node are evaluated in order until a condition is matched. If no conditions are matched, the last child in the list of children will be executed. If there are multiple statements, all must be true for the associated path to be chosen.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":2,\n  \"type\":\"condition\",\n  \"children\":[3,4,5],\n  \"conditions\":[\n    {\n      \"statements\":[\n        {\"variable\":\"make\",\"operation\":\"equals\",\"value\":\"toyota\"},\n        {\"variable\":\"model\",\"operation\":\"equals\",\"value\":\"highlander\"}\n      ],\n      \"path\":3\n    },\n    {\n      \"statements\":[\n        {\"variable\":\"price\",\"operation\":\"greater_than\",\"value\":\"7000\"}\n      ],\n      \"path\":4\n    }\n  ]\n}\n\n</code></pre>\n<p>Supported operations are case insensitive and spaces are replaced with <code>_</code> characters:</p>\n<ul>\n<li><p>equals</p>\n</li>\n<li><p>equals one of</p>\n</li>\n<li><p>contains</p>\n</li>\n<li><p>contains one of</p>\n</li>\n<li><p>begins with</p>\n</li>\n<li><p>ends with</p>\n</li>\n<li><p>less than</p>\n</li>\n<li><p>greater than</p>\n</li>\n<li><p>exists</p>\n</li>\n</ul>\n<p><em>Equals</em> is an exact match, while <em>Equals one of</em> takes a comma separated list of items to do exact match queries against. <em>Contains</em> and <em>Contains one of</em> are similar to equals, but contains queries instead.</p>\n<h2 id=\"control-aka-stop\">Control (aka Stop)</h2>\n<p>A control node is a no-op that will end execution of a campaign. This node may not have any children.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":2,\n  \"type\":\"control\",\n  \"children\":[]\n}\n\n</code></pre>\n<h2 id=\"dnc\">DNC</h2>\n<p>The Dnc node will add a contact to the appropriate dnc list. Valid values for <strong>dncType</strong> are <em>all</em>, <em>sms</em>, <em>call</em>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 13,\n  \"dncType\": \"all\"\n}\n\n</code></pre>\n<h2 id=\"dnc-check\">DNC Check</h2>\n<p>The dnc check node will check to see if a contact is on either the federal DNC or the account's dnc list and branch to the relevant path.</p>\n<p>Valid values for <strong>dncList</strong> are <em>account</em> or <em>federal</em>. Valid values for <strong>subtype</strong> are <em>call</em> or <em>sms</em>. If a contact is on the relevant DNC list, the workflow will go to the <strong>matchPath</strong> route. Otherwise it will follow the <strong>noMatchPath</strong> route.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":10,\n  \"type\":\"dncCheck\",\n  \"dncList\":\"account\",\n  \"subtype\":\"sms\",\n  \"matchPath\":11,\n  \"noMatchPath\":12,\n  \"children\": [11,12]\n}\n\n</code></pre>\n<h2 id=\"edit-contact\">Edit Contact</h2>\n<p>Edit Contact nodes allow for permanently modifying a contact during a workflow. There can be multiple changes per node. Supported changes are clearing a field from a contact, adding a fixed value to a contact, or adding a variable from the campaign to a contact.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":3,\n  \"type\":\"editContact\",\n  \"children\":[],\n  \"assignments\":[\n    { \"mode\": \"clear\", \"variable\": \"needoptin\", \"value\": \"\" },\n    { \"mode\": \"assignFixed\", \"variable\": \"dogfactsoptin\", \"value\": \"true\" },\n    { \"mode\": \"assignVariable\", \"variable\": \"numdogs\", \"value\": \"node1.reply\" }\n  ]\n}\n\n</code></pre>\n<h2 id=\"email\">Email</h2>\n<p>Email nodes are used to send email via an external email provider. Currently only Hubspot, Mailgun, and Sendgrid are supported. For all providers a template must be set up in the external system.</p>\n<p>In all cases the <em>cc</em> and <em>bcc</em> fields are optional. The <em>subject</em> and <em>from</em> are required for some providers. The <em>replacements</em> field specifies the key/value pairs that will be sent to the provider as replacements for the template.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 18,\n  \"type\": \"email\",\n  \"children\": []\n  \"provider\": \"sendgrid\",\n  \"from\": {\n    \"email\": \"myemail@mydomain.com\",\n    \"name\": \"My friendly name\"\n  },\n  \"cc\": [\n    {\n      \"email\": \"myccemail@mydomain.com\",\n      \"name\": \"My CC friendly name\"\n    }\n  ],\n  \"subject\": \"My email subject\",\n  \"templateId\": \"templateId\",\n  \"replacements\": [\n     \"variable1\": \"fixed text\",\n     \"variable2\": \"%%VARIABLENAME%%\"\n  ]\n}\n\n</code></pre>\n<h2 id=\"end-repeater\">End Repeater</h2>\n<p>End Repeater nodes provide a condition that when matched will mark the parent repeater node as completed. These nodes will wait for an event similar to an <strong>event</strong> node.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 16,\n  \"type\": \"endRepeater\",\n  \"children\": [],\n  \"conditions\": [\n    {\n      \"negated\": \"false\",\n      \"variable\": \"node15.reply\",\n      \"operation\": \"contains_one_of\",\n      \"value\": \"yes,ya,ok,yep\"\n    }\n  ]\n}\n\n</code></pre>\n<h2 id=\"event\">Event</h2>\n<p>Event nodes are a combination of a <strong>condition</strong> node and a <strong>timeDelay</strong> node. Similar to a condition node it has multiple execution paths, but will delay execution of conditions until an event happens or a timeout occurs. If at the initial time of execution the conditions are met, there will be no delay.</p>\n<p>Within the timeoutData block, it mirrors the <strong>timeDelay</strong> node. Refer to the documentation of that node for how parameters work.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":2,\n  \"type\":\"event\",\n  \"children\":[3,4,5],\n  \"timeoutData\":{\n    \"timeoutType\": \"wait\",\n    \"timeoutWaitNumber\":1,\n    \"timeoutWaitUnits\":\"minutes\",\n    \"timeoutTimezoneType\":\"recipient\",\n    \"timeoutTimezone\":null,\n    \"timeoutScheduleDate\":\"2020-03-10T16:58:15.855Z\",\n    \"timeoutPath\":5\n  },\n  \"conditions\":[\n    {\n      \"statements\":[\n        {\"variable\":\"node1.reply\",\"operation\":\"equals\",\"value\":\"1\"}\n      ],\n      \"path\":3\n    },\n    {\n      \"statements\":[\n        {\"variable\":\"\",\"operation\":\"equals\",\"value\":\"\"}\n      ],\n      \"path\":4\n    }\n  ]\n}\n\n</code></pre>\n<h2 id=\"meme\">Meme</h2>\n<p>The meme node generates an image with text suitable for use by a future sms node. The provided <strong>fileName</strong> must correspond to an asset that has been uploaded with the meme type. The name of the generated image url will be stored into the variable named <strong>storedVariableName</strong>. While messages is an array, only one message is currently supported.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":2,\n  \"type\":\"meme\",\n  \"children\":[3],\n  \"fileName\": \"memeFile.png\",\n  \"storedVariableName\": \"memeimage\",\n  \"messages\":[\n    {\n      \"xval\": 10,\n      \"yval\": 20,\n      \"font\": \"font\",\n      \"fontSize\": 12,\n      \"fontColor\": \"black\",\n      \"rotate\": 0,\n      \"message\": \"This is my message\"\n    }\n  ]\n}\n\n</code></pre>\n<h2 id=\"percentage\">Percentage</h2>\n<p>A percentage node chooses a path based upon the weights given to each path. Weights must be integers and for compatibility with the frontend are typically weighted in hundredths of a percent (ex: 2500, 4000, 3500 for 25%, 40%, and 35%) and will sum to 10,000.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":1,\n  \"type\":\"percentage\",\n  \"children\":[2,3],\n  \"percentages\":[5000,5000]\n}\n\n</code></pre>\n<h2 id=\"percentage-1\">Percentage</h2>\n<p>A random node chooses a child at random with equal weighting to all children.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":1,\n  \"type\":\"random\",\n  \"children\":[2,3]\n}\n\n</code></pre>\n<h2 id=\"repeater\">Repeater</h2>\n<p>A repeater node will start a series of loops over the nodes that follow it. Each loop will be spaced out over time until either a condition set by an <strong>end repeater</strong> node or the maximum number of attempts have been made. In all cases, after competion of a set of repeats, flow will continue with the selected section.</p>\n<p>Configuration of a <strong>repeater</strong> node is similar to the configuration of a <strong>time delay</strong> node when configured in <em>timezoneProtect</em> mode.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 40,\n  \"section\": \"nextSection\",\n  \"numAttempts\": 3,\n  \"maxDaily\": 2,\n  \"timezoneType\": \"recipient\",\n  \"allowedDaysOfWeek\": 127,\n  \"beginTime\": \"8:00 am\",\n  \"endTime\": \"5:00 pm\",\n  \"fixedTimezoneId\": -20,\n  \"minMinutesBetweenEvents\": 60\n}\n\n</code></pre>\n<h2 id=\"section\">Section</h2>\n<p>A section node will send a contact to a new section of the workflow to continue execution. Section nodes allow for multiple workflow paths to reconverge back to a single point to reduce the number of duplicate nodes needed in a workflow due to branching.</p>\n<p>An example case where this is useful would be a condition node that checks to see if the <em>firstname</em> variable is populated on a contact. If it is not present a workflow path with an sms node followed by an event node and an edit contact node would be added followed by a section node to go to the next section. In the case where it was present the only child would be a section node to the next section.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 1,\n  \"section\": \"lastname\"\n}\n\n</code></pre>\n<p>Within the workflow configuration a <strong>sections</strong> mapping must be added. This is an example workflow that starts with a random node that chooses between two paths, both containing a section node, and ends with the control node. Workflow paths for a contact send through this workflow will be either [1, 2, 4] or [1, 3, 4].</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"schemaVersion\":1,\n  \"startNode\":1,\n  \"sections\": [\n    { \"exit\": \"4\" }\n  ]\n  \"nodes\":[\n    {\n      \"id\": 1,\n      \"type\":\"random\",\n      \"children\": [2, 3]\n    },\n    {\n      \"id\": 2,\n      \"type\":\"section\",\n      \"section\": \"exit\"\n    },\n    {\n      \"id\": 3,\n      \"type\":\"section\",\n      \"section\": \"exit\"\n    },\n    {\n      \"id\": 4,\n      \"type\": \"control\"\n    }\n  ]\n\n</code></pre>\n<h2 id=\"sms-send\">Sms Send</h2>\n<p>An sms send node will send an sms message using the specified sms template. When doing variable replacement by using variables passed in with the campaign and falling back to variables stored on the contact. In the event of a reply to an sms message a variable called <strong>nodeX.reply</strong> will be populated on the campaign, where X is the id of the sms send node. This variable can be used for conditions nodes or more commonly with event nodes.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":7,\n  \"type\":\"smsSend\",\n  \"children\":[],\n  \"smsTemplateId\":\"0ade7370-be07-11e9-a801-4bd9a183fd0d\"\n}\n\n</code></pre>\n<h2 id=\"time-delay\">Time delay</h2>\n<p>A time delay node will wait for either a specified period of time or wait until a scheduled time. Valid values for <strong>timeoutType</strong> are <em>wait, timezoneProtect, waitTime, scheduleTz, and schedule</em>.</p>\n<p>When set to <strong>wait</strong> the <strong>timeoutWaitUnits</strong> is required and one of <strong>timeoutWaitNumber</strong> and <strong>timeoutWaitVariable</strong>. This mode should be used to wait for a specific period of time (ex: 5 minutes).</p>\n<p>When set to <strong>schedule</strong> requires either the <strong>timeoutScheduleDate</strong> or <strong>timeoutScheduleVariable</strong> to be set. This mode should be used to wait until a specific point in time. The format for the date should be in ISO8601 format. If it is a variable, it can also be in epoch millis.</p>\n<p>The <strong>scheduleTz</strong> mode is similar to <strong>schedule</strong>, but also takes a <strong>timezoneType</strong>. In this mode the time is scheduled in the desired timezone instead of UTC.</p>\n<p>When set to <strong>waitTime</strong> the <strong>timezoneType</strong>, <strong>fixedTimezoneId,</strong> and <strong>timeoutAllowedDays</strong> must be set and either the <strong>timeoutWaitUntilVariable</strong> or <strong>timeoutWaitUntilTime</strong>. The <strong>timezoneType</strong> must be set to eitehr <em>recipient</em> or <em>fixed</em>; when in recipient mode it will fall back to fixed if ther recipient's timezone cannot be determined. The <strong>timeoutAllowedDays</strong> variable is a bitmask for days of the week (1 = Sunday, 2, Monday, 4 Tuesday, etc.). This mode should be used when waiting until a particular time of day (ex: 8:00 am).</p>\n<p>When set to <strong>timezoneProtect</strong> the <strong>timeRangeStart, timeRangeEnd, timezoneType, timeoutAllowedDays,</strong> and <strong>fixedTimezoneId</strong> all most be set. If the current time in the selected timezone is between <strong>timeRangeStart</strong> and <strong>timeRangeEnd</strong> during an allowed day then execution will proceed, otherwise execution will be paused until the first available time. This mode should be used to pause execution outside of a particular range of hours and/or days (ex: M-F 8:00am to 5:00pm).</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\":1,\n  \"type\":\"timeDelay\",\n  \"children\":[2],\n  \"timeoutType\":\"schedule\",\n  \"timeoutWaitNumber\":5,\n  \"timeoutWaitUnits\":\"minutes\",\n  \"timeoutTimezoneType\":\"recipient\",\n  \"timeoutTimezone\":null,\n  \"timeoutScheduleDate\":\"2020-04-01T22:40:52.907Z\"\n}\n\n</code></pre>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"731fd28b-5f07-44c1-8d69-6a50e077b65c"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"cd7e88cf-920a-4f56-8936-c9fb8baa77c8"}}],"_postman_id":"0b782301-0929-4940-ad1d-eaf7fd6fe43c","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Workflow Runner","item":[{"name":"Workflow Schedules","item":[{"name":"Add Schedule","id":"3f96ddbf-3b9b-404d-8f95-4960ba11af26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"nextScheduled\":null,\n    \"status\":1,\n    \"timezoneId\":-32,\n    \"recurring\": true,\n    \"periodNumber\": 1,\n    \"periodUnits\": \"DAYS\",\n    \"scheduleFailureMode\": 1,\n    \"createBatchRequest\":{\n        \"campaignId\":\"campaignId\",\n        \"displayName\":\"My batch\",\n        \"periodMs\":-1,\n        \"start\":true,\n        \"contactIds\":[\"contactId1\",\"contactId2\"]},\n        \"filters\":{\"dnc\":[\"call\",\"sms\"]},\n    \"dayOfWeek\":62,\n    \"timeOfDay\":\"10:00\",\n    \"expire\":1614388048\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/campaign/:campaignId/batch/schedule","description":"<p>Creates a new scheduled runner for the specified workflow.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","batch","schedule"],"host":["{{url}}"],"query":[],"variable":[{"id":"118473d2-ad69-49f1-9e80-50072929b743","description":{"content":"<p>Unique id </p>\n","type":"text/plain"},"type":"any","value":null,"key":"campaignId"}]}},"response":[],"_postman_id":"3f96ddbf-3b9b-404d-8f95-4960ba11af26"},{"name":"Edit Schedule","id":"2b8d9534-b964-4a32-8975-bf3c68296429","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"nextScheduled\":null,\n    \"status\":1,\n    \"timezoneId\":-32,\n    \"recurring\": true,\n    \"periodNumber\": 1,\n    \"periodUnits\": \"DAYS\",\n    \"scheduleFailureMode\": 1,\n    \"createBatchRequest\":{\n        \"campaignId\":\"campaignId\",\n        \"displayName\":\"My batch\",\n        \"periodMs\":-1,\n        \"start\":true,\n        \"contactIds\":[\"contactId1\",\"contactId2\"]},\n        \"filters\":{\"dnc\":[\"call\",\"sms\"]\n    },\n    \"dayOfWeek\":62,\n    \"timeOfDay\":\"10:00\",\n    \"expire\":1614388048\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/campaign/:campaignId/batch/schedule/:scheduleId","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","batch","schedule",":scheduleId"],"host":["{{url}}"],"query":[],"variable":[{"id":"09b41c05-99e1-42e5-abc6-0162f154c1c4","type":"any","value":null,"key":"campaignId"},{"id":"093b0f22-0883-4c9b-8725-54e05a4a88b0","type":"any","value":null,"key":"scheduleId"}]}},"response":[],"_postman_id":"2b8d9534-b964-4a32-8975-bf3c68296429"},{"name":"Get Schedules","id":"348266ee-3cb8-4053-96e9-357dcfd5c495","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/campaign/batch/schedule","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign","batch","schedule"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"348266ee-3cb8-4053-96e9-357dcfd5c495"}],"id":"65d29329-7964-47a8-8e02-96244000579b","description":"<p>Workflows can be scheduled to run at specific times and to recur with programmable intervals.</p>\n<p>Fields:</p>\n<ul>\n<li><strong>accountSid</strong>: Account Id</li>\n<li><strong>campaignId</strong>: Workflow that will be triggered when the schedule runs</li>\n<li><strong>eventId</strong>: Unique identifier for the schedule</li>\n<li><strong>timeOfDay</strong>: Time of day that the schedule will run. Format is hh:mm:ss</li>\n<li><strong>timezoneId</strong>: Integer timezone id. Taken from the id of the timezone from the timezones endpoints.</li>\n<li><strong>createBatchRequest</strong>: Parameters for the request to start a runner. This exactly mirrors the body to create a single use runner.</li>\n<li><strong>nextScheduled</strong>: Next time this runner is scheduled to rune</li>\n<li><strong>lastRun</strong>: Last time this scheduled runner was executed.</li>\n<li><strong>recurring</strong>: Whether or not this scheduled run is recurring.</li>\n<li><strong>expire</strong>: When the recurring schedules will stop recurring.</li>\n<li><strong>dayOfWeek</strong>: Integer representing the days of the week this runner is allowed to run. This is a bitmask with Sunday being 1, Monday being 2, Tuesday being 4, etc.</li>\n<li><strong>dayOfMonth</strong>: Day of the month that the scheduled runner will run. Used in conjunction with a monthly period.</li>\n<li><strong>periodUnits</strong>: Increment type for scheduling future workflows. Valid values are <em>days</em>, <em>weeks</em>, or <em>months</em>.</li>\n<li><strong>periodNumber</strong>: Number of periodUnits that will be use for scheduling future workflows.</li>\n<li><strong>scheduleFailureMode</strong>: Which direction days should be incremented or decremented if the scheduled day either does not exist or is not a valid <em>dayOfWeek</em>. Valid values <em>1</em> and <em>-1</em>. Default <em>1.</em></li>\n<li><strong>frequencyDescription</strong>: Human description of what the frequency should be.</li>\n<li><strong>status</strong>: Whether the schedule is active or inactive. 1 is active.</li>\n</ul>\n<p>The scheduleFailureMode in conjunction with monthly increments, day of week filters, and day of month setting will allow for pretty much any monthly schedule.</p>\n<p>For example to schedule a workflow to run on the last day of the month the <em>dayOfMonth</em> should be set to 31 and the <em>scheduleFailureMode</em> should be set to -1. For the last business day of the month, it would be the same with a <em>dayOfWeek</em> filter set to 62 (for M-F).</p>\n<p>To schedule on the second Saturday of every month either set <em>dayOfMonth</em> to 8 with a <em>scheduleFailureMode</em> of 1 or <em>dayOfMonth</em> to 13 with a <em>scheduleFailureMode</em> of -1. In both cases the <em>dayOfWeek</em> should be set to 64.</p>\n","_postman_id":"65d29329-7964-47a8-8e02-96244000579b","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Add Runner","id":"000b96b6-373d-48bf-a289-b00ef9200321","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"displayName\": \"My runner\",\n    \"contactIds\": [\n        \"da54d682-4d48-4f13-a4ee-07c850c05bb8\"\n    ],\n    \"statements\": [\n        {\n            \"operation\": \"contains\",\n            \"value\": \"Roy\",\n            \"variable\": \"firstname\"\n        }\n    ],\n    \"start\": \"true\",\n    \"periodMs\": 0\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/campaign/:campaignId/batch","description":"<p>Initializes a new campaign workflow runner context. The context can be initialized using either a set of <strong>contactIds</strong> or a series of <strong>statements</strong>. The two fields are mutually exclusive. Documentation on how to use statements can be found in the Search Contacts section.</p>\n<p>Request body variables:</p>\n<ul>\n<li><strong>displayName</strong>: Display name in the UI for this runner.</li>\n<li><strong>contactIds</strong>: List of contactIds that will be started in the workflow.</li>\n<li><strong>statements</strong>: List of statements that identify the contacts that will be started in the workflow. All contacts that match the query will be added.</li>\n<li><strong>start</strong>: If set to true, this will start the workflow. If not set or false it will not start the workflow and leave it in a non-started state. If <strong>periodMs</strong> is 0 the workflow will also not be started regardless of what this is set to.</li>\n<li><strong>periodMs</strong>: Delay between sends. If not set it will default to 0. Campaigns with this set to 0 cannot be started without setting this to a non-zero value, however they can be manually \"clicked\" through by using the batch/next endpoint detailed below.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","batch"],"host":["{{url}}"],"query":[],"variable":[{"id":"db1db73f-d4db-4246-95b4-1c81ca6f56b4","description":{"content":"<p>The campaignId to enroll contacts into</p>\n","type":"text/plain"},"type":"any","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","key":"campaignId"}]}},"response":[{"id":"66de08be-401a-4409-ac03-04f804a2ec71","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"displayName\": \"My runner\",\n    \"contactIds\": [\n        \"da54d682-4d48-4f13-a4ee-07c850c05bb8\"\n    ],\n    \"statements\": [\n        {\n            \"operation\": \"contains\",\n            \"value\": \"Roy\",\n            \"variable\": \"firstname\"\n        }\n    ],\n    \"start\": \"true\",\n    \"periodMs\": 0\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/v4/campaign/:campaignId/batch","host":["{{url}}"],"path":["v4","campaign",":campaignId","batch"],"variable":[{"key":"campaignId","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","description":"The campaignId to enroll contacts into"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"286","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"24926fc0-59c8-11eb-a850-5d6f7436c35b\",\n            \"batchId\": \"b2904860-59cd-11eb-b685-d322c09b20ac\",\n            \"displayName\": \"My runner\",\n            \"status\": \"Not started\",\n            \"started\": 0,\n            \"queued\": 1,\n            \"periodMs\": 0\n        }\n    ]\n}"}],"_postman_id":"000b96b6-373d-48bf-a289-b00ef9200321"},{"name":"Edit Runner","id":"7775cd3b-21ad-4d9b-b39c-bff6d9e9801d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"displayName\": \"My runner edited\",\n    \"contactIds\": [\n        \"da54d682-4d48-4f13-a4ee-07c850c05bb8\"\n    ],\n    \"statements\": [\n        {\n            \"operation\": \"contains\",\n            \"value\": \"Roy\",\n            \"variable\": \"firstname\"\n        }\n    ],\n    \"start\": \"true\",\n    \"periodMs\": 0\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/campaign/:campaignId/batch/:batchId","description":"<p>Updatess a campaign workflow runner context. The context can be initialized using either a set of <strong>contactIds</strong> or a series of <strong>statements</strong>. The two fields are mutually exclusive. Documentation on how to use statements can be found in the Search Contacts section. Note that after the workflow has already been started, no new contacts can be added to the runner.</p>\n<p>Request body variables:</p>\n<ul>\n<li><strong>displayName</strong>: Display name in the UI for this runner.</li>\n<li><strong>contactIds</strong>: List of contactIds that will be started in the workflow.</li>\n<li><strong>statements</strong>: List of statements that identify the contacts that will be started in the workflow. All contacts that match the query will be added.</li>\n<li><strong>start</strong>: If set to true, this will start the workflow. If set to false it will stop a running workflow.</li>\n<li><strong>periodMs</strong>: Delay between sends. If not set it will default to 0. Changing the delay of a running workflow will do nothing.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","batch",":batchId"],"host":["{{url}}"],"query":[],"variable":[{"id":"acc326cf-8400-41d0-ab2a-df219d6b4bc0","description":{"content":"<p>Id of the campaign</p>\n","type":"text/plain"},"type":"any","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","key":"campaignId"},{"id":"55132590-6f93-4a7b-a6f0-4696af2ab02e","description":{"content":"<p>Id of the batch</p>\n","type":"text/plain"},"type":"any","value":"b2904860-59cd-11eb-b685-d322c09b20ac","key":"batchId"}]}},"response":[{"id":"ccb39ed4-33cb-4798-a8fe-e17a7d8b9785","name":"Sample Request","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"displayName\": \"My runner edited\",\n    \"contactIds\": [\n        \"da54d682-4d48-4f13-a4ee-07c850c05bb8\"\n    ],\n    \"statements\": [\n        {\n            \"operation\": \"contains\",\n            \"value\": \"Roy\",\n            \"variable\": \"firstname\"\n        }\n    ],\n    \"start\": \"true\",\n    \"periodMs\": 0\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/v4/campaign/:campaignId/batch/:batchId","host":["{{url}}"],"path":["v4","campaign",":campaignId","batch",":batchId"],"variable":[{"key":"campaignId","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","description":"Id of the campaign"},{"key":"batchId","value":"b2904860-59cd-11eb-b685-d322c09b20ac","description":"Id of the batch"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"293","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"24926fc0-59c8-11eb-a850-5d6f7436c35b\",\n            \"batchId\": \"b2904860-59cd-11eb-b685-d322c09b20ac\",\n            \"displayName\": \"My runner edited\",\n            \"status\": \"Not started\",\n            \"started\": 0,\n            \"queued\": 1,\n            \"periodMs\": 0\n        }\n    ]\n}"}],"_postman_id":"7775cd3b-21ad-4d9b-b39c-bff6d9e9801d"},{"name":"Get Campaign Runners","id":"5d46f047-9c2e-4350-9b13-f738a03bbbe2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/campaign/batch","description":"<p>Retrieves the status of all campaign runners.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign","batch"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"5d71c45b-57dd-4383-b401-45a76148fe3a","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":"{{url}}/v4/campaign/batch"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"1047","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"24926fc0-59c8-11eb-a850-5d6f7436c35b\",\n            \"batchId\": \"b2904860-59cd-11eb-b685-d322c09b20ac\",\n            \"displayName\": \"My runner edited\",\n            \"status\": \"Not started\",\n            \"started\": 0,\n            \"queued\": 1,\n            \"periodMs\": 0\n        }\n    ]\n}"}],"_postman_id":"5d46f047-9c2e-4350-9b13-f738a03bbbe2"},{"name":"Get Campaign Runners for Campaign","id":"2fc6baa2-b978-478d-8ebe-5af558ac8e98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/campaign/:campaignId/batch","description":"<p>Retrieves the status of all campaign runners for a particular campaign.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","batch"],"host":["{{url}}"],"query":[],"variable":[{"id":"7007bb5c-ac8d-4b65-b90d-ccea74496a41","description":{"content":"<p>The campaignId to list runners for</p>\n","type":"text/plain"},"type":"any","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","key":"campaignId"}]}},"response":[{"id":"6d1cdcbc-a2b4-44b0-87f6-3b57b48faabd","name":"Get Campaign Runners for Campaign","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/campaign/:campaignId/batch","host":["{{url}}"],"path":["v4","campaign",":campaignId","batch"],"variable":[{"key":"campaignId","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","description":"The campaignId to list runners for"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"293","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"24926fc0-59c8-11eb-a850-5d6f7436c35b\",\n            \"batchId\": \"b2904860-59cd-11eb-b685-d322c09b20ac\",\n            \"displayName\": \"My runner edited\",\n            \"status\": \"Not started\",\n            \"started\": 0,\n            \"queued\": 1,\n            \"periodMs\": 0\n        }\n    ]\n}"}],"_postman_id":"2fc6baa2-b978-478d-8ebe-5af558ac8e98"},{"name":"Get Campaign Runner","id":"dd527d50-1fb7-49eb-aaf6-fdf3e22c2290","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/campaign/:campaignId/batch/:batchId","description":"<p>Retrieves the status of a campaign runner for a particular campaign by batchId.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","batch",":batchId"],"host":["{{url}}"],"query":[],"variable":[{"id":"86275b6a-a396-4822-aa07-deef6d377f86","description":{"content":"<p>Id of the campaign</p>\n","type":"text/plain"},"type":"any","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","key":"campaignId"},{"id":"f8da1ea6-ac67-4433-99f1-6bbd111f780d","description":{"content":"<p>Id of the batch</p>\n","type":"text/plain"},"type":"any","value":"b2904860-59cd-11eb-b685-d322c09b20ac","key":"batchId"}]}},"response":[{"id":"2f26e880-ae44-41a1-9b34-a75a85165f34","name":"Sample Request","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"url":{"raw":"{{url}}/v4/campaign/:campaignId/batch/:batchId","host":["{{url}}"],"path":["v4","campaign",":campaignId","batch",":batchId"],"variable":[{"key":"campaignId","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","description":"Id of the campaign"},{"key":"batchId","value":"b2904860-59cd-11eb-b685-d322c09b20ac","description":"Id of the batch"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"293","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"24926fc0-59c8-11eb-a850-5d6f7436c35b\",\n            \"batchId\": \"b2904860-59cd-11eb-b685-d322c09b20ac\",\n            \"displayName\": \"My runner edited\",\n            \"status\": \"Not started\",\n            \"started\": 0,\n            \"queued\": 1,\n            \"periodMs\": 0\n        }\n    ]\n}"}],"_postman_id":"dd527d50-1fb7-49eb-aaf6-fdf3e22c2290"},{"name":"Start a Campaign Runner","id":"5c5b58c1-1ae4-4cac-abbd-4a76e0563754","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/campaign/:campaignId/batch/:batchId/start","description":"<p>Starts the campaign runner for a particular campaign by batchId.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","batch",":batchId","start"],"host":["{{url}}"],"query":[],"variable":[{"id":"b3e1ae51-7136-4de6-86eb-252806be80b1","description":{"content":"<p>Id of the campaign</p>\n","type":"text/plain"},"type":"any","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","key":"campaignId"},{"id":"1a6f4d17-5922-483a-b368-3f8030210c25","description":{"content":"<p>Id of the batch</p>\n","type":"text/plain"},"type":"any","value":"b2904860-59cd-11eb-b685-d322c09b20ac","key":"batchId"}]}},"response":[{"id":"49b10c10-0044-497c-a1dc-16b9522c89cb","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/v4/campaign/:campaignId/batch/:batchId/start","host":["{{url}}"],"path":["v4","campaign",":campaignId","batch",":batchId","start"],"variable":[{"key":"campaignId","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","description":"Id of the campaign"},{"key":"batchId","value":"b2904860-59cd-11eb-b685-d322c09b20ac","description":"Id of the batch"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"293","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"24926fc0-59c8-11eb-a850-5d6f7436c35b\",\n            \"batchId\": \"b2904860-59cd-11eb-b685-d322c09b20ac\",\n            \"displayName\": \"My runner edited\",\n            \"status\": \"Not started\",\n            \"started\": 0,\n            \"queued\": 1,\n            \"periodMs\": 0\n        }\n    ]\n}"}],"_postman_id":"5c5b58c1-1ae4-4cac-abbd-4a76e0563754"},{"name":"Stop a Campaign Runner","id":"35c29f57-1024-417b-85a1-9d8cd603fa83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/campaign/:campaignId/batch/:batchId/stop","description":"<p>Stops the campaign runner for a particular campaign by batchId.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","batch",":batchId","stop"],"host":["{{url}}"],"query":[],"variable":[{"id":"c8f15227-f23e-490f-9837-9605355ab881","description":{"content":"<p>Id of the campaign</p>\n","type":"text/plain"},"type":"any","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","key":"campaignId"},{"id":"0db587c6-1820-4e98-8299-b5c49da7ac67","description":{"content":"<p>Id of the batch</p>\n","type":"text/plain"},"type":"any","value":"b2904860-59cd-11eb-b685-d322c09b20ac","key":"batchId"}]}},"response":[{"id":"e315968d-0073-48a1-af8a-467fa54f943e","name":"Sample Request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"Generated using the v4 Authentication endpoint.","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/v4/campaign/:campaignId/batch/:batchId/stop","host":["{{url}}"],"path":["v4","campaign",":campaignId","batch",":batchId","stop"],"variable":[{"key":"campaignId","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","description":"Id of the campaign"},{"key":"batchId","value":"b2904860-59cd-11eb-b685-d322c09b20ac","description":"Id of the batch"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"289","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Vary","value":"Access-Control-Request-Method","enabled":true},{"key":"Vary","value":"Access-Control-Request-Headers","enabled":true},{"key":"Access-Control-Allow-Credentials","value":"true","enabled":true},{"key":"X-RateLimit-Remaining-second","value":"149","enabled":true},{"key":"X-RateLimit-Limit-second","value":"150","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"count\": 1,\n    \"page\": 1,\n    \"payload\": [\n        {\n            \"accountSid\": \"173c6f7f-c911-f823-fb2d-a13e4780c300\",\n            \"campaignId\": \"24926fc0-59c8-11eb-a850-5d6f7436c35b\",\n            \"batchId\": \"b2904860-59cd-11eb-b685-d322c09b20ac\",\n            \"displayName\": \"My runner edited\",\n            \"status\": \"Stopped\",\n            \"started\": 0,\n            \"queued\": 1,\n            \"periodMs\": 0\n        }\n    ]\n}"}],"_postman_id":"35c29f57-1024-417b-85a1-9d8cd603fa83"},{"name":"Get next Campaign Runner (Manual)","id":"2a649f94-7c1d-4e1e-ae58-01bccd996da4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/campaign/:campaignId/batch/:batchId/next/","description":"<p>Gets the next queued contact within a queue. This will not start a campaign workflow.</p>\n<p>This is only available for campaigns with a 0 periodMs.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","batch",":batchId","next",""],"host":["{{url}}"],"query":[],"variable":[{"id":"22f035aa-d335-4b3d-bdcc-c061b5b3f0a6","description":{"content":"<p>Id of the campaign</p>\n","type":"text/plain"},"type":"any","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","key":"campaignId"},{"id":"30d53f7c-5896-4225-8e5d-4e3e24f85e9a","description":{"content":"<p>Id of the batch</p>\n","type":"text/plain"},"type":"any","value":"b2904860-59cd-11eb-b685-d322c09b20ac","key":"batchId"}]}},"response":[],"_postman_id":"2a649f94-7c1d-4e1e-ae58-01bccd996da4"},{"name":"Send next Campaign Runner (Manual)","id":"4e6e27d0-35d5-462b-872b-90fc36d1379c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n","type":"text"}],"url":"{{url}}/v4/campaign/:campaignId/batch/:batchId/next","description":"<p>Sends the next queued contact within a queue.</p>\n<p>This is only available for campaigns with a 0 periodMs.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","campaign",":campaignId","batch",":batchId","next"],"host":["{{url}}"],"query":[],"variable":[{"id":"7f3903d4-a8df-4938-b721-0afe1df677fe","description":{"content":"<p>Id of the campaign</p>\n","type":"text/plain"},"type":"any","value":"24926fc0-59c8-11eb-a850-5d6f7436c35b","key":"campaignId"},{"id":"50d089c3-7440-45bc-816f-f9a59e9d91ac","description":{"content":"<p>Id of the batch</p>\n","type":"text/plain"},"type":"any","value":"b2904860-59cd-11eb-b685-d322c09b20ac","key":"batchId"}]}},"response":[],"_postman_id":"4e6e27d0-35d5-462b-872b-90fc36d1379c"}],"id":"ac158684-da70-4e99-8eee-f95bcd857a76","description":"<p>The workflow runner endpoints support the automated sending of workflows to a list of contacts created either through a provided list or a contact query. The details of the requests to setup and edit are detailed in the relevant section.</p>\n<p>All of these endpoints will return back the status of the runner(s). </p>\n<p>Returned variables:  </p>\n<ul>\n<li><strong>accountSid</strong>: Account id</li>\n<li><strong>campaignId</strong>: Id of the campaign that the runner is for</li>\n<li><strong>batchId</strong>: Unique identifier for this particular runner</li>\n<li><strong>displayName</strong>: Friendly name for the batch used only in the UI</li>\n<li><strong>status</strong>: Current status of the runner. Possible values: <code>Stopped</code>, <code>Not started</code>, <code>In Progress</code>, and <code>Completed</code>.</li>\n<li><strong>started</strong>: Number of contacts that have started in the workflow.</li>\n<li><strong>queued</strong>: Total number of contacts that were selected for the workflow.</li>\n<li><strong>periodMs</strong>: Scheduled delay between contacts. This rate is the target rate to deliver contacts to start a workflow.</li>\n</ul>\n<hr />\n<ul>\n<li><strong>periodMs</strong>: Scheduled delay between contacts. This rate is the target rate to deliver contacts to start a workflow. Auto rate-limiting can be use by passing -1.</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"421f9a63-a359-4c71-8020-56cb2e982e9f"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"65395f9a-e77d-4992-ad28-296c340f3366"}}],"_postman_id":"ac158684-da70-4e99-8eee-f95bcd857a76","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Work groups","item":[{"name":"Get Work Groups","id":"dd6f2aa6-0dc6-44b6-b0f7-29ae5b972cb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint</p>\n"}],"url":"https://api.ytel.com/ams/v3/workgroup","description":"<p>Retrieve all work groups.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","workgroup"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd6f2aa6-0dc6-44b6-b0f7-29ae5b972cb0"},{"name":"Get Work Group","id":"cc55dfe2-b420-4493-bedf-290174209419","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint</p>\n"}],"url":"https://api.ytel.com/ams/v3/workgroup/:groupname","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","workgroup",":groupname"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"3f76fb61-1c4a-4db9-a06e-042120220cd8","description":{"content":"<p>The group name of the work group.</p>\n","type":"text/plain"},"type":"any","value":"crew","key":"groupname"}]}},"response":[],"_postman_id":"cc55dfe2-b420-4493-bedf-290174209419"},{"name":"Create Work Group","id":"8f942083-0705-4d8f-97e1-85b2694557c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint</p>\n"}],"body":{"mode":"raw","raw":"{\n  \"groupName\": \"crew\", \n  \"description\": \"The Crew\",\n  \"metadata\": {\"accountItem\":\"KRTC\", \"region\":\"Northeast\"},\n  \"details\": {\"manager\": \"Jane\"}, \n  \"userIds\": [\"07f9bc1a-7777-4444-8888-0601e38803ca\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/workgroup","description":"<p>Create work group.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","workgroup"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f942083-0705-4d8f-97e1-85b2694557c9"},{"name":"Update Work Group","id":"e6cbc08c-6cf2-46d5-80bc-f12f94b55d0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint</p>\n"}],"body":{"mode":"raw","raw":"{\n  \"groupName\": \"crew\", \n  \"description\": \"The Crew\",\n  \"metadata\": {\"accountItem\":\"KRTC\", \"region\":\"Northeast\"},\n  \"details\": {\"manager\": \"Jane\"}\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/workgroup","description":"<p>Modify a work group's description, metadata, or details.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","workgroup"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e6cbc08c-6cf2-46d5-80bc-f12f94b55d0b"},{"name":"Delete Work Group","id":"5ad869ae-8dfc-4781-83d9-558b3f2f9843","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint</p>\n"}],"url":"https://api.ytel.com/ams/v3/workgroup/:groupname","description":"<p>Delete the selected work group.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","workgroup",":groupname"],"host":["api","ytel","com"],"query":[],"variable":[{"id":"0ebeab51-5943-49c5-8208-7ac51b92c0cc","type":"any","value":"","key":"groupname"}]}},"response":[],"_postman_id":"5ad869ae-8dfc-4781-83d9-558b3f2f9843"},{"name":"Add Users to Work Group","id":"60ad2855-500d-430e-81ef-a82cb9f7a4e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint</p>\n"}],"body":{"mode":"raw","raw":"{\n  \"groupName\": \"crew\", \n  \"userIds\": [\"07f9bc1a-7777-4444-8888-0601e38803ca\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/workgroup","description":"<p>Add user Ids to an existing work group.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","workgroup"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"60ad2855-500d-430e-81ef-a82cb9f7a4e6"},{"name":"Remove Users from Work Group","id":"c0c28cc9-0bb7-4f8d-a056-c7443e2b5bce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint</p>\n"}],"body":{"mode":"raw","raw":"{\n  \"groupName\": \"crew\", \n  \"userIds\": [\"07f9bc1a-7777-4444-8888-0601e38803ca\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ytel.com/ams/v3/workgroup","description":"<p>Remove user Ids from an existing work group.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"protocol":"https","path":["ams","v3","workgroup"],"host":["api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c0c28cc9-0bb7-4f8d-a056-c7443e2b5bce"}],"id":"128deaf4-7f29-4fbc-9ffa-fed72d518164","_postman_id":"128deaf4-7f29-4fbc-9ffa-fed72d518164","description":"","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Voicemail","item":[{"name":"Get Voicemails","id":"a6c3f711-bed7-4b22-9e0d-00222b3f5c70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/voicemail/:phoneNumber","description":"<p>Retrieves all voicemails in the system that are between the start and end date with an optional status. Default start and end dates will correspond to the previous 14 days.</p>\n<p>Must have the <em>number read</em> permission to access this endpoint.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","voicemail",":phoneNumber"],"host":["{{url}}"],"query":[],"variable":[{"id":"987ff06a-4253-44e4-830f-213636d049c2","type":"any","value":null,"key":"phoneNumber"}]}},"response":[],"_postman_id":"a6c3f711-bed7-4b22-9e0d-00222b3f5c70"},{"name":"Get Voicemails for Number","id":"aa1cd9a9-2f1a-44f9-aa02-c298ee172d1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/voicemail/:phoneNumber","description":"<p>Retrieves all voicemails for a phone number.</p>\n<p>Must have either the <em>number read</em> permission or be the user assigned to that webrtc phone number.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","voicemail",":phoneNumber"],"host":["{{url}}"],"query":[],"variable":[{"id":"9afe1669-0be4-4b56-9b8d-6e965b1107eb","type":"any","value":null,"key":"phoneNumber"}]}},"response":[],"_postman_id":"aa1cd9a9-2f1a-44f9-aa02-c298ee172d1e"},{"name":"Get Voicemail for Number and Record","id":"0b5d3487-9ec5-4852-b04b-62eb188034a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/voicemail/:phoneNumber/:recordId","description":"<p>Retrieve a voicemail by phone number and recordId.</p>\n<p>Must have either the <em>number read</em> permission or be the user assigned to that webrtc phone number.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","voicemail",":phoneNumber",":recordId"],"host":["{{url}}"],"query":[],"variable":[{"id":"efff35d5-1ecf-4ae4-a8a5-34f2af02ea01","type":"any","value":null,"key":"phoneNumber"},{"id":"0f0a889b-84d5-45db-b8be-0626408af750","type":"any","value":null,"key":"recordId"}]}},"response":[],"_postman_id":"0b5d3487-9ec5-4852-b04b-62eb188034a2"},{"name":"Get Voicemail for Number and Record Copy","id":"9eddd96f-99f0-46a1-a47a-732b423089ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": 1\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/voicemail/:phoneNumber/status/:recordId","description":"<p>Updates the status of a voicemail. Set to 1 to mark as listened or -1 to delete.</p>\n<p>Must have either the <em>number read</em> permission or be the user assigned to that webrtc phone number.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","voicemail",":phoneNumber","status",":recordId"],"host":["{{url}}"],"query":[],"variable":[{"id":"efff35d5-1ecf-4ae4-a8a5-34f2af02ea01","type":"any","value":null,"key":"phoneNumber"},{"id":"91d8c6ce-2628-4bb4-b9d5-6a1cdc5d7ec1","type":"any","value":null,"key":"recordId"}]}},"response":[],"_postman_id":"9eddd96f-99f0-46a1-a47a-732b423089ce"}],"id":"d3095cb7-cd38-43f9-be39-1459783e48a6","description":"<p>The voicemail endpoints allow for retrieving information about voicemails in the system and updating the status of a voicemail.</p>\n<p>Fields:</p>\n<ul>\n<li><strong>accountSid</strong>: Account id</li>\n<li><strong>phoneNumber</strong>: Phone number associated with the voicemail</li>\n<li><strong>recordingId</strong>: Unique id for the voicemail recording</li>\n<li><strong>contactId</strong>: The contact associated with the voicemail</li>\n<li><strong>fromNumber</strong>: Phone number of the contact that left the voicemail.</li>\n<li><strong>seconds</strong>: Duration of the voicemail. Note that this is not the same as the duration of the associated call since the call time prior to the start of the voicemail is not included.</li>\n<li><strong>url</strong>: Location of the recording for download or play.</li>\n<li><strong>metadata</strong>: Metadata associated with the call. Call metadata is included here.</li>\n<li><strong>transcription</strong>: Transcription of the voicemail if enabled.</li>\n<li><strong>status</strong>: Status of the voicemail. 0 is new, 1 is a voicemail that has been listened to. Setting the status to -1 will delete the voicemail record.</li>\n</ul>\n","_postman_id":"d3095cb7-cd38-43f9-be39-1459783e48a6","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}},{"name":"Transfer Presets","item":[{"name":"Create Transfer Preset","id":"eae237f8-ba24-4493-a773-521a57658ddf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"groupId\": \"wg1\",\n    \"presetType\": \"workgroup\",\n    \"destination\": \"+12223334444\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/v4/preset/transfer","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","preset","transfer"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eae237f8-ba24-4493-a773-521a57658ddf"},{"name":"Delete Transfer Preset","id":"5ab0124c-390d-4f60-a4af-11dcd749806a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/v4/preset/transfer/{groupId}/presetType/{type}/destination/{destination}","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","preset","transfer","{groupId}","presetType","{type}","destination","{destination}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ab0124c-390d-4f60-a4af-11dcd749806a"},{"name":"Get Transfer Presets","id":"676047ae-1039-49bc-a520-9d40a5dcd64e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/preset/transfer","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","preset","transfer"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"676047ae-1039-49bc-a520-9d40a5dcd64e"},{"name":"Get Transfer Preset By Group","id":"ea9a1720-4f49-4b6f-9fa4-57869e65d410","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/v4/preset/transfer/{groupId}","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}},"urlObject":{"path":["v4","preset","transfer","{groupId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea9a1720-4f49-4b6f-9fa4-57869e65d410"}],"id":"ee5cb948-ace4-4108-b67f-4e0d5548b9f4","description":"<p>Sometimes you would like to have presets for your users to select from for a transfer in a webphone call. Transfer Presets allows you to do that. These can be created at the 'account', 'workgroup', or 'user' levels. They take identifiers in that same order 'accountSid', 'groupId', or 'clientId'.</p>\n","_postman_id":"ee5cb948-ace4-4108-b67f-4e0d5548b9f4","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":true,"source":{"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","name":"CPaaS API","type":"folder"}}}],"id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49","description":"<p>Ytel V4 REST API</p>\n<p>The V4 apis are all authenticated using a JWT bearer token that can be obtained by making a request to <a href=\"https://api.ytel.com/auth/v2/token/\"><b>https://api.ytel.com/auth/v3/token/</b></a> (see documentation). The returned token from that call will have two tokens in its payload. The first token <em>accessToken</em> is used for identity verification on all requests to the V4 endpoints. The second token <em>refreshToken</em> is used to get new access tokens. By default an access token is valid for 120 minutes.</p>\n<p>The accessToken should be embedded in the Authorization header with a format of <code>Bearer {{accessToken}}</code> where {{accessToken}} is the <strong>accessToken</strong>.</p>\n<p>The general structure of a V4 response will look like:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"status\": true,\n  \"count\": 1,\n  \"page\": 1,\n  \"payload\": [],\n  \"error\": []\n}\n\n</code></pre><ul>\n<li><p><strong>status</strong>: This will be true or false. If true the <strong>payload</strong> array will be populated, If false the <strong>error</strong> array will be populated. Some calls doing bulk operations may return both with a success response.</p>\n</li>\n<li><p><strong>count</strong>: Number of results in the payload.</p>\n</li>\n<li><p><strong>page</strong>: Generally 1. For requests that support paging this will be the page number.</p>\n</li>\n<li><p><strong>payload</strong>: For successful calls this will be a list of JSON objects. Refer to the individual call for the expected payload object.</p>\n</li>\n<li><p><strong>error</strong>: For failed calls this will be a list of error objects. Typically there will only be 1 error.</p>\n</li>\n</ul>\n<p>Example error</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"code\": \"403\",\n  \"message\": \"Authentication Error\",\n  \"moreInfo\": \"Bad token\"\n}\n\n</code></pre><ul>\n<li><p><strong>code</strong>: Error code for the error encountered. In most cases this will be an integer wrapped in a String.</p>\n</li>\n<li><p><strong>message</strong>: Human readable error message describing the failure.</p>\n</li>\n<li><p><strong>moreInfo</strong>: Optional field that has error specific data.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"3d38634a-c5de-47f8-a9cb-ff4676859ea5"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"62c88606-fb1d-4060-9b87-9ae20d2040f2"}}],"_postman_id":"14e0156b-7eea-46e4-9e90-0fbb78dfde49"},{"name":"CCaaS API","item":[{"name":"Agent API","item":[{"name":"external_hangup","id":"3f0f7cf4-a1ff-4228-94e1-ea5569ab7034","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=external_hangup&user=&pass=&agent_user=&source=&close_window_link=","description":"<p>sends command to hangup the current phone call for one specific agent(Hangup Customer)</p>\n","urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: external_hangup</p>\n","type":"text/plain"},"key":"function","value":"external_hangup"},{"description":{"content":"<p>is the API user</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>is the ytel agent user whose session that you want to affect</p>\n","type":"text/plain"},"key":"agent_user","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>will display a link to close the window, useful if you pop up the API link in a browser window</p>\n","type":"text/plain"},"key":"close_window_link","value":""}],"variable":[]}},"response":[],"_postman_id":"3f0f7cf4-a1ff-4228-94e1-ea5569ab7034"},{"name":"external_status","id":"df424a51-189c-4c63-903b-4475709e3af8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=external_status&user=&pass=&agent_user=&source=&close_window_link=&language=&value=&callback_datetime=&callback_type=&callback_comments=&qm_dispo_code=","description":"<p>sends command to set the disposition for one specific agent and move on to next call</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: external_status</p>\n","type":"text/plain"},"key":"function","value":"external_status"},{"description":{"content":"<p>is the API user</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>is the ytel agent user whose session that you want to affect</p>\n","type":"text/plain"},"key":"agent_user","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>will display a link to close the window, useful if you pop up the API link in a browser window</p>\n","type":"text/plain"},"key":"close_window_link","value":""},{"description":{"content":"<p>currently only works for close window link: en=English, es=Spanish</p>\n","type":"text/plain"},"key":"language","value":""},{"description":{"content":"<p>Any valid status in the Ytel system will work for this function</p>\n","type":"text/plain"},"key":"value","value":""},{"description":{"content":"<p>YYYY-MM-DD+HH:MM:SS, date and time of scheduled callback. REQUIRED if callback is set and status is flagged as a scheduled callback</p>\n","type":"text/plain"},"key":"callback_datetime","value":""},{"description":{"content":"<p>USERONLY or ANYONE, default is ANYONE</p>\n","type":"text/plain"},"key":"callback_type","value":""},{"description":{"content":"<p>Optional comments to appear when the callback is called back, must be less than 200 characters in length</p>\n","type":"text/plain"},"key":"callback_comments","value":""},{"description":{"content":"<p>Option callstatus code used if QM is enabled</p>\n","type":"text/plain"},"key":"qm_dispo_code","value":""}],"variable":[]}},"response":[],"_postman_id":"df424a51-189c-4c63-903b-4475709e3af8"},{"name":"external_pause","id":"40ce7bfc-729d-4983-b536-29afd0aad2d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=external_pause&user=&pass=&agent_user=&source=&value=","description":"<p>sends command to pause/resume an agent now if not on a call, or pause after their next call if on call</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: external_pause</p>\n","type":"text/plain"},"key":"function","value":"external_pause"},{"description":{"content":"<p>is the API user</p>\n","type":"text/plain"},"key":"user","value":""},{"key":"pass","value":""},{"key":"agent_user","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>PAUSE: Pauses the agent session\nRESUME: Resumes the agent session</p>\n","type":"text/plain"},"key":"value","value":""}],"variable":[]}},"response":[],"_postman_id":"40ce7bfc-729d-4983-b536-29afd0aad2d8"},{"name":"external_dial","id":"25dda43e-ef5e-45d6-bf91-f108eaceb41a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=external_dial&user=&pass=&source=&value=&lead_id=&phone_code=&search=&preview=&focus=&vendor_id=&dial_prefix=&group_alias=&alt_user=&alt_dial=","description":"<p>Places a manual dial phone call on the agent screen, you can define whether to search for the lead in the existing database or not and you can define the phone_code and the number to dial. This action will pause the agent after their current call, enter in the information to place the call, and dialing the call on the agent screen.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: external_dial</p>\n","type":"text/plain"},"key":"function","value":"external_dial"},{"description":{"content":"<p>is the API user</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>Any valid phone number, or \"MANUALNEXT\" to mimic the Dial Next Number button</p>\n","type":"text/plain"},"key":"value","value":""},{"description":{"content":"<p>Any valid lead_id from the system either value or lead_id are required if both are defined, lead_id will override value</p>\n","type":"text/plain"},"key":"lead_id","value":""},{"description":{"content":"<p>Any valid phone country code 1 for USA</p>\n","type":"text/plain"},"key":"phone_code","value":""},{"description":{"content":"<p>YES: perform a search in the campaign-defined ytel_list list for this phone number and bring up that lead\nNO: do not search, create a new ytel_list record for the call</p>\n","type":"text/plain"},"key":"search","value":""},{"description":{"content":"<p>YES: preview the lead in the ytel screen without dialing\nNO: do not preview the lead, place call immediately</p>\n","type":"text/plain"},"key":"preview","value":""},{"description":{"content":"<p>YES: change the focus of the screen to the ytel.php agent interface, brings up an alert in the browser window\nNO: do not change focus</p>\n","type":"text/plain"},"key":"focus","value":""},{"description":{"content":"<p>OPTIONAL, any valid Vendor lead code</p>\n","type":"text/plain"},"key":"vendor_id","value":""},{"description":{"content":"<p>OPTIONAL, any dial prefix that you want to add to the beginning of the dial string for this call</p>\n","type":"text/plain"},"key":"dial_prefix","value":""},{"description":{"content":"<p>OPTIONAL, the outbound callerID(from an existing group-alias) that you want to use for this call</p>\n","type":"text/plain"},"key":"group_alias","value":""},{"description":{"content":"<p>OPTIONAL, instead of agent_user, this is to lookup the agent_user using the ytel_users.custom_three field</p>\n","type":"text/plain"},"key":"alt_user","value":""},{"description":{"content":"<p>OPTIONAL, if using lead_id you can set this flag to dial the ALT number or the ADDR3 number or SEARCH a phone_number within the lead\nif SEARCH is used and the phone_number is not matched with the lead's phone_number, alt_phone or address3 field an ERROR will be returned</p>\n","type":"text/plain"},"key":"alt_dial","value":""}],"variable":[]}},"response":[],"_postman_id":"25dda43e-ef5e-45d6-bf91-f108eaceb41a"},{"name":"preview_dial_action","id":"006ac1ed-3ad6-4bfa-874c-37239a7aa19a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=preview_dial_action&user=&pass=&source=&value=&agent_user=","description":"<p> sends a SKIP, DIALONLY, ALTDIAL, ADR3DIAL or FINISH when a lead is being previewed or manual alt dial</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: preview_dial_action</p>\n","type":"text/plain"},"key":"function","value":"preview_dial_action"},{"description":{"content":"<p>is the API user</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>One of the following actions SKIP, DIALONLY, ALTDIAL, ADR3DIAL or FINISH</p>\n","type":"text/plain"},"key":"value","value":""},{"description":{"content":"<p>REQUIRED alphanumeric string for active agent user</p>\n","type":"text/plain"},"key":"agent_user","value":""}],"variable":[]}},"response":[],"_postman_id":"006ac1ed-3ad6-4bfa-874c-37239a7aa19a"},{"name":"external_add_lead","id":"778e91ed-a069-4256-910b-37ba2733bc1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=external_add_lead&user=&pass=&source=&agent_user=&dnc_check=&campaign_dnc_check=&address1=&address2=&address3=&alt_phone=&city=&comments=&country_code=&date_of_birth=&email=&first_name=&gender=&gmt_offset_now=&last_name=&middle_initial=&phone_number=&phone_code=&postal_code=&province=&security_phrase=&source_id=&state=&title=&vendor_lead_code=&rank=&owner=","description":"<p>Adds a lead in the manual dial list of the campaign for logged-in agent. A much simplified add lead function compared to the Non-Agent API function</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: external_add_lead</p>\n","type":"text/plain"},"key":"function","value":"external_add_lead"},{"description":{"content":"<p>is the API user</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call (maximum 20 characters)</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>REQUIRED alphanumeric string for agent user</p>\n","type":"text/plain"},"key":"agent_user","value":""},{"description":{"content":"<p>OPTIONAL: Check for number against system DNC</p>\n","type":"text/plain"},"key":"dnc_check","value":""},{"description":{"content":"<p>OPTIONAL: Check for number against campaign DNC from the agent's campaign</p>\n","type":"text/plain"},"key":"campaign_dnc_check","value":""},{"key":"address1","value":""},{"key":"address2","value":""},{"key":"address3","value":""},{"key":"alt_phone","value":""},{"key":"city","value":""},{"key":"comments","value":""},{"key":"country_code","value":""},{"key":"date_of_birth","value":""},{"key":"email","value":""},{"key":"first_name","value":""},{"key":"gender","value":""},{"key":"gmt_offset_now","value":""},{"key":"last_name","value":""},{"key":"middle_initial","value":""},{"key":"phone_number","value":""},{"key":"phone_code","value":""},{"key":"postal_code","value":""},{"key":"province","value":""},{"key":"security_phrase","value":""},{"key":"source_id","value":""},{"key":"state","value":""},{"key":"title","value":""},{"key":"vendor_lead_code","value":""},{"key":"rank","value":""},{"key":"owner","value":""}],"variable":[]}},"response":[],"_postman_id":"778e91ed-a069-4256-910b-37ba2733bc1d"},{"name":"change_ingroups","id":"044e767a-77ee-4bce-a7ad-95843b928718","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=change_ingroups&user=&pass=&source=&value=&blended=&ingroup_choices=&set_as_default=","description":"<p>changes the selected in-groups for a logged-in agent</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: change_ingroups</p>\n","type":"text/plain"},"key":"function","value":"change_ingroups"},{"description":{"content":"<p>is the API user</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call (maximum 20 characters)</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>CHANGE: will change all in-groups to those defined in ingroup_choices\nREMOVE: will only remove the listed in-groups\nADD: will only add the listed in-groups</p>\n","type":"text/plain"},"key":"value","value":""},{"description":{"content":"<p>YES: set the agent to take outbound auto-dialed calls not applicable in MANUAL and INBOUND_MAN dial method campaigns\nNO: set the agent to only take inbound calls</p>\n","type":"text/plain"},"key":"blended","value":""},{"description":{"content":"<p>OPTIONAL, a space-delimited use plusses + in the URL list of in-groups to allow the agent to take calls from, example: \" TEST_IN2 SALESLINE TRAINING_IN -\"</p>\n","type":"text/plain"},"key":"ingroup_choices","value":""},{"description":{"content":"<p>OPTIONAL, YES or NO - overwrites the settings for the agent in the user modification screen, default is NO</p>\n","type":"text/plain"},"key":"set_as_default","value":""}],"variable":[]}},"response":[],"_postman_id":"044e767a-77ee-4bce-a7ad-95843b928718"},{"name":"update_fields","id":"25e197f0-fe98-467c-a329-8fb1ed5bdaf5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=update_fields&user=&pass=&source=&agent_user=&address1=&address2=&address3=&alt_phone=&city=&comments=&country_code=&date_of_birth=&email=&first_name=&gender=&gmt_offset_now=&last_name=&middle_initial=&phone_number=&phone_code=&postal_code=&province=&security_phrase=&source_id=&state=&title=&vendor_lead_code=&rank=&owner=","description":"<p>changes values for selected data fields in the agent interface</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: update_fields</p>\n","type":"text/plain"},"key":"function","value":"update_fields"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>API User Password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>REQUIRED alphanumeric string for agent use</p>\n","type":"text/plain"},"key":"agent_user","value":""},{"key":"address1","value":""},{"key":"address2","value":""},{"key":"address3","value":""},{"key":"alt_phone","value":""},{"key":"city","value":""},{"key":"comments","value":""},{"key":"country_code","value":""},{"key":"date_of_birth","value":""},{"key":"email","value":""},{"key":"first_name","value":""},{"key":"gender","value":""},{"key":"gmt_offset_now","value":""},{"key":"last_name","value":""},{"key":"middle_initial","value":""},{"key":"phone_number","value":""},{"key":"phone_code","value":""},{"key":"postal_code","value":""},{"key":"province","value":""},{"key":"security_phrase","value":""},{"key":"source_id","value":""},{"key":"state","value":""},{"key":"title","value":""},{"key":"vendor_lead_code","value":""},{"key":"rank","value":""},{"key":"owner","value":""}],"variable":[]}},"response":[],"_postman_id":"25e197f0-fe98-467c-a329-8fb1ed5bdaf5"},{"name":"set_timer_action","id":"a7ab1b17-8da7-4c88-9c73-9ecf9f0d727e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=set_timer_action&user=&pass=&source=&agent_user=&value=&notes=&rank=","description":"<p>Updates the fields that are specified with the values. This will update the data that is on the agent's screen in the customer information section.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: set_timer_action</p>\n","type":"text/plain"},"key":"function","value":"set_timer_action"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>REQUIRED, alphanumeric string for agent user</p>\n","type":"text/plain"},"key":"agent_user","value":""},{"description":{"content":"<p>REQUIRED, one of these choices: 'NONE','WEBFORM','WEBFORM2','D1_DIAL','D2_DIAL','D3_DIAL','D4_DIAL','D5_DIAL','MESSAGE_ONLY'</p>\n","type":"text/plain"},"key":"value","value":""},{"description":{"content":"<p>Optional, the message to be displayed with the timer action</p>\n","type":"text/plain"},"key":"notes","value":""},{"description":{"content":"<p>Optional, the number of seconds into the call to display</p>\n","type":"text/plain"},"key":"rank","value":""}],"variable":[]}},"response":[],"_postman_id":"a7ab1b17-8da7-4c88-9c73-9ecf9f0d727e"},{"name":"st_login_log","id":"0a7b71fe-fa62-419c-8df2-b67f7729073e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=st_login_log&user=&pass=&source=&value=&vendor_id=","description":"<p>Looks up the ytel_users.custom_three field(as \"agentId\") to associate with a ytel user ID. If found it will populate the custom_four field with a \"teamId\" value, then output the ytel user ID</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: st_login_log</p>\n","type":"text/plain"},"key":"function","value":"st_login_log"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>REQUIRED alphanumeric string for CRM AgentID</p>\n","type":"text/plain"},"key":"value","value":""},{"description":{"content":"<p>REQUIRED alphanumeric string for CRM TeamID</p>\n","type":"text/plain"},"key":"vendor_id","value":""}],"variable":[]}},"response":[],"_postman_id":"0a7b71fe-fa62-419c-8df2-b67f7729073e"},{"name":"st_get_agent_active_lead","id":"839f3dce-a99b-49f1-be6a-e3efbe8482e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=st_get_agent_active_lead&user=&pass=&source=&value=&vendor_id=","description":"<p>Looks up the ytel_users.custom_three field(as \"agentId\") to associate with a ytel user ID. If found it will output the active lead_id and phone number, vendor_lead_code, province, security_phrase and source_id fields.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: st_get_agent_active_lead</p>\n","type":"text/plain"},"key":"function","value":"st_get_agent_active_lead"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>REQUIRED alphanumeric string for CRM AgentID</p>\n","type":"text/plain"},"key":"value","value":""},{"description":{"content":"<p>REQUIRED alphanumeric string for CRM TeamID</p>\n","type":"text/plain"},"key":"vendor_id","value":""}],"variable":[]}},"response":[],"_postman_id":"839f3dce-a99b-49f1-be6a-e3efbe8482e5"},{"name":"ra_call_control","id":"6aa00570-fb28-43b8-9da6-9cfcebbfbaf2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=ra_call_control&user=&pass=&source=&value=&agent_user=&stage=&ingroup_choices=&phone_number=&status=","description":"<p>Allows for remote agent call control: hangup/transfer calls being handled by remote agents, also options for recording a disposition and call length</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: ra_call_control</p>\n","type":"text/plain"},"key":"function","value":"ra_call_control"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>REQUIRED, The call ID of the call as received as CallerIDname field or a special SIP-header, i.e. Y0315201639000402027</p>\n","type":"text/plain"},"key":"value","value":""},{"description":{"content":"<p>REQUIRED, alphanumeric string for remote agent use</p>\n","type":"text/plain"},"key":"agent_user","value":""},{"description":{"content":"<p>REQUIRED, one of these choices: 'HANGUP','EXTENSIONTRANSFER','INGROUPTRANSFER'</p>\n","type":"text/plain"},"key":"stage","value":""},{"description":{"content":"<p>OPTIONAL, only required if INGROUPTRANSFER stage is used, must be a single active in-group, reserved option of \"DEFAULTINGROUP\" can be used to send the call to the default in-group for the in-group or campaign that originated the call to the remote agent</p>\n","type":"text/plain"},"key":"ingroup_choices","value":""},{"description":{"content":"<p>OPTIONAL, only required if EXTENSIONTRANSFER stage is used, must be a full number when dialed that will dial through the default context</p>\n","type":"text/plain"},"key":"phone_number","value":""},{"description":{"content":"<p>OPTIONAL, status of the call, maximum of 6 characters, if not set, status will be RAXFER</p>\n","type":"text/plain"},"key":"status","value":""}],"variable":[]}},"response":[],"_postman_id":"6aa00570-fb28-43b8-9da6-9cfcebbfbaf2"},{"name":"send_dtmf","id":"a00c560b-d837-4d94-bc53-21eb226da035","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=send_dtmf&user=&pass=&source=&value=&agent_user=","description":"<p>Sends dtmf signal string to agent's session</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: send_dtmf</p>\n","type":"text/plain"},"key":"function","value":"send_dtmf"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>only valid DTMF characters with these replacements:\n  P = # (pound or hash)\n  S = * (star)\n  Q = (one second of silence)</p>\n","type":"text/plain"},"key":"value","value":""},{"key":"agent_user","value":""}],"variable":[]}},"response":[],"_postman_id":"a00c560b-d837-4d94-bc53-21eb226da035"},{"name":"transfer_conference","id":"76d6bdd4-7ce5-426f-bfed-55856091893e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=transfer_conference&user=&pass=&source=&value=&agent_user=&phone_number=&ingroup_choices=&consultative=&dial_override=&group_alias=","description":"<p>sends several commands related to the agent transfer-conf frame</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: transfer_conference</p>\n","type":"text/plain"},"key":"function","value":"transfer_conference"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>   HANGUP_XFER - hangup the third party line\n   HANGUP_BOTH - hangup customer and third party line\n   BLIND_TRANSFER - send a call to a defined phone number\n   LEAVE_VM - blind transfer customer to the campaign-defined voicemail message\n   LOCAL_CLOSER - send call to another ytel agent, must have in-group, optional phone_number field for AGENTDIRECT agent\n   DIAL_WITH_CUSTOMER - 3-way call with customer on the line\n   PARK_CUSTOMER_DIAL - send customer to park and place a call to a third party\n   LEAVE_3WAY_CALL - leave customer and third party in conference and go to the disposition screen</p>\n","type":"text/plain"},"key":"value","value":""},{"key":"agent_user","value":""},{"description":{"content":"<p>OPTIONAL/REQUIRED, required for any transfer or dial value</p>\n","type":"text/plain"},"key":"phone_number","value":""},{"description":{"content":"<p>OPTIONAL/REQUIRED, required for local_closer and consultative transfers, must be a single active in-group, reserved option of \"DEFAULTINGROUP\" can be used to select the default in-group for the in-group or campaign that the call originated from</p>\n","type":"text/plain"},"key":"ingroup_choices","value":""},{"description":{"content":"<p>OPTIONAL, when you want to do a consultative transfer with your customer and another ytel agent, 'YES' and 'NO' are valid options, you can only use this with DIAL_WITH_CUSTOMER or PARK_CUSTOMER_DIAL</p>\n","type":"text/plain"},"key":"consultative","value":""},{"description":{"content":"<p>OPTIONAL, dials exactly the phone number specified with no campaign-defined phone code or prefix</p>\n","type":"text/plain"},"key":"dial_override","value":""},{"description":{"content":"<p>OPTIONAL, defines what caller ID number to use when doing DIAL_WITH_CUSTOMER or PARK_CUSTOMER_DIAL</p>\n","type":"text/plain"},"key":"group_alias","value":""}],"variable":[]}},"response":[],"_postman_id":"76d6bdd4-7ce5-426f-bfed-55856091893e"},{"name":"park_call","id":"1ea5137e-e567-4f74-a3cc-9dda60471828","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=park_call&user=&pass=&source=&agent_user=&value=","description":"<p> sends command to park customer or grab customer from park or ivr</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: park_call</p>\n","type":"text/plain"},"key":"function","value":"park_call"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"key":"agent_user","value":""},{"description":{"content":"<p>PARK_CUSTOMER - send customer to the park extension as defined in the campaign the agent is logged into\nGRAB_CUSTOMER - grab customer from the park extension and send them to the agent session\nPARK_IVR_CUSTOMER - send customer to the park ivr as defined in the campaign the agent is logged into, customer will come back after finishing IVR\nGRAB_IVR_CUSTOMER - grab customer from the park ivr and send them to the agent session</p>\n","type":"text/plain"},"key":"value","value":""}],"variable":[]}},"response":[],"_postman_id":"1ea5137e-e567-4f74-a3cc-9dda60471828"},{"name":"logout","id":"f291213a-21c6-41c8-9a35-2cd18c8d7883","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=logout&user=&pass=&source=&value=logout&agent_user=","description":"<p>Logs the agent out of the agent interface. If the agent is on a live call, will logout after the live call is dispositioned</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: logout</p>\n","type":"text/plain"},"key":"function","value":"logout"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>Logout the agent session</p>\n","type":"text/plain"},"key":"value","value":"logout"},{"description":{"content":"<p>Agent ID to log out</p>\n","type":"text/plain"},"key":"agent_user","value":""}],"variable":[]}},"response":[],"_postman_id":"f291213a-21c6-41c8-9a35-2cd18c8d7883"},{"name":"recording","id":"5950202c-1e86-4790-a3c6-82c82c93e498","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=recording&user=&pass=&source=&value=&stage=&agent_user=","description":"<p>sends a recording start/stop signal or status of agent recording</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: recording</p>\n","type":"text/plain"},"key":"function","value":"recording"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>START - sends a \"start recording\" signal to the agent screen\n            (you can have multiple recordings going at the same time)\n   STOP - sends a \"stop recording\" signal to the agent screen\n            (this will stop all active recordings onthe agent screen)\n   STATUS - displays results of active recording and agent session information\n            (returns: user|recording_id|filename|server|start_time|agent_server|session|agent_status)</p>\n","type":"text/plain"},"key":"value","value":""},{"description":{"content":"<p>OPTIONAL, value to append to the recording filename, limited to 14 characters, if more it will truncate. Only works with START value</p>\n","type":"text/plain"},"key":"stage","value":""},{"key":"agent_user","value":""}],"variable":[]}},"response":[],"_postman_id":"5950202c-1e86-4790-a3c6-82c82c93e498"},{"name":"webserver","id":"4dbae70e-ab92-4e93-a337-3d95be1cf378","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?function=webserver&user=&pass=&source=","description":"<p> display webserver information, very useful for load balanced setups</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: webserver</p>\n","type":"text/plain"},"key":"function","value":"webserver"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""}],"variable":[]}},"response":[],"_postman_id":"4dbae70e-ab92-4e93-a337-3d95be1cf378"},{"name":"webphone_url","id":"daedfe27-ba6a-48e1-87ea-955ff2587595","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?user=&pass=&source=&function=webphone_url&value=&agent_user=","description":"<p> display the webphone url for the current agent's session</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>Required Value: webphone_url</p>\n","type":"text/plain"},"key":"function","value":"webphone_url"},{"description":{"content":"<p>  REQUIRED, choices are below:\n   DISPLAY - displays only the URL for the webphone if enabled\n   LAUNCH - redirects the url to the webphone url to launch it</p>\n","type":"text/plain"},"key":"value","value":""},{"key":"agent_user","value":""}],"variable":[]}},"response":[],"_postman_id":"daedfe27-ba6a-48e1-87ea-955ff2587595"},{"name":"call_agent","id":"872e2202-2acc-4f76-8a59-bfe2522be069","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?user=&pass=&source=&function=call_agent&value=&agent_user=","description":"<p>send a call to connect the agent to their session</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>Required Value: call_agent</p>\n","type":"text/plain"},"key":"function","value":"call_agent"},{"description":{"content":"<p>  REQUIRED, choices are below:\n   CALL - places call from the agent session to the agent's phone</p>\n","type":"text/plain"},"key":"value","value":""},{"key":"agent_user","value":""}],"variable":[]}},"response":[],"_postman_id":"872e2202-2acc-4f76-8a59-bfe2522be069"},{"name":"pause_code","id":"9d50ee04-9820-40cd-aed6-392e08faf76a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/agent.php?user=&pass=&source=&function=pause_code&value=&agent_user=","description":"<p>set a pause code if the agent is paused</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","name":"Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>is the API user password</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>Required Value: pause_code</p>\n","type":"text/plain"},"key":"function","value":"pause_code"},{"description":{"content":"<p>pause code to set, must be 6 characters or less</p>\n","type":"text/plain"},"key":"value","value":""},{"key":"agent_user","value":""}],"variable":[]}},"response":[],"_postman_id":"9d50ee04-9820-40cd-aed6-392e08faf76a"}],"id":"cad6a687-a4d8-4ead-84be-d60f260c9f83","description":"<p>The Agent API is a collection of API calls that can be used to interact with Ytel's Contact Center System. More specifically the Agent API's let you interact and modify a specific Agent's Interface in real-time. In order to use the API's you must first create an API user within your Admin interface. Please Contact Ytel Support at 800-382-4913 for assistance with creating an API user.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"f26a73c7-5914-49da-b179-8fb61756ba72"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"2746c807-7402-481f-bdfc-f5481c9c6e66"}}],"_postman_id":"cad6a687-a4d8-4ead-84be-d60f260c9f83"},{"name":"Non-Agent API","item":[{"name":"vm_list","id":"cc7b979a-e539-4fb4-903c-2ccac9dfd9eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=vm_list&user=101&pass=123Password&source=postman&format=&comments=","description":"<p>outputs a list of voicemail boxes in the system</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: vm_list</p>\n","type":"text/plain"},"key":"function","value":"vm_list"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"},{"description":{"content":"<p>format of the output(tab, link, selectframe)</p>\n","type":"text/plain"},"key":"format","value":""},{"description":{"content":"<p>name of the field to populate</p>\n","type":"text/plain"},"key":"comments","value":""}],"variable":[]}},"response":[],"_postman_id":"cc7b979a-e539-4fb4-903c-2ccac9dfd9eb"},{"name":"blind_monitor","id":"d1d233c4-9a46-4def-b7d7-ca4c7be98c51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=blind_monitor&user=101&pass=123Password&source=postman&phone_login=&session_id=&server_ip=&stage=","description":"<p>calls user-defined phone and places them in session as blind monitor</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: blind_monitor</p>\n","type":"text/plain"},"key":"function","value":"blind_monitor"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"},{"description":{"content":"<p>alpha-numeric, no spaces or special characters allowed</p>\n","type":"text/plain"},"key":"phone_login","value":""},{"description":{"content":"<p>must be all numbers, 7 digits</p>\n","type":"text/plain"},"key":"session_id","value":""},{"description":{"content":"<p>must be all numbers and dots, max 15 characters</p>\n","type":"text/plain"},"key":"server_ip","value":""},{"description":{"content":"<p>MONITOR or BARGE default is MONITOR</p>\n","type":"text/plain"},"key":"stage","value":""}],"variable":[]}},"response":[],"_postman_id":"d1d233c4-9a46-4def-b7d7-ca4c7be98c51"},{"name":"agent_ingroup_info","id":"28465e69-4c5f-4eb6-b60c-e1b6287aa610","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=agent_ingroup_info&user=101&pass=123Password&source=postman&stage=&agent_user=","description":"<p>shows in-group and outbound auto-dial info for logged-in agent</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: agent_ingroup_info</p>\n","type":"text/plain"},"key":"function","value":"agent_ingroup_info"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"},{"description":{"content":"<p>info(show information only), change(show options to change), text(standard non-HTML output)</p>\n","type":"text/plain"},"key":"stage","value":""},{"description":{"content":"<p>2-20 characters</p>\n","type":"text/plain"},"key":"agent_user","value":""}],"variable":[]}},"response":[],"_postman_id":"28465e69-4c5f-4eb6-b60c-e1b6287aa610"},{"name":"recording_lookup","id":"764fe033-7d33-4c91-a4f3-3532aee4aab1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=recording_lookup&user=101&pass=123Password&source=postman&agent_user=&lead_id=&date=&uniqueid=&stage=&header=","description":"<p>looks up recordings based upon user and date or lead_id. There is a hard limit of 100000 results</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: recording_lookup</p>\n","type":"text/plain"},"key":"function","value":"recording_lookup"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"},{"description":{"content":"<p>2-20 characters</p>\n","type":"text/plain"},"key":"agent_user","value":""},{"description":{"content":"<p>1-10 digits</p>\n","type":"text/plain"},"key":"lead_id","value":""},{"description":{"content":"<p>date of the calls to pull (must be in YYYY-MM-DD format)</p>\n","type":"text/plain"},"key":"date","value":""},{"description":{"content":"<p>uniqueid of the call, works best included with another search field</p>\n","type":"text/plain"},"key":"uniqueid","value":""},{"description":{"content":"<p>the format of the exported data: csv, tab, pipe(default)</p>\n","type":"text/plain"},"key":"stage","value":""},{"description":{"content":"<p>include a header(YES) or not(NO). This is optional, default is not to include a header</p>\n","type":"text/plain"},"key":"header","value":""}],"variable":[]}},"response":[],"_postman_id":"764fe033-7d33-4c91-a4f3-3532aee4aab1"},{"name":"did_log_export","id":"12522979-ecc2-4e2c-8e46-6aecae29a185","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=did_log_export&user=101&pass=123Password&source=postman&phone_number=&date=&stage=&header=","description":"<p>exports all calls inbound to a DID for one day. There is a hard limit of 100000 results</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: did_log_export</p>\n","type":"text/plain"},"key":"function","value":"did_log_export"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"},{"description":{"content":"<p>2-20 characters, the DID that you want to pull logs for</p>\n","type":"text/plain"},"key":"phone_number","value":""},{"description":{"content":"<p>date of the calls to pull (must be in YYYY-MM-DD format)</p>\n","type":"text/plain"},"key":"date","value":""},{"description":{"content":"<p>the format of the exported data: csv, tab, pipe(default)</p>\n","type":"text/plain"},"key":"stage","value":""},{"description":{"content":"<p>include a header(YES) or not(NO). This is optional, default is not to include a header</p>\n","type":"text/plain"},"key":"header","value":""}],"variable":[]}},"response":[],"_postman_id":"12522979-ecc2-4e2c-8e46-6aecae29a185"},{"name":"agent_stats_export","id":"c0e8e16e-ed41-45cf-90e1-e46cdfc1855f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=agent_stats_export&user=101&pass=123Password&source=postman&datetime_start=&datetime_end=&agent_user=&stage=&header=&time_format=","description":"<p>exports agent statistics for set time period. There is a hard limit of 10000000 records analyzed</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: agent_stats_export</p>\n","type":"text/plain"},"key":"function","value":"agent_stats_export"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"},{"description":{"content":"<p>start date/time of the agent activity to pull (must be in \"YYYY-MM-DD+HH:MM:SS\" format)</p>\n","type":"text/plain"},"key":"datetime_start","value":""},{"description":{"content":"<p>end date/time of the agent activity to pull (must be in \"YYYY-MM-DD+HH:MM:SS\" format)</p>\n","type":"text/plain"},"key":"datetime_end","value":""},{"description":{"content":"<p>2-20 characters, use only for one agent stats</p>\n","type":"text/plain"},"key":"agent_user","value":""},{"description":{"content":"<p>the format of the exported data: csv, tab, pipe(default)</p>\n","type":"text/plain"},"key":"stage","value":""},{"description":{"content":"<p>include a header(YES) or not(NO). This is optional, default is not to include a header</p>\n","type":"text/plain"},"key":"header","value":""},{"description":{"content":"<p> time format('H','HF','M','S') in hours, minutes or seconds: H = 1:23:45, M = 83:45, S = 5023  (default 'HF')\n                * HF will force hour format even for zero seconds time \"0:00:00\"</p>\n","type":"text/plain"},"key":"time_format","value":""}],"variable":[]}},"response":[],"_postman_id":"c0e8e16e-ed41-45cf-90e1-e46cdfc1855f"},{"name":"add_lead","id":"5e9930d1-07e3-4ec5-bdb9-44cfe027ed98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=add_lead&user=101&pass=123Password&source=postman&phone_number=&phone_code=&list_id=&dnc_check=&campaign_dnc_check=&campaign_id=&add_to_hopper=&hopper_priority=&duplicate_check=&usacan_prefix_check=&usacan_areacode_check=&custom_fields=&tz_method=&callback=&callback_status=&callback_datetime=&callback_type=&callback_user=&callback_comments=&vendor_lead_code=&source_id=&gmt_offset_now=&title=&first_name=&middle_initial=&last_name=&address1=&address2=&address3=&city=&state=&province=&postal_code=&country_code=&gender=&date_of_birth=&alt_phone=&email=&security_phrase=&comments=&multi_alt_phones=&rank=&owner=","description":"<p>adds a new lead to the ytel list table with several fields and options</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: add_lead</p>\n","type":"text/plain"},"key":"function","value":"add_lead"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password </p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"},{"description":{"content":"<p>Must be all numbers, 6-16 digits (USA - North America 10 Digits Only)</p>\n","type":"text/plain"},"key":"phone_number","value":""},{"description":{"content":"<p> must be all numbers, 1-4 digits, defaults to 1 if not set</p>\n","type":"text/plain"},"key":"phone_code","value":""},{"description":{"content":"<p>must be all numbers, 3-12 digits, defaults to 999 if not set</p>\n","type":"text/plain"},"key":"list_id","value":""},{"description":{"content":"<p>Y, N or AREACODE, default is N</p>\n","type":"text/plain"},"key":"dnc_check","value":""},{"description":{"content":"<p>Y, N or AREACODE, default is N</p>\n","type":"text/plain"},"key":"campaign_dnc_check","value":""},{"description":{"content":"<p>2-8 Character campaign ID, required if using campaign_dnc_check or callbacks</p>\n","type":"text/plain"},"key":"campaign_id","value":""},{"description":{"content":"<p>Y or N, default is N</p>\n","type":"text/plain"},"key":"add_to_hopper","value":""},{"description":{"content":"<p>99 to -99, the higher number the higher priority, default is 0</p>\n","type":"text/plain"},"key":"hopper_priority","value":""},{"description":{"content":"<p>Check for duplicate records in the system, can select more than one (duplicate_check=DUPLIST-DUPTITLEALTPHONELIST)\n            If duplicate is found, will return error, the duplicate data and lead_id and list_id of existing record\n            Here are the duplicate_check options:\n                DUPLIST - check for duplicate phone_number in same list\n                DUPCAMP - check for duplicate phone_number in all lists for this list's campaign\n                DUPSYS - check for duplicate phone_number in entire system\n                DUPTITLEALTPHONELIST - check for duplicate title and alt_phone in same list\n                DUPTITLEALTPHONECAMP - check for duplicate title and alt_phone in all lists for this list's campaign\n                DUPTITLEALTPHONESYS - check for duplicate title and alt_phone in entire system\n                DUPNAMEPHONELIST - check for duplicate first_name, last_name and phone_number in same list\n                DUPNAMEPHONECAMP - check for duplicate first_name, last_name and phone_number in all lists for this list's campaign\n                DUPNAMEPHONESYS - check for duplicate first_name, last_name and phone_number in entire system</p>\n","type":"text/plain"},"key":"duplicate_check","value":""},{"description":{"content":"<p>Y or N, default is N. Check for a valid 4th digit for USA and Canada phone numbers (cannot be 0 or 1)</p>\n","type":"text/plain"},"key":"usacan_prefix_check","value":""},{"description":{"content":"<p>Y or N, default is N. Check for a valid areacode for USA and Canada phone numbers</p>\n","type":"text/plain"},"key":"usacan_areacode_check","value":""},{"description":{"content":"<p>Y or N, default is N. Defines whether the API will accept custom field data when inserting leads into the ytel list table\n            For custom fields to be inserted, just add the field label as a variable to the URL string\n            For example, if the field_label is \"favorite_color\" you would add \"&amp;favorite_color=blue\"</p>\n","type":"text/plain"},"key":"custom_fields","value":""},{"description":{"content":"<p> , POSTAL or TZCODE, default is  which will use the country code and areacode for time zone lookups\n                POSTAL relies on the postal_code field\n                TZCODE relies on the owner field being populated with a proper time zone code</p>\n","type":"text/plain"},"key":"tz_method","value":""},{"description":{"content":"<p>Y or N, default is N. Set this lead as a scheduled callback. campaign_id field is REQUIRED for callbacks</p>\n","type":"text/plain"},"key":"callback","value":""},{"description":{"content":"<p>1-6 Character, callback status to use, default is CALLBK (ytel list status will be set to CBHOLD to lock)</p>\n","type":"text/plain"},"key":"callback_status","value":""},{"description":{"content":"<p>YYYY-MM-DD+HH:MM:SS, date and time of scheduled callback. REQUIRED if callback is set. NOW can be used for current datetime.</p>\n","type":"text/plain"},"key":"callback_datetime","value":""},{"description":{"content":"<p>USERONLY or ANYONE, default is ANYONE</p>\n","type":"text/plain"},"key":"callback_type","value":""},{"description":{"content":"<p>User ID the USERONLY callback is assigned to</p>\n","type":"text/plain"},"key":"callback_user","value":""},{"description":{"content":"<p>Optional comments to appear when the callback is called back</p>\n","type":"text/plain"},"key":"callback_comments","value":""},{"description":{"content":"<p>1-20 characters</p>\n","type":"text/plain"},"key":"vendor_lead_code","value":""},{"description":{"content":"<p>1-50 characters</p>\n","type":"text/plain"},"key":"source_id","value":""},{"description":{"content":"<p>overridden by auto-lookup of phone_code and area_code portion of phone number if applicable</p>\n","type":"text/plain"},"key":"gmt_offset_now","value":""},{"description":{"content":"<p>1-10 characters</p>\n","type":"text/plain"},"key":"title","value":""},{"description":{"content":"<p>1-30 characters</p>\n","type":"text/plain"},"key":"first_name","value":""},{"description":{"content":"<p>1 character</p>\n","type":"text/plain"},"key":"middle_initial","value":""},{"description":{"content":"<p>1-30 characters</p>\n","type":"text/plain"},"key":"last_name","value":""},{"description":{"content":"<p>1-100 characters</p>\n","type":"text/plain"},"key":"address1","value":""},{"description":{"content":"<p>1-100 characters</p>\n","type":"text/plain"},"key":"address2","value":""},{"description":{"content":"<p>1-100 characters</p>\n","type":"text/plain"},"key":"address3","value":""},{"description":{"content":"<p>1-50 characters</p>\n","type":"text/plain"},"key":"city","value":""},{"description":{"content":"<p>2 characters</p>\n","type":"text/plain"},"key":"state","value":""},{"description":{"content":"<p>1-50 characters</p>\n","type":"text/plain"},"key":"province","value":""},{"description":{"content":"<p>1-10 characters</p>\n","type":"text/plain"},"key":"postal_code","value":""},{"description":{"content":"<p>3 characters</p>\n","type":"text/plain"},"key":"country_code","value":""},{"description":{"content":"<p>U, M, F (Undefined, Male, Female) - defaults to 'U'</p>\n","type":"text/plain"},"key":"gender","value":""},{"description":{"content":"<p>YYYY-MM-DD</p>\n","type":"text/plain"},"key":"date_of_birth","value":""},{"description":{"content":"<p>1-12 characters</p>\n","type":"text/plain"},"key":"alt_phone","value":""},{"description":{"content":"<p>1-70 characters</p>\n","type":"text/plain"},"key":"email","value":""},{"description":{"content":"<p>1-100 characters</p>\n","type":"text/plain"},"key":"security_phrase","value":""},{"description":{"content":"<p>1-255 characters</p>\n","type":"text/plain"},"key":"comments","value":""},{"description":{"content":"<p>5-1024 characters (see examples for more info)\nMulti-ALT-Phones format:\n7275551212_1_work!7275551213_1_sister+house!1234567890_1_neighbor</p>\n","type":"text/plain"},"key":"multi_alt_phones","value":""},{"description":{"content":"<p>1-5 digits</p>\n","type":"text/plain"},"key":"rank","value":""},{"description":{"content":"<p>1-20 characters (user ID, Territory or user group)</p>\n","type":"text/plain"},"key":"owner","value":""}],"variable":[]}},"response":[],"_postman_id":"5e9930d1-07e3-4ec5-bdb9-44cfe027ed98"},{"name":"update_lead","id":"fb9c2d03-6ac9-45cd-9838-c4c712a41a45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=update_lead&user=101&pass=123Password&source=postman&lead_id=&vendor_lead_code=&phone_number=&search_method=&search_location=&insert_if_not_found=&records=&custom_fields=&no_update=&delete_lead=&reset_lead=&callback=&callback_status=&callback_datetime=&callback_type=&callback_user=&callback_comments=&ADDTODNC=&campaign_id=&add_to_hopper=&hopper_priority=&hopper_local_call_time_check=&user_field=&list_id_field=&status=&vendor_lead_code=&source_id=&gmt_offset_now=&title=&first_name=&middle_initial=&last_name=&address1=&address2=&address3=&city=&state=&province=&postal_code=&country_code=&gender=&date_of_birth=&alt_phone=&email=&security_phrase=&comments=&rank=&owner=&called_count=&custom_override=&from_ytel_api=&updateNumber=&addToFilterPhoneGroup=&filter_phone_group_id=","description":"<p>updates lead information in ytel list and associated custom table.</p>\n<p>NOTES:</p>\n<ul>\n<li>in order to set a field to empty('') set it equal to --BLANK--, i.e. \"&amp;province=--BLANK--\"</li>\n<li>please use no special characters like apostrophes, quotes or amphersands</li>\n</ul>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: update_lead</p>\n","type":"text/plain"},"key":"function","value":"update_lead"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"},{"description":{"content":"<p>must be all numbers, 1-9 digits, not required if using vendor_lead_code or phone_number</p>\n","type":"text/plain"},"key":"lead_id","value":""},{"description":{"content":"<p>can be used instead of lead_id to match leads</p>\n","type":"text/plain"},"key":"vendor_lead_code","value":""},{"description":{"content":"<p>can be used instead of lead_id or vendor_lead_code to match leads</p>\n","type":"text/plain"},"key":"phone_number","value":""},{"description":{"content":"<p>You can combine the following 3 options in this field to search the parameters you desire:\n                LEAD_ID, will attempt to find a match with the lead_id\n                VENDOR_LEAD_CODE, will attempt to find a match with the vendor_lead_code\n                PHONE_NUMBER, will attempt to find a match with the phone_number\n              For example to search lead_id and vendor_lead_code: \"&amp;search_method=LEAD_ID_VENDOR_LEAD_CODE\"\n              The search order is NOT preserved, Lead ID is always first, Vendor Lead Code is second\n              and Phone number is last. Default is \"LEAD_ID\"</p>\n","type":"text/plain"},"key":"search_method","value":""},{"description":{"content":"<p>Where to check for records in the system, can select only one(default is SYSTEM):\n                LIST - check for lead in same list\n                CAMPAIGN - check for lead in all lists for this list's campaign\n                SYSTEM - check for lead in entire system\n              If no list_id is defined, the the search_location will be assumed as SYSTEM</p>\n","type":"text/plain"},"key":"search_location","value":""},{"description":{"content":"<p>Y or N, will attempt to insert as a NEW lead if no match is found, default is N.\n            Insertion will require phone_code, phone_number and list_id. lead_id will be ignored.\n            Most of the add_lead options that are not available if you use this setting in this function</p>\n","type":"text/plain"},"key":"insert_if_not_found","value":""},{"description":{"content":"<p>number of records to update if more than 1 found (defaults to '1'[most recently loaded lead])</p>\n","type":"text/plain"},"key":"records","value":""},{"description":{"content":"<p>Y or N, default is N. Defines whether the API will accept custom field data when updating leads in the ytel list table\n            For custom fields to be updated, just add the field label as a variable to the URL string\n            For example, if the field_label is \"favorite_color\" you would add \"&amp;favorite_color=blue\"</p>\n","type":"text/plain"},"key":"custom_fields","value":""},{"description":{"content":"<p>Y or N, Setting this to Y will not perform any updates, but will instead only tell you if a lead exists that matches the search criteria, default is N.</p>\n","type":"text/plain"},"key":"no_update","value":""},{"description":{"content":"<p>Y or N, Setting this to Y will delete the lead from the ytel list table, default is N.</p>\n","type":"text/plain"},"key":"delete_lead","value":""},{"description":{"content":"<p>Y or N, Setting this to Y will reset the called-since-last-reset flag of the lead, default is N.</p>\n","type":"text/plain"},"key":"reset_lead","value":""},{"description":{"content":"<p>Y, N or REMOVE, default is N. Set this lead as a scheduled callback. REMOVE will delete the scheduled callback entry</p>\n","type":"text/plain"},"key":"callback","value":""},{"description":{"content":"<p>1-6 Character, callback status to use, default is CALLBK (ytel list status will be set to CBHOLD to lock)</p>\n","type":"text/plain"},"key":"callback_status","value":""},{"description":{"content":"<p>YYYY-MM-DD+HH:MM:SS, date and time of scheduled callback. REQUIRED if callback is set. NOW can be used for current datetime.</p>\n","type":"text/plain"},"key":"callback_datetime","value":""},{"description":{"content":"<p>USERONLY or ANYONE, default is ANYONE</p>\n","type":"text/plain"},"key":"callback_type","value":""},{"description":{"content":"<p>User ID the USERONLY callback is assigned to</p>\n","type":"text/plain"},"key":"callback_user","value":""},{"description":{"content":"<p>Optional comments to appear when the callback is called back</p>\n","type":"text/plain"},"key":"callback_comments","value":""},{"description":{"content":"<p>This option is required if status=DNC\nBOTH or CAMPAIGN or INTERNAL.  Setting this to \"BOTH\" will add the number to both the internal campaign DNC as well as the CAMPIAGN DNC.  CAMPAIGN will add the number to only the campaign DNC table.  INTERNAL will add the number only to the INTERNAL DNC list.campaignID - Required if Campaign.  is selected.  This is the campaign ID to add the number to the DNC list.</p>\n","type":"text/plain"},"key":"ADDTODNC","value":""},{"description":{"content":"<p>2-8 Character campaign ID, required if using campaign_dnc_check or callbacks</p>\n","type":"text/plain"},"key":"campaign_id","value":""},{"description":{"content":"<p>Y or N, default is N</p>\n","type":"text/plain"},"key":"add_to_hopper","value":""},{"description":{"content":"<p>99 to -99, the higher number the higher priority, default is 0</p>\n","type":"text/plain"},"key":"hopper_priority","value":""},{"description":{"content":"<p>Y or N, default is N. Validate the local call time and/or state call time before inserting lead in the hopper</p>\n","type":"text/plain"},"key":"hopper_local_call_time_check","value":""},{"description":{"content":"<p>1-20 characters, this updates the 'user' field in the ytel list table</p>\n","type":"text/plain"},"key":"user_field","value":""},{"description":{"content":"<p>3-12 digits, this updates the 'list_id' field in the ytel list table</p>\n","type":"text/plain"},"key":"list_id_field","value":""},{"description":{"content":"<p>1-6 characters, not punctuation or spaces (If status is DNC then the DNC option is ADDTODNC is required)</p>\n","type":"text/plain"},"key":"status","value":""},{"description":{"content":"<p>1-20 characters</p>\n","type":"text/plain"},"key":"vendor_lead_code","value":""},{"description":{"content":"<p>1-50 characters</p>\n","type":"text/plain"},"key":"source_id","value":""},{"description":{"content":"<p>overridden by auto-lookup of phone_code and area_code portion of phone number if applicable</p>\n","type":"text/plain"},"key":"gmt_offset_now","value":""},{"description":{"content":"<p>1-4 characters</p>\n","type":"text/plain"},"key":"title","value":""},{"description":{"content":"<p>1-30 characters</p>\n","type":"text/plain"},"key":"first_name","value":""},{"description":{"content":"<p>1 character</p>\n","type":"text/plain"},"key":"middle_initial","value":""},{"description":{"content":"<p>1-30 characters</p>\n","type":"text/plain"},"key":"last_name","value":""},{"description":{"content":"<p>1-100 characters</p>\n","type":"text/plain"},"key":"address1","value":""},{"description":{"content":"<p>1-100 characters</p>\n","type":"text/plain"},"key":"address2","value":""},{"description":{"content":"<p>1-100 characters</p>\n","type":"text/plain"},"key":"address3","value":""},{"description":{"content":"<p>1-50 characters</p>\n","type":"text/plain"},"key":"city","value":""},{"description":{"content":"<p>2 characters</p>\n","type":"text/plain"},"key":"state","value":""},{"description":{"content":"<p>1-50 characters</p>\n","type":"text/plain"},"key":"province","value":""},{"description":{"content":"<p>1-10 characters</p>\n","type":"text/plain"},"key":"postal_code","value":""},{"description":{"content":"<p>3 characters</p>\n","type":"text/plain"},"key":"country_code","value":""},{"description":{"content":"<p>U, M, F (Undefined, Male, Female) - defaults to 'U'</p>\n","type":"text/plain"},"key":"gender","value":""},{"description":{"content":"<p>YYYY-MM-DD</p>\n","type":"text/plain"},"key":"date_of_birth","value":""},{"description":{"content":"<p>1-12 characters</p>\n","type":"text/plain"},"key":"alt_phone","value":""},{"description":{"content":"<p>1-70 characters</p>\n","type":"text/plain"},"key":"email","value":""},{"description":{"content":"<p>1-100 characters</p>\n","type":"text/plain"},"key":"security_phrase","value":""},{"description":{"content":"<p>1-255 characters</p>\n","type":"text/plain"},"key":"comments","value":""},{"description":{"content":"<p>1-5 digits</p>\n","type":"text/plain"},"key":"rank","value":""},{"description":{"content":"<p>1-20 characters (user ID, Territory or user group)</p>\n","type":"text/plain"},"key":"owner","value":""},{"description":{"content":"<p>digits only, the number of attempts dialing the lead</p>\n","type":"text/plain"},"key":"called_count","value":""},{"description":{"content":"<p>Y or N.  This will allow you to orride custom fields on update Lead</p>\n","type":"text/plain"},"key":"custom_override","value":""},{"description":{"content":"<p>Y or N. This will trim the number and convert it into 10 digits. This is useful to strip the Country code from the phone numbers. ie +19998881112 --&gt; 9998881112</p>\n","type":"text/plain"},"key":"from_ytel_api","value":""},{"description":{"content":"<p>Y or N. This will update the existing number from the filter phone numbers. This only will work if the search_method=PHONE_NUMBER</p>\n","type":"text/plain"},"key":"updateNumber","value":""},{"description":{"content":"<p>Y or No. This can be used to add the phone number into a specific filter phone group on your system. You must include the filter ID in the filter_phone_group_id parameter.</p>\n","type":"text/plain"},"key":"addToFilterPhoneGroup","value":""},{"description":{"content":"<p>The unique filter group ID the phone number will be added to. addToFilterPhoneGroup is required to use this option.</p>\n","type":"text/plain"},"key":"filter_phone_group_id","value":""}],"variable":[]}},"response":[],"_postman_id":"fb9c2d03-6ac9-45cd-9838-c4c712a41a45"},{"name":"add_user","id":"12466a2d-8c7a-4ee0-b136-d0ef4163b5b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=add_user&user=101&pass=123Password&source=postman","description":"<p>adds a user to the system</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: add_user</p>\n","type":"text/plain"},"key":"function","value":"add_user"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"}],"variable":[]}},"response":[],"_postman_id":"12466a2d-8c7a-4ee0-b136-d0ef4163b5b3"},{"name":"update_user","id":"9990b3aa-bf58-434c-90c9-bce6d62f14be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?user=&pass=&source=&function=&agent_user=&agent_pass=&agent_full_name=&agent_user_group=&voicemail_id=&email=&active=&campaign_rank=&campaign_grade=&camp_rg_only=&campaign_id=&in_group_rank=&in_group_grade=&in_group_rg_only=&in_group_id=","description":"<p>update_user provides the ability to update some agent settings in the system.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>API User ID (Required)</p>\n","type":"text/plain"},"key":"user","value":""},{"description":{"content":"<p>API Password (Required)</p>\n","type":"text/plain"},"key":"pass","value":""},{"description":{"content":"<p>A description of what originated the API call, maximum 20 characters. (Required)</p>\n","type":"text/plain"},"key":"source","value":""},{"description":{"content":"<p>update_user (Required)</p>\n","type":"text/plain"},"key":"function","value":""},{"description":{"content":"<p>The Agent ID you wish to update. (Required)</p>\n","type":"text/plain"},"key":"agent_user","value":""},{"description":{"content":"<p>Set the new password for the Agent.</p>\n","type":"text/plain"},"key":"agent_pass","value":""},{"description":{"content":"<p>Change the Agents name.</p>\n","type":"text/plain"},"key":"agent_full_name","value":""},{"description":{"content":"<p>Change the Agents user group.</p>\n","type":"text/plain"},"key":"agent_user_group","value":""},{"description":{"content":"<p>Change the Agents Voicemail box.</p>\n","type":"text/plain"},"key":"voicemail_id","value":""},{"description":{"content":"<p>Change the email associated with the Agent.</p>\n","type":"text/plain"},"key":"email","value":""},{"description":{"content":"<p>'Y' or 'N'. Set agent the Agents account to active or inactive.</p>\n","type":"text/plain"},"key":"active","value":""},{"description":{"content":"<p>Changes the Agents campaign rank for 1 or all campaigns. Value can be between -9 and 9</p>\n","type":"text/plain"},"key":"campaign_rank","value":""},{"description":{"content":"<p>Changes the Agents icampaign grade for 1 or all campaigns. Value Must be between 1 - 9.</p>\n","type":"text/plain"},"key":"campaign_grade","value":""},{"description":{"content":"<p>0 or 1, this will set only one campaign rank/grade for this Agent, requires campaign_id to be set.</p>\n","type":"text/plain"},"key":"camp_rg_only","value":""},{"description":{"content":"<p>Only required for use with camp_rg_only.</p>\n","type":"text/plain"},"key":"campaign_id","value":""},{"description":{"content":"<p>Changes the Agents in_group rank for 1 or all in_groups. Value can be between -9 and 9</p>\n","type":"text/plain"},"key":"in_group_rank","value":""},{"description":{"content":"<p>Changes the Agents in group grade for 1 or all in groups. Value Must be between 1 - 9.</p>\n","type":"text/plain"},"key":"in_group_grade","value":""},{"description":{"content":"<p>0 or 1, this will set only one in_group rank/grade or this Agent, requires in_group_id to be set.</p>\n","type":"text/plain"},"key":"in_group_rg_only","value":""},{"description":{"content":"<p>Pass the in_group ID you wish to update the rank and/or grade of a specific Agent. Only required for use with in_group_rg_only.</p>\n","type":"text/plain"},"key":"in_group_id","value":""}],"variable":[]}},"response":[],"_postman_id":"9990b3aa-bf58-434c-90c9-bce6d62f14be"},{"name":"add_phone","id":"f7167241-35c1-490b-9954-4e0e6f5b95cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=add_phone&user=101&pass=123Password&source=postman","description":"<p>adds a phone to the system</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: add_phone</p>\n","type":"text/plain"},"key":"function","value":"add_phone"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"}],"variable":[]}},"response":[],"_postman_id":"f7167241-35c1-490b-9954-4e0e6f5b95cb"},{"name":"update_phone","id":"267640f1-3f33-48ec-9dfa-8cb0cc8c613f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=update_phone&user=101&pass=123Password&source=postman","description":"<p>updates or deletes an existing phone record in the system</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: update_phone</p>\n","type":"text/plain"},"key":"function","value":"update_phone"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"}],"variable":[]}},"response":[],"_postman_id":"267640f1-3f33-48ec-9dfa-8cb0cc8c613f"},{"name":"add_phone_alias","id":"04c13a0b-dbf8-4f63-bf06-b748f5636a93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=add_phone_alias&user=101&pass=123Password&source=postman","description":"<p>adds a phone alias record to the system</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: add_phone_alias</p>\n","type":"text/plain"},"key":"function","value":"add_phone_alias"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"}],"variable":[]}},"response":[],"_postman_id":"04c13a0b-dbf8-4f63-bf06-b748f5636a93"},{"name":"update_phone_alias","id":"f636dfeb-ebc4-417d-9ed8-952bca807beb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=update_phone_alias&user=101&pass=123Password&source=postman","description":"<p>updates or deletes an existing phone alias record in the system</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: update_phone_alias</p>\n","type":"text/plain"},"key":"function","value":"update_phone_alias"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"}],"variable":[]}},"response":[],"_postman_id":"f636dfeb-ebc4-417d-9ed8-952bca807beb"},{"name":"add_list","id":"70100b06-1679-4ade-876f-38529164b004","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=add_list&user=101&pass=123Password&source=postman","description":"<p>adds a list to the system</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: add_list</p>\n","type":"text/plain"},"key":"function","value":"add_list"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"}],"variable":[]}},"response":[],"_postman_id":"70100b06-1679-4ade-876f-38529164b004"},{"name":"update_list","id":"c1a07ae9-0965-4c01-9b37-6002583e649d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=update_list&user=101&pass=123Password&source=postman","description":"<p>updates list settings in the system, reset leads in list, delete list</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: update_list</p>\n","type":"text/plain"},"key":"function","value":"update_list"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"}],"variable":[]}},"response":[],"_postman_id":"c1a07ae9-0965-4c01-9b37-6002583e649d"},{"name":"moh_list","id":"b2d1c674-d60e-452e-aa24-66d6d3f5d1d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=moh_list&user=101&pass=123Password&source=postman&format=format of the output&comments=name of the field to populate","description":"<p>outputs a list of music on hold classes in the system</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: moh_list</p>\n","type":"text/plain"},"key":"function","value":"moh_list"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"},{"key":"format","value":"format of the output"},{"key":"comments","value":"name of the field to populate"}],"variable":[]}},"response":[],"_postman_id":"b2d1c674-d60e-452e-aa24-66d6d3f5d1d2"},{"name":"sounds_list","id":"20b26579-5dbb-4d30-9d7a-912190f580b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=sounds_list&user=101&pass=123Password&source=postman&format=&stage=&comments=","description":"<p> outputs a list of audio files from the audio store</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Required Value: sounds_list</p>\n","type":"text/plain"},"key":"function","value":"sounds_list"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"123Password"},{"description":{"content":"<p>description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"},{"description":{"content":"<p>format of the output(tab, link, selectframe)</p>\n","type":"text/plain"},"key":"format","value":""},{"description":{"content":"<p>how to sort the output(date, size, name)</p>\n","type":"text/plain"},"key":"stage","value":""},{"description":{"content":"<p>name of the field to populate</p>\n","type":"text/plain"},"key":"comments","value":""}],"variable":[]}},"response":[],"_postman_id":"20b26579-5dbb-4d30-9d7a-912190f580b8"},{"name":"add_fpg_phone","id":"be86661b-e7b0-4e34-829d-8235356c7149","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non_agent.php?function=add_fpg_phone&user=101&pass=password&source=postman&phone_number=9998881112&group_id=1111","description":"<p>This allows you to add a phone number to the filter phone group using an API.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non_agent.php"],"host":["YOUR_URL","ytel","com"],"query":[{"key":"function","value":"add_fpg_phone"},{"key":"user","value":"101"},{"key":"pass","value":"password"},{"key":"source","value":"postman"},{"key":"phone_number","value":"9998881112"},{"key":"group_id","value":"1111"}],"variable":[]}},"response":[],"_postman_id":"be86661b-e7b0-4e34-829d-8235356c7149"},{"name":"agent_list","id":"cd34d4f6-d569-4a36-8fa3-7ed51c04a8e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOUR_URL.ytel.com/x5/api/non-agent?ytel_token=&accountSid=accountSID&user=101&pass=xxxxxx&source=postman&action_type=agent_list","description":"<p>This allows you to add a phone number to the filter phone group using an API.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced","id":"6613f312-546a-4cb9-b603-71fc960baced","name":"Non-Agent API","type":"folder"}},"urlObject":{"protocol":"https","path":["x5","api","non-agent"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>Ask a support team member what your token is</p>\n","type":"text/plain"},"key":"ytel_token","value":""},{"description":{"content":"<p>Account SID</p>\n","type":"text/plain"},"key":"accountSid","value":"accountSID"},{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101"},{"description":{"content":"<p>API Password</p>\n","type":"text/plain"},"key":"pass","value":"xxxxxx"},{"description":{"content":"<p>Description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"},{"description":{"content":"<p>Required Static Value: agent_list</p>\n","type":"text/plain"},"key":"action_type","value":"agent_list"}],"variable":[]}},"response":[],"_postman_id":"cd34d4f6-d569-4a36-8fa3-7ed51c04a8e6"},{"name":"available_agents_totals","id":"268524e3-c205-4cdb-9d69-229b9a5ab10d","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the v4 Authentication endpoint.</p>\n"}],"url":"https://YOUR_URL.ytel.com/api/ytel/non-agent?user=101x&source=postman&action_type=available_agents_totals&ingroupid=ingroupid","description":"<p>This allows you to get a list of all available agents.</p>\n","urlObject":{"protocol":"https","path":["api","ytel","non-agent"],"host":["YOUR_URL","ytel","com"],"query":[{"description":{"content":"<p>API User ID</p>\n","type":"text/plain"},"key":"user","value":"101x"},{"description":{"content":"<p>Description of what originated the API call maximum 20 characters</p>\n","type":"text/plain"},"key":"source","value":"postman"},{"description":{"content":"<p>Required Static Value: agent_list</p>\n","type":"text/plain"},"key":"action_type","value":"available_agents_totals"},{"description":{"content":"<p>Optional: Inbound Group Id</p>\n","type":"text/plain"},"key":"ingroupid","value":"ingroupid"}],"variable":[]}},"response":[],"_postman_id":"268524e3-c205-4cdb-9d69-229b9a5ab10d"}],"id":"6613f312-546a-4cb9-b603-71fc960baced","description":"<p>The Non Agent API is a collection of API calls that can be used to interact with Ytel's Contact Center System. In order to use the API's you must first create an API user within your Admin interface. Please Contact Ytel Support at 800-382-4913 for assistance with creating an API user.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"553242de-2605-4131-8a5b-9f95c3b989d4"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"10602188-6860-44be-a681-386369e00d68"}}],"_postman_id":"6613f312-546a-4cb9-b603-71fc960baced"},{"name":"YCC Global API","item":[{"name":"Get Global API","id":"c5293671-8753-41d1-9f43-7709155d6e8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"case\":[\n        \"cam\",\n        \"inboundgroupoption\",\n        \"callmenu\",\n        \"voicemail\",\n        \"agent\",\n        \"agentgroup\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/global-api","urlObject":{"protocol":"https","path":["api","v2","global-api"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c5293671-8753-41d1-9f43-7709155d6e8e"}],"id":"398d23f8-aeb0-41d4-a025-a312efe1ebed","description":"<p>YCC global api endpoints allow for retrieving various lists of data.</p>\n<h3 id=\"authorization-bearer-token\"><strong>Authorization:</strong> Bearer Token</h3>\n<p>This folder is using an authorization helper from folder <a href=\"https://api-docs.ytel.com/?version=latest#auth-info-14e0156b-7eea-46e4-9e90-0fbb78dfde49\">CPaaS API</a>.</p>\n<h3 id=\"request-headers\">Request Headers</h3>\n<p><strong>Accept:</strong> application/json</p>\n<p><strong>Content-Type:</strong> application/json</p>\n<h3 id=\"post-get-global-api\">POST Get Global API</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/update-agent\">https://ycc-api.ytel.com/api/v2/global-api</a></p>\n<p>This api end point retrieves lists of campaigns, agents, agent groups, voicemails, inbound groups and call menus.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"case\":[\n    \"cam\",\n    \"inboundgroupoption\",\n    \"callmenu\",\n    \"voicemail\",\n    \"agent\",\n    \"agentgroup\"\n    ]\n}\n\n</code></pre>\n<p>Fields within data:</p>\n<ul>\n<li><p><strong>cam:</strong> Contains list of campaigns.</p>\n</li>\n<li><p><strong>agent:</strong> Contains list of agents.</p>\n</li>\n<li><p><strong>agentgroup</strong>: Contains list of agent groups.</p>\n</li>\n<li><p><strong>voicemail:</strong> List of voicemails.</p>\n</li>\n<li><p><strong>ingroupoption:</strong> List of in-groups.</p>\n</li>\n<li><p><strong>callmenu:</strong> List of call menus.</p>\n</li>\n</ul>\n<p>Fields within a campaign:</p>\n<ul>\n<li><p><strong>campaign_id:</strong> Campaign id.</p>\n</li>\n<li><p><strong>campaign_name</strong>: Name of campaign.</p>\n</li>\n</ul>\n<p>Fields within an agent:</p>\n<ul>\n<li><p><strong>user_id</strong>: Internal user id.</p>\n</li>\n<li><p><strong>User</strong>: User id associated with an agent.</p>\n</li>\n<li><p><strong>full_name</strong>: Name of user.</p>\n</li>\n<li><p><strong>user_group</strong>: User group user is associated with.</p>\n</li>\n</ul>\n<p>Fields within an agentgroup:</p>\n<ul>\n<li><p><strong>user_group</strong>: User group id.</p>\n</li>\n<li><p><strong>group_name</strong>: User group name.</p>\n</li>\n</ul>\n<p>Fields within voicemail:</p>\n<ul>\n<li><p><strong>voicemail_id</strong>: Voicemail id.</p>\n</li>\n<li><p><strong>fullname</strong>: Voicemail name.</p>\n</li>\n<li><p><strong>email</strong>: Email assigned to voicemail.</p>\n</li>\n</ul>\n<p>Fields within ingroupoption:</p>\n<ul>\n<li><p><strong>group_id</strong>: In-group id.</p>\n</li>\n<li><p><strong>group_name</strong>: In-group name.</p>\n</li>\n</ul>\n<p>Fields within callmenu:</p>\n<ul>\n<li><strong>menu_id:</strong> Call menu id.</li>\n</ul>\n","_postman_id":"398d23f8-aeb0-41d4-a025-a312efe1ebed","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b6626842-49af-4640-b148-2c29843e1d6e","id":"b6626842-49af-4640-b148-2c29843e1d6e","name":"CCaaS API","type":"folder"}}},{"name":"YCC Campaign Data Mix","item":[{"name":"Get Campaign List","id":"6e0ecf29-69b5-41ad-bf36-b8f3b8a821e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/campaign-list-mix?limit=10000&page=1","urlObject":{"protocol":"https","path":["api","v2","campaign-list-mix"],"host":["ycc-api","ytel","com"],"query":[{"key":"limit","value":"10000"},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"6e0ecf29-69b5-41ad-bf36-b8f3b8a821e7"},{"name":"Get Campaign Data Mix List","id":"31b3ee63-1a4c-428d-8a17-e56da6de4f4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/campaign-mix-options-edit?campaign_id=cid","urlObject":{"protocol":"https","path":["api","v2","campaign-mix-options-edit"],"host":["ycc-api","ytel","com"],"query":[{"key":"campaign_id","value":"cid"}],"variable":[]}},"response":[],"_postman_id":"31b3ee63-1a4c-428d-8a17-e56da6de4f4b"},{"name":"Get Campaign Statuses","id":"affd6de2-252c-4a86-bf41-6ff3b7b5d199","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/campaign-mix-options-lists?campaign_id=cid","urlObject":{"protocol":"https","path":["api","v2","campaign-mix-options-lists"],"host":["ycc-api","ytel","com"],"query":[{"key":"campaign_id","value":"cid"}],"variable":[]}},"response":[],"_postman_id":"affd6de2-252c-4a86-bf41-6ff3b7b5d199"},{"name":"Get Campaign List Mix","id":"76a56f76-05ef-4565-b3f1-39b5eac1fd97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/campaign-mix-options-lists-edit?list_mix_id=lmid","urlObject":{"protocol":"https","path":["api","v2","campaign-mix-options-lists-edit"],"host":["ycc-api","ytel","com"],"query":[{"key":"list_mix_id","value":"lmid"}],"variable":[]}},"response":[],"_postman_id":"76a56f76-05ef-4565-b3f1-39b5eac1fd97"},{"name":"Activate Campaign List Mix","id":"c32f6ab1-3a01-472f-9f2f-b05bd31524f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"campaign_id\":\"cid\",\n    \"vcl_id\":\"vclid\"\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/active-campaign-mix-lists","urlObject":{"protocol":"https","path":["api","v2","active-campaign-mix-lists"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c32f6ab1-3a01-472f-9f2f-b05bd31524f8"},{"name":"Create Campaign List Mix","id":"590c0289-fe16-4993-a2be-6e15aa61fa90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"vcl_id\":\"vclid\",\n    \"vcl_name\":\"vcl name\",\n    \"campaign_id\":\"cid\",\n    \"dial_status\":[\"A\",\"ADAIR\"],\n    \"list_id\":\"1000\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/create-campaign-list-mix","urlObject":{"protocol":"https","path":["api","v2","create-campaign-list-mix"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"590c0289-fe16-4993-a2be-6e15aa61fa90"},{"name":"Update Campaign List Mix","id":"a325ca72-0fe0-47b0-b339-b13103d643b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"campaign_id\":\"fakename\",\n    \"vcl_id\":\"jbtest1\",\n    \"vcl_name\":\"JB Test 2\",\n    \"vcl_lists\":[\n        {\n            \"list_id\":1000,\n            \"mix_percentage\":40,\n            \"statuses\":[\"XDROP\",\"ADC\",\"AFAX\"]\n        },\n        {\n            \"list_id\":909,\n            \"mix_percentage\":60,\n            \"statuses\":[\"SVYREC\",\"SVYVM\",\"TIMEOT\",\"XFER\",\"XDROP\"]\n        }\n    ]\n}\n","options":{"raw":{"language":"json"}}},"url":"https://ycc-api-dev.ytel.com/api/update-campaign-list-mix","urlObject":{"protocol":"https","path":["api","update-campaign-list-mix"],"host":["ycc-api-dev","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a325ca72-0fe0-47b0-b339-b13103d643b9"},{"name":"Delete Campaign List Mix","id":"1a72af3f-5f0e-4c50-9bb1-f6beff222c2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"campaign_id\":\"cid\",\n    \"vcl_id\":\"vclid\"\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/campaign-mix-options-delete","urlObject":{"protocol":"https","path":["api","v2","campaign-mix-options-delete"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a72af3f-5f0e-4c50-9bb1-f6beff222c2b"}],"id":"d2f373ed-dd2a-40ca-b8a7-130ddc1e3c56","description":"<h3 id=\"authorization-bearer-token\"><strong>Authorization:</strong> Bearer Token</h3>\n<p>This folder is using an authorization helper from folder <a href=\"https://api-docs.ytel.com/?version=latest#auth-info-14e0156b-7eea-46e4-9e90-0fbb78dfde49\">CPaaS API</a>.</p>\n<h3 id=\"request-headers\">Request Headers</h3>\n<p><strong>Accept:</strong> application/json</p>\n<p><strong>Content-Type:</strong> application/json</p>\n<h3 id=\"get-get-campaign-list\">GET Get Campaign List</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/campaign-mix-list?limit=10000&amp;page=1</a></p>\n<p>Get a list of campaigns and their data mixes.</p>\n<p>Fields within data array:</p>\n<ul>\n<li><p><strong>campaign_id:</strong> Campaign id.</p>\n</li>\n<li><p><strong>campaign_name:</strong> Campaign name.</p>\n</li>\n<li><p><strong>list_mix:</strong> Array of list mix ids.</p>\n</li>\n</ul>\n<h3 id=\"get-get-campaign-data-mix-list\">GET Get Campaign Data Mix List</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/campaign-mix-options-edit?campaign_id=id</a></p>\n<p>Get a list of a data mixes for a campaign.</p>\n<p>Fields within data array:</p>\n<ul>\n<li><p><strong>result:</strong> Array of data mixes.</p>\n</li>\n<li><p><strong>dial_status</strong>: Array of statuses.</p>\n</li>\n<li><p><strong>lists</strong>: Array of lists.</p>\n</li>\n</ul>\n<p>Fields within <strong>data::result</strong> array:</p>\n<ul>\n<li><p><strong>vcl_id</strong>: Data mix list id.</p>\n</li>\n<li><p><strong>vcl_name:</strong> Data mix list name.</p>\n</li>\n<li><p><strong>campaign_id:</strong> Campaign id.</p>\n</li>\n<li><p><strong>mix_method</strong>: Mix Method.</p>\n</li>\n<li><p><strong>lmc_rows</strong>: Array of lists.</p>\n</li>\n</ul>\n<p>Fields within <strong>data::result::lmc_rows:</strong></p>\n<ul>\n<li><p><strong>description</strong>: List description.</p>\n</li>\n<li><p><strong>list_id</strong>: List id.</p>\n</li>\n<li><p><strong>priority</strong>: Data mix list order priority.</p>\n</li>\n<li><p><strong>mix_percentage</strong>: Mix percentage.</p>\n</li>\n<li><p><strong>statuses</strong>: String of statuses.</p>\n</li>\n<li><p><strong>status_list</strong>: Array of statuses.</p>\n</li>\n</ul>\n<p>Fields within <strong>data::dial_status</strong>:</p>\n<ul>\n<li><p><strong>status</strong>: Status id.</p>\n</li>\n<li><p><strong>option_title</strong>: Status id and name.</p>\n</li>\n</ul>\n<p>Fields within <strong>data:lists</strong>.</p>\n<ul>\n<li><p><strong>list_id</strong>: List id.</p>\n</li>\n<li><p><strong>list_name</strong>: List name.</p>\n</li>\n</ul>\n<h3 id=\"get-get-campaign-statuses\">GET Get Campaign Statuses</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/campaign-mix-options-lists?campaign_id=id</a></p>\n<p>Get a list of campaign statuses.</p>\n<p>Fields within data array:</p>\n<ul>\n<li><p><strong>dial_status</strong>: Array of campaign statuses.</p>\n</li>\n<li><p><strong>campaign_id</strong>: Campaign id.</p>\n</li>\n<li><p><strong>lists</strong>: Array of lists.</p>\n</li>\n</ul>\n<p>Fields within <strong>data::dial_status</strong>:</p>\n<ul>\n<li><p><strong>status</strong>: Campaign status id.</p>\n</li>\n<li><p><strong>option_title</strong>: Campaign status id combined with campaign status name.</p>\n</li>\n</ul>\n<p>Fields within <strong>data::lists</strong>:</p>\n<ul>\n<li><p><strong>list_id</strong>: List id.</p>\n</li>\n<li><p><strong>list_name</strong>: List name.</p>\n</li>\n</ul>\n<h3 id=\"get-get-campaign-list-mix\">GET Get Campaign List Mix</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/campaign-mix-options-lists?campaign_id=id</a></p>\n<p>Get a campaign's list mix.</p>\n<p>Fields within data array:</p>\n<ul>\n<li><p><strong>0</strong>: Campaign list mix details.</p>\n</li>\n<li><p><strong>dial_status</strong>: Array of campaign statuses.</p>\n</li>\n<li><p><strong>lists</strong>: Array of lists.</p>\n</li>\n</ul>\n<p>Field within <strong>data::0</strong>:</p>\n<ul>\n<li><p><strong>vcl_id</strong>: Campaign list mix id.</p>\n</li>\n<li><p><strong>vcl_name</strong>: Campaign list mix name.</p>\n</li>\n<li><p><strong>campaign_id</strong>: Campaign id.</p>\n</li>\n<li><p><strong>mix_method:</strong> Mix method.</p>\n</li>\n<li><p><strong>status</strong>: ACTIVE or INACTIVE.</p>\n</li>\n<li><p><strong>lmc_rows</strong>: Array of list ids and statuses within data list mix.</p>\n</li>\n</ul>\n<p>Fields within <strong>data::dial_status</strong>:</p>\n<ul>\n<li><p><strong>status</strong>: Campaign status id.</p>\n</li>\n<li><p><strong>option_title</strong>: Campaign status id combined with campaign status name.</p>\n</li>\n</ul>\n<p>Fields within <strong>data::lists</strong>:</p>\n<ul>\n<li><p><strong>list_id</strong>: List id.</p>\n</li>\n<li><p><strong>list_name</strong>: List name.</p>\n</li>\n</ul>\n<h3 id=\"post-activate-campaign-list-mix\">POST Activate Campaign List Mix</h3>\n<p>Note: Only one list mix can be active at a time per campaign.</p>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/active-campaign-mix-lists</a></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"campaign_id\": \"id\", \n    \"vcl_id\": \"vlc_id\", \n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>campaign_id:</strong> Campaign id.</p>\n</li>\n<li><p><strong>vcl_id</strong>: Vicidial campaign list mix id to be activated.</p>\n</li>\n</ul>\n<h3 id=\"post-create-campaign-list-mix\">POST Create Campaign List Mix</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/create-campaign-list-mix</a></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"vcl_id\":\"lmixid\",\n    \"vcl_name\":\"List Mix Name\",\n    \"campaign_id\":\"ctetid\",\n    \"dial_status\":[\"A\",\"ADAIR\"],\n    \"list_st\":\"1000\"\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>vcl_id</strong>: Vicidial campaign list mix id to be activated.</p>\n</li>\n<li><p><strong>vcl_name</strong>: Vicidial campaign list mix name.</p>\n</li>\n<li><p><strong>campaign_id:</strong> Campaign id.</p>\n</li>\n<li><p><strong>dial_status</strong>: Array of statuses associated with a list id.</p>\n</li>\n<li><p><strong>list_id</strong>: List id.</p>\n</li>\n</ul>\n<h3 id=\"post-update-campaign-list-mix\">POST Update Campaign List Mix</h3>\n<p>Update allows you to add list ids, remove list ids, and edit the statuses and mix percentage associated with a list id. There must be at list 1 list id in a mix and at least one status associated with each list id. Mix percentages must total 100%.</p>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/update-campaign-list-mix</a></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"campaign_id\":\"cid\",\n    \"vcl_id\":\"lmixid\",\n    \"vcl_lists\":[\n        {\n            \"list_id\":1000,\n            \"mix_percentage\":40,\n            \"statuses\":[\"XDROP\",\"ADC\",\"AFAX\"]\n        },\n        {\n            \"list_id\":9090,\n            \"mix_percentage\":60,\n            \"statuses\":[\"SVYREC\",\"SVYVM\",\"TIMEOT\",\"XFER\",\"XDROP\"]\n        }\n    ]\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>campaign_id:</strong> Campaign id.</p>\n</li>\n<li><p><strong>vcl_id</strong>: Vicidial campaign list mix id to be activated.</p>\n</li>\n<li><p><strong>vcl_lists</strong>: Array containing mix percentage and statuses per list id.</p>\n</li>\n<li><p><strong>list_id</strong>: List id.</p>\n</li>\n<li><p><strong>mix_percentage</strong>: Mix Percentage.</p>\n</li>\n<li><p><strong>statuses</strong>: Array of statuses.</p>\n</li>\n</ul>\n<h3 id=\"post-delete-campaign-list-mix\">POST Delete Campaign List Mix</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/campaign-mix-options-delete</a></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"campaign_id\":\"cid\",\n    \"vcl_id\":\"clmid\"\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>campaign_id:</strong> Campaign id.</p>\n</li>\n<li><p><strong>vcl_id</strong>: Vicidial campaign list mix id to be deleted.</p>\n</li>\n</ul>\n","_postman_id":"d2f373ed-dd2a-40ca-b8a7-130ddc1e3c56","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b6626842-49af-4640-b148-2c29843e1d6e","id":"b6626842-49af-4640-b148-2c29843e1d6e","name":"CCaaS API","type":"folder"}}},{"name":"YCC Inbound Queue","item":[{"name":"Get Inbound Queue","id":"85a86b7f-db86-46df-8a46-d4d4019d87b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"url":"https://ycc-api.ytel.com/api/v2/inbound-queue/details/:group_id","urlObject":{"protocol":"https","path":["api","v2","inbound-queue","details",":group_id"],"host":["ycc-api","ytel","com"],"query":[],"variable":[{"description":{"content":"<p>Id of inbound queue group. </p>\n","type":"text/plain"},"type":"any","value":"test","key":"group_id"}]}},"response":[],"_postman_id":"85a86b7f-db86-46df-8a46-d4d4019d87b8"},{"name":"Get Inbound Queue List","id":"1fdd213e-f395-476f-9119-7fb020714cfd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"url":"https://ycc-api.ytel.com/api/v2/inbound-queue?limit=1000","urlObject":{"protocol":"https","path":["api","v2","inbound-queue"],"host":["ycc-api","ytel","com"],"query":[{"key":"limit","value":"1000"}],"variable":[]}},"response":[],"_postman_id":"1fdd213e-f395-476f-9119-7fb020714cfd"},{"name":"Clone Inbound Queue","id":"eb8a6653-6f3f-4587-9d16-3a65d206782b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"group_id\": \"TEST\", \n    \"group_name\": \"TEST NAME\", \n    \"from_inbound_id\": \"AGENTDIRECT\"\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/inbound-queue-clone","urlObject":{"protocol":"https","path":["api","v2","inbound-queue-clone"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb8a6653-6f3f-4587-9d16-3a65d206782b"},{"name":"Update Inbound Queue","id":"35c1fa75-6456-49df-ae76-690e4b7ff41a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"group_id\":\"TEST2\",\n    \"group_name\":\"TEST 2\",\n    \"group_color\":\"#000001\",\n    \"active\":\"Y\",\n    \"web_form_address\":null,\n    \"voicemail_ext\":null,\n    \"next_agent_call\":\"random\",\n    \"fronter_display\":\"Y\",\n    \"ingroup_script\":null,\n    \"get_call_launch\":\"NONE\",\n    \"drop_call_seconds\":360,\n    \"drop_action\":\"MESSAGE\",\n    \"drop_exten\":\"8307\",\n    \"call_time_id\":\"24hours\",\n    \"after_hours_action\":\"MESSAGE\",\n    \"after_hours_message_filename\":\"vm-goodbye\",\n    \"after_hours_exten\":\"8300\",\n    \"after_hours_voicemail\":null,\n    \"welcome_message_filename\":\"---NONE---\",\n    \"moh_context\":\"default\",\n    \"onhold_prompt_filename\":\"generic_hold\",\n    \"prompt_interval\":60,\n    \"agent_alert_exten\":\"ding\",\n    \"agent_alert_delay\":1000,\n    \"default_xfer_group\":\"---NONE---\",\n    \"queue_priority\":0,\n    \"drop_inbound_group\":\"---NONE---\",\n    \"ingroup_recording_override\":\"DISABLED\",\n    \"ingroup_rec_filename\":\"NONE\",\n    \"afterhours_xfer_group\":\"---NONE---\",\n    \"play_place_in_line\":\"N\",\n    \"play_estimate_hold_time\":\"N\",\n    \"action_xfer_cid\":\"CUSTOMER\",\n    \"extension_appended_cidname\":\"N\",\n    \"hold_time_option\":\"NONE\",\n    \"hold_time_option_seconds\":360,\n    \"hold_time_option_exten\":\"8300\",\n    \"hold_time_option_voicemail\":\"\",\n    \"hold_time_option_xfer_group\":\"---NONE---\",\n    \"hold_time_option_callback_filename\":\"vm-hangup\",\n    \"hold_time_option_callback_list_id\":999,\n    \"hold_recall_xfer_group\":\"---NONE---\",\n    \"no_delay_call_route\":\"N\",\n    \"play_welcome_message\":\"ALWAYS\",\n    \"no_agent_no_queue\":\"N\",\n    \"no_agent_action\":\"MESSAGE\",\n    \"no_agent_action_value\":\"nbdy-avail-to-take-call|vm-goodbye\",\n    \"web_form_address_two\":null,\n    \"start_call_url\":null,\n    \"dispo_call_url\":null,\n    \"ignore_list_script_override\":\"N\",\n    \"hold_time_option_minimum\":0,\n    \"hold_time_option_press_filename\":\"to-be-called-back|digits/1\",\n    \"hold_time_option_callmenu\":\"\",\n    \"hold_time_option_no_block\":\"N\",\n    \"hold_time_option_prompt_seconds\":10,\n    \"onhold_prompt_no_block\":\"N\",\n    \"onhold_prompt_seconds\":10,\n    \"hold_time_second_option\":\"NONE\",\n    \"hold_time_third_option\":\"NONE\",\n    \"wait_hold_option_priority\":\"WAIT\",\n    \"wait_time_option\":\"NONE\",\n    \"wait_time_second_option\":\"NONE\",\n    \"wait_time_third_option\":\"NONE\",\n    \"wait_time_option_seconds\":120,\n    \"wait_time_option_exten\":\"8300\",\n    \"wait_time_option_voicemail\":\"\",\n    \"wait_time_option_xfer_group\":\"---NONE---\",\n    \"wait_time_option_callmenu\":\"\",\n    \"wait_time_option_callback_filename\":\"vm-hangup\",\n    \"wait_time_option_callback_list_id\":999,\n    \"wait_time_option_press_filename\":\"to-be-called-back|digits/1\",\n    \"wait_time_option_no_block\":\"N\",\n    \"wait_time_option_prompt_seconds\":10,\n    \"calculate_estimated_hold_seconds\":0,\n    \"na_call_url\":\"N\",\n    \"group_calldate\":\"2024-07-08 14:40:12\",\n    \"drop_callmenu\":\"\",\n    \"after_hours_callmenu\":\"\",\n    \"user_group\":\"---ALL---\",\n    \"max_calls_method\":\"DISABLED\",\n    \"max_calls_count\":0,\n    \"max_calls_action\":\"NO_AGENT_NO_QUEUE\"\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/inbound-queue/update","urlObject":{"protocol":"https","path":["api","v2","inbound-queue","update"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"35c1fa75-6456-49df-ae76-690e4b7ff41a"},{"name":"Delete Inbound Queue","id":"40079e4c-cfb2-49a9-b86f-7a08a24d0dac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"url":"https://ycc-api.ytel.com/api/v2/inbound-queue/delete?group_id=TEST","urlObject":{"protocol":"https","path":["api","v2","inbound-queue","delete"],"host":["ycc-api","ytel","com"],"query":[{"description":{"content":"<p>Inbound quere id to be deleted.</p>\n","type":"text/plain"},"key":"group_id","value":"TEST"}],"variable":[]}},"response":[],"_postman_id":"40079e4c-cfb2-49a9-b86f-7a08a24d0dac"}],"id":"b0e3e996-8216-4db6-80c3-651f209ee44e","description":"<p>YCC inbound queue endpoints allow for cloning, updating, deleting and viewing data about inbound queues.</p>\n<h3 id=\"authorization-bearer-token\"><strong>Authorization:</strong> Bearer Token</h3>\n<p>This folder is using an authorization helper from folder <a href=\"https://api-docs.ytel.com/?version=latest#auth-info-14e0156b-7eea-46e4-9e90-0fbb78dfde49\">CPaaS API</a>.</p>\n<h3 id=\"request-headers\">Request Headers</h3>\n<p><strong>Accept:</strong> application/json</p>\n<p><strong>Content-Type:</strong> application/json</p>\n<h3 id=\"get-get-inbound-queue\">GET Get Inbound Queue</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/inbound-queue/details/{group_id}</a></p>\n<p>Get an inbound queue's details. {group_id} is the inbound queue id.</p>\n<p>Fields within data:</p>\n<ul>\n<li><p><strong>group_id:</strong> Inbound queue id.</p>\n</li>\n<li><p><strong>group_name:</strong> Inbound queue name.</p>\n</li>\n<li><p><strong>group_color:</strong> Inbound queue color.</p>\n</li>\n<li><p><strong>active</strong>: Y means inbound queue is active, else N.</p>\n</li>\n<li><p><strong>web_form_address</strong>: Web page that automatically displays on agent's screen when they get a call from that group. (nullable)</p>\n</li>\n<li><p><strong>voicemail_ext</strong>: Extension calls are routd to when no agents are available. (nullable)</p>\n</li>\n<li><p><strong>next_agent_call:</strong> Determines order in which calls are routed to available agents. Options are (longest_wait_time, random, inbound_group_rank, oldest_call_start, oldest_call_finish, oldest_inbound_call_start, oldest_inbound_call_finish, oldest_inbound_filtered_call_start, oldest_inbound_filtered_call_finish, overall_user_level, campaign_rank, ingroup_grade_random, campaign_grade_random, fewest_calls, fewest_calls_campaign, overall_user_level_wait_time, campaign_rank_wait_time, fewest_calls_wait_time, fewest_calls_campaign_wait_time, inbound_group_rank_wait_time).</p>\n</li>\n<li><p><strong>fronter_display</strong>: Y if fronter is shown to the closer or inbound agent, else N.</p>\n</li>\n<li><p><strong>ingroup_script</strong>: Incoming call script presented to an agent.</p>\n</li>\n<li><p><strong>get_call_launch:</strong> What displays on an agent's screen when an incoing call is delivered. Options are (NONE, SCRIPT, SCRIPTTWO, WEBFORM, WEBFORMTWO, WEBFORMTHREE, FORM, EMAIL).</p>\n</li>\n<li><p><strong>drop_call_seconds</strong>: Max amount of time a call will wait in the queue before a drop action is executed.</p>\n</li>\n<li><p><strong>drop_action</strong>: Options are (HANGUP, MESSAGE, VOICEMAIL, IN_GROUP, CALLMENU, VMAIL_NO_INST).</p>\n</li>\n<li><p><strong>drop_exten:</strong> The extension a dropped caller is routed to.</p>\n</li>\n<li><p><strong>call_time_id</strong>: Call times when inbound queue can receive calls.</p>\n</li>\n<li><p><strong>after_hours_action</strong>: Options are (HANGUP, MESSAGE, EXTENSION, VOICEMAIL, IN_GROUP, CALLMENU, VMAIL_NO_INST).</p>\n</li>\n<li><p><strong>after_hours_message_filename</strong>: Plays message to caller during designated after hours.</p>\n</li>\n<li><p><strong>after_hours_exten</strong>: Where incoming call are routed to during designated after hours.</p>\n</li>\n<li><p><strong>after_hours_voicemail</strong>: Voicemail for incoming calls during designated after hours.</p>\n</li>\n<li><p><strong>welcome_message_filename</strong>: Audio file played to a caller as a welcome message.</p>\n</li>\n<li><p><strong>moh_context</strong>: Dialplan context that is used for a caller who is placed on hold with music.</p>\n</li>\n<li><p><strong>onhold_prompt_filename</strong>: Audio file played when caller is on hold.</p>\n</li>\n<li><p><strong>prompt_interval</strong>: Frequency interval in seconds when onhold prompt is played.</p>\n</li>\n<li><p><strong>agent_alert_exten:</strong> Special extension to which an inbound call is routed before being sent to an agent.</p>\n</li>\n<li><p><strong>agent_alert_delay:</strong> Adds pause between when a call is sent to an agent and when the agent's web interface displays the call information.</p>\n</li>\n<li><p><strong>default_xfer_group</strong>: Destination queue to which calls are transferred by default.</p>\n</li>\n<li><p><strong>queue_priority</strong>: Determins order in which calls are retrieved. The lower the number the higher the priority.</p>\n</li>\n<li><p><strong>drop_inbound_group</strong>: Group id where abandoned inbounds calls are sent to.</p>\n</li>\n<li><p><strong>inbound_recording_override</strong>: Determines how call recording is handled for calls routed to that group. Options are (DISABLED, NEVER, ONDEMAND, ALLCALLS, ALLFORCE)</p>\n</li>\n<li><p><strong>ingroup_rec_filename</strong>: Naming convention for audio files.</p>\n</li>\n<li><p><strong>afterhours_xfer_group:</strong> Defines where to route call if it arrives outside the designated operating hours.</p>\n</li>\n<li><p><strong>play_place_in_line</strong>: Y/N.</p>\n</li>\n<li><p><strong>play_estimate_hold_time</strong>: Y/N.</p>\n</li>\n<li><p><strong>action_xfer_cid</strong>: Caller ID displayed to the agent while receiving a transfered call.</p>\n</li>\n<li><p><strong>extension_appended_cidname:</strong> Modify caller id's name to agent. Options are (Y, N, Y_USER, Y_WITH_CAMPAIGN, Y_USER_WITH_CAMPAIGN)</p>\n</li>\n<li><p><strong>hold_time_option</strong>: Alternative action a caller can take if wait time is longer than expected.</p>\n</li>\n<li><p><strong>hold_time_option_seconds</strong>: Wait time duration until action is triggered.</p>\n</li>\n<li><p><strong>hold_time_option_exten:</strong> Extension a caller will be sent to if their wait time exeeds its defined limit.</p>\n</li>\n<li><p><strong>hold_time_option_voicemail</strong>: Voicemail used when a caller's wait time exeeds its defined limit.</p>\n</li>\n<li><p><strong>hold_time_option_xfer_group</strong>: Group a caller will be sent to if their wait time exeeds its defined limit.</p>\n</li>\n<li><p><strong>hold_time_option_callback_filename:</strong> Audio file used when a caller's wait time exeeds its defined limit.</p>\n</li>\n<li><p><strong>hold_time_option_callback_list_id</strong>: List id a caller is saved to if their wait time exeeds its defined limit.</p>\n</li>\n<li><p><strong>hold_recall_xfer_group</strong>: Which group to route a held call to for a recall transfer.</p>\n</li>\n<li><p><strong>no_delay_call_route:</strong> Y/N.</p>\n</li>\n<li><p><strong>play_welcome_message:</strong> Options are (ALWAYS, NEVER, IF_WAIT_ONLY, YES_UNLESS_NODELAY)</p>\n</li>\n<li><p><strong>no_agent_no_queue</strong>: Options are (N, Y, NO_PAUSED, NO_READY).</p>\n</li>\n<li><p><strong>no_agent_action:</strong> Options are (CALLMENU, INGROUP, DID, MESSAGE, EXTENSION, VOICEMAIL, VMAIL_NO_INST).</p>\n</li>\n<li><p><strong>no_agent_action_value:</strong> Determines what happens to an inbound call when there are no agents logged in and ready to take the call.</p>\n</li>\n<li><p><strong>web_form_address_two:</strong> URL for second web form displayed to agent.</p>\n</li>\n<li><p><strong>start_call_url:</strong> External web url triggered when a call is successfully transfered to an agent.</p>\n</li>\n<li><p><strong>dispo_call_url</strong>: External web url triggered when an agent disposition's a call.</p>\n</li>\n<li><p><strong>ignore_list_script_override</strong>: Y/N.</p>\n</li>\n<li><p><strong>hold_time_option_minimum:</strong> Number of seconds a caller must be on hold until hold time option is executed.</p>\n</li>\n<li><p><strong>hold_time_option_press_filename</strong>: Audio file played when caller has been on hold for a specific amount of time.</p>\n</li>\n<li><p><strong>hold_time_option_callmenu</strong>: IVR call menu used when a caller has been on hold for a specific amount of time.</p>\n</li>\n<li><p><strong>hold_time_option_no_block</strong>: Y/N</p>\n</li>\n<li><p><strong>hold_time_option_prompt_seconds</strong>: How long on hold prompt audio message can play without blocking other calls in the queue.</p>\n</li>\n<li><p><strong>onhold_prompt_no_block</strong>: Y/N</p>\n</li>\n<li><p><strong>onhold_prompt_seconds</strong>: Time interval a periodic message is player to callers waiting in the queue.</p>\n</li>\n<li><p><strong>hold_time_second_option:</strong> Overflow option that is triggered after the hold time option seconds have been exceeded.</p>\n</li>\n<li><p><strong>hold_time_third_option:</strong> Overflow option that is triggered after the hold time option seconds have been exceeded for a third time.</p>\n</li>\n<li><p><strong>wait_time_option_priority</strong>: Options are (WAIT, HOLD, BOTH)</p>\n</li>\n<li><p><strong>wait_time_option:</strong> First action triggered after a caller has been waiting in the queue for a specified interval.</p>\n</li>\n<li><p><strong>wait_time_second_option:</strong> Second action triggered after a caller has been waiting in the queue for a specified interval.</p>\n</li>\n<li><p><strong>wait_time_third_option:</strong> Third action triggered after a caller has been waiting in the queue for a specified interval.</p>\n</li>\n<li><p><strong>wait_time_option_seconds</strong>: specifies the amount of time, in seconds, that an inbound caller must wait on hold before the special \"Wait Time Option\" is presented.</p>\n</li>\n<li><p><strong>wait_time_option_exten</strong>: specifies an extension for callers to use if they want to exit the waiting queue.</p>\n</li>\n<li><p><strong>wait_time_option_voicemail:</strong> Specifies the voicemail box where a caller is directed if they choose to leave the queue</p>\n</li>\n<li><p><strong>wait_time_option_xfer_group</strong>: Specifies a destination inbound group for a caller to be transferred to.</p>\n</li>\n<li><p><strong>wait_time_option_callmenu</strong>: Routes a waiting caller to a specific call menu after a predefined period.</p>\n</li>\n<li><p><strong>wait_time_option_callback_filename</strong>: The audio file that an inbound caller hears when they choose the option to receive a callback instead of continuing to wait on hold.</p>\n</li>\n<li><p><strong>wait_time_option_callback_list_id:</strong> List ID where a customer's call is placed when they opt for a callback while waiting in an inbound queue.</p>\n</li>\n<li><p><strong>wait_time_option_press_filename</strong>: Name of the sound file that is played to a caller after they have been on hold for a specified amount of time.</p>\n</li>\n<li><p><strong>wait_time_option_no_block</strong>: Y/N</p>\n</li>\n<li><p><strong>wait_time_option_prompt_seconds</strong>: Determines how long to wait before playing an audio prompt to a caller who is waiting in a queue.</p>\n</li>\n<li><p><strong>calculate_estimated_hold_seconds:</strong> Estimates the waiting time for an inbound call before it is connected to an agent.</p>\n</li>\n<li><p><strong>na_call_url:</strong> Executes a specified web address when a call is not connected to a live agent.</p>\n</li>\n<li><p><strong>group_calldate</strong>: Timestamp of a call associated with a specific agent's user group.</p>\n</li>\n<li><p><strong>drop_callmenu:</strong> Routing strategy used to handle dropped calls.</p>\n</li>\n<li><p><strong>after_hours_callmenu</strong>: Specifies which Call Menu to use when a call arrives outside of the defined business hours.</p>\n</li>\n<li><p><strong>user_group:</strong> Agent group id associated with inbound queue.</p>\n</li>\n<li><p><strong>max_calls_method</strong>: Options are (TOTAL, IN_QUEUE, DISABLED).</p>\n</li>\n<li><p><strong>max_calls_count</strong>: limits the number of concurrent calls that can be handled by agents assigned to that group.</p>\n</li>\n<li><p><strong>max_calls_action</strong>: Options are (DROP, AFTERHOURS, NO_AGENT_NO_QUEUE, AREACODE_FILTER).</p>\n</li>\n<li><p><strong>modify_stamp</strong>: Datetime when inbound queue was last modified.</p>\n</li>\n</ul>\n<h3 id=\"get-get-inbound-queue-list\">GET Get Inbound Queue List</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/inbound-queue?limit=1000</a></p>\n<p>Get a list of inbound queues.</p>\n<p>Fields within each object listed by data:</p>\n<ul>\n<li><p><strong>group_id:</strong> Inbound queue id.</p>\n</li>\n<li><p><strong>group_name</strong>: Inbound queue name.</p>\n</li>\n<li><p><strong>group_color:</strong> Inbound group color.</p>\n</li>\n<li><p><strong>active</strong>: Y if inbound queue is active, else N.</p>\n</li>\n<li><p><strong>queue_priority</strong>: The higher the number, the higher the queue priorty.</p>\n</li>\n<li><p><strong>call_time_id:</strong> Dictates the day and times when the system will accept and route incoming calls.</p>\n</li>\n</ul>\n<h3 id=\"post-clone-inbound-queue\">POST Clone Inbound Queue</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/inbound-queue-clone\">https://ycc-api.ytel.com/api/v2/inbound-queue-clone</a></p>\n<p>Clone an inbound queue.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"group_id\": \"test1\", \n    \"group_name\": \"Test 1\", \n    \"from_inbound_id\": \"test2\"\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>group_id:</strong> New inbound queue id</p>\n</li>\n<li><p><strong>group_name</strong>: New inbound queue name.</p>\n</li>\n<li><p><strong>from_inbound_id</strong>: Inbound queue id that is getting cloned.</p>\n</li>\n</ul>\n<h3 id=\"post-update-inbound-queue\">POST Update Inbound Queue</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/inbound-queue/update\">https://ycc-api.ytel.com/api/v2/inbound-queue/update</a></p>\n<p>group_id is the inbound queue getting updated.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"group_id\": \"test1\",\n    \"group_name\":\"GROUP2\",\n    \"group_color\":\"#000001\",\n    \"active\":\"Y\",\n    \"web_form_address\":null,\n    \"voicemail_ext\":null,\n    \"next_agent_call\":\"random\",\n    \"fronter_display\":\"Y\",\n    \"ingroup_script\":null,\n    \"get_call_launch\":\"NONE\",\n    \"drop_call_seconds\":360,\n    \"drop_action\":\"MESSAGE\",\n    \"drop_exten\":\"8307\",\n    \"call_time_id\":\"24hours\",\n    \"after_hours_action\":\"MESSAGE\",\n    \"after_hours_message_filename\":\"vm-goodbye\",\n    \"after_hours_exten\":\"8300\",\n    \"after_hours_voicemail\":null,\n    \"welcome_message_filename\":\"---NONE---\",\n    \"moh_context\":\"default\",\n    \"onhold_prompt_filename\":\"generic_hold\",\n    \"prompt_interval\":60,\n    \"agent_alert_exten\":\"ding\",\n    \"agent_alert_delay\":1000,\n    \"default_xfer_group\":\"---NONE---\",\n    \"queue_priority\":0,\n    \"drop_inbound_group\":\"---NONE---\",\n    \"ingroup_recording_override\":\"DISABLED\",\n    \"ingroup_rec_filename\":\"NONE\",\n    \"afterhours_xfer_group\":\"---NONE---\",\n    \"play_place_in_line\":\"N\",\n    \"play_estimate_hold_time\":\"N\",\n    \"action_xfer_cid\":\"CUSTOMER\",\n    \"extension_appended_cidname\":\"N\",\n    \"hold_time_option\":\"NONE\",\n    \"hold_time_option_seconds\":360,\n    \"hold_time_option_exten\":\"8300\",\n    \"hold_time_option_voicemail\":\"\",\n    \"hold_time_option_xfer_group\":\"---NONE---\",\n    \"hold_time_option_callback_filename\":\"vm-hangup\",\n    \"hold_time_option_callback_list_id\":999,\n    \"hold_recall_xfer_group\":\"---NONE---\",\n    \"no_delay_call_route\":\"N\",\n    \"play_welcome_message\":\"ALWAYS\",\n    \"no_agent_no_queue\":\"N\",\n    \"no_agent_action\":\"MESSAGE\",\n    \"no_agent_action_value\":\"nbdy-avail-to-take-call|vm-goodbye\",\n    \"web_form_address_two\":null,\n    \"start_call_url\":null,\n    \"dispo_call_url\":null,\n    \"ignore_list_script_override\":\"N\",\n    \"hold_time_option_minimum\":0,\n    \"hold_time_option_press_filename\":\"to-be-called-back|digits/1\",\n    \"hold_time_option_callmenu\":\"\",\n    \"hold_time_option_no_block\":\"N\",\n    \"hold_time_option_prompt_seconds\":10,\n    \"onhold_prompt_no_block\":\"N\",\n    \"onhold_prompt_seconds\":10,\n    \"hold_time_second_option\":\"NONE\",\n    \"hold_time_third_option\":\"NONE\",\n    \"wait_hold_option_priority\":\"WAIT\",\n    \"wait_time_option\":\"NONE\",\n    \"wait_time_second_option\":\"NONE\",\n    \"wait_time_third_option\":\"NONE\",\n    \"wait_time_option_seconds\":120,\n    \"wait_time_option_exten\":\"8300\",\n    \"wait_time_option_voicemail\":\"\",\n    \"wait_time_option_xfer_group\":\"---NONE---\",\n    \"wait_time_option_callmenu\":\"\",\n    \"wait_time_option_callback_filename\":\"vm-hangup\",\n    \"wait_time_option_callback_list_id\":999,\n    \"wait_time_option_press_filename\":\"to-be-called-back|digits/1\",\n    \"wait_time_option_no_block\":\"N\",\n    \"wait_time_option_prompt_seconds\":10,\n    \"calculate_estimated_hold_seconds\":0,\n    \"na_call_url\":null,\n    \"group_calldate\":\"2024-07-08 14:40:12\",\n    \"drop_callmenu\":\"\",\n    \"after_hours_callmenu\":\"\",\n    \"user_group\":\"---ALL---\",\n    \"max_calls_method\":\"DISABLED\",\n    \"max_calls_count\":0,\n    \"max_calls_action\":\"NO_AGENT_NO_QUEUE\"\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>group_id</strong>: Inbound queue id getting updated.</p>\n</li>\n<li><p><strong>group_name:</strong> Inbound queue name.</p>\n</li>\n<li><p><strong>group_color:</strong> Inbound queue color.</p>\n</li>\n<li><p><strong>active</strong>: Y means inbound queue is active, else N.</p>\n</li>\n<li><p><strong>web_form_address</strong>: Web page that automatically displays on agent's screen when they get a call from that group. (optional)</p>\n</li>\n<li><p><strong>voicemail_ext</strong>: Extension calls are routd to when no agents are available. (optional)</p>\n</li>\n<li><p><strong>next_agent_call:</strong> Determines order in which calls are routed to available agents. Options are (longest_wait_time, random, inbound_group_rank, oldest_call_start, oldest_call_finish, oldest_inbound_call_start, oldest_inbound_call_finish, oldest_inbound_filtered_call_start, oldest_inbound_filtered_call_finish, overall_user_level, campaign_rank, ingroup_grade_random, campaign_grade_random, fewest_calls, fewest_calls_campaign, overall_user_level_wait_time, campaign_rank_wait_time, fewest_calls_wait_time, fewest_calls_campaign_wait_time, inbound_group_rank_wait_time).</p>\n</li>\n<li><p><strong>fronter_display</strong>: Y if fronter is shown to the closer or inbound agent, else N.</p>\n</li>\n<li><p><strong>ingroup_script</strong>: Incoming call script presented to an agent. (optional)</p>\n</li>\n<li><p><strong>get_call_launch:</strong> What displays on an agent's screen when an incoing call is delivered. Options are (NONE, SCRIPT, SCRIPTTWO, WEBFORM, WEBFORMTWO, WEBFORMTHREE, FORM, EMAIL).</p>\n</li>\n<li><p><strong>drop_call_seconds</strong>: Max amount of time a call will wait in the queue before a drop action is executed.</p>\n</li>\n<li><p><strong>drop_action</strong>: Options are (HANGUP, MESSAGE, VOICEMAIL, IN_GROUP, CALLMENU, VMAIL_NO_INST).</p>\n</li>\n<li><p><strong>drop_exten:</strong> The extension a dropped caller is routed to.</p>\n</li>\n<li><p><strong>call_time_id</strong>: Call times when inbound queue can receive calls.</p>\n</li>\n<li><p><strong>after_hours_action</strong>: Options are (HANGUP, MESSAGE, EXTENSION, VOICEMAIL, IN_GROUP, CALLMENU, VMAIL_NO_INST).</p>\n</li>\n<li><p><strong>after_hours_message_filename</strong>: Plays message to caller during designated after hours.</p>\n</li>\n<li><p><strong>after_hours_exten</strong>: Where incoming call are routed to during designated after hours.</p>\n</li>\n<li><p><strong>after_hours_voicemail</strong>: Voicemail for incoming calls during designated after hours. (optional)</p>\n</li>\n<li><p><strong>welcome_message_filename</strong>: Audio file played to a caller as a welcome message.</p>\n</li>\n<li><p><strong>moh_context</strong>: Dialplan context that is used for a caller who is placed on hold with music.</p>\n</li>\n<li><p><strong>onhold_prompt_filename</strong>: Audio file played when caller is on hold.</p>\n</li>\n<li><p><strong>prompt_interval</strong>: Frequency interval in seconds when onhold prompt is played.</p>\n</li>\n<li><p><strong>agent_alert_exten:</strong> Special extension to which an inbound call is routed before being sent to an agent.</p>\n</li>\n<li><p><strong>agent_alert_delay:</strong> Adds pause between when a call is sent to an agent and when the agent's web interface displays the call information.</p>\n</li>\n<li><p><strong>default_xfer_group</strong>: Destination queue to which calls are transferred by default.</p>\n</li>\n<li><p><strong>queue_priority</strong>: Determins order in which calls are retrieved. The lower the number the higher the priority.</p>\n</li>\n<li><p><strong>drop_inbound_group</strong>: Group id where abandoned inbounds calls are sent to.</p>\n</li>\n<li><p><strong>inbound_recording_override</strong>: Determines how call recording is handled for calls routed to that group. Options are (DISABLED, NEVER, ONDEMAND, ALLCALLS, ALLFORCE).</p>\n</li>\n<li><p><strong>ingroup_rec_filename</strong>: Naming convention for audio files.</p>\n</li>\n<li><p><strong>afterhours_xfer_group:</strong> Defines where to route call if it arrives outside the designated operating hours.</p>\n</li>\n<li><p><strong>play_place_in_line</strong>: Y/N.</p>\n</li>\n<li><p><strong>play_estimate_hold_time</strong>: Y/N.</p>\n</li>\n<li><p><strong>action_xfer_cid</strong>: Caller ID displayed to the agent while receiving a transfered call.</p>\n</li>\n<li><p><strong>extension_appended_cidname:</strong> Modify caller id's name to agent. Options are (Y, N, Y_USER, Y_WITH_CAMPAIGN, Y_USER_WITH_CAMPAIGN).</p>\n</li>\n<li><p><strong>hold_time_option</strong>: Alternative action a caller can take if wait time is longer than expected.</p>\n</li>\n<li><p><strong>hold_time_option_seconds</strong>: Wait time duration until action is triggered.</p>\n</li>\n<li><p><strong>hold_time_option_exten:</strong> Extension a caller will be sent to if their wait time exeeds its defined limit.</p>\n</li>\n<li><p><strong>hold_time_option_voicemail</strong>: Voicemail used when a caller's wait time exeeds its defined limit.</p>\n</li>\n<li><p><strong>hold_time_option_xfer_group</strong>: Group a caller will be sent to if their wait time exeeds its defined limit.</p>\n</li>\n<li><p><strong>hold_time_option_callback_filename:</strong> Audio file used when a caller's wait time exeeds its defined limit.</p>\n</li>\n<li><p><strong>hold_time_option_callback_list_id</strong>: List id a caller is saved to if their wait time exeeds its defined limit.</p>\n</li>\n<li><p><strong>hold_recall_xfer_group</strong>: Which group to route a held call to for a recall transfer.</p>\n</li>\n<li><p><strong>no_delay_call_route:</strong> Y/N.</p>\n</li>\n<li><p><strong>play_welcome_message:</strong> Options are (ALWAYS, NEVER, IF_WAIT_ONLY, YES_UNLESS_NODELAY)</p>\n</li>\n<li><p><strong>no_agent_no_queue</strong>: Options are (N, Y, NO_PAUSED, NO_READY).</p>\n</li>\n<li><p><strong>no_agent_action:</strong> Options are (CALLMENU, INGROUP, DID, MESSAGE, EXTENSION, VOICEMAIL, VMAIL_NO_INST).</p>\n</li>\n<li><p><strong>no_agent_action_value:</strong> Determines what happens to an inbound call when there are no agents logged in and ready to take the call.</p>\n</li>\n<li><p><strong>web_form_address_two:</strong> URL for second web form displayed to agent. (optional)</p>\n</li>\n<li><p><strong>start_call_url:</strong> External web url triggered when a call is successfully transfered to an agent. (optional)</p>\n</li>\n<li><p><strong>dispo_call_url</strong>: External web url triggered when an agent disposition's a call. (optional)</p>\n</li>\n<li><p><strong>ignore_list_script_override</strong>: Y/N.</p>\n</li>\n<li><p><strong>hold_time_option_minimum:</strong> Number of seconds a caller must be on hold until hold time option is executed.</p>\n</li>\n<li><p><strong>hold_time_option_press_filename</strong>: Audio file played when caller has been on hold for a specific amount of time.</p>\n</li>\n<li><p><strong>hold_time_option_callmenu</strong>: IVR call menu used when a caller has been on hold for a specific amount of time.</p>\n</li>\n<li><p><strong>hold_time_option_no_block</strong>: Y/N</p>\n</li>\n<li><p><strong>hold_time_option_prompt_seconds</strong>: How long on hold prompt audio message can play without blocking other calls in the queue.</p>\n</li>\n<li><p><strong>onhold_prompt_no_block</strong>: Y/N</p>\n</li>\n<li><p><strong>onhold_prompt_seconds</strong>: Time interval a periodic message is player to callers waiting in the queue.</p>\n</li>\n<li><p><strong>hold_time_second_option:</strong> Overflow option that is triggered after the hold time option seconds have been exceeded.</p>\n</li>\n<li><p><strong>hold_time_third_option:</strong> Overflow option that is triggered after the hold time option seconds have been exceeded for a third time.</p>\n</li>\n<li><p><strong>wait_time_option_priority</strong>: Options are (WAIT, HOLD, BOTH)</p>\n</li>\n<li><p><strong>wait_time_option:</strong> First action triggered after a caller has been waiting in the queue for a specified interval.</p>\n</li>\n<li><p><strong>wait_time_second_option:</strong> Second action triggered after a caller has been waiting in the queue for a specified interval.</p>\n</li>\n<li><p><strong>wait_time_third_option:</strong> Third action triggered after a caller has been waiting in the queue for a specified interval.</p>\n</li>\n<li><p><strong>wait_time_option_seconds</strong>: specifies the amount of time, in seconds, that an inbound caller must wait on hold before the special \"Wait Time Option\" is presented.</p>\n</li>\n<li><p><strong>wait_time_option_exten</strong>: specifies an extension for callers to use if they want to exit the waiting queue.</p>\n</li>\n<li><p><strong>wait_time_option_voicemail:</strong> Specifies the voicemail box where a caller is directed if they choose to leave the queue</p>\n</li>\n<li><p><strong>wait_time_option_xfer_group</strong>: Specifies a destination inbound group for a caller to be transferred to.</p>\n</li>\n<li><p><strong>wait_time_option_callmenu</strong>: Routes a waiting caller to a specific call menu after a predefined period.</p>\n</li>\n<li><p><strong>wait_time_option_callback_filename</strong>: The audio file that an inbound caller hears when they choose the option to receive a callback instead of continuing to wait on hold.</p>\n</li>\n<li><p><strong>wait_time_option_callback_list_id:</strong> List ID where a customer's call is placed when they opt for a callback while waiting in an inbound queue.</p>\n</li>\n<li><p><strong>wait_time_option_press_filename</strong>: Name of the sound file that is played to a caller after they have been on hold for a specified amount of time.</p>\n</li>\n<li><p><strong>wait_time_option_no_block</strong>: Y/N</p>\n</li>\n<li><p><strong>wait_time_option_prompt_seconds</strong>: Determines how long to wait before playing an audio prompt to a caller who is waiting in a queue.</p>\n</li>\n<li><p><strong>calculate_estimated_hold_seconds:</strong> Estimates the waiting time for an inbound call before it is connected to an agent.</p>\n</li>\n<li><p><strong>na_call_url:</strong> Executes a specified web address when a call is not connected to a live agent. (optional)</p>\n</li>\n<li><p><strong>group_calldate</strong>: Timestamp of a call associated with a specific agent's user group.</p>\n</li>\n<li><p><strong>drop_callmenu:</strong> Routing strategy used to handle dropped calls. (optional)</p>\n</li>\n<li><p><strong>after_hours_callmenu</strong>: Specifies which Call Menu to use when a call arrives outside of the defined business hours. (optional)</p>\n</li>\n<li><p><strong>user_group:</strong> Agent group id associated with inbound queue.</p>\n</li>\n<li><p><strong>max_calls_method</strong>: Options are (TOTAL, IN_QUEUE, DISABLED).</p>\n</li>\n<li><p><strong>max_calls_count</strong>: limits the number of concurrent calls that can be handled by agents assigned to that group.</p>\n</li>\n<li><p><strong>max_calls_action</strong>: Options are (DROP, AFTERHOURS, NO_AGENT_NO_QUEUE, AREACODE_FILTER).</p>\n</li>\n</ul>\n<h3 id=\"get-delete-inbound-queue\">GET Delete Inbound Queue</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/inbound-queue/delete?group_id=JB1</a></p>\n<p>Delete inbound queue using its group_id.</p>\n","_postman_id":"b0e3e996-8216-4db6-80c3-651f209ee44e","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b6626842-49af-4640-b148-2c29843e1d6e","id":"b6626842-49af-4640-b148-2c29843e1d6e","name":"CCaaS API","type":"folder"}}},{"name":"YCC Voicemail","item":[{"name":"Get Voicemail","id":"658c857b-feec-42d0-8ddc-8316b7f23013","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"url":"https://ycc-api.ytel.com/api/v2/admin-utilities/get-voicemail/:id","urlObject":{"protocol":"https","path":["api","v2","admin-utilities","get-voicemail",":id"],"host":["ycc-api","ytel","com"],"query":[],"variable":[{"description":{"content":"<p>Voicemail id</p>\n","type":"text/plain"},"type":"any","value":"21225","key":"id"}]}},"response":[],"_postman_id":"658c857b-feec-42d0-8ddc-8316b7f23013"},{"name":"Delete Voicemail","id":"a8897850-11d3-46b9-8100-b240e5768c69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"url":"https://ycc-api.ytel.com/api/v2/admin-utilities/voicemail/delete?voicemail_id=vmid","urlObject":{"protocol":"https","path":["api","v2","admin-utilities","voicemail","delete"],"host":["ycc-api","ytel","com"],"query":[{"description":{"content":"<p>Voicemail id</p>\n","type":"text/plain"},"key":"voicemail_id","value":"vmid"}],"variable":[]}},"response":[],"_postman_id":"a8897850-11d3-46b9-8100-b240e5768c69"},{"name":"Create Voicemail","id":"3ec2c48b-02bb-4429-a87b-96566b9c1a00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"voicemail_id\":\"jbtest\",\n    \"active\":\"Y\",\n    \"pass\":\"yourpwd\",\n    \"fullname\":\"Full Name\",\n    \"messages\":0,\n    \"old_messages\":0,\n    \"email\":\"\",\n    \"delete_vm_after_email\":\"N\",\n    \"voicemail_timezone\":\"\",\n    \"voicemail_options\":\"\",\n    \"user_group\":\"---ALL---\",\n    \"voicemail_greeting\":\"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/admin-utilities/add-new-voicemail","urlObject":{"protocol":"https","path":["api","v2","admin-utilities","add-new-voicemail"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ec2c48b-02bb-4429-a87b-96566b9c1a00"},{"name":"Update Voicemail","id":"73d398fb-74ac-4f48-99ff-92d6656e0851","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"voicemail_id\":\"jbtest\",\n    \"active\":\"Y\",\n    \"pass\":\"1234\",\n    \"fullname\":\"Test Voicemail1\",\n    \"messages\":4,\n    \"old_messages\":0,\n    \"email\":\"email@email.com\",\n    \"delete_vm_after_email\":\"N\",\n    \"voicemail_timezone\":\"pacific\",\n    \"voicemail_options\":\"\",\n    \"user_group\":\"---ALL---\",\n    \"voicemail_greeting\":\"\",\n    \"on_login_report\":\"Y\"\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/admin-utilities/update-voicemail","urlObject":{"protocol":"https","path":["api","v2","admin-utilities","update-voicemail"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"73d398fb-74ac-4f48-99ff-92d6656e0851"}],"id":"e075c4bc-164c-4601-9033-b19a69cb9ea7","description":"<p>YCC voicemail endpoints allow for creating, updating and viewing data about a voicemail.</p>\n<h3 id=\"authorization-bearer-token\"><strong>Authorization:</strong> Bearer Token</h3>\n<p>This folder is using an authorization helper from folder <a href=\"https://api-docs.ytel.com/?version=latest#auth-info-14e0156b-7eea-46e4-9e90-0fbb78dfde49\">CPaaS API</a>.</p>\n<h3 id=\"request-headers\">Request Headers</h3>\n<p><strong>Accept:</strong> application/json</p>\n<p><strong>Content-Type:</strong> application/json</p>\n<h3 id=\"get-get-voicemail\">GET Get Voicemail</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/admin-utilities/get-voicemail/{id}</a></p>\n<p>Get a voicemail's details. {id} is the voicemail id.</p>\n<p>Fields within data:</p>\n<ul>\n<li><p><strong>voicemail_id:</strong> Voicemail id.</p>\n</li>\n<li><p><strong>active:</strong> Y if voicemail is active, else N.</p>\n</li>\n<li><p><strong>pass:</strong> Password.</p>\n</li>\n<li><p><strong>fullname:</strong> Name of voicemail.</p>\n</li>\n<li><p><strong>messages:</strong> Total pending messages.</p>\n</li>\n<li><p><strong>old_messages</strong>: Total messages listened to.</p>\n</li>\n<li><p><strong>email</strong>: Email recorded messages are sent to.</p>\n</li>\n<li><p><strong>delete_vm_after_email</strong>: Y if automatically delete voicemail after successfully sent to email, else N.</p>\n</li>\n<li><p><strong>voicemail_timezone</strong>: Timezone.</p>\n</li>\n<li><p><strong>voicemail_options</strong>: Specific settings for a voicemail box.</p>\n</li>\n<li><p><strong>user_group</strong>: Agent group associated with voicemail.</p>\n</li>\n<li><p><strong>voicemail_greeting</strong>: Pre-recorded message.</p>\n</li>\n</ul>\n<h3 id=\"post-create-voicemail\">POST Create Voicemail</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/clone-agent\">https://ycc-api.ytel.com/api/v2/admin-utilities/add-new-voicemail</a></p>\n<p>Create a new voicemail.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"voicemail_id\":\"testvm\",\n    \"active\":\"Y\",\n    \"pass\":\"youpassword\",\n    \"fullname\":\"QA\",\n    \"messages\":0,\n    \"old_messages\":0,\n    \"email\":\"\",\n    \"delete_vm_after_email\":\"N\",\n    \"voicemail_timezone\":\"\",\n    \"voicemail_options\":\"\",\n    \"user_group\":\"---ALL---\",\n    \"voicemail_greeting\":\"\"\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>voicemail_id:</strong> Voicemail id.</p>\n</li>\n<li><p><strong>active:</strong> Y if voicemail is active, else N.</p>\n</li>\n<li><p><strong>pass:</strong> Password.</p>\n</li>\n<li><p><strong>fullname:</strong> Name of voicemail.</p>\n</li>\n<li><p><strong>messages:</strong> Total pending messages.</p>\n</li>\n<li><p><strong>old_messages</strong>: Total messages listened to.</p>\n</li>\n<li><p><strong>email</strong>: Email recorded messages are sent to.</p>\n</li>\n<li><p><strong>delete_vm_after_email</strong>: Y if automatically delete voicemail after successfully sent to email, else N.</p>\n</li>\n<li><p><strong>voicemail_timezone</strong>: Timezone.</p>\n</li>\n<li><p><strong>voicemail_options</strong>: Specific settings for a voicemail box. (nullable)</p>\n</li>\n<li><p><strong>user_group</strong>: Agent group associated with voicemail.</p>\n</li>\n<li><p><strong>voicemail_greeting</strong>: Pre-recorded message.</p>\n</li>\n</ul>\n<h3 id=\"post-update-voicemail\">POST Update Voicemail</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/update-agent\">https://ycc-api.ytel.com/api/v2/admin-utilities/update-voicemail</a></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"voicemail_id\":\"11111\",\n    \"active\":\"Y\",\n    \"pass\":\"password\",\n    \"fullname\":\"Test Voicemail1\",\n    \"messages\":4,\n    \"old_messages\":0,\n    \"email\":\"email@email.com\",\n    \"delete_vm_after_email\":\"N\",\n    \"voicemail_timezone\":\"pacific\",\n    \"voicemail_options\":\"\",\n    \"user_group\":\"---ALL---\",\n    \"voicemail_greeting\":\"\",\n    \"on_login_report\":\"N\"\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>voicemail_id:</strong> Voicemail id.</p>\n</li>\n<li><p><strong>active:</strong> Y if voicemail is active, else N.</p>\n</li>\n<li><p><strong>pass:</strong> Password.</p>\n</li>\n<li><p><strong>fullname:</strong> Name of voicemail.</p>\n</li>\n<li><p><strong>messages:</strong> Total pending messages.</p>\n</li>\n<li><p><strong>old_messages</strong>: Total messages listened to.</p>\n</li>\n<li><p><strong>email</strong>: Email recorded messages are sent to.</p>\n</li>\n<li><p><strong>delete_vm_after_email</strong>: Y if automatically delete voicemail after successfully sent to email, else N.</p>\n</li>\n<li><p><strong>voicemail_timezone</strong>: Timezone.</p>\n</li>\n<li><p><strong>voicemail_options</strong>: Specific settings for a voicemail box. (nullable)</p>\n</li>\n<li><p><strong>user_group</strong>: Agent group associated with voicemail.</p>\n</li>\n<li><p><strong>voicemail_greeting</strong>: Pre-recorded message.</p>\n</li>\n<li><p><strong>on_login_report</strong>: Y if using pre-built report, else N.</p>\n</li>\n</ul>\n<h3 id=\"post-delete-voicemail\">POST Delete Voicemail</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/admin-utilities/voicemail/delete?voicemail_id=233\">https://ycc-api.ytel.com/api/v2/admin-utilities/voicemail/delete?voicemail_id={voicemail_id}</a></p>\n<p>Delete a voicemail by its id.</p>\n","_postman_id":"e075c4bc-164c-4601-9033-b19a69cb9ea7","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b6626842-49af-4640-b148-2c29843e1d6e","id":"b6626842-49af-4640-b148-2c29843e1d6e","name":"CCaaS API","type":"folder"}}},{"name":"YCC Number Management","item":[{"name":"Get Number","id":"56f3af47-378d-4c88-8d90-596ab01f6c0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"url":"https://ycc-api.ytel.com/api/v2/number-edit/12223334444","urlObject":{"protocol":"https","path":["api","v2","number-edit","12223334444"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"56f3af47-378d-4c88-8d90-596ab01f6c0e"},{"name":"Number Update","id":"cf055168-621c-4a59-b445-ef050f02efe1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n   \"did_pattern\":\"12223334444\",\n   \"user_callback_queue_default_return\":\"\",\n   \"did_description\":\"ACCID - 1 Per State\",\n   \"did_active\":\"N\",\n   \"record_call\":\"N\",\n   \"did_route\":\"IN_GROUP\",\n   \"extension\":\"\",\n   \"voicemail_ext\":\"\",\n   \"phone\":\"\",\n   \"menu_id\":\"\",\n   \"user_from_universe\":\"\",\n   \"list_id\":\"999\",\n   \"group_id\":\"Callbacks\",\n   \"call_handle_method\":\"CIDLOOKUP\",\n   \"campaign_id\":\"\",\n   \"filter_inbound_number\":\"GROUP\",\n   \"filter_phone_group_id\":\"blacklist\",\n   \"filter_url\":\"\",\n   \"filter_action\":\"EXTEN\",\n   \"filter_user\":\"\",\n   \"filter_extension\":\"9998887777\",\n   \"filter_voicemail_ext\":\"\",\n   \"filter_menu_id\":\"\",\n   \"filter_list_id\":\"\",\n   \"filter_group_id\":\"---NONE---\",\n   \"filter_call_handle_method\":\"CID\",\n   \"filter_dnc_campaign\":\"\",\n   \"filter_phone\":\"\",\n   \"filter_exten_context\":\"default\",\n   \"filter_url_did_redirect\":\"N\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://ycc-api-dev.ytel.com/api/number-update","urlObject":{"protocol":"https","path":["api","number-update"],"host":["ycc-api-dev","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf055168-621c-4a59-b445-ef050f02efe1"}],"id":"c1369840-7663-4a56-9a7a-6a93fb35ab49","description":"<p>YCC number management endpoints allow for updating and viewing number data.</p>\n<h3 id=\"authorization-bearer-token\"><strong>Authorization:</strong> Bearer Token</h3>\n<p>This folder is using an authorization helper from folder <a href=\"https://api-docs.ytel.com/?version=latest#auth-info-14e0156b-7eea-46e4-9e90-0fbb78dfde49\">CPaaS API</a>.</p>\n<h3 id=\"request-headers\">Request Headers</h3>\n<p><strong>Accept:</strong> application/json</p>\n<p><strong>Content-Type:</strong> application/json</p>\n<h3 id=\"get-number\">GET Number</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/number-edit/12068487626\">https://ycc-api.ytel.com/api/v2/number-edit/12068487626</a></p>\n<p>Gets a number's details.</p>\n<p>Response Fields:</p>\n<ul>\n<li><p><strong>data:</strong> Contains number details.</p>\n</li>\n<li><p><strong>callback_queue_url:</strong> Contains details for callback.</p>\n</li>\n<li><p><strong>number_set_id:</strong> Number set id.</p>\n</li>\n</ul>\n<p>Fields within data:</p>\n<ul>\n<li><p><strong>did_id:</strong> Internal DID id.</p>\n</li>\n<li><p><strong>did_patten</strong>: Number.</p>\n</li>\n<li><p><strong>did_description</strong>: Description of DID.</p>\n</li>\n<li><p><strong>did_active</strong>: Y means did is active, else N.</p>\n</li>\n<li><p><strong>did_route</strong>: Determines where incoming traffic is routed to.</p>\n</li>\n<li><p><strong>extension</strong>: Number extension.</p>\n</li>\n<li><p><strong>exten_context</strong>: Refers to the specific dialplan context in the underlying Asterisk phone system where a phone or extension will start its call routing.</p>\n</li>\n<li><p><strong>voicemail_ext</strong>: Voicemail extension.</p>\n</li>\n<li><p><strong>phone</strong>: Phone enabling agent to receive incoming calls from the public telephone network.</p>\n</li>\n<li><p><strong>server_ip</strong>: Server ip.</p>\n</li>\n<li><p><strong>user</strong>: User id.</p>\n</li>\n<li><p><strong>user_unavailable_action</strong>: Destination set when user is unavailable.</p>\n</li>\n<li><p><strong>user_route_settings_ingroup</strong>: Used for agent direct calls. Default value is AGENTDIRECT.</p>\n</li>\n<li><p><strong>group_id:</strong> Inbound group id.</p>\n</li>\n<li><p><strong>call_handle_method:</strong> Determines how incoming calls are processed and matched with a lead.</p>\n</li>\n<li><p><strong>agent_search_method:</strong> Setting that determines how the system handles lead searching when an agent uses the manual dial feature.</p>\n</li>\n<li><p><strong>list_id:</strong> List id.</p>\n</li>\n<li><p><strong>campaign_id:</strong> Campaign id.</p>\n</li>\n<li><p><strong>phone_code:</strong> Number country code.</p>\n</li>\n<li><p><strong>menu_id:</strong> Menu id.</p>\n</li>\n<li><p><strong>record_call:</strong> Y if recording calls is enabled, else N.</p>\n</li>\n<li><p><strong>filter_inbound_number:</strong> Defines how to filter inbound calls.</p>\n</li>\n<li><p><strong>filter_phone_group_id:</strong> Filter group id that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_url:</strong> Web url that an incoming caller's information is sent to in order to determine how to route or handle the call.</p>\n</li>\n<li><p><strong>filter_action:</strong> Filter action that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_extension:</strong> Filter extension that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_voicemail_ext:</strong> Filter voicemail that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_phone:</strong> Filter phone that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_server_ip:</strong> Filter server ip that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_user:</strong> Filter user that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_user_unavailable_action:</strong> Action taken when an inbound call is directed to a specific user who is unavailable.</p>\n</li>\n<li><p><strong>filter_user_route_settings_ingroup:</strong> Settings determine which agents are eligible to receive inbound calls from that specific group.</p>\n</li>\n<li><p><strong>filter_group_id:</strong> Filter group id that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_call_handle_method:</strong> Rules and logic that determine which leads are dialed and when, as well as how inbound calls are handled.</p>\n</li>\n<li><p><strong>filter_agent_search_method:</strong> Determines the scope the agent can search manually when looking up a lead.</p>\n</li>\n<li><p><strong>filter_list_id:</strong> Filter list id that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_campaign_id:</strong> Filter campaign id that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_phone_code:</strong> Filter phone code that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_menu_id:</strong> Filter menu id that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_clean_cid_number:</strong> Modifies the caller ids of incoming calls by stripping leading digits.</p>\n</li>\n<li><p><strong>custom_one:</strong> Custom field storing specific information about the number.</p>\n</li>\n<li><p><strong>custom_two:</strong> Custom field storing specific information about the number.</p>\n</li>\n<li><p><strong>custom_three:</strong> Custom field storing specific information about the number.</p>\n</li>\n<li><p><strong>custom_four:</strong> Custom field storing specific information about the number.</p>\n</li>\n<li><p><strong>custom_five:</strong> Custom field storing specific information about the number.</p>\n</li>\n<li><p><strong>user_group:</strong> The user group the number is assigned to.</p>\n</li>\n<li><p><strong>filter_dnc_campaign:</strong> Filter out incoming</p>\n</li>\n<li><p><strong>filter_url_did_redirect:</strong> Y if filter url did redirect is active, N if inactive.</p>\n</li>\n<li><p><strong>no_agent_ingroup_redirect:</strong> Options are (DISABLED, Y, NO_PAUSED, READY_ONLY).</p>\n</li>\n<li><p><strong>no_agent_ingroup_id:</strong> Specific inbound group that calls are transferred to when there are no agents available.</p>\n</li>\n<li><p><strong>no_agent_ingroup_extension:</strong> The extension an inbound call is routed to when there are no agents available for a specific ingroup.</p>\n</li>\n<li><p><strong>pre_filter_phone_group_id:</strong> Pre filter group id that is assigned to this number.</p>\n</li>\n<li><p><strong>pre_filter_extension:</strong> Pre filter extension that is assigned to this number.</p>\n</li>\n<li><p><strong>entry_list_id:</strong> Entry list id of a lead's custom fields.</p>\n</li>\n<li><p><strong>filter_entry_list_id:</strong> Filter entry list id that is assigned to this number.</p>\n</li>\n<li><p><strong>max_queue_ingroup_calls:</strong> Maximum number of calls allowed to in queue for a specific inbound group at any given time.</p>\n</li>\n<li><p><strong>max_queue_ingroup_id:</strong> In-Group ID to which calls are routed to if they exceed the maximum capacity defined for a specific inbound campaign.</p>\n</li>\n<li><p><strong>max_queue_ingroup_extension:</strong> Specific extension executed when the maximum queue size for an inbound group has been reached.</p>\n</li>\n<li><p><strong>inbound_route_answer:</strong> Y if inbound route answer is active, N if inactive.</p>\n</li>\n<li><p><strong>pre_filter_recent_call:</strong> Automatically disables a campaign or call if a specific caller ID is detected within a short timeframe.</p>\n</li>\n<li><p><strong>pre_filter_recent_extension:</strong> Manages incoming calls based on the caller's recent call history.</p>\n</li>\n<li><p><strong>modify_stamp:</strong> Date time number was last modified.</p>\n</li>\n</ul>\n<p>Fields within callback_queue_url:</p>\n<ul>\n<li><strong>user_callback_queue_default_return</strong>:</li>\n</ul>\n<h3 id=\"post-number-update\">POST Number Update</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/number-update\">https://ycc-api.ytel.com/api/v2/number-update</a></p>\n<p>Update a number's details.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n   \"did_pattern\":\"12223334444\",\n   \"user_callback_queue_default_return\":\"\",\n   \"did_description\":\"ACCID - 1 Per State\",\n   \"did_active\":\"N\",\n   \"record_call\":\"N\",\n   \"did_route\":\"IN_GROUP\",\n   \"extension\":\"\",\n   \"voicemail_ext\":\"\",\n   \"phone\":\"\",\n   \"menu_id\":\"\",\n   \"user_from_universe\":\"\",\n   \"list_id\":\"999\",\n   \"group_id\":\"Callbacks\",\n   \"call_handle_method\":\"CIDLOOKUP\",\n   \"campaign_id\":\"\",\n   \"filter_inbound_number\":\"GROUP\",\n   \"filter_phone_group_id\":\"blacklist\",\n   \"filter_url\":\"\",\n   \"filter_action\":\"EXTEN\",\n   \"filter_user\":\"\",\n   \"filter_extension\":\"9998881111\",\n   \"filter_voicemail_ext\":\"\",\n   \"filter_menu_id\":\"\",\n   \"filter_list_id\":\"\",\n   \"filter_group_id\":\"---NONE---\",\n   \"filter_call_handle_method\":\"CID\",\n   \"filter_dnc_campaign\":\"\",\n   \"filter_phone\":\"\",\n   \"filter_exten_context\":\"default\",\n   \"filter_url_did_redirect\":\"N\"\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>did_pattern:</strong> The number that is getting updated.</p>\n</li>\n<li><p><strong>user_callback_queue_default_return:</strong> specifies the destination for a callback queue entry if the originally assigned agent does not become available. (optional)</p>\n</li>\n<li><p><strong>did_description:</strong> Description for number.</p>\n</li>\n<li><p><strong>did_active:</strong> Y means number is active, N otherwise.</p>\n</li>\n<li><p><strong>record_call:</strong> Y if calls get recorded, N otherwise.</p>\n</li>\n<li><p><strong>did_route:</strong> Specifies how incoming call is handled. Options are (EXTEN, VOICEMAIL, AGENT, PHONE, IN_GROUP, CALLMENU, VMAIL_NO_INST).</p>\n</li>\n<li><p><strong>extension:</strong> Number extension. (optional)</p>\n</li>\n<li><p><strong>voicemail_ext:</strong> Voicemail extension. (optional)</p>\n</li>\n<li><p><strong>phone:</strong> Phone enabling agent to receive incoming calls from the public telephone network. (optional)</p>\n</li>\n<li><p><strong>menu_id:</strong> Call menu id that presents callers with a pre-recorded menu of options for directing their calls. (optional)</p>\n</li>\n<li><p><strong>user_from_universe:</strong> Internal field.</p>\n</li>\n<li><p><strong>list_id:</strong> The list_id of the defined group of leads for outbound calling campaigns.</p>\n</li>\n<li><p><strong>group_id:</strong> Inbound group id.</p>\n</li>\n<li><p><strong>call_handle_method:</strong> Specifies how an inbound call should be processed when it is routed to an In-Group**.**</p>\n</li>\n<li><p><strong>campaign_id:</strong> Campaign id. (optional)</p>\n</li>\n<li><p><strong>filter_inbound_number:</strong> How to filter inbound calls. Options are (DISABLED, GROUP, URL, DNC_INTERNAL, DNC_CAMPAIGN, GROUP_AREACODE).</p>\n</li>\n<li><p><strong>filter_phone_group_id:</strong> Filter phone group id that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_url:</strong> Web url that an incoming caller's information is sent to in order to determine how to route or handle the call. (optional)</p>\n</li>\n<li><p><strong>filter_action:</strong> Filter action number is set to. Options are (EXTEN, VOICEMAIL, AGENT, PHONE, IN_GROUP, CALLMENU, VMAIL_NO_INST).</p>\n</li>\n<li><p><strong>filter_user:</strong> Filter user that is assigned to number. (optional)</p>\n</li>\n<li><p><strong>filter_extension:</strong> Filter extension that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_voicemail_ext:</strong> Filter voicemail id that is assigned to this number. (optional)</p>\n</li>\n<li><p><strong>filter_menu_id:</strong> Filter menu id that is assigned to this number. (optional)</p>\n</li>\n<li><p>filter_list_id: Filter list_id that is assigned to this number. (optional)</p>\n</li>\n<li><p><strong>filter_group_id:</strong> Filter group id that is assigned to this number.</p>\n</li>\n<li><p><strong>filter_call_handled_method:</strong> setting that specifies how the call should be routed if its Caller ID matches a filter.</p>\n</li>\n<li><p><strong>filter_dnc_campaign:</strong> Filter out incoming calls on campaign specific dnc list. (optional)</p>\n</li>\n<li><p><strong>filter_phone:</strong> Filter phone that is assigned to this number. (optional)</p>\n</li>\n<li><p><strong>filter_exten_context:</strong> Dialplan context that an incoming call will be sent to if its caller id matches a number.</p>\n</li>\n<li><p><strong>filter_url_did_redirect:</strong> Y to enable filter_url, N otherwise.</p>\n</li>\n</ul>\n","_postman_id":"c1369840-7663-4a56-9a7a-6a93fb35ab49","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b6626842-49af-4640-b148-2c29843e1d6e","id":"b6626842-49af-4640-b148-2c29843e1d6e","name":"CCaaS API","type":"folder"}}},{"name":"YCC Agent Management","item":[{"name":"Get Agent List","id":"cae34dba-cf8b-4b4b-9787-5c7214a31d95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"url":"https://ycc-api.ytel.com/api/v2/get-agent-list","urlObject":{"protocol":"https","path":["api","v2","get-agent-list"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cae34dba-cf8b-4b4b-9787-5c7214a31d95"},{"name":"Get Agent Details","id":"c57fed88-592d-4756-a180-f865b5675438","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"url":"https://ycc-api.ytel.com/api/v2/agent-details?id=1010","urlObject":{"protocol":"https","path":["api","v2","agent-details"],"host":["ycc-api","ytel","com"],"query":[{"key":"id","value":"1010"}],"variable":[]}},"response":[],"_postman_id":"c57fed88-592d-4756-a180-f865b5675438"},{"name":"Clone Agent","id":"54dc038e-7ba2-4656-b6f8-604cee9b415b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"from_agent\":\"1984\",\n    \"full_name\":\"Agent Name\",\n    \"new_agent\":\"5150\",\n    \"pass\":\"YOURpassword1234\",\n    \"email\":\"newagentemail@email.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/clone-agent-details","urlObject":{"protocol":"https","path":["api","v2","clone-agent-details"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"54dc038e-7ba2-4656-b6f8-604cee9b415b"},{"name":"Update Agent Details","id":"cf49a30f-fea3-49ac-a6c5-8f43c285d348","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"email\":\"agentemail@email.com\",\n    \"new_email\":null,\n    \"full_name\":\"John Doe\",\n    \"name\":\"1050\",\n    \"user_group\":\"AGENTSGROUP\",\n    \"pass\":null,\n    \"active\":\"Y\",\n    \"agent_choose_ingroups\":\"0\",\n    \"agentcall_manual\":\"1\",\n    \"agentonly_callbacks\":\"1\",\n    \"closer_default_blended\":\"1\",\n    \"voicemail_id\":\"9999\",\n    \"custom_one\":null,\n    \"custom_two\":null,\n    \"custom_three\":null,\n    \"custom_four\":null,\n    \"custom_five\":null,\n    \"force_change_password\":\"N\"\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/update-agent-details","urlObject":{"protocol":"https","path":["api","v2","update-agent-details"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf49a30f-fea3-49ac-a6c5-8f43c285d348"},{"name":"Get Agent's Inbound Groups","id":"21fdd5b7-e1c1-4573-adde-0389471edabc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"email\":\"agentemail@email.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/agent-inbound-groups","urlObject":{"protocol":"https","path":["api","v2","agent-inbound-groups"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"21fdd5b7-e1c1-4573-adde-0389471edabc"},{"name":"Update Agent's Inbound Groups","id":"bac76086-dbf1-4440-8f95-ffa4b12662a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"email\":\"agentemail@email.com\",\n    \"inbound_array\": [\n        {\n            \"group_name_values\": \"Single Agent Direct Queue2\",\n            \"group_id_values\": \"AGENTDIRECT\",\n            \"group_rank\": 0,\n            \"group_grade\": 1,\n            \"calls_today\": 0,\n            \"group_web_vars\": \"\",\n            \"status\": 0,\n            \"daily_limit\": -1,\n            \"UpdateRow\": 0\n        },\n        {\n            \"group_name_values\": \"Agent Direct Queue for Chats\",\n            \"group_id_values\": \"AGENTDIRECT_CHAT\",\n            \"group_rank\": 0,\n            \"group_grade\": 1,\n            \"calls_today\": 0,\n            \"group_web_vars\": \"\",\n            \"status\": 0,\n            \"daily_limit\": -1,\n            \"UpdateRow\": 0\n        },\n        {\n            \"group_name_values\": \"Callbacks InBound\",\n            \"group_id_values\": \"Callbacks\",\n            \"group_rank\": 0,\n            \"group_grade\": 1,\n            \"calls_today\": 0,\n            \"group_web_vars\": \"\",\n            \"status\": 0,\n            \"daily_limit\": -1,\n            \"UpdateRow\": 0\n        },\n        {\n            \"group_name_values\": \"JB TEST1\",\n            \"group_id_values\": \"JBTEST\",\n            \"group_rank\": 0,\n            \"group_grade\": 1,\n            \"calls_today\": 0,\n            \"group_web_vars\": \"\",\n            \"status\": 0,\n            \"daily_limit\": -1,\n            \"UpdateRow\": 0\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/update-agent-inbound-groups","urlObject":{"protocol":"https","path":["api","v2","update-agent-inbound-groups"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bac76086-dbf1-4440-8f95-ffa4b12662a8"},{"name":"Delete Agent","id":"0cbc74b0-9ec7-4d82-9ebb-ff67c5b4392e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"url":"https://ycc-api.ytel.com/api/v2/delete-agent?user_id=1050","urlObject":{"protocol":"https","path":["api","v2","delete-agent"],"host":["ycc-api","ytel","com"],"query":[{"description":{"content":"<p>Id of the agent to be deleted</p>\n","type":"text/plain"},"key":"user_id","value":"1050"}],"variable":[]}},"response":[],"_postman_id":"0cbc74b0-9ec7-4d82-9ebb-ff67c5b4392e"},{"name":"Get Agent Groups List","id":"4ee8936b-6fdc-4532-a555-2fe276c18dd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"url":"https://ycc-api.ytel.com/api/v2/agentgroup-lists?limit=100000&page=1","urlObject":{"protocol":"https","path":["api","v2","agentgroup-lists"],"host":["ycc-api","ytel","com"],"query":[{"key":"limit","value":"100000"},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"4ee8936b-6fdc-4532-a555-2fe276c18dd8"},{"name":"Get Agent Group","id":"c4a1fab1-928e-4eae-9e1d-c48607b99cc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"url":"https://ycc-api-dev.ytel.com/api/v2/agent-group-edit?user_group=TESTGROUP","urlObject":{"protocol":"https","path":["api","v2","agent-group-edit"],"host":["ycc-api-dev","ytel","com"],"query":[{"description":{"content":"<p>Agent group id</p>\n","type":"text/plain"},"key":"user_group","value":"TESTGROUP"}],"variable":[]}},"response":[],"_postman_id":"c4a1fab1-928e-4eae-9e1d-c48607b99cc7"},{"name":"Update Agent Group","id":"b3d587cd-7e27-4463-baac-eaefaa1fe3eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"user_group\": \"TESTGROUP\",\n    \"agent_call_log_view\":\"N\",\n    \"agent_status_view_time\":\"N\",\n    \"agent_status_viewable_groups\":[\"\",\"--ALL-GROUPS--\",\"\",\"\"],\n    \"allowed_campaigns\":[\"-ALL-CAMPAIGNS-\"],\n    \"forced_timeclock_login\":\"N\",\n    \"group_name\":\"testgroup1\",\n    \"group_shifts\":\"  \",\n    \"shift_enforcement\":\"OFF\",\n    \"agent_xfer_consultative\":\"N\",\n    \"agent_xfer_vm_transfer\":\"N\",\n    \"agent_xfer_blind_transfer\":\"N\",\n    \"agent_xfer_dial_with_customer\":\"N\",\n    \"agent_xfer_park_customer_dial\":\"N\",\n    \"hide_take_call_in_queue\":\"N\",\n    \"hide_number_take_call_in_queue\":\"N\"\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api-dev.ytel.com/api/v2/agentgroup-edit","urlObject":{"protocol":"https","path":["api","v2","agentgroup-edit"],"host":["ycc-api-dev","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3d587cd-7e27-4463-baac-eaefaa1fe3eb"},{"name":"Clone Agent Group","id":"691dc7f4-0b38-4f3d-b82a-cfdc6722b893","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"from_user_group\":\"ADMIN\",\n    \"user_group\":\"TestGroup25\"\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/agentgroup-clone","urlObject":{"protocol":"https","path":["api","v2","agentgroup-clone"],"host":["ycc-api","ytel","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"691dc7f4-0b38-4f3d-b82a-cfdc6722b893"},{"name":"Delete Agent Group","id":"1ad0a095-a7f7-4294-8bd8-3bb6c2bff0cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {Your Authentication Token}","description":"<p>Generated using the CPaaS API.</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"from_user_group\":\"ADMIN\",\n    \"user_group\":\"TestGroup\"\n}","options":{"raw":{"language":"json"}}},"url":"https://ycc-api.ytel.com/api/v2/agentgroup-delete?user_id=TestGroup25","urlObject":{"protocol":"https","path":["api","v2","agentgroup-delete"],"host":["ycc-api","ytel","com"],"query":[{"description":{"content":"<p>Id of agent group getting deleted.</p>\n","type":"text/plain"},"key":"user_id","value":"TestGroup25"}],"variable":[]}},"response":[],"_postman_id":"1ad0a095-a7f7-4294-8bd8-3bb6c2bff0cc"}],"id":"1feb311d-5c03-428b-a9a6-9047177a4928","description":"<p>YCC agent management endpoints allow for cloning, updating, deleting and viewing data about an agent.</p>\n<h3 id=\"authorization-bearer-token\"><strong>Authorization:</strong> Bearer Token</h3>\n<p>This folder is using an authorization helper from folder <a href=\"https://api-docs.ytel.com/?version=latest#auth-info-14e0156b-7eea-46e4-9e90-0fbb78dfde49\">CPaaS API</a>.</p>\n<h3 id=\"request-headers\">Request Headers</h3>\n<p><strong>Accept:</strong> application/json</p>\n<p><strong>Content-Type:</strong> application/json</p>\n<h3 id=\"get-get-agent-list\">GET Get Agent List</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/get-agent-list\">https://ycc-api.ytel.com/api/v2/get-agent-list</a></p>\n<p>Get a list of agents.</p>\n<ul>\n<li><strong>data</strong>: List of agents.</li>\n</ul>\n<p>Fields within data:</p>\n<ul>\n<li><p><strong>user:</strong> User id.</p>\n</li>\n<li><p><strong>full_name:</strong> Name of user.</p>\n</li>\n</ul>\n<h3 id=\"get-get-agent-details\">GET Get Agent Details</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/agent-detailst?id={id}</a></p>\n<p>Get an agent's details by its id.</p>\n<p>Fields:</p>\n<ul>\n<li><p><strong>user_info:</strong> Contains user details.</p>\n</li>\n<li><p><strong>manual_dial_cid:</strong> Contains outbound caller id.</p>\n</li>\n<li><p><strong>admin_user_group_list</strong>: List of user groups.</p>\n</li>\n<li><p><strong>voicemail:</strong> List of voicemail ids.</p>\n</li>\n<li><p><strong>dids:</strong> List of DIDs.</p>\n</li>\n</ul>\n<p>Fields within user_info:</p>\n<ul>\n<li><p><strong>user:</strong> User id.</p>\n</li>\n<li><p><strong>full_name:</strong> Full name of user.</p>\n</li>\n<li><p><strong>user_group:</strong> User group id.</p>\n</li>\n<li><p><strong>agent_choose_ingroups:</strong> 1 if an agent can manually select which inbound groups they could receive calls from else 0.</p>\n</li>\n<li><p><strong>closer_campaigns:</strong> List of closer campaign ids. (inbound queues)</p>\n</li>\n<li><p><strong>scheduled_callbacks</strong>: 1 if an agent can schedule callbacks, 0 if not.</p>\n</li>\n<li><p><strong>agentonly_callbacks:</strong> 1 if only this agent can receive a callback lead, 0 if callback lead goes to the next available agent.</p>\n</li>\n<li><p><strong>agentcall_manual</strong>: 1 if agent is able to place manual calls else 0 if they are not.</p>\n</li>\n<li><p><strong>closer_default_blended</strong>: 1 if an agent will be in blended mode upon login else 0 if they are not.</p>\n</li>\n<li><p><strong>active</strong>: Y if active, N if not active.</p>\n</li>\n<li><p><strong>email</strong>: User email.</p>\n</li>\n<li><p><strong>custom_one:</strong> Custom field storing specific information about the agent.</p>\n</li>\n<li><p><strong>custom_two:</strong> Custom field storing specific information about the agent.</p>\n</li>\n<li><p><strong>custom_three:</strong> Custom field storing specific information about the agent.</p>\n</li>\n<li><p><strong>custom_four: C</strong>ustom field storing specific information about the agent.</p>\n</li>\n<li><p><strong>custom_five:</strong> Custom field storing specific information about the agent.</p>\n</li>\n<li><p><strong>voicemail_id</strong>: Voicemail id.</p>\n</li>\n<li><p><strong>agent_call_log_view_override:</strong> Override permissions set for user group to view call logs. The options are DISABLED, Y, N.</p>\n</li>\n<li><p><strong>force_change_password</strong>: Y if the user is required to change their password the next time they login, N if they are not required to.</p>\n</li>\n<li><p><strong>agent_lead_search_override</strong>: Allows agents to search for and modify leads outside of the lead they are currently calling. The options are NOT_ACTIVE, ENABLED, LIVE_CALL_INBOUND, LIVE_CALL_INBOUND_AND_MANUAL, DISABLED.</p>\n</li>\n<li><p><strong>failed_login_count</strong>: Total failed user login attempts.</p>\n</li>\n<li><p><strong>last_login_date</strong>: Last date time user logged in.</p>\n</li>\n<li><p><strong>last_ip</strong>: The last IP the user was using.</p>\n</li>\n<li><p><strong>modify_stamp</strong>: Last date time user details were modified.</p>\n</li>\n</ul>\n<p>Fields within manua_dial_cid:</p>\n<ul>\n<li><strong>outbound_cid:</strong> Outbound caller id.</li>\n</ul>\n<p>Fields within admin_user_group_list:</p>\n<ul>\n<li><p><strong>user_group</strong>: User group id.</p>\n</li>\n<li><p><strong>group_name</strong>: User group name.</p>\n</li>\n</ul>\n<p>Fields within voicemail:</p>\n<ul>\n<li><p><strong>voicemail_id:</strong> Voicemail unique id.</p>\n</li>\n<li><p><strong>fullname:</strong> Voicemail name.</p>\n</li>\n<li><p><strong>email:</strong> Email address.</p>\n</li>\n</ul>\n<p>Fields within dids:</p>\n<ul>\n<li><p><strong>did_pattern:</strong> Did.</p>\n</li>\n<li><p><strong>option_title:</strong> Did description.</p>\n</li>\n</ul>\n<h3 id=\"post-clone-agent\">POST Clone Agent</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/clone-agent-details\">https://ycc-api.ytel.com/api/v2/clone-agent-details</a></p>\n<p>Clone an agent.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"from_agent\":\"9999\",\n    \"full_name\":\"Full Name\",\n    \"new_agent\":\"1076\",\n    \"pass\":\"password\",\n    \"email\":\"email@email.com\"\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>from_agent:</strong> Agent user id being cloned.</p>\n</li>\n<li><p><strong>full_name:</strong> Name of new agent.</p>\n</li>\n<li><p><strong>new_agent:</strong> User id of new agent.</p>\n</li>\n<li><p><strong>pass:</strong> Password.</p>\n</li>\n<li><p><strong>email:</strong> Email for new agent.</p>\n</li>\n</ul>\n<h3 id=\"post-update-agent-details\">POST Update Agent Details</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/update-agent\">https://ycc-api.ytel.com/api/v2/update-agent-details</a></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"email\":\"email@email.com\",\n    \"new_email\":null,\n    \"full_name\":\"fullname\",\n    \"name\":\"9999\",\n    \"user_group\":\"AGENTS\",\n    \"pass\":\"\",\n    \"active\":\"Y\",\n    \"agent_choose_ingroups\":\"0\",\n    \"agentcall_manual\":\"1\",\n    \"agentonly_callbacks\":\"1\",\n    \"closer_default_blended\":\"1\",\n    \"voicemail_id\":\"9999\",\n    \"custom_one\":null,\n    \"custom_two\":null,\n    \"custom_three\":null,\n    \"custom_four\":null,\n    \"custom_five\":null,\n    \"force_change_password\":\"N\"\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>email</strong>: user email.</p>\n</li>\n<li><p><strong>new_email:</strong> new user email. (optional)</p>\n</li>\n<li><p><strong>full_name:</strong> full_name of user.</p>\n</li>\n<li><p><strong>name:</strong> new user id of agent.</p>\n</li>\n<li><p><strong>user_group:</strong> user group id.</p>\n</li>\n<li><p><strong>pass:</strong> admin password is required if resetting the user's email.</p>\n</li>\n<li><p><strong>active:</strong> Y if active, N if not active.</p>\n</li>\n<li><p><strong>agent_choose_ingroups:</strong> 1 if an agent can manually select which inbound groups they would receive calls from else 0.</p>\n</li>\n<li><p><strong>agentcall_manual</strong>: 1 if an agent can manually dial a phone number else 0 they must rely on the automated dialer to pull a lead.</p>\n</li>\n<li><p><strong>agentonly_callbacks</strong>: 1 if only this agent can receive a callback lead, 0 if callback lead goes to the next available agent.</p>\n</li>\n<li><p><strong>closer_default_blended</strong>: 1 if an agent will be in blended mode upon login else 0 if they are not.</p>\n</li>\n<li><p><strong>voicemail_id</strong>: voicemail id.</p>\n</li>\n<li><p><strong>custom_one</strong>: Custom field storing specific information about the agent. (optional)</p>\n</li>\n<li><p><strong>custom_two</strong>: Custom field storing specific information about the agent. (optional)</p>\n</li>\n<li><p><strong>custom_three</strong>: Custom field storing specific information about the agent. (optional)</p>\n</li>\n<li><p><strong>custom_four</strong>: Custom field storing specific information about the agent. (optional)</p>\n</li>\n<li><p><strong>custom_five</strong>: Custom field storing specific information about the agent. (optional)</p>\n</li>\n<li><p><strong>force_change_password</strong>: Y to require the user to change their password every time they login, N if they are not required to.</p>\n</li>\n</ul>\n<h3 id=\"post-delete-agent\">POST Delete Agent</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/delete-agent?user_id=68\">https://ycc-api.ytel.com/api/v2/delete-agent?user_id={user_id}</a></p>\n<p>Delete an agent by its id.</p>\n<h3 id=\"get-get-agent-groups-list\">GET Get Agent Groups List</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agentgroup-lists?limit=100000&amp;page=1\">https://ycc-api.ytel.com/api/v2/agentgroup-lists?limit=100000&amp;page=1</a></p>\n<p>Get a list of agent groups.</p>\n<ul>\n<li><strong>data</strong>: List of agent groups.</li>\n</ul>\n<p>Fields within data:</p>\n<ul>\n<li><p><strong>user_group:</strong> User group id.</p>\n</li>\n<li><p><strong>group_name:</strong> Name of user group.</p>\n</li>\n</ul>\n<h3 id=\"get-get-agent-group\">GET Get Agent Group</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-edit?id=25\">https://ycc-api.ytel.com/api/v2/agent-group-edit?user_group={user_group_id}</a></p>\n<p>Get an agent group's details by its id.</p>\n<p>Fields: within data:</p>\n<ul>\n<li><p><strong>group_info:</strong> Contains agent group info.</p>\n</li>\n<li><p><strong>campaign:</strong> Contains list of campaigns associated with agent group.</p>\n</li>\n</ul>\n<p>Fields within group_info:</p>\n<ul>\n<li><p><strong>user_group:</strong> Agent group id.</p>\n</li>\n<li><p><strong>group_name:</strong> Agent group name.</p>\n</li>\n<li><p><strong>allowed_campaigns:</strong> List of campaigns an agent can view and interact with.</p>\n</li>\n<li><p><strong>qc_allowed_campaigns</strong>: Determins which campaigns a user within this group is permitted to perform Quality Control reviews for.</p>\n</li>\n<li><p><strong>qc_allowed_inbound_groups:</strong> Restricts which inbound call groups a user can review in the Quality Control module.</p>\n</li>\n<li><p><strong>group_shifts:</strong> List of pre-configured time shifts that restrict when a user can login.</p>\n</li>\n<li><p><strong>forced_timeclock_login</strong>: Y if an user is forced to perform a timeclock login, else N.</p>\n</li>\n<li><p><strong>shift_enforcement:</strong> Options are (OFF, START, ALL). OFF disables, START enforces start time, ALL enforces start and end time shift restrictions.</p>\n</li>\n<li><p><strong>agent_status_viewable_groups:</strong> Array of groups that determins which other users an agent can see the real-time status of.</p>\n</li>\n<li><p><strong>agent_status_view_time:</strong> Y if agents can see the duration of the current status for other agents in their sidebar, else N.</p>\n</li>\n<li><p><strong>agent_call_log_view:</strong> Y if agents can see there own call history, else N.</p>\n</li>\n<li><p><strong>agent_xfer_consultive:</strong> Y if there is a warm agent transfer, else N.</p>\n</li>\n<li><p>agent_xfer_dial_override:</p>\n</li>\n<li><p><strong>agent_xfer_vm_transfer:</strong> Y if the agent has the ability to transfer an active call to a pre-recorded message, else N.</p>\n</li>\n<li><p><strong>agent_xfer_blind_transfer:</strong> Y if the agent has the ability to transfer a customer directly to an external number, else N.</p>\n</li>\n<li><p><strong>agent_xfer_dial_with_customer:</strong> Y if agent is allowed to make a three-way conference call, else N.</p>\n</li>\n<li><p><strong>agent_xfer_park_customer_dial:</strong> Y if agent is allowed to put the customer on hold, else N.</p>\n</li>\n<li><p><strong>agent_fullscreen</strong>: Y forces the agent's screen to fil the entire browser window, else N.</p>\n</li>\n<li><p><strong>allowed_reports</strong>: Lists which report a user in this group can view.</p>\n</li>\n<li><p><strong>webphone_url_over</strong>ride: Custom webphone url.</p>\n</li>\n<li><p><strong>webphone_systemkey_override</strong>: Setting that allows user to override the Webphone System key.</p>\n</li>\n<li><p><strong>webphone_dialpad_override:</strong> Enable or diable the ability for agents to manually dial numbers.</p>\n</li>\n<li><p><strong>admin_viewable_groups</strong>: Determines what other agents groups can be seen.</p>\n</li>\n<li><p><strong>admin_viewable_call_times:</strong> Determines which Call Time Presets a user can see and assign to campaigns.</p>\n</li>\n<li><p><strong>allowed_custom_reports</strong>: Determines access to custom reports.</p>\n</li>\n<li><p><strong>agent_allowed_chat_groups</strong>: Determines which agents a user can see and intiate internal chats with.</p>\n</li>\n<li><p><strong>agent_xfer_park_3way</strong>: Determine ability of agent to park a customer on a 3-way conference call.</p>\n</li>\n<li><p><strong>admin_ip_list</strong>: Restricts access to certain web resources based on ip.</p>\n</li>\n<li><p><strong>webphone_layout</strong>: Controls appearance and functionality of WebRTC phone.</p>\n</li>\n<li><p><strong>allowed_queue_groups</strong>: Controls which user groups can have visibility and admin privileges over other user groups. (nullable)</p>\n</li>\n<li><p><strong>reports_header_override</strong>: Allows used to define a custom header for reports.</p>\n</li>\n<li><p><strong>admin_home_url</strong>: Home link.</p>\n</li>\n<li><p><strong>script_id</strong>: Script id.</p>\n</li>\n<li><p><strong>modify_stamp</strong>: Last date time agent group details were modified.</p>\n</li>\n<li><p><strong>hide_take_call_in_queue:</strong> Y if agents cannot see the queue, else N.</p>\n</li>\n<li><p><strong>hide_number_take_call_in_queue:</strong> Y if agent cannot see a customer's phone number, else N.</p>\n</li>\n</ul>\n<p>Fields within campaign:</p>\n<ul>\n<li><p><strong>campaign_id:</strong> Campaign id.</p>\n</li>\n<li><p><strong>campaign_name:</strong> Campaign name.</p>\n</li>\n</ul>\n<h3 id=\"post-clone-agent-group\">POST Clone Agent Group</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agentgroup-clone\">https://ycc-api.ytel.com/api/v2/agentgroup-clone</a></p>\n<p>Clone an agent group.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"from_user_group\":\"ADMIN\",\n    \"user_group\":\"TestGroup\"\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>from_user_group:</strong> Agent group id being cloned.</p>\n</li>\n<li><p><strong>user_group:</strong> New agent group id.</p>\n</li>\n</ul>\n<h3 id=\"post-update-agent-group\">POST Update Agent Group</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agentgroup-edit\">https://ycc-api.ytel.com/api/v2/agentgroup-edit</a></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"user_group\":\"ADMIN\", \n    \"agent_call_log_view\":false,\n    \"agent_status_view_time\":false,\n    \"agent_status_viewable_groups\":[\"\",\"--ALL-GROUPS--\",\"\",\"\"],\n    \"allowed_campaigns\":[\"-ALL-CAMPAIGNS-\"],\n    \"forced_timeclock_login\":\"N\",\n    \"group_name\":\"administrators\",\n    \"group_shifts\":\"  \",\n    \"shift_enforcement\":\"OFF\",\n    \"agent_xfer_consultative\":true,\n    \"agent_xfer_vm_transfer\":true,\n    \"agent_xfer_blind_transfer\":true,\n    \"agent_xfer_dial_with_customer\":true,\n    \"agent_xfer_park_customer_dial\":true,\n    \"hide_take_call_in_queue\":false,\n    \"hide_number_take_call_in_queue\":false\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>user_group:</strong> Agent group id.</p>\n</li>\n<li><p><strong>agent_call_log_view:</strong> Y if agents can see there own call history, else N.</p>\n</li>\n<li><p><strong>agent_status_view_time:</strong> Y if agents can see the duration of the current status for other agents in their sidebar, else N.</p>\n</li>\n<li><p><strong>agent_status_viewable_groups:</strong> Array of groups that determins which other users an agent can see the real-time status of.</p>\n</li>\n<li><p><strong>allowed_campaigns:</strong> List of campaigns an agent can view and interact with.</p>\n</li>\n<li><p><strong>forced_timeclock_login:</strong> Y if a user is forced to perform a timeclock login, else N.</p>\n</li>\n<li><p><strong>group_name:</strong> Name of agent group.</p>\n</li>\n<li><p><strong>group_shifts:</strong> List of pre-configured time shifts that restrict when a user can login.</p>\n</li>\n<li><p><strong>shift_enforcement:</strong> Options are (OFF, START, ALL). OFF disables, START enforces start time, ALL enforces start and end time shift restrictions.</p>\n</li>\n<li><p><strong>agent_xfer_consultive:</strong> Y if there is a warm agent transfer, else N.</p>\n</li>\n<li><p><strong>agent_xfer_vm_transfer:</strong> Y if the agent has the ability to transfer an active call to a pre-recorded message, else N.</p>\n</li>\n<li><p><strong>agent_xfer_blind_transfer:</strong> Y if the agent has the ability to transfer a customer directly to an external number, else N.</p>\n</li>\n<li><p><strong>agent_xfer_dial_with_customer:</strong> Y if agent is allowed to make a three-way conference call, else N.</p>\n</li>\n<li><p><strong>agent_xfer_park_customer_dial:</strong> Y if agent is allowed to put the customer on hold, else N.</p>\n</li>\n<li><p><strong>hide_take_call_in_queue:</strong> Y if agents cannot see the queue, else N.</p>\n</li>\n<li><p><strong>hide_number_take_call_in_queue:</strong> Y if agent cannot see a customer's phone number, else N.</p>\n</li>\n</ul>\n<h3 id=\"post-delete-agent-group\">POST Delete Agent Group</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agentgroup-delete?user_id=TestGroup2\">https://ycc-api.ytel.com/api/v2/agentgroup-delete?user_id={user_group_id}</a></p>\n<p>Delete an agent group by its id.</p>\n<h3 id=\"post-get-agents-inbound-groups\">POST Get Agent's Inbound Groups</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/agent-inbound-groups\">https://ycc-api.ytel.com/api/v2/agent-inbound-groups</a></p>\n<p>Get a list of inbound groups for an agent.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"email\":\"agentemail@email.com\"\n}\n\n</code></pre>\n<p>Submitted Fields:</p>\n<ul>\n<li><strong>email:</strong> Email of agent.</li>\n</ul>\n<p>Response Fields:</p>\n<ul>\n<li><strong>data</strong>: List of agent groups.</li>\n</ul>\n<p>Fields within data:</p>\n<ul>\n<li><p><strong>group_name_values</strong>: Group name.</p>\n</li>\n<li><p><strong>group_id_values</strong>: Group id.</p>\n</li>\n<li><p><strong>group_rank:</strong> The higher the grade the higher the priority the Agent has within the group.</p>\n</li>\n<li><p><strong>group_grade</strong>: The higher the grade the higher the group priority for inbound calls between multiple ingroups.</p>\n</li>\n<li><p><strong>calls_today:</strong> Total number of inbound calls answered by group.</p>\n</li>\n<li><p><strong>group_web_vars:</strong> Custom variables you can define and send to an external web page when a call is handled. (nullable)</p>\n</li>\n<li><p><strong>status:</strong> Internal field. (nullable)</p>\n</li>\n<li><p><strong>daily_limit:</strong> Maximum number of inbound calls an agent can handle in that day.</p>\n</li>\n<li><p><strong>updateRow</strong>: 1 to update row else 0.</p>\n</li>\n</ul>\n<h3 id=\"post-update-agents-inbound-groups\">POST Update Agent's Inbound Groups</h3>\n<p><a href=\"https://ycc-api.ytel.com/api/v2/update-agent-inbound-groups\">https://ycc-api.ytel.com/api/v2/update-agent-inbound-groups</a></p>\n<p>Update a list of inbound groups for an agent.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"email\":\"agentemail@email.com\",\n    \"inbound_array\": [ \n        {\n            \"group_id_values\":\"AGENTDIRECT\",\n            \"group_rank\":0,\n            \"group_grade\":1,\n            \"calls_today\":0,\n            \"group_web_vars\":\"\",\n            \"status\":false,\n            \"daily_limit\":\"-1\",\n            \"UpdateRow\":1\n        },\n        {\n            \"group_id_values\":\"AGENTDIRECT_CHAT\",\n            \"group_rank\":0,\n            \"group_grade\":1,\n            \"calls_today\":0,\n            \"group_web_vars\":\"\",\n            \"status\":0,\n            \"daily_limit\":-1,\n            \"UpdateRow\":0\n        },\n        {\n            \"group_id_values\":\"Callbacks\",\n            \"group_rank\":0,\n            \"group_grade\":1,\n            \"calls_today\":0,\n            \"group_web_vars\":\"\",\n            \"status\":0,\n            \"daily_limit\":-1,\n            \"UpdateRow\":0\n        },\n        {\n            \"group_id_values\":\"JBTEST\",\n            \"group_rank\":0,\n            \"group_grade\":1,\n            \"calls_today\":0,\n            \"group_web_vars\":\"\",\n            \"status\":0,\n            \"daily_limit\":-1,\n            \"UpdateRow\":0\n        }\n    ]\n}\n\n</code></pre>\n<p>Fields:</p>\n<ul>\n<li><p><strong>email:</strong> Email of agent getting updated.</p>\n</li>\n<li><p><strong>inbound_array</strong>: List of groups getting updatind.</p>\n</li>\n</ul>\n<p>Fields within each group:</p>\n<ul>\n<li><p><strong>group_id_values</strong>: Group id.</p>\n</li>\n<li><p><strong>group_rank:</strong> The higher the grade the higher the priority the Agent has within the group.</p>\n</li>\n<li><p><strong>group_grade</strong>: The higher the grade the higher the group priority for inbound calls between multiple ingroups.</p>\n</li>\n<li><p><strong>calls_today:</strong> Total number of inbound calls answered by group.</p>\n</li>\n<li><p><strong>group_web_vars:</strong> Custom variables you can define and send to an external web page when a call is handled. (nullable)</p>\n</li>\n<li><p><strong>status:</strong> 1 if applying group_web_vars else 0.</p>\n</li>\n<li><p><strong>daily_limit:</strong> Maximum number of inbound calls an agent can handle in that day.</p>\n</li>\n<li><p><strong>updateRow</strong>: 1 to apply update to this row else 0.</p>\n</li>\n</ul>\n","_postman_id":"1feb311d-5c03-428b-a9a6-9047177a4928","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b6626842-49af-4640-b148-2c29843e1d6e","id":"b6626842-49af-4640-b148-2c29843e1d6e","name":"CCaaS API","type":"folder"}}}],"id":"b6626842-49af-4640-b148-2c29843e1d6e","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"88bfd340-a9dd-457b-b454-76401a60df83"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"b8fb4332-7670-4d44-8d7c-8907d3e6f3b7"}}],"_postman_id":"b6626842-49af-4640-b148-2c29843e1d6e","description":""}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"2ebed099-144f-461d-897e-f2e3a6d669f7"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"c01c8176-db84-4d4f-a77f-7d0967ee49d7"}}],"variable":[{"id":"192f31e3-b3fd-4378-8700-80df50ef3f3f","key":"ivr_name","value":"my-ivr"}]}