{"info":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","description":"<html><head></head><body><p>The CallTrackingMetrics API provides a RESTful interface to call data, phone numbers, text messaging, and account management. To assist in integrating CallTrackingMetrics with your website, we also provide a JavaScript API that allows you to customize how our dynamic number swapping interacts with your website.</p>\n<p>You may make requests using any of the following content types in the request header:</p>\n<ul>\n<li><p>Content-Type: application/json</p>\n</li>\n<li><p>Content-Type: application/x-www-form-urlencoded</p>\n</li>\n<li><p>Content-Type: multipart/form-data</p>\n</li>\n</ul>\n<p>Make sure the body matches the Content-Type. For example if you are going to submit a JSON body like { \"phone_number\": \"+18085551212\" }, make sure to make the request with a Content-Type: application/json header as well.</p>\n<p>All REST API endpoints respond with JSON encoded data.</p>\n<ul>\n<li>Content-Type: application/json</li>\n</ul>\n<h1 id=\"authentication\">Authentication</h1>\n<p>We support two levels of REST API access: single account level and multi account level.</p>\n<p>Single Account Level access grants you access to a single account and can be enabled within the Account Settings page for each account.<br>Multi Account Level access grants you access to all sub-accounts within an agency or enterprise account and can be enabled within the Agency Settings page.<br>For either level, once you have enabled API access, you will have an Access Key and Secret Key. Once enabled, there are also buttons to reset the keys or disable API access.</p>\n<p>To authorize with the API we use Basic Authentication. You will use the API key and secret either for your account or agency to construct an Authorization header that is base64 encoded. For example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /api/v1/accounts.json HTTP/1.1\nHost: api.calltrackingmetrics.com\nAuthorization: Basic ABC123....\n\n</code></pre><h1 id=\"api-usage-rate-limits\">API Usage / Rate Limits</h1>\n<p>CTM has the following limits on API usage:</p>\n<ol>\n<li><p>10 requests / second.</p>\n</li>\n<li><p>Excessive errors may be throttled</p>\n</li>\n</ol>\n<h1 id=\"api-reference\">API Reference</h1>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authentication","slug":"authentication"},{"content":"API Usage / Rate Limits","slug":"api-usage-rate-limits"},{"content":"API Reference","slug":"api-reference"}],"owner":"3917255","collectionId":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","publishedId":"UVsSLhnS","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-03-22T20:29:29.000Z"},"item":[{"name":"Authentication","item":[{"name":"authenticate user","id":"e2e9e3be-9b1b-4dc5-bd4f-549cf2daa8c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"user","value":"testUser","type":"text"},{"key":"password","value":"secretpassword","type":"text"}]},"url":"https://{{host}}/{{base_path}}/authentication","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","authentication"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"65cd64ad-71d4-4f98-9519-31fc8e7a5861","name":"authenticate user - success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"user","value":"testUser","type":"text"},{"key":"password","value":"secretpassword","type":"text"}]},"url":"https://{{host}}/{{base_path}}/authentication"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.15.8.2","enabled":true},{"key":"Date","value":"Wed, 20 May 2020 20:57:18 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"ETag","value":"W/\"efb4d991208f09b171be05c97f24b6aa\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=Ykpsclczb2hKdU9MUCt3N1JTVFR3eEJXNUJWdGZ2SExXQjQyWG51MGUyd3VONU1IWWpxck1NdGxacDNkamJEbS81ZnhBeW8xMkRhNmJmb3h5NVlQbncxYlhqYUhiK1Y1OElDRXdqYStWWE9YNVdaQmpUWTJGdjBLanNLcmpHdEZ0eTAwWGJDc25qTzdkUHgvMTVZMlBqQ0ZxWTdWTm5NT0hCc1RDQnJ4a012R0ZNZVo5cHhyamVLdVZXa0JCbjJvc1VHSVhUNFhtR1dENTR6MEFzZFU5VHlRMkdLV3VYZ3hYemhZelJJOGtmcEJjWmpMQi94RXY3M1lqeWJZeGplcS0tVnFpTExqanNtbk02WFBLL2xBcUcxdz09--5eb53985782778ed2dabfb6d5d75db9bfa43032c; domain=.gloria-ctm.ngrok.io; path=/; expires=Thu, 21 May 2020 20:57:18 -0000; secure; HttpOnly","enabled":true},{"key":"X-Request-Id","value":"bc0e5add-f468-45f0-af04-4b247c86f448","enabled":true},{"key":"X-Runtime","value":"0.189559","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"token\": \"Fvsq6_Tw10etyjay\",\n    \"expires\": \"Wed, 17 Jun 2020 01:56:50 GMT\",\n    \"email\": \"testuser-api@calltrackingmetrics.com\",\n    \"id\": \"USRF1234567890\",\n    \"accounts\": 1,\n    \"first_account\": {\n        \"id\": 1,\n        \"balance\": \"50.00\",\n        \"name\": \"Test Acct 1\"\n    }\n}"}],"_postman_id":"e2e9e3be-9b1b-4dc5-bd4f-549cf2daa8c1"}],"id":"bbf833b8-4592-4b9d-b04d-57237ab4ce43","_postman_id":"bbf833b8-4592-4b9d-b04d-57237ab4ce43","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Access Control Groups","item":[{"name":"list of access control groups","id":"4b73292c-9af5-4169-87ba-4c9e2f50f5b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{Basic Auth}}"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/access_groups","description":"<p>get list of access groups</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","access_groups"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"32b1c256-b029-430c-8ad6-d09e379b9f25","name":"list of access control groups","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{Basic Auth}}"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/access_groups"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"openresty/1.27.1.2"},{"key":"Date","value":"Wed, 24 Sep 2025 16:38:04 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-frame-options","value":"ALLOWALL"},{"key":"access-control-allow-origin","value":"*"},{"key":"vary","value":"Accept"},{"key":"etag","value":"W/\"fe2a0d17107e5eb2b9d61080bd9045e5\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"set-cookie","value":"_ctm3=4720cca31f368a87c172d9c131948a63; domain=ctmdev.us; path=/; expires=Thu, 25 Sep 2025 08:38:04 GMT; secure; httponly; SameSite=None"},{"key":"x-request-id","value":"ddda5d71-38cd-4727-a5bf-ba7756fd694f"},{"key":"x-runtime","value":"0.110154"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=17.21, instantiation.active_record;dur=0.78, cache_read.active_support;dur=2.12, cache_fetch_hit.active_support;dur=0.00, process_action.action_controller;dur=90.24"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"page\": 1,\n    \"per_page\": 10,\n    \"total_entries\": 1,\n    \"total_pages\": 1,\n    \"next_page\": null,\n    \"previous_page\": null,\n    \"access_groups\": [\n        {\n            \"name\": \"first\",\n            \"id\": \"ACS2B62EBDF764D40D0123B1DB1C026B6B9CED3BC7B86EBB6F5\",\n            \"tracking_numbers\": [\n                \"+13236939222\"\n            ],\n            \"tracking_sources\": [],\n            \"schedules\": [],\n            \"users\": [\n                \"onemore@example.com\"\n            ],\n            \"accounts\": [],\n            \"call_log_columns\": {\n                \"caller_edit_actions_column\": false,\n                \"caller_can_callback\": false,\n                \"caller_cannot_see_profile\": false,\n                \"caller_column\": false,\n                \"caller_cannot_see_tags\": false,\n                \"caller_cannot_write_tags\": false,\n                \"caller_message_body\": false,\n                \"caller_source_column\": false,\n                \"caller_source_name_hidden\": false,\n                \"caller_source_detail_column\": false,\n                \"caller_csr_column\": false,\n                \"caller_cannot_write_score\": false,\n                \"caller_audio_column\": false,\n                \"caller_audio_playback_visible\": false,\n                \"caller_audio_hide_download_links\": false,\n                \"caller_metrics_column\": false,\n                \"caller_called_column\": false,\n                \"caller_call_flow_column\": false,\n                \"caller_actions_column\": false,\n                \"caller_can_email\": false,\n                \"caller_can_block\": false,\n                \"caller_can_exclude\": false,\n                \"caller_view_direction\": false\n            },\n            \"receiving_numbers\": []\n        }\n    ]\n}"}],"_postman_id":"4b73292c-9af5-4169-87ba-4c9e2f50f5b0"},{"name":"access group detail","id":"5d87b79b-7446-442c-ae43-35a1c2907e14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{Basic Auth}}"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/access_groups/{{access_group_id}}","description":"<p>get details of access groups</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>access_group_id</td>\n<td>yes</td>\n<td>the access_group_id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","access_groups","{{access_group_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0e5f5171-cf76-485f-b466-237bbba13edd","name":"detail of access control group","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{Basic Auth}}"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/access_groups/{{access_group_id}}"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"openresty/1.27.1.2"},{"key":"Date","value":"Wed, 24 Sep 2025 16:37:53 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-frame-options","value":"ALLOWALL"},{"key":"access-control-allow-origin","value":"*"},{"key":"vary","value":"Accept"},{"key":"etag","value":"W/\"ef0d83f6d35c96ff35b19c4ee06b584b\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"set-cookie","value":"_ctm3=4720cca31f368a87c172d9c131948a63; domain=ctmdev.us; path=/; expires=Thu, 25 Sep 2025 08:37:53 GMT; secure; httponly; SameSite=None"},{"key":"x-request-id","value":"bdd994fd-1a86-4641-bf64-cc225459f8fa"},{"key":"x-runtime","value":"1.824038"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.05, sql.active_record;dur=23.20, instantiation.active_record;dur=55.39, cache_read.active_support;dur=8.26, cache_generate.active_support;dur=3.12, cache_write.active_support;dur=0.18, cache_fetch_hit.active_support;dur=0.00, process_action.action_controller;dur=1735.86"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"first\",\n    \"id\": \"ACS2B62EBDF764D40D0123B1DB1C026B6B9CED3BC7B86EBB6F5\",\n    \"tracking_numbers\": [\n        \"+13236939222\"\n    ],\n    \"tracking_sources\": [],\n    \"schedules\": [],\n    \"users\": [\n        \"onemore@example.com\"\n    ],\n    \"accounts\": [],\n    \"call_log_columns\": {\n        \"caller_edit_actions_column\": false,\n        \"caller_can_callback\": false,\n        \"caller_cannot_see_profile\": false,\n        \"caller_column\": false,\n        \"caller_cannot_see_tags\": false,\n        \"caller_cannot_write_tags\": false,\n        \"caller_message_body\": false,\n        \"caller_source_column\": false,\n        \"caller_source_name_hidden\": false,\n        \"caller_source_detail_column\": false,\n        \"caller_csr_column\": false,\n        \"caller_cannot_write_score\": false,\n        \"caller_audio_column\": false,\n        \"caller_audio_playback_visible\": false,\n        \"caller_audio_hide_download_links\": false,\n        \"caller_metrics_column\": false,\n        \"caller_called_column\": false,\n        \"caller_call_flow_column\": false,\n        \"caller_actions_column\": false,\n        \"caller_can_email\": false,\n        \"caller_can_block\": false,\n        \"caller_can_exclude\": false,\n        \"caller_view_direction\": false\n    },\n    \"receiving_numbers\": []\n}"}],"_postman_id":"5d87b79b-7446-442c-ae43-35a1c2907e14"},{"name":"create access group","id":"94948af2-4214-4b70-be5b-4058bccd34b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"second\",\n  \"tracking_numbers\": [ \"+13236939222\" ],\n  \"users\": [ \"onemore@example.com\" ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/access_groups","description":"<p>update existing access groups</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>access_group_id</td>\n<td>yes</td>\n<td>the access_group_id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>the name of the access group</td>\n</tr>\n<tr>\n<td>tracking_numbers</td>\n<td>no</td>\n<td>array of tracking number in +E.164 format, TPN ids, or ids</td>\n</tr>\n<tr>\n<td>users</td>\n<td>no</td>\n<td>array of users email address or USR ids, or ids</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","access_groups"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"fca01e64-6eca-4ff7-b3cc-e00bae3a7107","name":"update access group","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"first\",\n  \"tracking_numbers\": [ \"+13236939222\" ],\n  \"users\": [ \"onemore@example.com\" ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/access_groups/{{access_group_id}}"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"openresty/1.27.1.2"},{"key":"Date","value":"Wed, 24 Sep 2025 16:26:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-frame-options","value":"ALLOWALL"},{"key":"access-control-allow-origin","value":"*"},{"key":"vary","value":"Accept"},{"key":"etag","value":"W/\"6b1743e9e966802f2fc5123aa9e4ebeb\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"set-cookie","value":"_ctm3=4720cca31f368a87c172d9c131948a63; domain=ctmdev.us; path=/; expires=Thu, 25 Sep 2025 08:26:10 GMT; secure; httponly; SameSite=None"},{"key":"x-request-id","value":"0a14cbbe-68aa-4d2e-a0e8-b08fed29d8e4"},{"key":"x-runtime","value":"2.664458"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=43.45, instantiation.active_record;dur=89.46, cache_read.active_support;dur=1.69, cache_generate.active_support;dur=1.05, cache_write.active_support;dur=0.02, cache_fetch_hit.active_support;dur=0.00, cache_delete.active_support;dur=3.75, transaction.active_record;dur=113.58, enqueue.active_job;dur=1.14, process_action.action_controller;dur=1471.06"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"access_group\": {\n        \"name\": \"first\",\n        \"id\": \"ACS2B62EBDF764D40D0123B1DB1C026B6B9CED3BC7B86EBB6F5\",\n        \"tracking_numbers\": [\n            \"+13236939222\"\n        ],\n        \"tracking_sources\": [],\n        \"schedules\": [],\n        \"users\": [\n            \"onemore@example.com\"\n        ],\n        \"accounts\": [],\n        \"call_log_columns\": {\n            \"caller_edit_actions_column\": false,\n            \"caller_can_callback\": false,\n            \"caller_cannot_see_profile\": false,\n            \"caller_column\": false,\n            \"caller_cannot_see_tags\": false,\n            \"caller_cannot_write_tags\": false,\n            \"caller_message_body\": false,\n            \"caller_source_column\": false,\n            \"caller_source_name_hidden\": false,\n            \"caller_source_detail_column\": false,\n            \"caller_csr_column\": false,\n            \"caller_cannot_write_score\": false,\n            \"caller_audio_column\": false,\n            \"caller_audio_playback_visible\": false,\n            \"caller_audio_hide_download_links\": false,\n            \"caller_metrics_column\": false,\n            \"caller_called_column\": false,\n            \"caller_call_flow_column\": false,\n            \"caller_actions_column\": false,\n            \"caller_can_email\": false,\n            \"caller_can_block\": false,\n            \"caller_can_exclude\": false,\n            \"caller_view_direction\": false\n        },\n        \"receiving_numbers\": []\n    }\n}"}],"_postman_id":"94948af2-4214-4b70-be5b-4058bccd34b2"},{"name":"create access group Copy","id":"df46abeb-0081-4189-ae7f-2c1115faa814","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"first\",\n  \"tracking_numbers\": [ \"+13236939222\" ],\n  \"users\": [ \"onemore@example.com\" ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/access_groups/{{access_group_id}}","description":"<p>update existing access groups</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>access_group_id</td>\n<td>yes</td>\n<td>the access_group_id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>the name of the access group</td>\n</tr>\n<tr>\n<td>tracking_numbers</td>\n<td>no</td>\n<td>array of tracking number in +E.164 format, TPN ids, or ids</td>\n</tr>\n<tr>\n<td>users</td>\n<td>no</td>\n<td>array of users email address or USR ids, or ids</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","access_groups","{{access_group_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"e0b9f77f-5ff7-47c3-bb0b-4a4535e47138","name":"update access group","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"first\",\n  \"tracking_numbers\": [ \"+13236939222\" ],\n  \"users\": [ \"onemore@example.com\" ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/access_groups/{{access_group_id}}"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"openresty/1.27.1.2"},{"key":"Date","value":"Wed, 24 Sep 2025 16:26:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-frame-options","value":"ALLOWALL"},{"key":"access-control-allow-origin","value":"*"},{"key":"vary","value":"Accept"},{"key":"etag","value":"W/\"6b1743e9e966802f2fc5123aa9e4ebeb\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"set-cookie","value":"_ctm3=4720cca31f368a87c172d9c131948a63; domain=ctmdev.us; path=/; expires=Thu, 25 Sep 2025 08:26:10 GMT; secure; httponly; SameSite=None"},{"key":"x-request-id","value":"0a14cbbe-68aa-4d2e-a0e8-b08fed29d8e4"},{"key":"x-runtime","value":"2.664458"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=43.45, instantiation.active_record;dur=89.46, cache_read.active_support;dur=1.69, cache_generate.active_support;dur=1.05, cache_write.active_support;dur=0.02, cache_fetch_hit.active_support;dur=0.00, cache_delete.active_support;dur=3.75, transaction.active_record;dur=113.58, enqueue.active_job;dur=1.14, process_action.action_controller;dur=1471.06"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"access_group\": {\n        \"name\": \"first\",\n        \"id\": \"ACS2B62EBDF764D40D0123B1DB1C026B6B9CED3BC7B86EBB6F5\",\n        \"tracking_numbers\": [\n            \"+13236939222\"\n        ],\n        \"tracking_sources\": [],\n        \"schedules\": [],\n        \"users\": [\n            \"onemore@example.com\"\n        ],\n        \"accounts\": [],\n        \"call_log_columns\": {\n            \"caller_edit_actions_column\": false,\n            \"caller_can_callback\": false,\n            \"caller_cannot_see_profile\": false,\n            \"caller_column\": false,\n            \"caller_cannot_see_tags\": false,\n            \"caller_cannot_write_tags\": false,\n            \"caller_message_body\": false,\n            \"caller_source_column\": false,\n            \"caller_source_name_hidden\": false,\n            \"caller_source_detail_column\": false,\n            \"caller_csr_column\": false,\n            \"caller_cannot_write_score\": false,\n            \"caller_audio_column\": false,\n            \"caller_audio_playback_visible\": false,\n            \"caller_audio_hide_download_links\": false,\n            \"caller_metrics_column\": false,\n            \"caller_called_column\": false,\n            \"caller_call_flow_column\": false,\n            \"caller_actions_column\": false,\n            \"caller_can_email\": false,\n            \"caller_can_block\": false,\n            \"caller_can_exclude\": false,\n            \"caller_view_direction\": false\n        },\n        \"receiving_numbers\": []\n    }\n}"}],"_postman_id":"df46abeb-0081-4189-ae7f-2c1115faa814"},{"name":"update access group","id":"1527f50c-802d-47a1-b81b-fbf5283e1f4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"first\",\n  \"tracking_numbers\": [ \"+13236939222\" ],\n  \"users\": [ \"onemore@example.com\" ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/access_groups/{{access_group_id}}","description":"<p>update existing access groups</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>access_group_id</td>\n<td>yes</td>\n<td>the access_group_id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>the name of the access group</td>\n</tr>\n<tr>\n<td>tracking_numbers</td>\n<td>no</td>\n<td>array of tracking number in +E.164 format, TPN ids, or ids</td>\n</tr>\n<tr>\n<td>users</td>\n<td>no</td>\n<td>array of users email address or USR ids, or ids</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","access_groups","{{access_group_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"db8840b0-e8da-49fd-9590-409bae8482e9","name":"update access group","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"first\",\n  \"tracking_numbers\": [ \"+13236939222\" ],\n  \"users\": [ \"onemore@example.com\" ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/access_groups/{{access_group_id}}"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"openresty/1.27.1.2"},{"key":"Date","value":"Wed, 24 Sep 2025 16:26:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-frame-options","value":"ALLOWALL"},{"key":"access-control-allow-origin","value":"*"},{"key":"vary","value":"Accept"},{"key":"etag","value":"W/\"6b1743e9e966802f2fc5123aa9e4ebeb\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"set-cookie","value":"_ctm3=4720cca31f368a87c172d9c131948a63; domain=ctmdev.us; path=/; expires=Thu, 25 Sep 2025 08:26:10 GMT; secure; httponly; SameSite=None"},{"key":"x-request-id","value":"0a14cbbe-68aa-4d2e-a0e8-b08fed29d8e4"},{"key":"x-runtime","value":"2.664458"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=43.45, instantiation.active_record;dur=89.46, cache_read.active_support;dur=1.69, cache_generate.active_support;dur=1.05, cache_write.active_support;dur=0.02, cache_fetch_hit.active_support;dur=0.00, cache_delete.active_support;dur=3.75, transaction.active_record;dur=113.58, enqueue.active_job;dur=1.14, process_action.action_controller;dur=1471.06"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"access_group\": {\n        \"name\": \"first\",\n        \"id\": \"ACS2B62EBDF764D40D0123B1DB1C026B6B9CED3BC7B86EBB6F5\",\n        \"tracking_numbers\": [\n            \"+13236939222\"\n        ],\n        \"tracking_sources\": [],\n        \"schedules\": [],\n        \"users\": [\n            \"onemore@example.com\"\n        ],\n        \"accounts\": [],\n        \"call_log_columns\": {\n            \"caller_edit_actions_column\": false,\n            \"caller_can_callback\": false,\n            \"caller_cannot_see_profile\": false,\n            \"caller_column\": false,\n            \"caller_cannot_see_tags\": false,\n            \"caller_cannot_write_tags\": false,\n            \"caller_message_body\": false,\n            \"caller_source_column\": false,\n            \"caller_source_name_hidden\": false,\n            \"caller_source_detail_column\": false,\n            \"caller_csr_column\": false,\n            \"caller_cannot_write_score\": false,\n            \"caller_audio_column\": false,\n            \"caller_audio_playback_visible\": false,\n            \"caller_audio_hide_download_links\": false,\n            \"caller_metrics_column\": false,\n            \"caller_called_column\": false,\n            \"caller_call_flow_column\": false,\n            \"caller_actions_column\": false,\n            \"caller_can_email\": false,\n            \"caller_can_block\": false,\n            \"caller_can_exclude\": false,\n            \"caller_view_direction\": false\n        },\n        \"receiving_numbers\": []\n    }\n}"}],"_postman_id":"1527f50c-802d-47a1-b81b-fbf5283e1f4a"}],"id":"9b17f075-bfd0-4bab-84cb-d1153c139b82","_postman_id":"9b17f075-bfd0-4bab-84cb-d1153c139b82","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Accounts","item":[{"name":"list of accounts","event":[{"listen":"test","script":{"id":"0114c7d9-fb5c-4a88-aa19-8b7f1e8886ff","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.accounts       = Array.isArray(jsonData.accounts);","tests.page           = Number.isInteger(jsonData.page);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);","tests.per_page       = Number.isInteger(jsonData.per_page);"],"type":"text/javascript"}}],"id":"d9e3f5ee-ba47-4e4a-a2db-d749d2072720","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts","description":"<p>get list of accounts, including information and statistics</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td>no</td>\n<td>one of active/canceled/paused, to filter by account status</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["{{base_path}}","accounts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"873297b7-9134-4561-8373-e7bf6dd0cce1","name":"list of accounts","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"page\": 1,\n    \"per_page\": 10,\n    \"total_entries\": 2,\n    \"total_pages\": 1,\n    \"next_page\": null,\n    \"previous_page\": null,\n    \"accounts\": [\n        {\n            \"id\": 12345,\n            \"name\": \"test1\",\n            \"user_role\": \"admin\",\n            \"status\": \"active\",\n            \"created\": \"2019-08-13T13:27:43Z\",\n            \"updated\": \"2019-10-18T13:40:23Z\",\n            \"canceled\": null,\n            \"voice_menus_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12345/voice_menus.json\",\n            \"numbers_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12345/numbers.json\",\n            \"user_licenses_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12345/user_licenses.json\",\n            \"receiving_numbers_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12345/receiving_numbers.json\",\n            \"sources_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12345/sources.json\",\n            \"users_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12345/users.json\",\n            \"webhooks_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12345/webhooks.json\",\n            \"calls_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12345/calls.json\",\n            \"queues_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12345/lookup.json?object_type=call_queue\",\n            \"schedules_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12345/schedules.json\",\n            \"geo_routes_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12345/geo_routes.json\",\n            \"url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12345.json\",\n            \"agency_id\": 2\n        },\n        {\n            \"id\": 12378,\n            \"name\": \"test2\",\n            \"user_role\": \"admin\",\n            \"status\": \"canceled\",\n            \"created\": \"2019-08-13T17:23:50Z\",\n            \"updated\": \"2019-11-13T20:27:47Z\",\n            \"canceled\": \"2019-11-13T20:27:47Z\",\n            \"voice_menus_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12378/voice_menus.json\",\n            \"numbers_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12378/numbers.json\",\n            \"user_licenses_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12378/user_licenses.json\",\n            \"receiving_numbers_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12378/receiving_numbers.json\",\n            \"sources_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12378/sources.json\",\n            \"users_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12378/users.json\",\n            \"webhooks_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12378/webhooks.json\",\n            \"calls_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12378/calls.json\",\n            \"queues_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12378/lookup.json?object_type=call_queue\",\n            \"schedules_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12378/schedules.json\",\n            \"geo_routes_url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12378/geo_routes.json\",\n            \"url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/12378.json\",\n            \"agency_id\": 2\n        }\n    ]\n}"}],"_postman_id":"d9e3f5ee-ba47-4e4a-a2db-d749d2072720"},{"name":"list of active account IDs and names","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"accounts is array\"]  = Array.isArray(jsonData.accounts);","tests[\"1st account's id is integer\"]   = Number.isInteger(jsonData.accounts[0].id);"]}}],"id":"a2cb65b0-bd69-4735-b349-0e29299473f0","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts.json?names=1&all=1","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>names</td>\n<td>yes</td>\n<td>1 to enable</td>\n</tr>\n<tr>\n<td>all</td>\n<td>yes</td>\n<td>1 to enable</td>\n</tr>\n</tbody>\n</table>\n</div><p>If you enable both <code>names</code> and <code>all</code>, a list of active account id's and account names will be returned.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts.json"],"host":["{{host}}"],"query":[{"key":"names","value":"1"},{"key":"all","value":"1"}],"variable":[]}},"response":[{"id":"3ebbf55f-4137-4505-bd5a-c30c8330c0e3","name":"list of active account IDs and names","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"https://{{host}}/{{base_path}}/accounts.json?names=1&all=1","protocol":"https","host":["{{host}}"],"path":["{{base_path}}","accounts.json"],"query":[{"key":"names","value":"1"},{"key":"all","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"accounts\": [\n    {\n      \"id\": 12345,\n      \"name\": \"test1\"\n    },\n    {\n      \"id\": 12378,\n      \"name\": \"test2\"\n    }\n  ]\n}"}],"_postman_id":"a2cb65b0-bd69-4735-b349-0e29299473f0"},{"name":"account information","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"account id is integer\"] = Number.isInteger(jsonData.id);","tests[\"account name is non-empty string\"] = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);","tests[\"status is non-empty string\"] = (typeof jsonData.status === \"string\") && (jsonData.status.length > 0);"]}}],"id":"21edc364-20d2-4d72-ab6e-6e6825a06ae7","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"5c17d198-f6c7-4d87-abe3-47ecd205bff8","name":"account information","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12345,\n    \"agency_id\": 123,\n    \"created\": \"2019-07-16T14:00:17Z\",\n    \"updated\": \"2020-02-10T19:08:59Z\",\n    \"canceled\": \"2019-10-11T17:51:25Z\",\n    \"name\": \"test1\",\n    \"user_role\": null,\n    \"website\": null,\n    \"phone_number\": null,\n    \"status\": \"active\",\n    \"timezone\": \"Eastern Time (US & Canada)\",\n    \"stats\": {\n        \"calls\": {\n            \"2020-03-23\": 3,\n            \"2020-03-25\": 2,\n            \"2020-04-08\": 6,\n            \"2020-04-09\": 7,\n            \"2020-04-10\": 15\n        },\n        \"tracking_numbers\": 1,\n        \"user_licenses\": 6\n    },\n    \"voice_menus_url\": \"https://app.calltrackingmetrics.com/api/v1/accounts/12345/voice_menus.json\",\n    \"numbers_url\": \"https://app.calltrackingmetrics.com/api/v1/accounts/12345/numbers.json\",\n    \"user_licenses_url\": \"https://app.calltrackingmetrics.com/api/v1/accounts/12345/user_licenses.json\",\n    \"receiving_numbers_url\": \"https://app.calltrackingmetrics.com/api/v1/accounts/12345/receiving_numbers.json\",\n    \"sources_url\": \"https://app.calltrackingmetrics.com/api/v1/accounts/12345/sources.json\",\n    \"users_url\": \"https://app.calltrackingmetrics.com/api/v1/accounts/12345/users.json\",\n    \"webhooks_url\": \"https://app.calltrackingmetrics.com/api/v1/accounts/12345/webhooks.json\",\n    \"calls_url\": \"https://app.calltrackingmetrics.com/api/v1/accounts/12345/calls.json\",\n    \"queues_url\": \"https://app.calltrackingmetrics.com/api/v1/accounts/12345/queues.json\",\n    \"schedules_url\": \"https://app.calltrackingmetrics.com/api/v1/accounts/12345/schedules.json\",\n    \"call_settings_url\": \"https://app.calltrackingmetrics.com/api/v1/accounts/12345/call_settings.json\",\n    \"geo_routes_url\": \"https://app.calltrackingmetrics.com/api/v1/accounts/12345/geo_routes.json\"\n}"}],"_postman_id":"21edc364-20d2-4d72-ab6e-6e6825a06ae7"},{"name":"account status","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.id             = Number.isInteger(jsonData.id);","tests.status         = jsonData.status === \"success\";","tests[\"account name is non-empty string\"] = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);","tests[\"account_status is non-empty string\"] = (typeof jsonData.account_status === \"string\") && (jsonData.account_status.length > 0);"]}}],"id":"350473a3-6075-425f-b8e5-a4ebb9056492","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/status","description":"<p>Use get account status to determine if an account is active, stopped, or paused.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","status"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"9ad6afa4-fdc5-4dc5-adbf-d90dc93bd494","name":"account status","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"id\": 12345,\n    \"name\": \"test1\",\n    \"account_status\": \"active\"\n}"}],"_postman_id":"350473a3-6075-425f-b8e5-a4ebb9056492"},{"name":"create an account (agency/shared billing)","event":[{"listen":"test","script":{"id":"5b0116bb-e9b2-44b7-9c68-06e0087b4cff","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.id             = Number.isInteger(jsonData.id);","tests.status         = jsonData.status === \"success\";","","tests[\"name is non-empty string\"] = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);"],"type":"text/javascript"}}],"id":"9bb546a0-fe3b-46cc-8103-3be108d12f73","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"account\": {\n        \"name\": \"test account 100h\", \n        \"timezone\": \"America/Los_Angeles\"\n    }, \n    \"billing_type\": \"existing\"\n}\n"},"url":"https://{{host}}/{{base_path}}/accounts","description":"<p>Create a sub-account within an agency, with agency/shared billing (as opposed to customer billing).</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account[name]</td>\n<td>yes</td>\n<td>the name of the account</td>\n</tr>\n<tr>\n<td>account[timezone_hint]</td>\n<td>no</td>\n<td>a timezone name like <code>America/New_York</code> or <code>America/Los_Angeles</code></td>\n</tr>\n<tr>\n<td>billing_type</td>\n<td>yes</td>\n<td>the string <code>existing</code> which will cause the account to be under agency billing</td>\n</tr>\n</tbody>\n</table>\n</div><p>JSON body example</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"account\": {\n      \"name\": \"testing 123\",\n      \"timezone\": \"America/Los_Angeles\"\n  },\n  \"billing_type\": \"existing\"\n}\n</code></pre>\n<blockquote>\n<p>Note that account names are not required to be unique. You can use \"get list of accounts\" to lookup account names if you need to see if an account already exists.</p>\n</blockquote>\n<p>You can also create accounts linked to a Stripe account and a price schedule.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"account\": {\n      \"name\": \"testing 123\",\n      \"website_url\": \"https://your-website.com/\",\n      \"contact_number\": \"+18005771872\",\n      \"timezone\": \"America/Los_Angeles\"\n  },\n  \"billing_type\": \"existing\",\n  \"external_billing\": {\n    \"type\": \"stripe\",\n    \"price_schedule_id\": 12345,\n    \"stripe_customer_id\": \"your stripe customer id\"\n  }\n}\n</code></pre>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a9a15a0a-1cf1-457b-af31-c59ba9c244c9","name":"create an account (agency/shared billing)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"account\": {\n        \"name\": \"test account 100h\",\n        \"timezone\": \"America/Los_Angeles\"\n    },\n    \"billing_type\": \"existing\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"id\": 12346,\n    \"name\": \"test account 100h\"\n}"}],"_postman_id":"9bb546a0-fe3b-46cc-8103-3be108d12f73"},{"name":"create an account (customer billing)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.id             = Number.isInteger(jsonData.id);","tests.status         = jsonData.status === \"success\";","","tests[\"name is non-empty string\"] = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);"]}}],"id":"2f8a8e82-44e1-4d97-bbf7-55c6dd44dc38","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"billing_type\": \"new\",\n  \"account\": {\n      \"name\": \"testing 123\",\n      \"timezone_hint\": \"America/Los_Angeles\",\n      \"payment_profiles_attributes\": [\n        {\"first_name\": \"John\",\n         \"last_name\": \"Doe\",\n         \"address\": \"123 Example St\",\n         \"city\": \"Severna Park\",\n         \"zip\": \"21146\",\n         \"country\": \"US\",\n         \"card_type\": \"visa\",\n         \"card_number\": \"4242424242424242\",\n         \"verification_value\": \"424\",\n         \"month\": \"01\",\n         \"year\": \"2029\"\n        }\n      ]\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts","description":"<p>Create a sub-account within an agency, with customer billing (as opposed to shared billing).</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account[name]</td>\n<td>yes</td>\n<td>the name of the account</td>\n</tr>\n<tr>\n<td>account[timezone_hint]</td>\n<td>no</td>\n<td>a timezone name like <code>America/New_York</code> or <code>America/Los_Angeles</code></td>\n</tr>\n<tr>\n<td>account[payment_profiles_attributes]</td>\n<td>yes</td>\n<td>array of payment profiles (credit cards)</td>\n</tr>\n<tr>\n<td>billing_type</td>\n<td>yes</td>\n<td>the string <code>new</code> which will cause the account to be customer billing</td>\n</tr>\n</tbody>\n</table>\n</div><p>Payment Profiles Attributes have the following fields:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>field</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>first_name</td>\n<td>Card holder's first name</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>Card holder's last name</td>\n</tr>\n<tr>\n<td>address</td>\n<td>Street address of card</td>\n</tr>\n<tr>\n<td>city</td>\n<td>City for card's address</td>\n</tr>\n<tr>\n<td>zip</td>\n<td>Zip/postal code for card's address</td>\n</tr>\n<tr>\n<td>country</td>\n<td>Country for card's address</td>\n</tr>\n<tr>\n<td>card_type</td>\n<td>One of: visa, master, american_express, diners_club, discover, jcb</td>\n</tr>\n<tr>\n<td>card_number</td>\n<td>Credit card number</td>\n</tr>\n<tr>\n<td>verification_value</td>\n<td>The verification code from the back of the card</td>\n</tr>\n<tr>\n<td>month</td>\n<td>Expiration month</td>\n</tr>\n<tr>\n<td>year</td>\n<td>Expiration year</td>\n</tr>\n</tbody>\n</table>\n</div><p>JSON body example</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"account\": {\n      \"name\": \"testing 123\",\n      \"timezone_hint\": \"America/Los_Angeles\",\n      \"payment_profiles_attributes\": [\n        {\"first_name\": \"John\",\n         \"last_name\": \"Doe\",\n         \"address\": \"123 Example St\",\n         \"city\": \"Severna Park\",\n         \"zip\": \"21146\",\n         \"country\": \"US\",\n         \"card_type\": \"visa\",\n         \"card_number\": \"4242424242424242\",\n         \"verification_value\": \"424\",\n         \"month\": \"01\",\n         \"year\": \"2029\"\n        }\n      ]\n  },\n  \"billing_type\": \"new\"\n}\n</code></pre>\n<blockquote>\n<p>Note that account names are not required to be unique. You can use \"get list of accounts\" to lookup account names if you need to see if an account already exists.</p>\n</blockquote>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0b85abd0-4893-4b62-ba87-ea74202a7bce","name":"create an account (customer billing)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"billing_type\": \"new\",\n    \"account\": {\n        \"name\": \"testing 123\",\n        \"timezone_hint\": \"America/Los_Angeles\",\n        \"payment_profiles_attributes\": [\n            {\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"address\": \"123 Example St\",\n                \"city\": \"Severna Park\",\n                \"zip\": \"21146\",\n                \"country\": \"US\",\n                \"card_type\": \"visa\",\n                \"card_number\": \"4242424242424242\",\n                \"verification_value\": \"424\",\n                \"month\": \"01\",\n                \"year\": \"2029\"\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"id\": 12347,\n    \"name\": \"testing 123\"\n}"}],"_postman_id":"2f8a8e82-44e1-4d97-bbf7-55c6dd44dc38"},{"name":"cancel an account","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.id             = Number.isInteger(jsonData.id);","tests.status         = jsonData.status === \"success\";","","tests[\"name is non-empty string\"] = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);"]}}],"id":"de4f0bec-f84b-4596-b3ac-fcddb15adb37","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}","description":"<p>Cancel a sub-account within an agency</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the id of the account to cancel</td>\n</tr>\n</tbody>\n</table>\n</div><p>This will cancel the account and release all of the tracking numbers associated with the account.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"415660b5-b02f-476f-bad2-718ebadd06dc","name":"cancel an account","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"in-progress\",\n    \"id\": 12347\n}"}],"_postman_id":"de4f0bec-f84b-4596-b3ac-fcddb15adb37"},{"name":"update an account","event":[{"listen":"test","script":{"id":"345262ca-ed28-4d60-b5cd-1390bad97451","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.id             = Number.isInteger(jsonData.id);","tests.status         = jsonData.status === \"success\";","","tests[\"name is non-empty string\"] = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);","tests[\"account_status is non-empty string\"] = (typeof jsonData.account_status === \"string\") && (jsonData.account_status.length > 0);"],"type":"text/javascript"}}],"id":"ab6e4ae3-3817-4685-a545-57eaeb2164c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account\": {\n      \"name\": \"testing123\",\n      \"timezone_hint\": \"America/Los_Angeles\",\n      \"website\": \"http://testing123.example.com\",\n      \"contact_number\": \"+1 (251) 286-2740\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}","description":"<h4 id=\"update-a-sub-account-within-an-agency\">Update a sub-account within an agency.</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the id of the account</td>\n</tr>\n<tr>\n<td>account[name]</td>\n<td>no</td>\n<td>the name of the account</td>\n</tr>\n<tr>\n<td>account[timezone_hint]</td>\n<td>no</td>\n<td>a timezone name like <code>America/New_York</code> or <code>America/Los_Angeles</code></td>\n</tr>\n<tr>\n<td>account[website]</td>\n<td>no</td>\n<td>the url for the account</td>\n</tr>\n<tr>\n<td>account[contact_number]</td>\n<td>no</td>\n<td>a phone number for the account</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p>Note that account names are not required to be unique. You can use \"get list of accounts\" to look up account names if you need to see if an account already exists.</p>\n</blockquote>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"2ea4feef-ab1a-4d45-81b2-0ea6f6895f22","name":"update an account","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"account\": {\n        \"name\": \"testing123\",\n        \"timezone_hint\": \"America/Los_Angeles\",\n        \"website\": \"http://testing123.example.com\",\n        \"contact_number\": \"+1 (251) 286-2740\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"id\": 12346,\n    \"name\": \"testing123\",\n    \"account_status\": \"active\",\n    \"contact_number\": \"+1 (251) 286-2740\",\n    \"website\": \"http://testing123.example.com\"\n}"}],"_postman_id":"ab6e4ae3-3817-4685-a545-57eaeb2164c1"},{"name":"start an account","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.id             = Number.isInteger(jsonData.id);","//tests.id_match       = jsonData.id === environment.account_id;","tests.status         = jsonData.status === \"success\";","","tests[\"name is non-empty string\"] = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);","tests[\"account_status is active\"] = jsonData.account_status === \"active\";"]}}],"id":"6cce07ba-1b3d-4c83-82f6-274b97587a74","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/start","description":"<p>Starting an account will start dynamically swapping numbers and permit calls to tracking numbers.  This is the opposite of stopping an account.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","start"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b1d23f86-3791-41a2-a101-a5fa45b5019a","name":"start an account","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/start"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"id\": 12347,\n    \"name\": \"testing 123\",\n    \"account_status\": \"active\"\n}"}],"_postman_id":"6cce07ba-1b3d-4c83-82f6-274b97587a74"},{"name":"stop an account","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.id             = Number.isInteger(jsonData.id);","//tests.id_match       = jsonData.id === environment.account_id;","tests.status         = jsonData.status === \"success\";","","tests[\"name is non-empty string\"]  = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);","tests[\"account_status is stopped\"] = jsonData.account_status === \"stopped\";"]}}],"id":"2d52a81d-4704-4b45-b11b-ec40411add15","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/stop","description":"<p>Stopping an account will stop dynamically swapping numbers and prevent calls to tracking numbers.  Compare to pausing an account.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","stop"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"f11aec19-5d74-45ca-af80-d1cef55cc57c","name":"stop an account","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/stop"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"id\": 12347,\n    \"name\": \"testing 123\",\n    \"account_status\": \"stopped\"\n}"}],"_postman_id":"2d52a81d-4704-4b45-b11b-ec40411add15"},{"name":"pause an account","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.id             = Number.isInteger(jsonData.id);","//tests.id_match       = jsonData.id === environment.account_id;","tests.status         = jsonData.status === \"success\";","","tests[\"name is non-empty string\"] = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);","tests[\"account_status is paused\"] = jsonData.account_status === \"paused\";"]}}],"id":"afe1f41f-948a-4875-809d-4aa898a0f7bc","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/pause","description":"<p>Pausing an account will stop dynamically swapping numbers but calls to tracking numbers will still work.  Compare to stopping an account.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","pause"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"2b128b98-3fa0-481c-99f1-df29c7206a85","name":"pause an account","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/pause"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"id\": 12347,\n    \"name\": \"testing 123\",\n    \"account_status\": \"paused\"\n}"}],"_postman_id":"afe1f41f-948a-4875-809d-4aa898a0f7bc"},{"name":"resume an account","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.id             = Number.isInteger(jsonData.id);","//tests.id_match       = jsonData.id === environment.account_id;","tests.status         = jsonData.status === \"success\";","","tests[\"name is non-empty string\"] = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);","tests[\"account_status is active\"] = jsonData.account_status === \"active\";"]}}],"id":"8861beef-e398-4588-917d-67803028afb8","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/resume","description":"<p>Resuming an account will start dynamically swapping numbers.  This is the opposite of pausing an account.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","resume"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"f25e9309-1afc-4a5b-b8ed-35280e057a43","name":"resume an account","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/resume"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"id\": 12347,\n    \"name\": \"testing 123\",\n    \"account_status\": \"active\"\n}"}],"_postman_id":"8861beef-e398-4588-917d-67803028afb8"},{"name":"account tracking scripts","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                       = JSON.parse(responseBody);","tests[\"tracking code reasonable\"]  = jsonData.tracking.match(/^<script async src=\\\"\\/\\/\\d+.tctm.co\\/t.js\\\"><\\/script>$/);","tests[\"google_adwords is present\"] = typeof jsonData.google_adwords === 'string';"]}}],"id":"f5d68357-bc2d-4780-89d5-f2d1e873f911","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/scripts","description":"<p>Use get account scripts to retrieve the tracking script for your website as well as the Google Adwords script (if applicable).</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","scripts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"bc72b08c-5fd5-45db-8463-daaa2291a6b7","name":"account tracking scripts","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/scripts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"tracking\": \"<script async src=\\\"//12347.tctm.co/t.js\\\"></script>\",\n    \"google_adwords\": \"\"\n}"}],"_postman_id":"f5d68357-bc2d-4780-89d5-f2d1e873f911"},{"name":"enable automatic redaction","event":[{"listen":"test","script":{"id":"62977594-c105-4c28-bf10-3631ed4411ad","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.accounts       = Array.isArray(jsonData.accounts);","tests.page           = Number.isInteger(jsonData.page);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);","tests.per_page       = Number.isInteger(jsonData.per_page);"],"type":"text/javascript"}}],"id":"97a09f68-9515-4175-8c76-830b9bac64a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"retention_period\": 90,\n    \"I_Understand_That_This_Has_Permanent_Data_Retention_Implications\": 1\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/enable_automatic_redaction","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>retention_period</td>\n<td>yes</td>\n<td>one of 0, 30, 60, 90 corresponding to the number of days of data retained</td>\n</tr>\n<tr>\n<td>I_Understand_That_This_Has_Permanent_Data_Retention_Implications</td>\n<td>yes</td>\n<td>send 1 to ackknowledge you understand and agree</td>\n</tr>\n</tbody>\n</table>\n</div><p>To enable automatic redaction, you must be using the agency keys. Also, redaction must be enabled in the agency:</p>\n<ul>\n<li><a href=\"https://app.calltrackingmetrics.com/agencies/%7B%7Bagency_id%7D%7D/edit#agency-behaviors\">https://app.calltrackingmetrics.com/agencies/{{agency_id}}/edit#agency-behaviors</a></li>\n<li>\"Allow accounts to enable redacting calls within the call log (useful for GDPR compliance)\"</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","enable_automatic_redaction"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"8e121d1a-810d-4b22-b6ec-79f6a758088f","name":"failure to agree when enable/disable automatic redaction","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"retention_period\": 90\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/enable_automatic_redaction"},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"reason\": \"must agree that this has permanent data retention implications\"\n}"},{"id":"867e9ef9-499c-4886-8a62-dc84867e455b","name":"success enable automatic redaction","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"retention_period\": 90,\n    \"I_Understand_That_This_Has_Permanent_Data_Retention_Implications\": 1\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/enable_automatic_redaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.15.8.2","enabled":true},{"key":"Date","value":"Tue, 14 Jul 2020 21:00:13 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"ETag","value":"W/\"910f0b0e5712d5f55469ab8ba8764fb7\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=OVFzRy9mYjZoUlRnQUJ1aUdOY3lDQ1JhTkE4V0xMTzJhdUNlUWNKSlhOWVpRbEJ3K1ZXdWJveWRlS2tmVW1iRllUcG5zMXNKZFZEMGc2UU5ybzBHRWVrVzJvNU5yTjBhR3dMSjR5Ry9nNFpMbjZKSCtXRFhYSmlCSHBXd0NROFEtLTRldjBmVjlrS3BKVnlmUXdGRzhaVEE9PQ%3D%3D--7f0e481e83d8e656d2e6387d044af2013b909f51; domain=.ctmdev.us; path=/; expires=Wed, 15 Jul 2020 13:00:13 -0000; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Meta-Request-Version","value":"0.7.2","enabled":true},{"key":"X-Request-Id","value":"83543b40-1413-4940-8791-98e3ace9caca","enabled":true},{"key":"X-Runtime","value":"0.059224","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\"\n}"},{"id":"846a390d-1ca3-4e5c-8c89-1e68571a96cf","name":"invalid retention period enable automatic redaction","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"retention_period\": 91,\n    \"I_Understand_That_This_Has_Permanent_Data_Retention_Implications\": 1\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/enable_automatic_redaction"},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"reason\": \"must specify a valid retention period\"\n}"}],"_postman_id":"97a09f68-9515-4175-8c76-830b9bac64a3"},{"name":"disable automatic redaction","id":"d153e921-7953-49db-8425-d35253b782e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"I_Understand_That_This_Has_Permanent_Data_Retention_Implications\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/disable_automatic_redaction","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>I_Understand_That_This_Has_Permanent_Data_Retention_Implications</td>\n<td>yes</td>\n<td>send 1 to ackknowledge you understand and agree</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","disable_automatic_redaction"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"99c743f2-a52c-43cc-92ee-c92cb2583df4","name":"success disable automatic redaction","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"I_Understand_That_This_Has_Permanent_Data_Retention_Implications\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/disable_automatic_redaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.15.8.2","enabled":true},{"key":"Date","value":"Tue, 14 Jul 2020 21:00:53 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"ETag","value":"W/\"910f0b0e5712d5f55469ab8ba8764fb7\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=RXp1MjVpOEhyck1WcHZYSGU0WjVPeC9MVDhESW1zTGx5c3NFZUZDdnhsRHhFOXdqLzNrU3lneXJNS1pLQVljSjhkQUVmMEY4U2RQeHJzRGxlT1dUK1ZoMHhnRFFVZkFlQzhTRW83RGFNbHJtOStmMDZqMDE1cXEyaHNxVjQ1NVEtLVBQUGNhN2pRdThxc090NGFoelQ5ckE9PQ%3D%3D--5b45ed9705383a86e84ed8a8cf02f1aad24b4794; domain=.ctmdev.us; path=/; expires=Wed, 15 Jul 2020 13:00:53 -0000; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Meta-Request-Version","value":"0.7.2","enabled":true},{"key":"X-Request-Id","value":"fdababde-8a1d-43ac-a33b-7481b060f3cc","enabled":true},{"key":"X-Runtime","value":"0.272070","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\"\n}"}],"_postman_id":"d153e921-7953-49db-8425-d35253b782e6"},{"name":"tracking script settings","id":"5577e779-8421-40f2-b06c-6d0838aa96d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/tracking_script_settings","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","tracking_script_settings"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"cce1050c-acd4-450f-96f6-9a5057051ef7","name":"tracking script settings","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/tracking_script_settings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.27.1.1"},{"key":"Date","value":"Mon, 16 Jun 2025 19:44:53 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-frame-options","value":"ALLOWALL"},{"key":"access-control-allow-origin","value":"*"},{"key":"vary","value":"Accept"},{"key":"etag","value":"W/\"518e8a16ec9ebd2eceaff2b23c8b6fec\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"set-cookie","value":"_ctm3=29bee73f58c8a11a617dc94c147bb298; domain=ctmdev.us; path=/; expires=Tue, 17 Jun 2025 11:44:53 GMT; secure; httponly; SameSite=None"},{"key":"x-request-id","value":"fa0cc419-4af2-4be6-8292-a21c4a24c580"},{"key":"x-runtime","value":"0.130972"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=15.94, instantiation.active_record;dur=0.85, cache_read.active_support;dur=10.88, process_action.action_controller;dur=107.49"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"tracking_code\": {\n        \"account_id\": 1,\n        \"cookie_duration\": 30,\n        \"use_third_party_cookies\": true,\n        \"score_default_threshold\": 85,\n        \"exclusion_rules\": [\n            {\n                \"id\": 7,\n                \"rule\": \"contains\"\n            }\n        ],\n        \"blockips\": [\n            \"1.1.1.1\",\n            \"8.8.8.8\"\n        ],\n        \"custom_code\": \"// testing again\"\n    },\n    \"warnings\": {}\n}"}],"_postman_id":"5577e779-8421-40f2-b06c-6d0838aa96d8"},{"name":"update tracking script settings","id":"652a1ce2-9fb5-495e-806c-c7f129a309ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"tracking_code_setting\":\n    {\n      \"cookie_duration\": 30,\n      \"use_third_party_cookies\": 1,\n      \"score_default_threshold\": 85,\n      \"custom_code\": \"// testing 123\"\n    },\n  \"blockips\": [\"8.8.8.8\", \"1.1.1.1\"],\n  \"exclusion_rules\": [\n      {\n        \"field\": \"referrer\",\n        \"match\": \"internal.example.com\",\n        \"rule\": \"contains\"\n      }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/tracking_script_settings","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>cookie_duration</td>\n<td>no</td>\n<td>Set the duration that visitors will be associated to their original source. Default is 30 days. Setting this value to 0 will disable cookies.</td>\n</tr>\n<tr>\n<td>use_third_party_cookies</td>\n<td>no</td>\n<td>Use third-party cookies</td>\n</tr>\n<tr>\n<td>score_default_threshold</td>\n<td>no</td>\n<td>Set a threshold value between 1 and 99 to indicate whether visitor data should appear in the call log associated to a call</td>\n</tr>\n<tr>\n<td>custom_code</td>\n<td>no</td>\n<td>Custom tracking allows you to inject additional tracking code into the call tracking script. This is useful when you have graphical phone numbers and need to hook into the CTMSourceEvent. This needs to be valid JavaScript.</td>\n</tr>\n<tr>\n<td>blockips</td>\n<td>no</td>\n<td>Add IP addresses to block tracking from known locations. For example, you might want to turn visitor tracking off for your office or monitoring software.</td>\n</tr>\n<tr>\n<td>exclusion_rules</td>\n<td>no</td>\n<td>Set the field, match, and rule to exclude certain domains from the tracking script. This is useful if you are using a live website editor and will prevent the tracking script from updating the source.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","tracking_script_settings"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"01a613d9-9d44-410b-9192-42f358cba311","name":"update tracking script settings","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"tracking_code_setting\":\n    {\n      \"cookie_duration\": 30,\n      \"use_third_party_cookies\": 1,\n      \"score_default_threshold\": 85,\n      \"custom_code\": \"// testing 123\"\n    },\n  \"blockips\": [\"8.8.8.8\", \"1.1.1.1\"],\n  \"exclusion_rules\": [\n      {\n        \"field\": \"referrer\",\n        \"match\": \"internal.example.com\",\n        \"rule\": \"contains\"\n      }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/tracking_script_settings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.27.1.1"},{"key":"Date","value":"Mon, 16 Jun 2025 21:16:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-frame-options","value":"ALLOWALL"},{"key":"access-control-allow-origin","value":"*"},{"key":"vary","value":"Accept"},{"key":"etag","value":"W/\"243dbf3007993cd04841a0e471c529ca\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"set-cookie","value":"_ctm3=29bee73f58c8a11a617dc94c147bb298; domain=ctmdev.us; path=/; expires=Tue, 17 Jun 2025 13:16:00 GMT; secure; httponly; SameSite=None"},{"key":"x-request-id","value":"31431ce7-05a1-4ce3-ac09-8e98c418a47e"},{"key":"x-runtime","value":"2.901051"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=229.80, instantiation.active_record;dur=136.48, cache_read.active_support;dur=32.67, cache_fetch_hit.active_support;dur=0.07, cache_generate.active_support;dur=573.79, cache_write.active_support;dur=6.65, cache_delete.active_support;dur=16.77, transaction.active_record;dur=134.51, process_action.action_controller;dur=1604.25"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"id\": 1,\n    \"tracking_code\": {\n        \"account_id\": 1,\n        \"cookie_duration\": 30,\n        \"use_third_party_cookies\": true,\n        \"score_default_threshold\": 85,\n        \"exclusion_rules\": [\n            {\n                \"id\": 8,\n                \"rule\": \"contains\"\n            }\n        ],\n        \"blockips\": [\n            \"1.1.1.1\",\n            \"8.8.8.8\"\n        ],\n        \"custom_code\": \"// testing 123\"\n    },\n    \"warnings\": {}\n}"}],"_postman_id":"652a1ce2-9fb5-495e-806c-c7f129a309ca"}],"id":"f5002e14-0e83-4f4a-bef4-1b98e60a555f","_postman_id":"f5002e14-0e83-4f4a-bef4-1b98e60a555f","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Agency","item":[{"name":"agency information","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"agency name is non-empty string\"] = (typeof jsonData.agency.name === \"string\") && (jsonData.agency.name.length > 0);","tests[\"agency id is integer\"] = Number.isInteger(jsonData.agency.id);"]}}],"id":"3acb2329-cb31-415d-8912-c85007159c1c","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/agency","description":"<p>Returns the name and ID number of the agency</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","agency"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"70caf2e6-10af-4f56-9ee1-4b0a8fa98d60","name":"agency information","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/agency"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"agency\": {\n    \"name\": \"test agency\",\n    \"id\": 2\n  }\n}"}],"_postman_id":"3acb2329-cb31-415d-8912-c85007159c1c"}],"id":"8850003a-153e-4825-b9ae-137a5f23b3b1","_postman_id":"8850003a-153e-4825-b9ae-137a5f23b3b1","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Agents","item":[{"name":"list agents","id":"f056eb01-bb9f-47a5-9bcb-2bd205127fc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/agents","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","agents"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f056eb01-bb9f-47a5-9bcb-2bd205127fc1"},{"name":"get agent status","id":"b4e9cfe0-b77d-4b42-b0fa-c637f8740584","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/agents/{{agent_id}}/phone_status","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>agent_id</td>\n<td>yes</td>\n<td>the agent id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","agents","{{agent_id}}","phone_status"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4e9cfe0-b77d-4b42-b0fa-c637f8740584"},{"name":"get agent status","id":"b6230adf-6ead-452c-87fd-1cb5c96a44ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/agents/{{agent_id}}/phone_status","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>agent_id</td>\n<td>yes</td>\n<td>the agent id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","agents","{{agent_id}}","phone_status"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b6230adf-6ead-452c-87fd-1cb5c96a44ba"},{"name":"agent history","id":"d6ee5cab-1c68-4977-ac5f-3760d76c335c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/agents/{{agent_id}}/phone_status","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>agent_id</td>\n<td>yes</td>\n<td>the agent id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","agents","{{agent_id}}","phone_status"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6ee5cab-1c68-4977-ac5f-3760d76c335c"},{"name":"by agent status","id":"245ecd54-520e-4ede-ad60-f0903e764b3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/agents/by_status?status=lunch","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>agent_id</td>\n<td>yes</td>\n<td>the agent id</td>\n</tr>\n<tr>\n<td>status</td>\n<td>no</td>\n<td>a list of comma separated statuses; if empty or missing return the status of every agent</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","agents","by_status"],"host":["{{host}}"],"query":[{"key":"status","value":"lunch"}],"variable":[]}},"response":[],"_postman_id":"245ecd54-520e-4ede-ad60-f0903e764b3f"},{"name":"admin update agent status","id":"99a3117c-6077-4ff8-b106-84958d680f10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"status\": \"lunch\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/agents/{{agent_id}}/admin_update_status","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>agent_id</td>\n<td>yes</td>\n<td>the agent id</td>\n</tr>\n<tr>\n<td>status</td>\n<td>no</td>\n<td>one of <strong>online</strong>, <strong>offline</strong>, or one of the statuses available for the account.  <br />  <br />if status is blank, the agent will be set to offline (Not Available.)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","agents","{{agent_id}}","admin_update_status"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"99a3117c-6077-4ff8-b106-84958d680f10"}],"id":"a50ef463-d548-442a-b821-debeb7c3f24d","_postman_id":"a50ef463-d548-442a-b821-debeb7c3f24d","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Call Settings","item":[{"name":"list of call settings","event":[{"listen":"test","script":{"id":"72557729-158f-4e78-940b-353db1a6c465","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.configs        = Array.isArray(jsonData.configs);","tests.page           = Number.isInteger(jsonData.page);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);","//tests.per_page       = Number.isInteger(jsonData.per_page);"],"type":"text/javascript"}}],"id":"143248f0-46e8-477e-a720-aee1743be1dd","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings","description":"<p>Get a list of account call settings.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","call_settings"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"bf02e888-92b3-4df7-82a9-56ce674df88a","name":"list of call settings","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.9.1","enabled":true},{"key":"Date","value":"Fri, 19 Jan 2024 16:33:16 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"Vary","value":"Accept","enabled":true},{"key":"ETag","value":"W/\"b524ef790877bae4a736d9f440236e96\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm3=eba779f25ac10489254ee8bd1d62c12b; domain=.ctmdev.us; path=/; expires=Sat, 20 Jan 2024 08:33:16 GMT; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Request-Id","value":"f1db3989-1e31-4142-9c5b-5f4cc79aef6e","enabled":true},{"key":"X-Runtime","value":"0.112845","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"page\": \"1\",\n    \"per_page\": 10,\n    \"total_entries\": 3,\n    \"total_pages\": 1,\n    \"next_page\": null,\n    \"previous_page\": null,\n    \"configs\": [\n        {\n            \"id\": \"NCF123...\",\n            \"name\": \"Account Level\",\n            \"description\": \"updated description\",\n            \"default\": true,\n            \"created_at\": \"2023-04-18T15:59:13Z\",\n            \"update_at\": \"2024-01-19T15:57:56Z\",\n            \"play_message\": \"say:alice:en-US:For quality assurance, this call may be recorded.\",\n            \"whisper_on\": false,\n            \"receiving_whisper\": \"\",\n            \"whisper_wait_delay\": null,\n            \"whisper_skip_abort\": null,\n            \"whisper_end_time\": \"\",\n            \"whisper_start_time\": \"\",\n            \"whisper_max_active_calls\": 0,\n            \"account_id\": 1,\n            \"inbound_recordings_on\": true,\n            \"post_back_url\": null,\n            \"override_message_to_caller_for_geo_routes\": false,\n            \"callerid_enabled\": true,\n            \"use_tracking_number_as_callerid\": false,\n            \"change_post_back_url\": null,\n            \"transcription\": false,\n            \"caller_sentiment\": 0,\n            \"transcription_offset\": 0,\n            \"transcription_length\": 60,\n            \"override_physical_phone_number_id\": null,\n            \"override_number_on\": false,\n            \"send_sms_to_callers\": false,\n            \"sms_text\": null,\n            \"premium_callerid_enabled\": false,\n            \"callerid_tracking_number_id\": null,\n            \"address_lookup\": false,\n            \"outbound_recording_on\": true,\n            \"spam_blocking\": false,\n            \"spam_action_label\": \"\",\n            \"spam_action\": null\n        },\n        {\n            \"id\": \"NCF456...\",\n            \"name\": \"Second\",\n            \"description\": \"updated description\",\n            \"default\": false,\n            \"created_at\": \"2024-01-19T15:45:08Z\",\n            \"update_at\": \"2024-01-19T15:57:32Z\",\n            \"play_message\": \"say:alice:en-US:This is a test\",\n            \"whisper_on\": false,\n            \"receiving_whisper\": \"\",\n            \"whisper_wait_delay\": null,\n            \"whisper_skip_abort\": null,\n            \"whisper_end_time\": \"\",\n            \"whisper_start_time\": \"\",\n            \"whisper_max_active_calls\": 0,\n            \"account_id\": 1,\n            \"inbound_recordings_on\": false,\n            \"post_back_url\": null,\n            \"override_message_to_caller_for_geo_routes\": false,\n            \"callerid_enabled\": true,\n            \"use_tracking_number_as_callerid\": false,\n            \"change_post_back_url\": null,\n            \"transcription\": false,\n            \"caller_sentiment\": 0,\n            \"transcription_offset\": 0,\n            \"transcription_length\": 0,\n            \"override_physical_phone_number_id\": null,\n            \"override_number_on\": false,\n            \"send_sms_to_callers\": false,\n            \"sms_text\": null,\n            \"premium_callerid_enabled\": false,\n            \"callerid_tracking_number_id\": null,\n            \"address_lookup\": false,\n            \"outbound_recording_on\": false,\n            \"spam_blocking\": false,\n            \"spam_action_label\": \"\",\n            \"spam_action\": null\n        },\n        {\n            \"id\": \"NCFabc...\",\n            \"name\": \"created by api\",\n            \"description\": \"description of created by api\",\n            \"default\": false,\n            \"created_at\": \"2024-01-19T15:53:51Z\",\n            \"update_at\": \"2024-01-19T15:53:51Z\",\n            \"play_message\": \"say:alice:en-US:For quality assurance, this call may be recorded.\",\n            \"whisper_on\": null,\n            \"receiving_whisper\": \"\",\n            \"whisper_wait_delay\": null,\n            \"whisper_skip_abort\": null,\n            \"whisper_end_time\": null,\n            \"whisper_start_time\": null,\n            \"whisper_max_active_calls\": 0,\n            \"account_id\": 1,\n            \"inbound_recordings_on\": true,\n            \"post_back_url\": null,\n            \"override_message_to_caller_for_geo_routes\": false,\n            \"callerid_enabled\": true,\n            \"use_tracking_number_as_callerid\": false,\n            \"change_post_back_url\": null,\n            \"transcription\": false,\n            \"caller_sentiment\": 0,\n            \"transcription_offset\": 0,\n            \"transcription_length\": 0,\n            \"override_physical_phone_number_id\": null,\n            \"override_number_on\": false,\n            \"send_sms_to_callers\": false,\n            \"sms_text\": null,\n            \"premium_callerid_enabled\": false,\n            \"callerid_tracking_number_id\": null,\n            \"address_lookup\": false,\n            \"outbound_recording_on\": false,\n            \"spam_blocking\": false,\n            \"spam_action_label\": null,\n            \"spam_action\": null\n        }\n    ]\n}"}],"_postman_id":"143248f0-46e8-477e-a720-aee1743be1dd"},{"name":"list details of a call setting","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"id looks reasonable\"] = jsonData.id.match(/^NCF[0-9A-Fa-f]+$/);","tests[\"account_id is integer\"] = Number.isInteger(jsonData.account_id);","tests[\"name is non-empty string\"] = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);","tests[\"play_message is non-empty string\"] = (typeof jsonData.play_message === \"string\") && (jsonData.play_message.length > 0);"]}}],"id":"2b2ab29e-d5c9-41ff-81da-a241c95e1a34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings/{{call_setting_id}}","description":"<p>List details of call setting</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_setting_id</td>\n<td>yes</td>\n<td>the call setting id NCF</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","call_settings","{{call_setting_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"cb4e4e25-29ef-4f66-8f28-e7b9d6a95765","name":"list details of a call setting","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings/{{call_setting_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.9.1","enabled":true},{"key":"Date","value":"Fri, 19 Jan 2024 16:34:50 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"Vary","value":"Accept","enabled":true},{"key":"ETag","value":"W/\"2234a1a96d45d4ae365a41c766765f1b\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm3=eba779f25ac10489254ee8bd1d62c12b; domain=.ctmdev.us; path=/; expires=Sat, 20 Jan 2024 08:34:50 GMT; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Request-Id","value":"ed8cac5a-5b8b-49de-99ba-e784efc87370","enabled":true},{"key":"X-Runtime","value":"0.197915","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"NCF123...\",\n    \"name\": \"Account Level\",\n    \"description\": \"updated description\",\n    \"default\": true,\n    \"created_at\": \"2023-04-18T15:59:13Z\",\n    \"update_at\": \"2024-01-19T15:57:56Z\",\n    \"play_message\": \"say:alice:en-US:For quality assurance, this call may be recorded.\",\n    \"whisper_on\": false,\n    \"receiving_whisper\": \"\",\n    \"whisper_wait_delay\": null,\n    \"whisper_skip_abort\": null,\n    \"whisper_end_time\": \"\",\n    \"whisper_start_time\": \"\",\n    \"whisper_max_active_calls\": 0,\n    \"account_id\": 1,\n    \"inbound_recordings_on\": true,\n    \"post_back_url\": null,\n    \"override_message_to_caller_for_geo_routes\": false,\n    \"callerid_enabled\": true,\n    \"use_tracking_number_as_callerid\": false,\n    \"change_post_back_url\": null,\n    \"transcription\": false,\n    \"caller_sentiment\": 0,\n    \"transcription_offset\": 0,\n    \"transcription_length\": 60,\n    \"override_physical_phone_number_id\": null,\n    \"override_number_on\": false,\n    \"send_sms_to_callers\": false,\n    \"sms_text\": null,\n    \"premium_callerid_enabled\": false,\n    \"callerid_tracking_number_id\": null,\n    \"address_lookup\": false,\n    \"outbound_recording_on\": true,\n    \"spam_blocking\": false,\n    \"spam_action_label\": \"\",\n    \"spam_action\": null\n}"}],"_postman_id":"2b2ab29e-d5c9-41ff-81da-a241c95e1a34"},{"name":"default call setting","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.configs        = Array.isArray(jsonData.configs);","tests.page           = Number.isInteger(jsonData.page);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);","//tests.per_page       = Number.isInteger(jsonData.per_page);"]}}],"id":"dffeb9b9-c8bd-41e5-a2c1-323edc71258e","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings/default","description":"<p>Get account default call setting</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","call_settings","default"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"332e2342-8295-4cea-bffe-5d54b37c491b","name":"default call setting","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings/default"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.9.1","enabled":true},{"key":"Date","value":"Fri, 19 Jan 2024 16:35:41 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"Vary","value":"Accept","enabled":true},{"key":"ETag","value":"W/\"2234a1a96d45d4ae365a41c766765f1b\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm3=eba779f25ac10489254ee8bd1d62c12b; domain=.ctmdev.us; path=/; expires=Sat, 20 Jan 2024 08:35:41 GMT; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Request-Id","value":"d0a3f3af-ae6f-47be-8aa1-91ec54ff78a8","enabled":true},{"key":"X-Runtime","value":"0.232476","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"NCF123...\",\n    \"name\": \"Account Level\",\n    \"description\": \"updated description\",\n    \"default\": true,\n    \"created_at\": \"2023-04-18T15:59:13Z\",\n    \"update_at\": \"2024-01-19T15:57:56Z\",\n    \"play_message\": \"say:alice:en-US:For quality assurance, this call may be recorded.\",\n    \"whisper_on\": false,\n    \"receiving_whisper\": \"\",\n    \"whisper_wait_delay\": null,\n    \"whisper_skip_abort\": null,\n    \"whisper_end_time\": \"\",\n    \"whisper_start_time\": \"\",\n    \"whisper_max_active_calls\": 0,\n    \"account_id\": 1,\n    \"inbound_recordings_on\": true,\n    \"post_back_url\": null,\n    \"override_message_to_caller_for_geo_routes\": false,\n    \"callerid_enabled\": true,\n    \"use_tracking_number_as_callerid\": false,\n    \"change_post_back_url\": null,\n    \"transcription\": false,\n    \"caller_sentiment\": 0,\n    \"transcription_offset\": 0,\n    \"transcription_length\": 60,\n    \"override_physical_phone_number_id\": null,\n    \"override_number_on\": false,\n    \"send_sms_to_callers\": false,\n    \"sms_text\": null,\n    \"premium_callerid_enabled\": false,\n    \"callerid_tracking_number_id\": null,\n    \"address_lookup\": false,\n    \"outbound_recording_on\": true,\n    \"spam_blocking\": false,\n    \"spam_action_label\": \"\",\n    \"spam_action\": null\n}"}],"_postman_id":"dffeb9b9-c8bd-41e5-a2c1-323edc71258e"},{"name":"set default call setting","event":[{"listen":"test","script":{"id":"72557729-158f-4e78-940b-353db1a6c465","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.configs        = Array.isArray(jsonData.configs);","tests.page           = Number.isInteger(jsonData.page);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);","//tests.per_page       = Number.isInteger(jsonData.per_page);"],"type":"text/javascript"}}],"id":"a604ea54-23a2-4b00-9c3d-467f76bfb262","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings/{{call_setting_id}}/set_default","description":"<p>Set default call setting</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_setting_id</td>\n<td>yes</td>\n<td>the call setting id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","call_settings","{{call_setting_id}}","set_default"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b287c73d-c16e-480d-837b-d37061c60450","name":"set default call setting","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings/NCF5B75DB2863BDEA0F1929B77CA94CF26F674580D551FAA400/set_default"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.9.1","enabled":true},{"key":"Date","value":"Fri, 19 Jan 2024 16:36:54 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"Vary","value":"Accept","enabled":true},{"key":"ETag","value":"W/\"95d82cc54d4826f6ca86020b59725129\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm3=eba779f25ac10489254ee8bd1d62c12b; domain=.ctmdev.us; path=/; expires=Sat, 20 Jan 2024 08:36:54 GMT; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Request-Id","value":"3b6fd07d-079e-466d-8f32-3664ed7657a7","enabled":true},{"key":"X-Runtime","value":"0.085966","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\"\n}"}],"_postman_id":"a604ea54-23a2-4b00-9c3d-467f76bfb262"},{"name":"list of numbers assigned and available to assign to a call setting","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData    = JSON.parse(responseBody);","tests.available = Array.isArray(jsonData.available);","tests.assigned  = Array.isArray(jsonData.assigned);"]}}],"id":"1db02066-d65d-47a3-a4ed-a173326b69dc","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings/{{call_setting_id}}/number_list","description":"<p>Get a list of account level call settings.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_setting_id</td>\n<td>yes</td>\n<td>the call setting id NCF</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","call_settings","{{call_setting_id}}","number_list"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d26820f8-2143-4092-a7f8-77d4cc935690","name":"list of numbers assigned and available to assign to a call setting","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings/{{call_setting_id}}/number_list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"available\": [\n        [\n            \"(251) 286-2740\",\n            12345,\n            {\n                \"text\": \"(251) 286-2740\",\n                \"description\": \"\"\n            }\n        ],\n        [\n            \"(888) 555-1212\",\n            12378,\n            {\n                \"text\": \"(888) 555-1212\",\n                \"description\": null\n            }\n        ]\n    ],\n    \"assigned\": [\n        12345\n    ]\n}"}],"_postman_id":"1db02066-d65d-47a3-a4ed-a173326b69dc"},{"name":"create new call setting","event":[{"listen":"test","script":{"id":"39faaf27-923a-4304-8cee-80f0a00c73e3","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.accounts       = Array.isArray(jsonData.accounts);","tests.page           = Number.isInteger(jsonData.page);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);","tests.per_page       = Number.isInteger(jsonData.per_page);"],"type":"text/javascript"}}],"id":"20934f2f-4cc1-4477-9a2e-8ee4a55d4ee9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"example\",\n    \"description\": \"to be deleted\",\n    \"recordings_on\": true,\n    \"outbound_recording_on\": true\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings","description":"<p>Update an account level call setting.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_setting_id</td>\n<td>yes</td>\n<td>the call setting id NCF</td>\n</tr>\n<tr>\n<td>virtual_phone_number_ids</td>\n<td>yes</td>\n<td>array of virtual phone number ids (TPNs)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","call_settings"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"1c487f21-eab1-4a4d-a5cc-9c908d6ef99d","name":"create new call setting","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"example\",\n    \"description\": \"to be deleted\",\n    \"recordings_on\": true,\n    \"outbound_recording_on\": true\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.9.1","enabled":true},{"key":"Date","value":"Fri, 19 Jan 2024 16:43:01 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"Vary","value":"Accept","enabled":true},{"key":"ETag","value":"W/\"2ed73d25cc2184f3cdf07cf810c626fe\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm3=eba779f25ac10489254ee8bd1d62c12b; domain=.ctmdev.us; path=/; expires=Sat, 20 Jan 2024 08:43:01 GMT; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Request-Id","value":"6e9917da-05dc-49a1-9a83-a1a0e8108768","enabled":true},{"key":"X-Runtime","value":"0.112671","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"NCFabc...\",\n    \"name\": \"example\",\n    \"description\": \"to be deleted\",\n    \"default\": false,\n    \"created_at\": \"2024-01-19T16:43:01Z\",\n    \"update_at\": \"2024-01-19T16:43:01Z\",\n    \"play_message\": \"say:alice:en-US:For quality assurance, this call may be recorded.\",\n    \"whisper_on\": null,\n    \"receiving_whisper\": \"\",\n    \"whisper_wait_delay\": null,\n    \"whisper_skip_abort\": null,\n    \"whisper_end_time\": null,\n    \"whisper_start_time\": null,\n    \"whisper_max_active_calls\": 0,\n    \"account_id\": 1,\n    \"inbound_recordings_on\": true,\n    \"post_back_url\": null,\n    \"override_message_to_caller_for_geo_routes\": false,\n    \"callerid_enabled\": true,\n    \"use_tracking_number_as_callerid\": false,\n    \"change_post_back_url\": null,\n    \"transcription\": false,\n    \"caller_sentiment\": 0,\n    \"transcription_offset\": 0,\n    \"transcription_length\": 0,\n    \"override_physical_phone_number_id\": null,\n    \"override_number_on\": false,\n    \"send_sms_to_callers\": false,\n    \"sms_text\": null,\n    \"premium_callerid_enabled\": false,\n    \"callerid_tracking_number_id\": null,\n    \"address_lookup\": false,\n    \"outbound_recording_on\": true,\n    \"spam_blocking\": false,\n    \"spam_action_label\": null,\n    \"spam_action\": null\n}"}],"_postman_id":"20934f2f-4cc1-4477-9a2e-8ee4a55d4ee9"},{"name":"update call setting","event":[{"listen":"test","script":{"id":"736d3ede-efd5-4903-95da-078403836837","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"id looks reasonable\"] = jsonData.id.match(/^NCF[0-9A-Fa-f]+$/);","tests[\"account_id is integer\"] = Number.isInteger(jsonData.account_id);","tests[\"name is non-empty string\"] = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);","tests[\"play_message is non-empty string\"] = (typeof jsonData.play_message === \"string\") && (jsonData.play_message.length > 0);"],"type":"text/javascript"}}],"id":"edd8db85-691f-4268-9145-a252c5917063","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"description\": \"updated description\",\n    \"recordings_on\": true,\n    \"outbound_recording_on\": true,\n    \"virtual_phone_number_ids\": [\n        1\n    ]\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings/{{call_setting_id}}","description":"<p>Update an account level call setting.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_setting_id</td>\n<td>yes</td>\n<td>the call setting id NCF</td>\n</tr>\n</tbody>\n</table>\n</div><p>For the list of properties/parameters that can be modified, use the \"list details of a call setting\" endpoint. For instance, if you want to turn off inbound call recordings, send <code>recordings_on: false</code> in the JSON body.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","call_settings","{{call_setting_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b2834a73-8e40-4a6b-9e25-7a824a31287f","name":"update call setting","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"description\": \"updated description\",\n    \"recordings_on\": false\t\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings/{{call_setting_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"NCxxxxx\",\n    \"name\": \"Account Level\",\n    \"description\": \"updated description\",\n    \"play_message\": \"say:alice:en-US:For quality assurance, this call may be recorded.\",\n    \"whisper_on\": null,\n    \"receiving_whisper\": \"\",\n    \"whisper_wait_delay\": null,\n    \"whisper_skip_abort\": null,\n    \"whisper_end_time\": null,\n    \"whisper_start_time\": null,\n    \"whisper_max_active_calls\": 0,\n    \"account_id\": 1,\n    \"inbound_recordings_on\": false,\n    \"default\": true,\n    \"post_back_url\": null,\n    \"override_message_to_caller_for_geo_routes\": false,\n    \"callerid_enabled\": true,\n    \"use_tracking_number_as_callerid\": false,\n    \"change_post_back_url\": null,\n    \"transcription\": false,\n    \"caller_sentiment\": 0,\n    \"transcription_offset\": 0,\n    \"transcription_length\": 60,\n    \"override_physical_phone_number_id\": null,\n    \"override_number_on\": false,\n    \"send_sms_to_callers\": false,\n    \"sms_text\": null,\n    \"premium_callerid_enabled\": false,\n    \"callerid_tracking_number_id\": null,\n    \"address_lookup\": false,\n    \"outbound_recording_on\": false\n}"}],"_postman_id":"edd8db85-691f-4268-9145-a252c5917063"},{"name":"delete call setting","event":[{"listen":"test","script":{"id":"ebba2064-db62-47b6-a48d-dd5cb0d782f7","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"id looks reasonable\"] = jsonData.id.match(/^NCF[0-9A-Fa-f]+$/);","tests[\"account_id is integer\"] = Number.isInteger(jsonData.account_id);","tests[\"name is non-empty string\"] = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);","tests[\"play_message is non-empty string\"] = (typeof jsonData.play_message === \"string\") && (jsonData.play_message.length > 0);"],"type":"text/javascript"}}],"id":"7d2d42c1-f8f1-4a94-ab56-7f9e384d6cff","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings/{{call_setting_id}}","description":"<p>Get a list of account level call settings.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_setting_id</td>\n<td>yes</td>\n<td>the call setting id NCF</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","call_settings","{{call_setting_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"1d82df45-9880-4a1a-8703-58ad3991f93e","name":"delete call setting","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/call_settings/{{call_setting_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.9.1","enabled":true},{"key":"Date","value":"Fri, 19 Jan 2024 16:40:41 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"Vary","value":"Accept","enabled":true},{"key":"ETag","value":"W/\"95d82cc54d4826f6ca86020b59725129\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm3=eba779f25ac10489254ee8bd1d62c12b; domain=.ctmdev.us; path=/; expires=Sat, 20 Jan 2024 08:40:41 GMT; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Request-Id","value":"b3f50b28-a22e-454f-b9c5-d961463c2d6f","enabled":true},{"key":"X-Runtime","value":"0.086034","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\"\n}"}],"_postman_id":"7d2d42c1-f8f1-4a94-ab56-7f9e384d6cff"}],"id":"3bb1a8f8-34b0-4471-980a-149f6dc8cf27","_postman_id":"3bb1a8f8-34b0-4471-980a-149f6dc8cf27","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Calls/Activities","item":[{"name":"list of activities (calls/texts/chats/forms)","event":[{"listen":"test","script":{"id":"a76338b8-2405-45ba-a5d1-a117bed361f5","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"calls is an array\"] = Array.isArray(jsonData.calls);"],"type":"text/javascript"}}],"id":"58876022-1920-4796-9361-13547b418234","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>no</td>\n<td>search string to look for messages with specific callerid, caller_number, called_number, source name, etc.</td>\n</tr>\n<tr>\n<td>after</td>\n<td>no</td>\n<td>a token used to determine the next page of data following the currently viewed page.</td>\n</tr>\n<tr>\n<td>per_page</td>\n<td>no</td>\n<td>the number of items per page, defaults to 10</td>\n</tr>\n<tr>\n<td>start_date</td>\n<td>no</td>\n<td>the start date for the search (YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td>end_date</td>\n<td>no</td>\n<td>the end date for the search (YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td>time_duration</td>\n<td>no</td>\n<td>instead of a start_date and end_date, you can request a range. for example, last6hours, last7days, last2weeks, last3months, yesterday, today, thisweek, thismonth, lastweek, etc. the duration is limited to ~3 months of data.</td>\n</tr>\n<tr>\n<td>start_day</td>\n<td>no</td>\n<td>used with time_duration and weeks to denote the first day of the week. for example, start_day=Sunday. the default is Monday</td>\n</tr>\n<tr>\n<td>direction[]</td>\n<td>no</td>\n<td>you may optionally filter the type of call/activity from the endpoint by including multiple parameters direction[] which URL encoded woudl be direction[]= and has the following options: inbound,outbound,msg_inbound,msg_outbound,form</td>\n</tr>\n<tr>\n<td>limit_fields[]</td>\n<td>no</td>\n<td>only return specific fields of interest from the API</td>\n</tr>\n<tr>\n<td>all</td>\n<td>no</td>\n<td>if set to 1, returns results agency-wide instead of account-wide</td>\n</tr>\n<tr>\n<td>stats</td>\n<td>no</td>\n<td>if set to 'on' return property stats that includes useful statistics regarding minutes, talk_time, ring_time, hold_time (i.e. count, total, mean, min, max, standard deviation)</td>\n</tr>\n<tr>\n<td>with_time</td>\n<td>no</td>\n<td>set to 1 to enable filtering with time</td>\n</tr>\n<tr>\n<td>contact_number</td>\n<td>no</td>\n<td>prefixed based searching and filtering by the contact phone number</td>\n</tr>\n</tbody>\n</table>\n</div><p><em><strong>example</strong></em><br />for example to pull back the list of calls from 2015-01-01 to 2015-02-01 with only the audio and the call id</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -u$key:$sec 'https://api.calltrackingmetrics.com/api/v1/accounts/{{your-account-id}}/calls.json?start_date=2015-01-01&amp;end_date=2015-02-01&amp;limit_fields\\[\\]=audio&amp;limit_fields\\[\\]=id'\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"calls\":[{\"id\":1ddddddddd},{\"id\":2ddddddddd},{\"id\":3dddddddddd},{\"id\":4ddddddddd},{\"id\":5ddddddddd},{\"audio\":\"https://calltrackingmetrics.com/api/v1/accounts/{{your-account-id}}/calls/CAddddddddddd/recording\",\"id\":2dddddddd},{\"id\":21dddddd},{\"id\":212ddddd},{\"id\":2ddddddd},{\"id\":2ddddddd}],\"page\":1,\"total_entries\":1168,\"total_pages\":117,\"per_page\":10,\"stats\":{},\"next_page\":\"https://api.calltrackingmetrics.com/api/v1/accounts/{{your-account-id}}/calls.json?end_date=2015-02-01&amp;limit_fields[]=audio&amp;limit_fields[]=id&amp;after=token&amp;start_date=2015-01-01\"}\n\n</code></pre>\n<p><em><strong>filter rules</strong></em></p>\n<p>Filter rules allow you to specify additional field-level filtering of the calls (for use with the filter parameter listed above). For example, tracking_number:\"14105555555\" would filter to only show calls involving the tracking number +1-410-555-5555</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>tracking_number</td>\n<td>tracking number used, as a string of digits</td>\n</tr>\n<tr>\n<td>source</td>\n<td>the tracking source name</td>\n</tr>\n<tr>\n<td>caller_number</td>\n<td>contact phone number, as a string of digits</td>\n</tr>\n<tr>\n<td>status</td>\n<td>the call status, for example: in progress, no answer, answered, hangup, completed</td>\n</tr>\n</tbody>\n</table>\n</div><p><em><strong>sorting activities</strong></em><br />sorting can be done by using the parameters:</p>\n<p>order which allows you to sort the calls by the following dimensions:<br />metrics - the time of the call<br />caller - the name of the caller<br />source - the name of the source</p>\n<p><em><strong>paging through activity data</strong></em><br />The response body for each request will include an after token when more records exists after the current record set. Include this after token in the next request to get another page of data.</p>\n<p><em><strong>schema</strong></em><br /><a href=\"https://api.calltrackingmetrics.com/api/v1/accounts/%7Baccount_id%7D/calls/schema.json\">https://api.calltrackingmetrics.com/api/v1/accounts/{account_id}/calls/schema.json</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d5802ef3-6d8d-43ef-9447-16be71cd8ec6","name":"list of activities (calls/texts/chats/forms)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"calls\": [\n        {\n            \"id\": 629,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Super Tester\",\n            \"cnam\": \"Baltimore, MD\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 45,\n            \"direction\": \"inbound\",\n            \"talk_time\": 38,\n            \"ring_time\": 4,\n            \"hold_time\": 3,\n            \"wait_time\": 4000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Test City\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21201\",\n            \"called_at\": \"2020-04-13 04:52 PM -04:00\",\n            \"unix_time\": 1586811174,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586814131.1483169,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 215.25,\n            \"billed_at\": \"2020-04-13T20:53:42\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T16:52:54Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"04PM\",\n            \"ga\": {\n                \"cid\": \"1.629\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.242,\n            \"longitude\": -76.6771,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T20:53:02Z\",\n                    \"end_at\": \"2020-04-13T20:53:40Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 84,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"callee\",\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 39,\n                    \"connect_duration\": 38\n                }\n            ]\n        },\n        {\n            \"id\": 628,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Test\",\n            \"cnam\": \"User,Test\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 7,\n            \"direction\": \"inbound\",\n            \"talk_time\": 0,\n            \"ring_time\": 7,\n            \"hold_time\": 0,\n            \"wait_time\": 1000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Severna Park\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21202\",\n            \"called_at\": \"2020-04-13 04:50 PM -04:00\",\n            \"unix_time\": 1586811001,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"hangup\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586811609.076177,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 215.25,\n            \"billed_at\": \"2020-04-13T20:50:09\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T16:50:01Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"hangup\",\n            \"status\": \"hangup\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"04PM\",\n            \"ga\": {\n                \"cid\": \"1.628\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.2847,\n            \"longitude\": -76.6205,\n            \"extended_lookup_on\": true,\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T20:50:01Z\",\n                    \"end_at\": \"2020-04-13T20:50:08Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": \"+13330004444\",\n                    \"from\": \"+12512862740\",\n                    \"status\": \"completed\",\n                    \"tags\": \"silence\",\n                    \"pdd_ms\": 57,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"caller\",\n                    \"from_carrier\": \"Verizon Wireless\",\n                    \"from_connection\": \"mobile\",\n                    \"to_carrier\": \"Twilio\",\n                    \"to_connection\": \"voip\",\n                    \"duration\": 7,\n                    \"connect_duration\": 7\n                }\n            ]\n        },\n        {\n            \"id\": 627,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Super Tester\",\n            \"cnam\": \"Baltimore, MD\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 66,\n            \"direction\": \"inbound\",\n            \"talk_time\": 60,\n            \"ring_time\": 3,\n            \"hold_time\": 3,\n            \"wait_time\": 3000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Test City\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21201\",\n            \"called_at\": \"2020-04-13 04:49 PM -04:00\",\n            \"unix_time\": 1586810987,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586814131.180714,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 430.5,\n            \"billed_at\": \"2020-04-13T20:50:56\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T16:49:47Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"04PM\",\n            \"ga\": {\n                \"cid\": \"1.627\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.242,\n            \"longitude\": -76.6771,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T20:49:54Z\",\n                    \"end_at\": \"2020-04-13T20:50:54Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 38,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"callee\",\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 60,\n                    \"connect_duration\": 60\n                }\n            ]\n        },\n        {\n            \"id\": 626,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Super Tester\",\n            \"cnam\": \"Baltimore, MD\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 64,\n            \"direction\": \"inbound\",\n            \"talk_time\": 58,\n            \"ring_time\": 3,\n            \"hold_time\": 3,\n            \"wait_time\": 3000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Test City\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21201\",\n            \"called_at\": \"2020-04-13 04:44 PM -04:00\",\n            \"unix_time\": 1586810680,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586814131.2266922,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 430.5,\n            \"billed_at\": \"2020-04-13T20:45:47\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T16:44:40Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"04PM\",\n            \"ga\": {\n                \"cid\": \"1.626\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.242,\n            \"longitude\": -76.6771,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T20:44:47Z\",\n                    \"end_at\": \"2020-04-13T20:45:45Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": null,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": null,\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 58,\n                    \"connect_duration\": 58\n                }\n            ]\n        },\n        {\n            \"id\": 625,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Super Tester\",\n            \"cnam\": \"Baltimore, MD\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 61,\n            \"direction\": \"inbound\",\n            \"talk_time\": 54,\n            \"ring_time\": 4,\n            \"hold_time\": 3,\n            \"wait_time\": 4000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Test City\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21201\",\n            \"called_at\": \"2020-04-13 04:36 PM -04:00\",\n            \"unix_time\": 1586810199,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586812060.836095,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 430.5,\n            \"billed_at\": \"2020-04-13T20:37:42\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T16:36:39Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CA5a5414516bb29d1c938f28619c791756/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"04PM\",\n            \"ga\": {\n                \"cid\": \"1.625\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.242,\n            \"longitude\": -76.6771,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T20:36:46Z\",\n                    \"end_at\": \"2020-04-13T20:37:40Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 189,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"callee\",\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 54,\n                    \"connect_duration\": 54\n                }\n            ]\n        },\n        {\n            \"id\": 624,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Super Tester\",\n            \"cnam\": \"Baltimore, MD\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 264,\n            \"direction\": \"inbound\",\n            \"talk_time\": 258,\n            \"ring_time\": 4,\n            \"hold_time\": 2,\n            \"wait_time\": 4000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Test City\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21201\",\n            \"called_at\": \"2020-04-13 04:24 PM -04:00\",\n            \"unix_time\": 1586809445,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586811511.0292811,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 1076.25,\n            \"billed_at\": \"2020-04-13T20:28:33\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T16:24:05Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CA3831dae6efdcfe0a6a706ea5bfdae25d/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"04PM\",\n            \"ga\": {\n                \"cid\": \"1.624\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.242,\n            \"longitude\": -76.6771,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T20:24:13Z\",\n                    \"end_at\": \"2020-04-13T20:28:31Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": null,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": null,\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": null,\n                    \"connect_duration\": 258\n                }\n            ]\n        },\n        {\n            \"id\": 623,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Test\",\n            \"cnam\": \"User,Test\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 91,\n            \"direction\": \"inbound\",\n            \"talk_time\": 83,\n            \"ring_time\": 5,\n            \"hold_time\": 3,\n            \"wait_time\": 5000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Severna Park\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21202\",\n            \"called_at\": \"2020-04-13 12:23 PM -04:00\",\n            \"unix_time\": 1586795016,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586792867.965173,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 430.5,\n            \"billed_at\": \"2020-04-13T16:25:10\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T12:23:36Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"12PM\",\n            \"ga\": {\n                \"cid\": \"1.623\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.2847,\n            \"longitude\": -76.6205,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T16:23:45Z\",\n                    \"end_at\": \"2020-04-13T16:25:08Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 78,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": null,\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 83,\n                    \"connect_duration\": 83\n                },\n                {\n                    \"started_at\": \"2020-04-13T16:23:36Z\",\n                    \"end_at\": \"2020-04-13T16:25:07Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": \"+13330004444\",\n                    \"from\": \"+12512862740\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 64,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"callee\",\n                    \"from_carrier\": \"Verizon Wireless\",\n                    \"from_connection\": \"mobile\",\n                    \"to_carrier\": \"Twilio\",\n                    \"to_connection\": \"voip\",\n                    \"duration\": 92,\n                    \"connect_duration\": 91\n                }\n            ]\n        },\n        {\n            \"id\": 622,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Test\",\n            \"cnam\": \"User,Test\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 64,\n            \"direction\": \"inbound\",\n            \"talk_time\": 57,\n            \"ring_time\": 4,\n            \"hold_time\": 3,\n            \"wait_time\": 4000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Severna Park\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21202\",\n            \"called_at\": \"2020-04-13 11:28 AM -04:00\",\n            \"unix_time\": 1586791698,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586793563.8557801,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 430.5,\n            \"billed_at\": \"2020-04-13T15:29:24\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T11:28:18Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"11AM\",\n            \"ga\": {\n                \"cid\": \"1.622\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.2847,\n            \"longitude\": -76.6205,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T15:28:26Z\",\n                    \"end_at\": \"2020-04-13T15:29:23Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 38,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"callee\",\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 57,\n                    \"connect_duration\": 57\n                },\n                {\n                    \"started_at\": \"2020-04-13T15:28:18Z\",\n                    \"end_at\": \"2020-04-13T15:29:22Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": \"+13330004444\",\n                    \"from\": \"+12512862740\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": null,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": null,\n                    \"from_carrier\": \"Verizon Wireless\",\n                    \"from_connection\": \"mobile\",\n                    \"to_carrier\": \"Twilio\",\n                    \"to_connection\": \"voip\",\n                    \"duration\": null,\n                    \"connect_duration\": 64\n                }\n            ]\n        },\n        {\n            \"id\": 621,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Test\",\n            \"cnam\": \"User,Test\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 66,\n            \"direction\": \"inbound\",\n            \"talk_time\": 38,\n            \"ring_time\": 20,\n            \"hold_time\": 8,\n            \"wait_time\": 20000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Severna Park\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21202\",\n            \"called_at\": \"2020-04-13 11:26 AM -04:00\",\n            \"unix_time\": 1586791609,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586793475.8501801,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 430.5,\n            \"billed_at\": \"2020-04-13T15:27:56\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T11:26:49Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"11AM\",\n            \"ga\": {\n                \"cid\": \"1.621\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.2847,\n            \"longitude\": -76.6205,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T15:27:14Z\",\n                    \"end_at\": \"2020-04-13T15:27:52Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": null,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": null,\n                    \"from_carrier\": null,\n                    \"from_connection\": null,\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 38,\n                    \"connect_duration\": 38\n                },\n                {\n                    \"started_at\": \"2020-04-13T15:26:49Z\",\n                    \"end_at\": \"2020-04-13T15:27:55Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": \"+13330004444\",\n                    \"from\": \"+12512862740\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 563,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"callee\",\n                    \"from_carrier\": \"Verizon Wireless\",\n                    \"from_connection\": \"mobile\",\n                    \"to_carrier\": \"Twilio\",\n                    \"to_connection\": \"voip\",\n                    \"duration\": 65,\n                    \"connect_duration\": 66\n                }\n            ]\n        },\n        {\n            \"id\": 620,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Severna Park, MD\",\n            \"cnam\": \"Severna Park, MD\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 17,\n            \"direction\": \"inbound\",\n            \"talk_time\": 0,\n            \"ring_time\": 17,\n            \"hold_time\": 0,\n            \"wait_time\": 11000,\n            \"parent_id\": null,\n            \"email\": null,\n            \"street\": null,\n            \"city\": \"\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"\",\n            \"called_at\": \"2020-04-13 11:21 AM -04:00\",\n            \"unix_time\": 1586791301,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"hangup\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586791918.719323,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 215.25,\n            \"billed_at\": \"2020-04-13T15:21:59\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"915\",\n                \"0174\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 915-0174\",\n            \"alternative_number\": \"2512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T11:21:41Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"hangup\",\n            \"status\": \"hangup\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"11AM\",\n            \"ga\": {\n                \"cid\": \"1.620\"\n            },\n            \"tag_list\": [],\n            \"latitude\": 38.9525,\n            \"longitude\": -76.7012,\n            \"extended_lookup_on\": true,\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T15:21:41Z\",\n                    \"end_at\": \"2020-04-13T15:21:58Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": \"+13330004444\",\n                    \"from\": \"+12512862740\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 102,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"caller\",\n                    \"from_carrier\": \"Verizon Wireless\",\n                    \"from_connection\": \"mobile\",\n                    \"to_carrier\": \"Twilio\",\n                    \"to_connection\": \"voip\",\n                    \"duration\": 17,\n                    \"connect_duration\": 17\n                }\n            ]\n        }\n    ],\n    \"sort\": [\n        {\n            \"unix_time\": {\n                \"order\": \"desc\",\n                \"missing\": \"_last\"\n            }\n        }\n    ],\n    \"total_entries\": 616,\n    \"total_pages\": 62,\n    \"per_page\": 10,\n    \"stats\": {},\n    \"after\": \"MTxxxxx\",\n    \"next_page\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls?after=MTUxxxxx\"\n}"}],"_postman_id":"58876022-1920-4796-9361-13547b418234"},{"name":"search activities","event":[{"listen":"test","script":{"id":"a76338b8-2405-45ba-a5d1-a117bed361f5","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"calls is an array\"] = Array.isArray(jsonData.calls);"],"type":"text/javascript"}}],"id":"2297d53c-bd8e-4c47-91fa-aa4958ef62cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/search.json","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>no</td>\n<td>search string to look for messages with specific callerid, caller_number, called_number, source name, etc.</td>\n</tr>\n<tr>\n<td>page</td>\n<td>no</td>\n<td>the page number</td>\n</tr>\n<tr>\n<td>per_page</td>\n<td>no</td>\n<td>the number of items per page, defaults to 10</td>\n</tr>\n<tr>\n<td>start_date</td>\n<td>no</td>\n<td>the start date for the search (YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td>end_date</td>\n<td>no</td>\n<td>the end date for the search (YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td>time_duration</td>\n<td>no</td>\n<td>instead of a start_date and end_date, you can request a range. for example, last6hours, last7days, last2weeks, last3months, yesterday, today, thisweek, thismonth, lastweek, etc. the duration is limited to ~3 months of data.</td>\n</tr>\n<tr>\n<td>start_day</td>\n<td>no</td>\n<td>used with time_duration and weeks to denote the first day of the week. for example, start_day=Sunday. the default is Monday</td>\n</tr>\n<tr>\n<td>direction[]</td>\n<td>no</td>\n<td>you may optionally filter the type of call/activity from the endpoint by including multiple parameters direction[] which URL encoded woudl be direction%5B%5D= and has the following options: inbound,outbound,msg_inbound,msg_outbound,form</td>\n</tr>\n<tr>\n<td>limit_fields[]</td>\n<td>no</td>\n<td>only return specific fields of interest from the API</td>\n</tr>\n<tr>\n<td>all</td>\n<td>no</td>\n<td>if set to 1, returns results agency-wide instead of account-wide</td>\n</tr>\n<tr>\n<td>stats</td>\n<td>no</td>\n<td>if set to 'on' return property stats that includes useful statistics regarding minutes, talk_time, ring_time, hold_time (i.e. count, total, mean, min, max, standard deviation)</td>\n</tr>\n<tr>\n<td>with_time</td>\n<td>no</td>\n<td>set to 1 to enable filtering with time</td>\n</tr>\n<tr>\n<td>contact_number</td>\n<td>no</td>\n<td>prefixed based searching and filtering by the contact phone number</td>\n</tr>\n</tbody>\n</table>\n</div><p><em><strong>example</strong></em>\nfor example to pull back the list of calls from 2015-01-01 to 2015-02-01 with only the audio and the call id</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -XPOST -u$key:$sec 'https://api.calltrackingmetrics.com/api/v1/accounts/{{your-account-id}}/calls/search.json'\n-d '{\"start_date\": \"2015-01-01\", \"end_date\":\"2015-02-01\",\"limit_fields\": [\"audio\", \"id\"]}'\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"calls\":[{\"id\":1ddddddddd},{\"id\":2ddddddddd},{\"id\":3dddddddddd},{\"id\":4ddddddddd},{\"id\":5ddddddddd},{\"audio\":\"https://calltrackingmetrics.com/api/v1/accounts/{{your-account-id}}/calls/CAddddddddddd/recording\",\"id\":2dddddddd},{\"id\":21dddddd},{\"id\":212ddddd},{\"id\":2ddddddd},{\"id\":2ddddddd}],\"page\":1,\"total_entries\":1168,\"total_pages\":117,\"per_page\":10,\"stats\":{},\"next_page\":\"https://api.calltrackingmetrics.com/api/v1/accounts/{{your-account-id}}/calls.json?end_date=2015-02-01&amp;limit_fields%5B%5D=audio&amp;limit_fields%5B%5D=id&amp;page=2&amp;start_date=2015-01-01\"}\n</code></pre>\n<p><em><strong>Query Object</strong></em></p>\n<p>The query object is included in the request body allows you to specify additional field-level filtering of the calls (for use with the filter parameter listed above).  For example, tracking_number:\"14105555555\" would filter to only show calls involving the tracking number +1-410-555-5555</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>tracking_number</td>\n<td>tracking number used, as a string of digits</td>\n</tr>\n<tr>\n<td>source</td>\n<td>the tracking source name</td>\n</tr>\n<tr>\n<td>caller_number</td>\n<td>contact phone number, as a string of digits</td>\n</tr>\n<tr>\n<td>status</td>\n<td>the call status, for example: in progress, no answer, answered, hangup, completed</td>\n</tr>\n</tbody>\n</table>\n</div><p><em><strong>sorting activities</strong></em>\nsorting can be done by using the parameters:</p>\n<p>order which allows you to sort the calls by the following dimensions:\nmetrics - the time of the call\ncaller - the name of the caller\nsource - the name of the source</p>\n<p><em><strong>paging through activity data</strong></em>\nThe response body for each request will include an after property when more records exists after the current record set.  Include this after token in the next request to get another page of data.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","search.json"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"c39d70cd-1b17-467a-9e63-1350ce728ae9","name":"search (calls/texts/chats/forms)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/search.json"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"calls\": [\n        {\n            \"id\": 629,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Super Tester\",\n            \"cnam\": \"Baltimore, MD\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 45,\n            \"direction\": \"inbound\",\n            \"talk_time\": 38,\n            \"ring_time\": 4,\n            \"hold_time\": 3,\n            \"wait_time\": 4000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Test City\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21201\",\n            \"called_at\": \"2020-04-13 04:52 PM -04:00\",\n            \"unix_time\": 1586811174,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586814131.1483169,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 215.25,\n            \"billed_at\": \"2020-04-13T20:53:42\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T16:52:54Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"04PM\",\n            \"ga\": {\n                \"cid\": \"1.629\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.242,\n            \"longitude\": -76.6771,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T20:53:02Z\",\n                    \"end_at\": \"2020-04-13T20:53:40Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 84,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"callee\",\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 39,\n                    \"connect_duration\": 38\n                }\n            ]\n        },\n        {\n            \"id\": 628,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Test\",\n            \"cnam\": \"User,Test\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 7,\n            \"direction\": \"inbound\",\n            \"talk_time\": 0,\n            \"ring_time\": 7,\n            \"hold_time\": 0,\n            \"wait_time\": 1000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Severna Park\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21202\",\n            \"called_at\": \"2020-04-13 04:50 PM -04:00\",\n            \"unix_time\": 1586811001,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"hangup\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586811609.076177,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 215.25,\n            \"billed_at\": \"2020-04-13T20:50:09\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T16:50:01Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"hangup\",\n            \"status\": \"hangup\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"04PM\",\n            \"ga\": {\n                \"cid\": \"1.628\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.2847,\n            \"longitude\": -76.6205,\n            \"extended_lookup_on\": true,\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T20:50:01Z\",\n                    \"end_at\": \"2020-04-13T20:50:08Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": \"+13330004444\",\n                    \"from\": \"+12512862740\",\n                    \"status\": \"completed\",\n                    \"tags\": \"silence\",\n                    \"pdd_ms\": 57,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"caller\",\n                    \"from_carrier\": \"Verizon Wireless\",\n                    \"from_connection\": \"mobile\",\n                    \"to_carrier\": \"Twilio\",\n                    \"to_connection\": \"voip\",\n                    \"duration\": 7,\n                    \"connect_duration\": 7\n                }\n            ]\n        },\n        {\n            \"id\": 627,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Super Tester\",\n            \"cnam\": \"Baltimore, MD\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 66,\n            \"direction\": \"inbound\",\n            \"talk_time\": 60,\n            \"ring_time\": 3,\n            \"hold_time\": 3,\n            \"wait_time\": 3000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Test City\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21201\",\n            \"called_at\": \"2020-04-13 04:49 PM -04:00\",\n            \"unix_time\": 1586810987,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586814131.180714,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 430.5,\n            \"billed_at\": \"2020-04-13T20:50:56\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T16:49:47Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"04PM\",\n            \"ga\": {\n                \"cid\": \"1.627\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.242,\n            \"longitude\": -76.6771,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T20:49:54Z\",\n                    \"end_at\": \"2020-04-13T20:50:54Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 38,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"callee\",\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 60,\n                    \"connect_duration\": 60\n                }\n            ]\n        },\n        {\n            \"id\": 626,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Super Tester\",\n            \"cnam\": \"Baltimore, MD\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 64,\n            \"direction\": \"inbound\",\n            \"talk_time\": 58,\n            \"ring_time\": 3,\n            \"hold_time\": 3,\n            \"wait_time\": 3000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Test City\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21201\",\n            \"called_at\": \"2020-04-13 04:44 PM -04:00\",\n            \"unix_time\": 1586810680,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586814131.2266922,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 430.5,\n            \"billed_at\": \"2020-04-13T20:45:47\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T16:44:40Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"04PM\",\n            \"ga\": {\n                \"cid\": \"1.626\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.242,\n            \"longitude\": -76.6771,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T20:44:47Z\",\n                    \"end_at\": \"2020-04-13T20:45:45Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": null,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": null,\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 58,\n                    \"connect_duration\": 58\n                }\n            ]\n        },\n        {\n            \"id\": 625,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Super Tester\",\n            \"cnam\": \"Baltimore, MD\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 61,\n            \"direction\": \"inbound\",\n            \"talk_time\": 54,\n            \"ring_time\": 4,\n            \"hold_time\": 3,\n            \"wait_time\": 4000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Test City\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21201\",\n            \"called_at\": \"2020-04-13 04:36 PM -04:00\",\n            \"unix_time\": 1586810199,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586812060.836095,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 430.5,\n            \"billed_at\": \"2020-04-13T20:37:42\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T16:36:39Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CA5a5414516bb29d1c938f28619c791756/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"04PM\",\n            \"ga\": {\n                \"cid\": \"1.625\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.242,\n            \"longitude\": -76.6771,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T20:36:46Z\",\n                    \"end_at\": \"2020-04-13T20:37:40Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 189,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"callee\",\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 54,\n                    \"connect_duration\": 54\n                }\n            ]\n        },\n        {\n            \"id\": 624,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Super Tester\",\n            \"cnam\": \"Baltimore, MD\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 264,\n            \"direction\": \"inbound\",\n            \"talk_time\": 258,\n            \"ring_time\": 4,\n            \"hold_time\": 2,\n            \"wait_time\": 4000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Test City\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21201\",\n            \"called_at\": \"2020-04-13 04:24 PM -04:00\",\n            \"unix_time\": 1586809445,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586811511.0292811,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 1076.25,\n            \"billed_at\": \"2020-04-13T20:28:33\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T16:24:05Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CA3831dae6efdcfe0a6a706ea5bfdae25d/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"04PM\",\n            \"ga\": {\n                \"cid\": \"1.624\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.242,\n            \"longitude\": -76.6771,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T20:24:13Z\",\n                    \"end_at\": \"2020-04-13T20:28:31Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": null,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": null,\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": null,\n                    \"connect_duration\": 258\n                }\n            ]\n        },\n        {\n            \"id\": 623,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Test\",\n            \"cnam\": \"User,Test\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 91,\n            \"direction\": \"inbound\",\n            \"talk_time\": 83,\n            \"ring_time\": 5,\n            \"hold_time\": 3,\n            \"wait_time\": 5000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Severna Park\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21202\",\n            \"called_at\": \"2020-04-13 12:23 PM -04:00\",\n            \"unix_time\": 1586795016,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586792867.965173,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 430.5,\n            \"billed_at\": \"2020-04-13T16:25:10\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T12:23:36Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"12PM\",\n            \"ga\": {\n                \"cid\": \"1.623\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.2847,\n            \"longitude\": -76.6205,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T16:23:45Z\",\n                    \"end_at\": \"2020-04-13T16:25:08Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 78,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": null,\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 83,\n                    \"connect_duration\": 83\n                },\n                {\n                    \"started_at\": \"2020-04-13T16:23:36Z\",\n                    \"end_at\": \"2020-04-13T16:25:07Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": \"+13330004444\",\n                    \"from\": \"+12512862740\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 64,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"callee\",\n                    \"from_carrier\": \"Verizon Wireless\",\n                    \"from_connection\": \"mobile\",\n                    \"to_carrier\": \"Twilio\",\n                    \"to_connection\": \"voip\",\n                    \"duration\": 92,\n                    \"connect_duration\": 91\n                }\n            ]\n        },\n        {\n            \"id\": 622,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Test\",\n            \"cnam\": \"User,Test\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 64,\n            \"direction\": \"inbound\",\n            \"talk_time\": 57,\n            \"ring_time\": 4,\n            \"hold_time\": 3,\n            \"wait_time\": 4000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Severna Park\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21202\",\n            \"called_at\": \"2020-04-13 11:28 AM -04:00\",\n            \"unix_time\": 1586791698,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586793563.8557801,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 430.5,\n            \"billed_at\": \"2020-04-13T15:29:24\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T11:28:18Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"11AM\",\n            \"ga\": {\n                \"cid\": \"1.622\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.2847,\n            \"longitude\": -76.6205,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T15:28:26Z\",\n                    \"end_at\": \"2020-04-13T15:29:23Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 38,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"callee\",\n                    \"from_carrier\": null,\n                    \"from_connection\": \"twilio_sdk\",\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 57,\n                    \"connect_duration\": 57\n                },\n                {\n                    \"started_at\": \"2020-04-13T15:28:18Z\",\n                    \"end_at\": \"2020-04-13T15:29:22Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": \"+13330004444\",\n                    \"from\": \"+12512862740\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": null,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": null,\n                    \"from_carrier\": \"Verizon Wireless\",\n                    \"from_connection\": \"mobile\",\n                    \"to_carrier\": \"Twilio\",\n                    \"to_connection\": \"voip\",\n                    \"duration\": null,\n                    \"connect_duration\": 64\n                }\n            ]\n        },\n        {\n            \"id\": 621,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Test\",\n            \"cnam\": \"User,Test\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 66,\n            \"direction\": \"inbound\",\n            \"talk_time\": 38,\n            \"ring_time\": 20,\n            \"hold_time\": 8,\n            \"wait_time\": 20000,\n            \"parent_id\": null,\n            \"email\": \"\",\n            \"street\": \"\",\n            \"city\": \"Severna Park\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"21202\",\n            \"called_at\": \"2020-04-13 11:26 AM -04:00\",\n            \"unix_time\": 1586791609,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"answered\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586793475.8501801,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 430.5,\n            \"billed_at\": \"2020-04-13T15:27:56\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"286\",\n                \"2740\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 286-2740\",\n            \"alternative_number\": \"+12512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T11:26:49Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"answered\",\n            \"status\": \"answered\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"11AM\",\n            \"ga\": {\n                \"cid\": \"1.621\"\n            },\n            \"tag_list\": [],\n            \"notes\": \"\",\n            \"latitude\": 39.2847,\n            \"longitude\": -76.6205,\n            \"extended_lookup_on\": true,\n            \"agent_id\": \"USxxxxx\",\n            \"agent\": {\n                \"name\": \"MOBILE Test Test\",\n                \"email\": \"user@test.app\",\n                \"id\": \"USxxxxx\"\n            },\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T15:27:14Z\",\n                    \"end_at\": \"2020-04-13T15:27:52Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": null,\n                    \"from\": \"client:agent_2\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": null,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": null,\n                    \"from_carrier\": null,\n                    \"from_connection\": null,\n                    \"to_carrier\": null,\n                    \"to_connection\": null,\n                    \"duration\": 38,\n                    \"connect_duration\": 38\n                },\n                {\n                    \"started_at\": \"2020-04-13T15:26:49Z\",\n                    \"end_at\": \"2020-04-13T15:27:55Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": \"+13330004444\",\n                    \"from\": \"+12512862740\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 563,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"callee\",\n                    \"from_carrier\": \"Verizon Wireless\",\n                    \"from_connection\": \"mobile\",\n                    \"to_carrier\": \"Twilio\",\n                    \"to_connection\": \"voip\",\n                    \"duration\": 65,\n                    \"connect_duration\": 66\n                }\n            ]\n        },\n        {\n            \"id\": 620,\n            \"sid\": \"CAxxxxx\",\n            \"account_id\": 12345,\n            \"name\": \"Severna Park, MD\",\n            \"cnam\": \"Severna Park, MD\",\n            \"search\": \"\",\n            \"referrer\": \"\",\n            \"location\": \"\",\n            \"source\": \"Website\",\n            \"source_id\": 1,\n            \"source_sid\": \"TSxxxxx\",\n            \"tgid\": 1,\n            \"likelihood\": null,\n            \"duration\": 17,\n            \"direction\": \"inbound\",\n            \"talk_time\": 0,\n            \"ring_time\": 17,\n            \"hold_time\": 0,\n            \"wait_time\": 11000,\n            \"parent_id\": null,\n            \"email\": null,\n            \"street\": null,\n            \"city\": \"\",\n            \"state\": \"MD\",\n            \"country\": \"US\",\n            \"postal_code\": \"\",\n            \"called_at\": \"2020-04-13 11:21 AM -04:00\",\n            \"unix_time\": 1586791301,\n            \"tracking_number_id\": 5,\n            \"tracking_number_sid\": \"TPxxxxx\",\n            \"tracking_number\": \"+13330004444\",\n            \"tracking_label\": \"\",\n            \"dial_status\": \"hangup\",\n            \"is_new_caller\": false,\n            \"indexed_at\": 1586791918.719323,\n            \"inbound_rate_center\": {\n                \"country\": \"US\",\n                \"prefix\": \"1\",\n                \"tollfree\": false\n            },\n            \"billed_amount\": 215.25,\n            \"billed_at\": \"2020-04-13T15:21:59\",\n            \"caller_number_split\": [\n                \"1\",\n                \"251\",\n                \"915\",\n                \"0174\"\n            ],\n            \"contact_number\": \"+12512862740\",\n            \"excluded\": false,\n            \"redacted\": false,\n            \"tracking_number_format\": \"(333) 000-4444\",\n            \"caller_number_format\": \"(251) 915-0174\",\n            \"alternative_number\": \"2512862740\",\n            \"caller_number_complete\": \"+12512862740\",\n            \"caller_number_bare\": \"2512862740\",\n            \"tracking_number_bare\": \"3330004444\",\n            \"caller_number\": \"+12512862740\",\n            \"visitor\": false,\n            \"call_path\": [\n                {\n                    \"route_name\": \"Test\",\n                    \"route_id\": \"CQxxxxx\",\n                    \"route_type\": \"CallQueue\",\n                    \"started_at\": \"2020-04-13T11:21:41Z\"\n                }\n            ],\n            \"left_talk_time\": 0,\n            \"right_talk_time\": 0,\n            \"transfers\": [],\n            \"call_status\": \"hangup\",\n            \"status\": \"hangup\",\n            \"spotted\": [],\n            \"salesforce\": {},\n            \"callbacks\": [],\n            \"emails\": [],\n            \"day\": \"Monday\",\n            \"month\": \"April\",\n            \"hour\": \"11AM\",\n            \"ga\": {\n                \"cid\": \"1.620\"\n            },\n            \"tag_list\": [],\n            \"latitude\": 38.9525,\n            \"longitude\": -76.7012,\n            \"extended_lookup_on\": true,\n            \"legs\": [\n                {\n                    \"started_at\": \"2020-04-13T15:21:41Z\",\n                    \"end_at\": \"2020-04-13T15:21:58Z\",\n                    \"sid\": \"CAxxxxx\",\n                    \"to\": \"+13330004444\",\n                    \"from\": \"+12512862740\",\n                    \"status\": \"completed\",\n                    \"tags\": \"\",\n                    \"pdd_ms\": 102,\n                    \"direction\": \"inbound\",\n                    \"disconnected_by\": \"caller\",\n                    \"from_carrier\": \"Verizon Wireless\",\n                    \"from_connection\": \"mobile\",\n                    \"to_carrier\": \"Twilio\",\n                    \"to_connection\": \"voip\",\n                    \"duration\": 17,\n                    \"connect_duration\": 17\n                }\n            ]\n        }\n    ],\n    \"page\": 1,\n    \"sort\": [\n        {\n            \"unix_time\": {\n                \"order\": \"desc\",\n                \"missing\": \"_last\"\n            }\n        }\n    ],\n    \"total_entries\": 616,\n    \"total_pages\": 62,\n    \"per_page\": 10,\n    \"stats\": {},\n    \"after\": \"MTxxxxx\",\n    \"next_page\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls?after=MTUxxxxx&page=2\"\n}"}],"_postman_id":"2297d53c-bd8e-4c47-91fa-aa4958ef62cb"},{"name":"call transcriptions","event":[{"listen":"test","script":{"id":"a76338b8-2405-45ba-a5d1-a117bed361f5","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"calls is an array\"] = Array.isArray(jsonData.calls);"],"type":"text/javascript"}}],"id":"8c5a93f0-b9d2-46be-9b80-2b7f066631e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/transcription.json","description":"<p>Request the transcribed text of a call recording.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","transcription.json"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ad222d83-dd35-4ecb-bc2e-40af8616247c","name":"call transcriptions","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/transcription.json"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"callid\": 12376,\n    \"versions\": [\n        48309386\n    ],\n    \"text\": \"Test User: How may I help you?\\nTest Client: Thank you so much. All right. Bye.\\nTest User: You're welcome. Take care. Bye.\",\n    \"sentiment\": 2,\n    \"outline\": [\n        {\n            \"vendor\": \"g\",\n            \"speaker\": \"Test User\",\n            \"gender\": \"U\",\n            \"text\": \"How may I help you?\",\n            \"offset\": 0,\n            \"channel\": 2,\n            \"s\": 0,\n            \"e\": 2.5,\n            \"start_fmt\": \"00:00:00\",\n            \"end_fmt\": \"00:00:02.50\",\n            \"confidence\": 0.8171578645706177,\n            \"words\": [\n                [\n                    \"How\",\n                    0.9128385782241821,\n                    0,\n                    0.1\n                ],\n                [\n                    \"may\",\n                    0.7635031342506409,\n                    0.1,\n                    0.2\n                ],\n                [\n                    \"I\",\n                    0.719038188457489,\n                    0.2,\n                    0.2\n                ],\n                [\n                    \"help\",\n                    0.7264193296432495,\n                    0.2,\n                    0.4\n                ],\n                [\n                    \"you?\",\n                    0.7635031342506409,\n                    0.4,\n                    0.5\n                ]\n            ]\n        },\n        {\n            \"vendor\": \"g\",\n            \"speaker\": \"Test Client\",\n            \"gender\": \"U\",\n            \"text\": \" Thank you so much. All right. Bye.\",\n            \"offset\": 0.5,\n            \"channel\": 1,\n            \"s\": 0.5,\n            \"e\": 1.7,\n            \"start_fmt\": \"00:00:00.50\",\n            \"end_fmt\": \"00:00:01.70\",\n            \"confidence\": 0.8944110870361328,\n            \"words\": [\n                [\n                    \"Thank\",\n                    0.9128385782241821,\n                    0.5,\n                    0.7\n                ],\n                [\n                    \"you\",\n                    0.9128385782241821,\n                    0.7,\n                    0.7\n                ],\n                [\n                    \"so\",\n                    0.9128385782241821,\n                    0.7,\n                    0.8\n                ],\n                [\n                    \"much.\",\n                    0.9128385782241821,\n                    0.8,\n                    1.4\n                ],\n                [\n                    \"All\",\n                    0.9128385782241821,\n                    2.4,\n                    2.4\n                ],\n                [\n                    \"right.\",\n                    0.9128385782241821,\n                    2.4,\n                    2.5\n                ],\n                [\n                    \"Bye.\",\n                    0.7285635471343994,\n                    2.5,\n                    2.8\n                ]\n            ]\n        },\n        {\n            \"vendor\": \"g\",\n            \"speaker\": \"Test User\",\n            \"gender\": \"U\",\n            \"text\": \" You're welcome. Take care. Bye.\",\n            \"offset\": 2.8,\n            \"channel\": 2,\n            \"s\": 2.8,\n            \"e\": 4.3,\n            \"start_fmt\": \"00:00:02.80\",\n            \"end_fmt\": \"00:00:04.30\",\n            \"confidence\": 0.9075084328651428,\n            \"words\": [\n                [\n                    \"You're\",\n                    0.9128385782241821,\n                    2.8,\n                    3.1\n                ],\n                [\n                    \"welcome.\",\n                    0.9128385782241821,\n                    3.1,\n                    3.5\n                ],\n                [\n                    \"Take\",\n                    0.9128385782241821,\n                    3.6,\n                    3.7\n                ],\n                [\n                    \"care.\",\n                    0.9128385782241821,\n                    3.7,\n                    3.9\n                ],\n                [\n                    \"Bye.\",\n                    0.8808578848838806,\n                    4.1,\n                    4.3\n                ]\n            ]\n        }\n    ]\n}"}],"_postman_id":"8c5a93f0-b9d2-46be-9b80-2b7f066631e5"},{"name":"activity details","id":"bb9be618-b3e6-4ffb-95f4-edf87821f0ee","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n</tbody>\n</table>\n</div><p>This response from this endpoint includes a link to the call transcription, if available.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"98d0cdee-cc2b-42f4-bdc0-71bb89cf5eea","name":"activity details","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"id\": 629,\n  \"sid\": \"CAxxxxx\",\n  \"account_id\": 1,\n  \"name\": \"Super Tester\",\n  \"cnam\": \"Baltimore, MD\",\n  \"search\": \"\",\n  \"referrer\": \"\",\n  \"location\": \"\",\n  \"source\": \"Website\",\n  \"source_id\": 1,\n  \"source_sid\": \"TSxxxx\",\n  \"tgid\": 1,\n  \"likelihood\": null,\n  \"duration\": 45,\n  \"direction\": \"inbound\",\n  \"talk_time\": 38,\n  \"ring_time\": 4,\n  \"hold_time\": 3,\n  \"wait_time\": 4000,\n  \"parent_id\": null,\n  \"email\": \"\",\n  \"street\": \"\",\n  \"city\": \"Test City\",\n  \"state\": \"MD\",\n  \"country\": \"US\",\n  \"postal_code\": \"21201\",\n  \"called_at\": \"2020-04-13 04:52 PM -04:00\",\n  \"unix_time\": 1586811174,\n  \"tracking_number_id\": 5,\n  \"tracking_number_sid\": \"TPxxxxx\",\n  \"tracking_number\": \"+13330004444\",\n  \"tracking_label\": \"\",\n  \"dial_status\": \"answered\",\n  \"is_new_caller\": false,\n  \"indexed_at\": 1587407544.7199051,\n  \"inbound_rate_center\": {\n    \"country\": \"US\",\n    \"prefix\": \"1\",\n    \"tollfree\": false\n  },\n  \"billed_amount\": 215.25,\n  \"billed_at\": \"2020-04-13T20:53:42\",\n  \"caller_number_split\": [\n    \"1\",\n    \"251\",\n    \"286\",\n    \"2740\"\n  ],\n  \"contact_number\": \"+12512862740\",\n  \"excluded\": false,\n  \"redacted\": false,\n  \"tracking_number_format\": \"(333) 000-4444\",\n  \"caller_number_format\": \"(251) 286-2740\",\n  \"alternative_number\": \"+12512862740\",\n  \"caller_number_complete\": \"+12512862740\",\n  \"caller_number_bare\": \"2512862740\",\n  \"tracking_number_bare\": \"3330004444\",\n  \"caller_number\": \"+12512862740\",\n  \"visitor\": false,\n  \"call_path\": [\n    {\n      \"route_name\": \"Test\",\n      \"route_id\": \"CQxxxxx\",\n      \"route_type\": \"CallQueue\",\n      \"started_at\": \"2020-04-13T16:52:54Z\"\n    }\n  ],\n  \"left_talk_time\": 0,\n  \"right_talk_time\": 0,\n  \"transfers\": [],\n  \"call_status\": \"answered\",\n  \"status\": \"answered\",\n  \"spotted\": [],\n  \"salesforce\": {},\n  \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n  \"callbacks\": [],\n  \"emails\": [],\n  \"day\": \"Monday\",\n  \"month\": \"April\",\n  \"hour\": \"04PM\",\n  \"ga\": {\n    \"cid\": \"1.629\"\n  },\n  \"tag_list\": [],\n  \"notes\": \"\",\n  \"latitude\": 39.242,\n  \"longitude\": -76.6771,\n  \"extended_lookup_on\": true,\n  \"agent_id\": \"USxxxxx\",\n  \"agent\": {\n    \"name\": \"MOBILE Test Test\",\n    \"email\": \"user@test.app\",\n    \"id\": \"USxxxxx\",\n    \"pic_url\": \"/api/v1/accounts/1/users/USxxxxx/pic_url\"\n  },\n  \"legs\": [\n    {\n      \"started_at\": \"2020-04-13T20:53:02Z\",\n      \"end_at\": \"2020-04-13T20:53:40Z\",\n      \"sid\": \"CAxxxxx\",\n      \"to\": null,\n      \"from\": \"client:agent_2\",\n      \"status\": \"completed\",\n      \"tags\": \"\",\n      \"pdd_ms\": 84,\n      \"direction\": \"inbound\",\n      \"disconnected_by\": \"callee\",\n      \"from_carrier\": null,\n      \"from_connection\": \"twilio_sdk\",\n      \"to_carrier\": null,\n      \"to_connection\": null,\n      \"duration\": 39,\n      \"connect_duration\": 38\n    }\n  ],\n  \"caller\": {\n    \"uid\": 1,\n    \"id\": \"1.12512862740\",\n    \"account_id\": 1,\n    \"agency_id\": 2,\n    \"name\": \"Super Tester\",\n    \"email\": \"\",\n    \"number\": \"+12512862740\",\n    \"alternative_number\": \"+12512862740\",\n    \"phone_type\": null,\n    \"caller_type\": null,\n    \"address\": {\n      \"street\": \"\",\n      \"city\": \"Test City\",\n      \"state\": \"MD\",\n      \"country\": \"US\",\n      \"postal_code\": \"21201\"\n    },\n    \"notes\": [],\n    \"notes_prev_offset\": 1587409446,\n    \"notes_next_offset\": 0\n  }\n}"}],"_postman_id":"bb9be618-b3e6-4ffb-95f4-edf87821f0ee"},{"name":"modify activity details","id":"e811dbaa-67e4-40d3-b938-5f1aa6049de6","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{ \"custom_fields\": {\n         \"modelo\": \"notMINI\" } }"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/modify","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>name of caller</td>\n</tr>\n<tr>\n<td>email</td>\n<td>no</td>\n<td>email of caller</td>\n</tr>\n<tr>\n<td>alternative_number</td>\n<td>no</td>\n<td>alternate number for caller (ex. +14105551212)</td>\n</tr>\n<tr>\n<td>street</td>\n<td>no</td>\n<td>street address of caller</td>\n</tr>\n<tr>\n<td>city</td>\n<td>no</td>\n<td>city from caller address</td>\n</tr>\n<tr>\n<td>state</td>\n<td>no</td>\n<td>state from caller address</td>\n</tr>\n<tr>\n<td>country</td>\n<td>no</td>\n<td>country of caller address</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>no</td>\n<td>postal code from caller address</td>\n</tr>\n<tr>\n<td>tag_list</td>\n<td>no</td>\n<td>tags from pre-defined list, comma separated</td>\n</tr>\n<tr>\n<td>custom_fields</td>\n<td>no</td>\n<td>nested object of custom attributes using the api name provided.</td>\n</tr>\n<tr>\n<td>triggers</td>\n<td>no</td>\n<td>by default after each request we'll execute integration and trigger tasks.  To disable these side effects pass triggers=0</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example of custom fields:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{ \"custom_fields\": { \"company\": \"Super\", \"userid\": 1881 } }\n</code></pre>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","modify"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"99c56f70-3783-4455-bfc5-f8a236ce92a3","name":"modify activity details","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"custom_fields\": {\n        \"modelo\": \"notMINI\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/modify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": true,\n  \"call\": {\n\t  \"id\": 629,\n\t  \"sid\": \"CAxxxxx\",\n\t  \"account_id\": 1,\n\t  \"name\": \"Super Tester\",\n\t  \"cnam\": \"Baltimore, MD\",\n\t  \"search\": \"\",\n\t  \"referrer\": \"\",\n\t  \"location\": \"\",\n\t  \"source\": \"Website\",\n\t  \"source_id\": 1,\n\t  \"source_sid\": \"TSxxxx\",\n\t  \"tgid\": 1,\n\t  \"likelihood\": null,\n\t  \"duration\": 45,\n\t  \"direction\": \"inbound\",\n\t  \"talk_time\": 38,\n\t  \"ring_time\": 4,\n\t  \"hold_time\": 3,\n\t  \"wait_time\": 4000,\n\t  \"parent_id\": null,\n\t  \"email\": \"\",\n\t  \"street\": \"601 Baltimore Annapolis Boulevard\",\n\t  \"city\": \"Test City\",\n\t  \"state\": \"MD\",\n\t  \"country\": \"US\",\n\t  \"postal_code\": \"21201\",\n\t  \"called_at\": \"2020-04-13 04:52 PM -04:00\",\n\t  \"unix_time\": 1586811174,\n\t  \"tracking_number_id\": 5,\n\t  \"tracking_number_sid\": \"TPxxxxx\",\n\t  \"tracking_number\": \"+13330004444\",\n\t  \"tracking_label\": \"\",\n\t  \"dial_status\": \"answered\",\n\t  \"is_new_caller\": false,\n\t  \"indexed_at\": 1587407544.7199051,\n\t  \"inbound_rate_center\": {\n\t    \"country\": \"US\",\n\t    \"prefix\": \"1\",\n\t    \"tollfree\": false\n\t  },\n\t  \"billed_amount\": 215.25,\n\t  \"billed_at\": \"2020-04-13T20:53:42\",\n\t  \"caller_number_split\": [\n\t    \"1\",\n\t    \"251\",\n\t    \"286\",\n\t    \"2740\"\n\t  ],\n\t  \"contact_number\": \"+12512862740\",\n\t  \"excluded\": false,\n\t  \"redacted\": false,\n\t  \"tracking_number_format\": \"(333) 000-4444\",\n\t  \"caller_number_format\": \"(251) 286-2740\",\n\t  \"alternative_number\": \"+12512862740\",\n\t  \"caller_number_complete\": \"+12512862740\",\n\t  \"caller_number_bare\": \"2512862740\",\n\t  \"tracking_number_bare\": \"3330004444\",\n\t  \"caller_number\": \"+12512862740\",\n\t  \"visitor\": false,\n\t  \"call_path\": [\n\t    {\n\t      \"route_name\": \"Test\",\n\t      \"route_id\": \"CQxxxxx\",\n\t      \"route_type\": \"CallQueue\",\n\t      \"started_at\": \"2020-04-13T16:52:54Z\"\n\t    }\n\t  ],\n\t  \"left_talk_time\": 0,\n\t  \"right_talk_time\": 0,\n\t  \"transfers\": [],\n\t  \"call_status\": \"answered\",\n\t  \"status\": \"answered\",\n\t  \"spotted\": [],\n\t  \"salesforce\": {},\n\t  \"custom_fields\": {\n        \"modelo\": \"notMINI\"\n      },\n\t  \"audio\": \"https://app.calltrackingmetrics.com/api/v1/accounts/1/calls/CAxxxxx/recording\",\n\t  \"callbacks\": [],\n\t  \"emails\": [],\n\t  \"day\": \"Monday\",\n\t  \"month\": \"April\",\n\t  \"hour\": \"04PM\",\n\t  \"ga\": {\n\t    \"cid\": \"1.629\"\n\t  },\n\t  \"tag_list\": [],\n\t  \"notes\": \"\",\n\t  \"latitude\": 39.242,\n\t  \"longitude\": -76.6771,\n\t  \"extended_lookup_on\": true,\n\t  \"agent_id\": \"USxxxxx\",\n\t  \"agent\": {\n\t    \"name\": \"MOBILE Test Test\",\n\t    \"email\": \"user@test.app\",\n\t    \"id\": \"USxxxxx\",\n\t    \"pic_url\": \"/api/v1/accounts/1/users/USxxxxx/pic_url\"\n\t  },\n\t  \"legs\": [\n\t    {\n\t      \"started_at\": \"2020-04-13T20:53:02Z\",\n\t      \"end_at\": \"2020-04-13T20:53:40Z\",\n\t      \"sid\": \"CAxxxxx\",\n\t      \"to\": null,\n\t      \"from\": \"client:agent_2\",\n\t      \"status\": \"completed\",\n\t      \"tags\": \"\",\n\t      \"pdd_ms\": 84,\n\t      \"direction\": \"inbound\",\n\t      \"disconnected_by\": \"callee\",\n\t      \"from_carrier\": null,\n\t      \"from_connection\": \"twilio_sdk\",\n\t      \"to_carrier\": null,\n\t      \"to_connection\": null,\n\t      \"duration\": 39,\n\t      \"connect_duration\": 38\n\t    }\n\t  ],\n\t  \"caller\": {\n\t    \"uid\": 1,\n\t    \"id\": \"1.12512862740\",\n\t    \"account_id\": 1,\n\t    \"agency_id\": 2,\n\t    \"name\": \"Super Tester\",\n\t    \"email\": \"\",\n\t    \"number\": \"+12512862740\",\n\t    \"alternative_number\": \"+12512862740\",\n\t    \"phone_type\": null,\n\t    \"caller_type\": null,\n\t    \"address\": {\n\t      \"street\": \"\",\n\t      \"city\": \"Test City\",\n\t      \"state\": \"MD\",\n\t      \"country\": \"US\",\n\t      \"postal_code\": \"21201\"\n\t    },\n\t    \"notes\": [],\n\t    \"notes_prev_offset\": 1587409446,\n\t    \"notes_next_offset\": 0\n\t  }\n\t}\n}"}],"_postman_id":"e811dbaa-67e4-40d3-b938-5f1aa6049de6"},{"name":"redact activity details","id":"b074ca30-fb56-4324-bddc-07f1259e4d54","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/redact","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n<tr>\n<td>redact_related</td>\n<td>no</td>\n<td>set to true to redact all calls matching the selected call's phone number</td>\n</tr>\n</tbody>\n</table>\n</div><p>Redaction destroys all personally identifiable information about a contact and <em>cannot be undone</em>. Use extra caution when setting redact_related to true.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","redact"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"4049f70b-5d68-4e3a-8f0f-10361aaacc2c","name":"redact activity details","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/redact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"redacted\"\n}"}],"_postman_id":"b074ca30-fb56-4324-bddc-07f1259e4d54"},{"name":"delete call recording","id":"10ddd92d-4c34-4f1f-9b45-f7827483cb32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{ \"I_Understand_That_This_Can_Not_Be_Reversed\": \"1\" }"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/delete_call_recording","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n<tr>\n<td>I_Understand_That_This_Can_Not_Be_Reversed</td>\n<td>yes</td>\n<td>set to 1 to agree that you understand this is irreversible</td>\n</tr>\n<tr>\n<td>remove_transcriptions</td>\n<td>no</td>\n<td>set to 1 to also remove transcriptions for the call if they exist</td>\n</tr>\n</tbody>\n</table>\n</div><p>Removing a call recording permanently destroys the audio recording of a call (and optionally any transcriptions for that call) and <em>cannot be undone</em>.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","delete_call_recording"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"2674ca13-306a-4c51-b62e-67595743756b","name":"delete call recording","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"I_Understand_That_This_Can_Not_Be_Reversed\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/delete_call_recording"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"queued\"\n}"}],"_postman_id":"10ddd92d-4c34-4f1f-9b45-f7827483cb32"},{"name":"delete call transcription","id":"b627af07-4991-4224-acb6-adb394f14af1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{ \"I_Understand_That_This_Can_Not_Be_Reversed\": \"1\" }"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/delete_call_transcription","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n<tr>\n<td>I_Understand_That_This_Can_Not_Be_Reversed</td>\n<td>yes</td>\n<td>set to 1 to agree that you understand this is irreversible</td>\n</tr>\n</tbody>\n</table>\n</div><p>Removing a call transcription permanently destroys the transcription of a call and <em>cannot be undone</em>. If the call audio is still available, the call could still be resubmitted for transcription.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","delete_call_transcription"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d97ee6d5-23b6-48de-bd97-edb9efc750ab","name":"delete call transcription","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"I_Understand_That_This_Can_Not_Be_Reversed\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/delete_call_transcription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"queued\"\n}"}],"_postman_id":"b627af07-4991-4224-acb6-adb394f14af1"},{"name":"add comment","id":"4f851c09-ed06-4e4b-8792-9b10cb201d39","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"note\": \"hello, world!\",\n\t\"user\": \"agent@example.com\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/add_comment","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n<tr>\n<td>note</td>\n<td>yes</td>\n<td>the note/comment to add to a call</td>\n</tr>\n<tr>\n<td>user</td>\n<td>no</td>\n<td>the user to assign to the note. if not specified the user assigned to the call will be used. you can specify the user with either an email address or ctm user id</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"example-bodies\">example bodies</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"note\": \"hello, world!\",\n    \"user\": \"agent@example.com\"\n}\n\n{\n    \"note\": \"yet another note.\",\n    \"user\": \"USR043E46722529BCB5B49425FB5DC45EAF\"\n}\n</code></pre>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","add_comment"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"e60678b6-e47e-4073-a63a-cabbf9e70c75","name":"add comment","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"note\": \"hello, world!\",\n    \"user\": \"agent@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/add_comment"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"note\": \"hello, world!\",\n    \"id\": 46845,\n    \"call_id\": 12345,\n    \"owner\": true,\n    \"this_call\": true,\n    \"agent\": {\n        \"name\": \"Example Agent\",\n        \"id\": \"USxxxxx\",\n        \"email\": \"agent@example.com\",\n        \"pic\": \"https://path-to-agent-image/\"\n    }\n}"}],"_postman_id":"4f851c09-ed06-4e4b-8792-9b10cb201d39"},{"name":"update comment","id":"286e3e0b-d472-4d98-9d45-57e97f9cda09","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"note\": \"updated note\",\n\t\"note_id\": 46845,\n\t\"user\": \"nnn@example.com\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/update_comment","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n<tr>\n<td>note_id</td>\n<td>yes</td>\n<td>the note id to update</td>\n</tr>\n<tr>\n<td>note</td>\n<td>yes</td>\n<td>the note/comment to update</td>\n</tr>\n<tr>\n<td>user</td>\n<td>no</td>\n<td>the user to assign to the note. if not specified the user assigned to the call will be used. you can specify the user with either an email address or ctm user id</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"example-bodies\">example bodies</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"note\": \"hello, world!\",\n    \"note_id\": 46845,\n    \"user\": \"agent@example.com\"\n}\n\n{\n    \"note\": \"yet another note.\",\n    \"note_id\": 46845,\n    \"user\": \"USR043E46722529BCB5B49425FB5DC45EAF\"\n}\n</code></pre>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","update_comment"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a5929137-b652-4234-bffa-bfb65fdbbfb2","name":"update comment","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"note\": \"updated note\",\n\t\"note_id\": 46845,\n\t\"user\": \"nnn@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/update_comment"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"note\": \"updated note\",\n    \"id\": 46845,\n    \"call_id\": 12345,\n    \"owner\": true,\n    \"this_call\": true,\n    \"agent\": {\n        \"name\": \"Example Agent\",\n        \"id\": \"USxxxxx\",\n        \"email\": \"agent@example.com\",\n        \"pic\": \"https://path-to-agent-image/\"\n    }\n}"}],"_postman_id":"286e3e0b-d472-4d98-9d45-57e97f9cda09"},{"name":"delete comment","id":"74f64c24-0567-4c6f-aad6-c28e3777ec4c","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"note_id\": 46845\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/delete_comment","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n<tr>\n<td>note_id</td>\n<td>yes</td>\n<td>the note id to update</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"example-body\">example body</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"note_id\": 46845\n}\n</code></pre>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","delete_comment"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"f1125287-a002-4c02-859a-d4b5c3f93da0","name":"delete comment","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"note_id\": 46845\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/delete_comment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": \"comment deleted\",\n  \"id\": 46845\n}"}],"_postman_id":"74f64c24-0567-4c6f-aad6-c28e3777ec4c"},{"name":"get sale record","id":"c9f355c5-e780-450e-995d-cbe63a95ebf8","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/sale","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","sale"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c9f355c5-e780-450e-995d-cbe63a95ebf8"},{"name":"create/edit sale record","id":"ee4de80e-6765-4881-868a-311f94416723","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/sale","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>reporting tag within the call log, typically used as a product name or sales person name</td>\n</tr>\n<tr>\n<td>score</td>\n<td>no</td>\n<td>integer between 1 and 5 to indicate the quality of the call</td>\n</tr>\n<tr>\n<td>conversion</td>\n<td>no</td>\n<td>boolean flag (1 or 0) to indicate whether the call resulted in a sale</td>\n</tr>\n<tr>\n<td>value</td>\n<td>no</td>\n<td>numeric value to represent the total worth of the call in dollars</td>\n</tr>\n<tr>\n<td>sale_date</td>\n<td>no</td>\n<td>date (YYYY-MM-DD) when a sale occurred as a result of this call</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","sale"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee4de80e-6765-4881-868a-311f94416723"},{"name":"delete sale record","id":"9e5b60ce-643e-4839-9f5e-9f6e5c31db05","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/sale","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","sale"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e5b60ce-643e-4839-9f5e-9f6e5c31db05"},{"name":"start call recording","id":"9e9cadc5-6633-4a2b-b18e-988dce6d90d4","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/recording_start","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","recording_start"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e9cadc5-6633-4a2b-b18e-988dce6d90d4"},{"name":"end call","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"]}}],"id":"be51ade3-3a58-44d4-85e2-fac20fe90d43","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"status\": \"success\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/endcall","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>id</td>\n<td>yes</td>\n<td>the call id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","endcall"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"be51ade3-3a58-44d4-85e2-fac20fe90d43"},{"name":"stop call recording","id":"9c6b1843-4853-4b88-95f6-187b6e156a6f","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/recording_stop","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","recording_stop"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9c6b1843-4853-4b88-95f6-187b6e156a6f"},{"name":"mark call as spam","id":"01b014d3-67ab-49f7-aa87-b160c9176025","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/spam","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","spam"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"01b014d3-67ab-49f7-aa87-b160c9176025"},{"name":"mark call as not spam","id":"45c92f7f-6ff4-4f6e-9dee-2d9631fcd2c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/unspam","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","unspam"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"45c92f7f-6ff4-4f6e-9dee-2d9631fcd2c7"},{"name":"transfer call to number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"]}}],"id":"11b7fe1b-d123-45d0-be4c-cd3685be38a8","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"transfer_type\": \"transfer\",\n    \"route_to\": \"number\",\n    \"to_number\": \"{{to_number}}\",\n    \"message\": \"{{message_whisper}}\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/transfer","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id</td>\n</tr>\n<tr>\n<td>transfer_type</td>\n<td>yes</td>\n<td>set to: <code>transfer</code></td>\n</tr>\n<tr>\n<td>route_to</td>\n<td>yes</td>\n<td>set to: <code>number</code></td>\n</tr>\n<tr>\n<td>to_number</td>\n<td>yes</td>\n<td>the phone number to which to transfer the call in [E.164](<a href=\"https://en.wikipedia.org/wiki/E.164\">https://en.wikipedia.org/wiki/E.164</a> Wikipedia) format (i.e. +18885551212 or +441632960162)</td>\n</tr>\n<tr>\n<td>message</td>\n<td>no</td>\n<td>a whisper message to play to the person answering at the <code>to_number</code></td>\n</tr>\n<tr>\n<td>sync</td>\n<td>no</td>\n<td>a flag passing 1 to enable will run the transfer synchronously responding with a transfer object id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","transfer"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"11b7fe1b-d123-45d0-be4c-cd3685be38a8"},{"name":"transfer call to agent","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"]}}],"id":"406d475d-e466-4538-9ffc-e74a67deaa2a","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"transfer_type\": \"transfer\",\n    \"route_to\": \"agent_id\",\n    \"agent_id\": \"{{agent_id}}\",\n    \"message\": \"{{message_whisper}}\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/transfer","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id</td>\n</tr>\n<tr>\n<td>transfer_type</td>\n<td>yes</td>\n<td>set to: <code>transfer</code></td>\n</tr>\n<tr>\n<td>route_to</td>\n<td>yes</td>\n<td>set to: <code>agent_id</code></td>\n</tr>\n<tr>\n<td>agent_id</td>\n<td>yes</td>\n<td>the USR id of the agent to whom to transfer</td>\n</tr>\n<tr>\n<td>message</td>\n<td>no</td>\n<td>a whisper message to play to the agent</td>\n</tr>\n<tr>\n<td>sync</td>\n<td>no</td>\n<td>a flag passing 1 to enable will run the transfer synchronously responding with a transfer object id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","transfer"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"406d475d-e466-4538-9ffc-e74a67deaa2a"},{"name":"list do not call numbers","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData               = JSON.parse(responseBody);","tests[\"items is an array\"] = Array.isArray(jsonData.items);","tests[\"page is the current page\"] = Number.isInteger(jsonData.page);","if (jsonData.items[0]) { tests[\"numbers look reasonable\"] = jsonData.items[0].number.match(/^\\d+$/); }"]}}],"id":"5e69ac1d-3741-497b-a78d-9ef1b085cf4b","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/do_not_calls","description":"<p>Returns your Do Not Call list</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>agency</td>\n<td>no</td>\n<td>show the agency do not call list (set to 1, requires agency API keys)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","do_not_calls"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"bef2ae78-10c2-4871-8055-28756b9af375","name":"success","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/receiving_numbers"},"status":"OK","code":200,"_postman_previewlanguage":"javascript","header":[{"name":"Access-Control-Allow-Origin","key":"Access-Control-Allow-Origin","value":"*","description":"","enabled":true},{"name":"Cache-Control","key":"Cache-Control","value":"must-revalidate, private, max-age=0","description":"","enabled":true},{"name":"Connection","key":"Connection","value":"keep-alive","description":"","enabled":true},{"name":"Content-Encoding","key":"Content-Encoding","value":"gzip","description":"","enabled":true},{"name":"Content-Type","key":"Content-Type","value":"application/json; charset=utf-8","description":"","enabled":true},{"name":"Date","key":"Date","value":"Fri, 22 Jul 2016 19:05:16 GMT","description":"","enabled":true},{"name":"ETag","key":"ETag","value":"W/\"bcfcd943892613ac3f341154466d43fc\"","description":"","enabled":true},{"name":"Server","key":"Server","value":"nginx","description":"","enabled":true},{"name":"Strict-Transport-Security","key":"Strict-Transport-Security","value":"max-age=15768000","description":"","enabled":true},{"name":"Transfer-Encoding","key":"Transfer-Encoding","value":"chunked","description":"","enabled":true},{"name":"Vary","key":"Vary","value":"Accept-Encoding","description":"","enabled":true},{"name":"X-UA-Compatible","key":"X-UA-Compatible","value":"IE=Edge","description":"","enabled":true}],"cookie":[],"responseTime":"164","body":"{\n  \"total_entries\": 1,\n  \"total_pages\": 1,\n  \"next_page\": \"https://api.ctmdev.us/api/v1/accounts/18637/receiving_numbers\",\n  \"previous_page\": \"https://api.ctmdev.us/api/v1/accounts/18637/receiving_numbers\",\n  \"receiving_numbers\": [\n    {\n      \"id\": \"RPN34D8AC3F61E8848FEA641CEF711011AA4EBC1EAE6A8B0FA833381FE66ADD02D1\",\n      \"filter_id\": 40147,\n      \"name\": \"test number label\",\n      \"number\": \"+18885551212\",\n      \"display_number\": \"(888) 555-1212\",\n      \"account_id\": 18637,\n      \"country_code\": \"1\",\n      \"split\": [\n        \"1\",\n        \"888\",\n        \"555\",\n        \"1212\"\n      ],\n      \"formatted\": \"(888)-555-1212\",\n      \"url\": \"/api/v1/accounts/18637/receiving_numbers/RPN34D8AC3F61E8848FEA641CEF711011AA4EBC1EAE6A8B0FA833381FE66ADD02D1\"\n    }\n  ]\n}"}],"_postman_id":"5e69ac1d-3741-497b-a78d-9ef1b085cf4b"},{"name":"create a do not call number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                  = JSON.parse(responseBody);","tests[\"status is reasonable\"] = jsonData.status === \"success\" || jsonData.status === \"alreadyblocked\";","if (jsonData.status === \"success\") { tests[\"number looks reasonable\"] = jsonData.number.match(/^\\d+$/); }"]}}],"id":"9aa551ac-22a9-4a09-b474-4926d2eb7a6e","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"number\": \"+14105554444\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/do_not_calls","description":"<p>Prevents outgoing calls to a specified number, adding it to your Do Not Call list</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>number</td>\n<td>yes</td>\n<td>a phone number to add to the do not call list, including country code</td>\n</tr>\n<tr>\n<td>agency</td>\n<td>no</td>\n<td>add to the agency-wide do not call list (set to 1, requires agency API keys)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","do_not_calls"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9aa551ac-22a9-4a09-b474-4926d2eb7a6e"},{"name":"delete a do not call number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests.status = jsonData.status === \"success\";"]}}],"id":"01d17079-236d-4037-88cf-3b5aefcef904","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/do_not_calls/{{do_not_call_number}}","description":"<p>Remove a number from your Do Not Call list, which will restore the ability to place outgoing calls to that number</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>do_not_call_number</td>\n<td>yes</td>\n<td>the digits of the phone number (including country code) to delete</td>\n</tr>\n<tr>\n<td>agency</td>\n<td>no</td>\n<td>remove from the agency-wide do not call list, if added agency-wide (set to 1, requires agency API keys)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","do_not_calls","{{do_not_call_number}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"01d17079-236d-4037-88cf-3b5aefcef904"},{"name":"list blocked numbers","event":[{"listen":"test","script":{"id":"c8999bbc-df67-4c6c-91d1-8615af7084bb","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData               = JSON.parse(responseBody);","tests[\"items is an array\"] = Array.isArray(jsonData.items);","tests[\"page is the current page\"] = Number.isInteger(jsonData.page);","if (jsonData.items[0]) { tests[\"numbers look reasonable\"] = jsonData.items[0].number.match(/^\\d+$/); }"],"type":"text/javascript"}}],"id":"14fb643f-4bc2-451d-9f83-f567775ed952","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/blocked_numbers","description":"<p>Returns your Blocked Numbers list</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>agency</td>\n<td>no</td>\n<td>show the agency blocked numbers list (set to 1, requires agency API keys)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","blocked_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"14fb643f-4bc2-451d-9f83-f567775ed952"},{"name":"block number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests.status = (jsonData.status === \"blocked\") || (jsonData.status === \"alreadyblocked\");"]}}],"id":"7a3e9f7f-9db1-416e-ba70-18b94a1615ad","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"number\": \"+14105550000\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/block_number","description":"<p>Block a number</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>number</td>\n<td>yes</td>\n<td>a number in [E.164](<a href=\"https://en.wikipedia.org/wiki/E.164\">https://en.wikipedia.org/wiki/E.164</a> Wikipedia) format (i.e. +18885551212 or +441632960162)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","block_number"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a3e9f7f-9db1-416e-ba70-18b94a1615ad"},{"name":"unblock number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests.status = (jsonData.status === \"unblocked\") || (jsonData.status === \"notblocked\");"]}}],"id":"ea63a3ca-775f-4d8b-82bc-b38d04c79567","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"number\": \"+14105550000\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/unblock_number","description":"<p>Unblock a number</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>number</td>\n<td>yes</td>\n<td>a number in [E.164](<a href=\"https://en.wikipedia.org/wiki/E.164\">https://en.wikipedia.org/wiki/E.164</a> Wikipedia) format (i.e. +18885551212 or +441632960162)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","unblock_number"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea63a3ca-775f-4d8b-82bc-b38d04c79567"},{"name":"block call","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests.status = (jsonData.status === \"blocked\") || (jsonData.status === \"alreadyblocked\");"]}}],"id":"a7443607-b304-46bf-b032-306c8c3cee53","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/block_call","description":"<p>Block a caller based on a specific call ID</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n<tr>\n<td>agency</td>\n<td>no</td>\n<td>block caller agency-wide (set to 1)</td>\n</tr>\n<tr>\n<td>cnam</td>\n<td>no</td>\n<td>block calls matching the CNAM associated with the call_id (set to 1; use caution when blocking calls by CNAM! If you block \"Wireless Caller,\" then all calls from all numbers with CNAM \"Wireless Caller\" will be blocked.)</td>\n</tr>\n<tr>\n<td>exclude</td>\n<td>no</td>\n<td>block calls from this number from appearing in call log and reports (set to 1)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","block_call"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7443607-b304-46bf-b032-306c8c3cee53"},{"name":"unblock call","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests.status = (jsonData.status === \"unblocked\") || (jsonData.status === \"notblocked\");"]}}],"id":"3620a05d-4212-4d58-97bb-4ec25ccd971d","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{call_id}}/unblock_call","description":"<p>Unblock a caller based on a specific call ID</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id from the call record</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{call_id}}","unblock_call"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3620a05d-4212-4d58-97bb-4ec25ccd971d"},{"name":"Start Phone Call","event":[{"listen":"test","script":{"id":"800940a4-37f3-4dae-bc65-bf65130943fe","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"],"type":"text/javascript"}}],"id":"b3d773ef-d93d-4079-8584-2f19f79a69f1","request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"from_number\": \"+18885551234\",\n  \"call_number\": \"+14107031212\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/","description":"<p>Initiate a call via API to connect two people together</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_number</td>\n<td>yes</td>\n<td>the number you want to dial</td>\n</tr>\n<tr>\n<td>from_number</td>\n<td>yes</td>\n<td>the tracking number ID you want to bridge to the call_number on answer</td>\n</tr>\n<tr>\n<td>to_agent</td>\n<td>no</td>\n<td>similar to to_number but dial an agent and when the agent answers bridge the agent to the call_number connecting the two parties.</td>\n</tr>\n<tr>\n<td>to_queue</td>\n<td>no</td>\n<td>similar to to_agent but dial a call queue (1 or more agents dialed) and when an agent answers bridge the agent to the call_number connecting the two parties.</td>\n</tr>\n<tr>\n<td>agent_prompt_message</td>\n<td>no</td>\n<td>\"say:alice:en-US:hello please press 1 to accept the phone call\" - limited to 128 characters (specific to to_agent &amp; to_queue)</td>\n</tr>\n<tr>\n<td>agent_prompt_option</td>\n<td>no</td>\n<td>1 or any - for any keypress (specific to to_agent &amp; to_queue)</td>\n</tr>\n<tr>\n<td>route</td>\n<td>no</td>\n<td>instead of dialing the tracking number configured route use this alternate route</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>the name of who you are dialing</td>\n</tr>\n<tr>\n<td>user_id</td>\n<td>no</td>\n<td>the user id to use for the outbound call when bridging to a user via a to_number required if from_number is not assigned to an agent.</td>\n</tr>\n<tr>\n<td>send_digits</td>\n<td>no</td>\n<td>'w1234' will wait 1 second and dial 1234; you can use w to trigger a 1 second pause before entering key press DTMF codes</td>\n</tr>\n<tr>\n<td>callerid</td>\n<td>no</td>\n<td>optionally pass us a verified caller ID in E.164 format e.g. using +1 or +44 to use as the outgoing caller ID presented to the to_number</td>\n</tr>\n<tr>\n<td>call_setting</td>\n<td>no</td>\n<td>Provide a call settings configuration to adjust the greeting message and other call recording / transcription settings associated with the phone call that is started through the API otherwise normally the call setting will be set based on the tracking number used in the from_number.</td>\n</tr>\n<tr>\n<td>from_outbound_campaign</td>\n<td>no</td>\n<td>when selecting the from_number for the outbound dial select a tracking number based on the nearest geographic match to the call_number provided based on the configured outbound campaign. Outbound campaigns can be configured: <a href=\"https://app.calltrackingmetrics.com/outbound_campaigns\">https://app.calltrackingmetrics.com/outbound_campaigns</a></td>\n</tr>\n<tr>\n<td>autodial</td>\n<td>no</td>\n<td>automatically trigger an agents softphone to start dialing the given call_number.  <br />autodial must be set to browser. e.g. autodial=browser</td>\n</tr>\n</tbody>\n</table>\n</div><p>The from_number tracking number may be configured to dial a call_queue, geo router, another number, sip route, etc.</p>\n<p>For the from_number, the tracking number ID can be found in the CTM portal. It is the TPN... string found in the address bar. You can also use the \"list of tracking numbers\" or \"tracking number details\" to lookup a number and find the tracking number ID.</p>\n<p>You can also specify the from\\number as a number in E.164 format (i.e. +18885551212).</p>\n","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3d773ef-d93d-4079-8584-2f19f79a69f1"},{"name":"assign agent","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"]}}],"id":"a57eda1a-e206-4123-825c-e29148eaf065","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"status\": \"success\",\n\t\"id\": 1234\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/agents/{{agent_sid}}/assign_call?call_id={{call_id}}","description":"<p>Assign an agent to a call.  Keep in mind assigning an agent to a call in a queue can result in the call becoming un-answerable.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","agents","{{agent_sid}}","assign_call"],"host":["{{host}}"],"query":[{"key":"call_id","value":"{{call_id}}"}],"variable":[]}},"response":[],"_postman_id":"a57eda1a-e206-4123-825c-e29148eaf065"},{"name":"remove agent","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"]}}],"id":"3a4300c6-3eaf-4071-9533-c360390519dc","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"status\": \"success\",\n\t\"id\": 1234\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/agents/{{agent_sid}}/remove_call?call_id={{call_id}}","description":"<p>Remove the assigned agent from the call.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","agents","{{agent_sid}}","remove_call"],"host":["{{host}}"],"query":[{"key":"call_id","value":"{{call_id}}"}],"variable":[]}},"response":[],"_postman_id":"3a4300c6-3eaf-4071-9533-c360390519dc"},{"name":"Remove Tag","event":[{"listen":"test","script":{"id":"57119f57-804d-496d-8212-0f2e68d3089a","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"],"type":"text/javascript"}}],"id":"d6964389-9455-4851-9c43-5814dc343460","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"status\": \"success\",\n\t\"id\": 1234\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{id}}/tag?tag={{tag}}","description":"<p>Remove a tag from the record.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{id}}","tag"],"host":["{{host}}"],"query":[{"key":"tag","value":"{{tag}}"}],"variable":[]}},"response":[],"_postman_id":"d6964389-9455-4851-9c43-5814dc343460"},{"name":"Add Tag","event":[{"listen":"test","script":{"id":"57119f57-804d-496d-8212-0f2e68d3089a","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"],"type":"text/javascript"}}],"id":"9c9857a0-ef0d-465d-a921-4fa7ec1f6363","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"status\": \"success\",\n\t\"id\": 1234\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/calls/{{id}}/tag?tag={{tag}}","description":"<p>Add a tag to the record.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","calls","{{id}}","tag"],"host":["{{host}}"],"query":[{"key":"tag","value":"{{tag}}"}],"variable":[]}},"response":[],"_postman_id":"9c9857a0-ef0d-465d-a921-4fa7ec1f6363"},{"name":"Mapping","id":"ea5cfea4-ef6b-4a69-a924-2b2cea97f092","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.calltrackingmetrics.com/api/v1/accounts/{account_id}/calls/mapping","description":"<p>Get a mapping describing the structure of activity records e.g. call, text, chat and forms</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","accounts","{account_id}","calls","mapping"],"host":["api","calltrackingmetrics","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea5cfea4-ef6b-4a69-a924-2b2cea97f092"}],"id":"762e84ed-493c-4e6b-bb3d-38274a55c982","description":"<p>Calls have a dynamic list of properties. The properties are dynamic for several reasons.</p>\n<p>The list of properties at the beginning of a call is limited.  As the call continues and more information becomes available, the list of properties may grow. Even after the call is over, more information may become available from an integration such as Google or Facebook.</p>\n<p>Also, depending on the features enabled (SPAM detection, call scoring) or the nature of a call (forwarded to a receiving number, voice menu interaction, delivered to an agent, etc.) different properties may be available.</p>\n<blockquote>\n<p>If you want to easily view JSON in a browser, you will want to install a JSON viewer extension like <a href=\"https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc\">JSONView</a> for Chrome.</p>\n</blockquote>\n<p>One easy way to get to the JSON object that represents a call is to find a call in the call log, click the \"Detail\" button on the left, and copy the Call ID from the address bar. The call ID will be the number following the \"callid=\" in the address bar URL.</p>\n<p>Copy the Call ID, replace everything after the word \"calls\" in the URL with a slash (\"/\"), the Call ID, and \".json\".</p>\n<p>For example, if the URL for the call detail is:</p>\n<blockquote>\n<p>calls.example.com/calls#callNav=caller_profile&amp;callId=<strong>123456</strong></p>\n</blockquote>\n<p>you would change it to be:</p>\n<blockquote>\n<p>calls.example.com/calls/<strong>123456</strong>.json</p>\n</blockquote>\n<p>A JSON object with the properties from Call ID will be returned.</p>\n","event":[{"listen":"prerequest","script":{"id":"29eb9c9d-8065-409e-b1d3-dc46d102ddc6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c99daa6e-6eed-4793-980a-8c9880d0c7da","type":"text/javascript","exec":[""]}}],"_postman_id":"762e84ed-493c-4e6b-bb3d-38274a55c982","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Contact Lists","item":[{"name":"list of contact lists","event":[{"listen":"test","script":{"id":"0e0ef016-e0c3-4b6d-bbbf-ab9fc84c7595","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.contact_lists  = Array.isArray(jsonData.contact_lists);","tests.page           = Number.isInteger(jsonData.page);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);","tests.per_page       = Number.isInteger(jsonData.per_page);"],"type":"text/javascript"}}],"id":"f70d633f-13ac-4051-bb93-f36988fa4cea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists","description":"<p>gets list of contact lists, including name and description</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lists"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"4c0edf8d-505c-41a3-adb1-e492bec2e0b5","name":"list of contact lists","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"page\": 1,\n  \"per_page\": 10,\n  \"total_entries\": 2,\n  \"total_pages\": 1,\n  \"next_page\": null,\n  \"previous_page\": null,\n  \"contact_lists\": [\n    {\n      \"id\": \"CLxxxxx\",\n      \"account_id\": 12345,\n      \"name\": \"Contact List Number 1\",\n      \"description\": \"\",\n      \"contacts_count\": 42,\n      \"created_at\": \"2019-11-27T16:21:51Z\",\n      \"updated_at\": \"2019-11-27T16:21:51Z\"\n    },\n    {\n      \"id\": \"CLxxxxx\",\n      \"account_id\": 12345,\n      \"name\": \"Contact List Number 2\",\n      \"description\": \"\",\n      \"contacts_count\": 1,\n      \"created_at\": \"2019-12-11T16:03:42Z\",\n      \"updated_at\": \"2019-12-11T16:03:42Z\"\n    }\n  ]\n}"}],"_postman_id":"f70d633f-13ac-4051-bb93-f36988fa4cea"},{"name":"contact list information","event":[{"listen":"test","script":{"id":"0e0ef016-e0c3-4b6d-bbbf-ab9fc84c7595","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.id             = Number.isInteger(jsonData.id);","tests[\"contact list name is non-empty string\"] = (typeof jsonData.name === \"string\") && (jsonData.name.length > 0);"],"type":"text/javascript"}}],"id":"03550d06-c216-4dec-a778-640b284d8449","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists/{{contact_list_id}}","description":"<p>gets detailed information about a contact list including number of contacts</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>list_id</td>\n<td>yes</td>\n<td>the list id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lists","{{contact_list_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"4f5776aa-cb6b-4115-bdb0-d0a008ad68b1","name":"contact list information","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists/{{contact_list_id}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"CLxxxxx\",\n  \"account_id\": 12345,\n  \"name\": \"Contact List Number 1\",\n  \"description\": \"\",\n  \"contacts_count\": 42,\n  \"created_at\": \"2019-11-27T16:21:51Z\",\n  \"updated_at\": \"2019-11-27T16:21:51Z\"\n}"}],"_postman_id":"03550d06-c216-4dec-a778-640b284d8449"},{"name":"create contact list","event":[{"listen":"test","script":{"id":"0e0ef016-e0c3-4b6d-bbbf-ab9fc84c7595","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","","tests.status         = jsonData.status === \"success\";","","tests[\"description is correct\"] = jsonData.description === \"contact list created\";","tests[\"name is non-empty string\"] = (typeof jsonData.result.object.name === \"string\") && (jsonData.result.object.name.length > 0);"],"type":"text/javascript"}}],"id":"ff2c29bb-b33a-489d-9502-ccb03a152125","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"contact_list\": {\n\t\t\"name\" : \"Test List\",\n\t\t\"description\" : \"Description of test list\"\n    }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists/","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>contact_list[name]</td>\n<td>yes</td>\n<td>a name for the contact list</td>\n</tr>\n<tr>\n<td>contact_list[description]</td>\n<td>no</td>\n<td>a descriptor for the contact list</td>\n</tr>\n</tbody>\n</table>\n</div><p>JSON body example</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"contact_list\": {\n        \"name\" : \"Marketing List\",\n        \"description\" : \"List of contacts for marketing\"\n    }\n}\n</code></pre>\n<blockquote>\n<p>Note that list names are not required to be unique.</p>\n</blockquote>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lists",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0fe3a5c7-641b-42c7-9356-e0ec00e52d05","name":"create contact list","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"contact_list\": {\n\t\t\"name\" : \"Test List\",\n\t\t\"description\" : \"Description of test list\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.15.8.2","enabled":true},{"key":"Date","value":"Wed, 22 Apr 2020 14:05:48 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Content-Length","value":"32","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Cache-Control","value":"no-cache","enabled":true},{"key":"X-Request-Id","value":"964afb98-4430-41d1-9165-10094d7cae01","enabled":true},{"key":"X-Runtime","value":"0.127943","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"description\": \"contact list created\",\n  \"result\": {\n    \"id\": \"CLxxxxx\",\n    \"object\": {\n      \"id\": 1,\n      \"account_id\": 12345,\n      \"name\": \"Test List\",\n      \"description\": \"Description of test list\",\n      \"contacts_count\": 0,\n      \"created_at\": \"2020-04-22T14:09:46Z\",\n      \"updated_at\": \"2020-04-22T14:09:46Z\"\n    }\n  }\n}"}],"_postman_id":"ff2c29bb-b33a-489d-9502-ccb03a152125"},{"name":"update a contact list","event":[{"listen":"test","script":{"id":"0e0ef016-e0c3-4b6d-bbbf-ab9fc84c7595","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","","tests.status         = jsonData.status === \"success\";","","tests[\"description is correct\"] = jsonData.description === \"contact list updated\";","tests[\"name is non-empty string\"] = (typeof jsonData.result.object.name === \"string\") && (jsonData.result.object.name.length > 0);"],"type":"text/javascript"}}],"id":"3561f975-56cd-4fef-8512-5e6685fdc918","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"contact_list\": {\n\t\t\"name\" : \"Test Update\",\n\t\t\"description\" : \"Updated description\"\n    }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists/{{contact_list_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>contact_list_id</td>\n<td>yes</td>\n<td>the contact list id</td>\n</tr>\n<tr>\n<td>contact_list[name]</td>\n<td>yes</td>\n<td>a name for the contact list</td>\n</tr>\n<tr>\n<td>contact_list[description]</td>\n<td>no</td>\n<td>a descriptor for the contact list</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lists","{{contact_list_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d5a69b1e-dcef-4a6f-90d7-5592387db4c6","name":"update a contact list","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"contact_list\": {\n\t\t\"name\" : \"Test Update\",\n\t\t\"description\" : \"Updated description\"\n    }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists/{{contact_list_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"description\": \"contact list updated\",\n  \"result\": {\n    \"id\": \"CLxxxxx\",\n    \"object\": {\n      \"id\": 1,\n      \"account_id\": 12345,\n      \"name\": \"Test Update\",\n      \"description\": \"Updated description\",\n      \"contacts_count\": 0,\n      \"created_at\": \"2020-04-22T14:09:46Z\",\n      \"updated_at\": \"2020-04-22T14:15:09Z\"\n    }\n  }\n}"}],"_postman_id":"3561f975-56cd-4fef-8512-5e6685fdc918"},{"name":"delete a contact list","event":[{"listen":"test","script":{"id":"0e0ef016-e0c3-4b6d-bbbf-ab9fc84c7595","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.status         = jsonData.status === \"success\";",""],"type":"text/javascript"}}],"id":"669be9d2-2086-44d1-b66a-5caa7406897b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists/{{contact_list_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>contact_list_id</td>\n<td>yes</td>\n<td>the contact list id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lists","{{contact_list_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"7255b524-b6c4-45a4-bd32-c0764c5d1192","name":"delete a contact list","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists/{{contact_list_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"description\": \"contact list deleted\",\n  \"result\": {\n    \"id\": \"CLxxxxx\",\n    \"object\": {\n      \"id\": 1,\n      \"account_id\": 12345,\n      \"name\": \"Test Update\",\n      \"description\": \"Updated description\",\n      \"contacts_count\": 0,\n      \"created_at\": \"2020-04-22T14:09:46Z\",\n      \"updated_at\": \"2020-04-22T14:15:09Z\"\n    }\n  }\n}"}],"_postman_id":"669be9d2-2086-44d1-b66a-5caa7406897b"},{"name":"list all contacts in a contact list","event":[{"listen":"test","script":{"id":"0e0ef016-e0c3-4b6d-bbbf-ab9fc84c7595","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.status         = jsonData.status === \"success\";",""],"type":"text/javascript"}}],"id":"69c87f03-6900-4104-ae45-c960684d8873","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists/{{contact_list_id}}/contacts","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>contact_list_id</td>\n<td>yes</td>\n<td>the contact list id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lists","{{contact_list_id}}","contacts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"69c87f03-6900-4104-ae45-c960684d8873"},{"name":"check if a contact exists within the list","event":[{"listen":"test","script":{"id":"0e0ef016-e0c3-4b6d-bbbf-ab9fc84c7595","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.status         = jsonData.status === \"success\";",""],"type":"text/javascript"}}],"id":"191de4c0-22b8-445d-9a3a-e8a72ada6c0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists/{{contact_list_id}}/contains?phone_number={{phone_number}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>contact_list_id</td>\n<td>yes</td>\n<td>the contact list id</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td>yes</td>\n<td>the phone number of the contact to check, be sure to include the country code in your phone number use E.164 formatted numbers</td>\n</tr>\n</tbody>\n</table>\n</div><p>Using this method in the context of a lambda function</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">  const apiCall = `lists/${listId}/contains?phone_number=${call.caller_number.replace(/\\D/g,'')}`\n  const http = await context.ctm.api_get(apiCall);\n  if (http.response.statusCode == 204) {\n     context.done(null, {say: \"A message to play when routing the caller to ivr2.\",\n                         route: ivr2})\n  } else {\n    console.log(\"we did not find you\");\n    context.done(null, {say: \"A message to play to the caller when they are not on the list\",\n                        route: ivr1})\n  }\n\n</code></pre>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lists","{{contact_list_id}}","contains"],"host":["{{host}}"],"query":[{"key":"phone_number","value":"{{phone_number}}"}],"variable":[]}},"response":[],"_postman_id":"191de4c0-22b8-445d-9a3a-e8a72ada6c0b"},{"name":"add contact to a contact list","event":[{"listen":"test","script":{"id":"0e0ef016-e0c3-4b6d-bbbf-ab9fc84c7595","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.status         = jsonData.status === \"success\";",""],"type":"text/javascript"}}],"id":"cc53836a-3b7c-4cf7-b975-645db7e50a9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"contact\": {\n    \t\"number\" : \"+13214005002\",\n\t\t\"first_name\" : \"Test\",\n\t\t\"last_name\" : \"Person\",\n\t\t\"email\" : \"test@foo.com\",\n\t\t\"street\" : \"123 Test St\",\n\t\t\"city\" : \"Test City\",\n\t\t\"state\" : \"AZ\",\n\t\t\"country\" : \"US\",\n\t\t\"postal_code\" : \"85001\"\n    }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists/{{contact_list_id}}/add_contact","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>contact_list_id</td>\n<td>yes</td>\n<td>the contact list id</td>\n</tr>\n<tr>\n<td>contact[number]</td>\n<td>yes</td>\n<td>number for contact in e.164</td>\n</tr>\n<tr>\n<td>contact[first_name]</td>\n<td>no</td>\n<td>contact's first name</td>\n</tr>\n<tr>\n<td>contact[last_name]</td>\n<td>no</td>\n<td>contact's last name</td>\n</tr>\n<tr>\n<td>contact[email]</td>\n<td>no</td>\n<td>contact's email</td>\n</tr>\n<tr>\n<td>contact[street]</td>\n<td>no</td>\n<td>includes street number</td>\n</tr>\n<tr>\n<td>contact[city]</td>\n<td>no</td>\n<td>contact's city</td>\n</tr>\n<tr>\n<td>contact[state]</td>\n<td>no</td>\n<td>contact's state</td>\n</tr>\n<tr>\n<td>contact[country]</td>\n<td>no</td>\n<td>contate's country</td>\n</tr>\n<tr>\n<td>contact[postal_code]</td>\n<td>no</td>\n<td>contact's postal code</td>\n</tr>\n<tr>\n<td>contact[custom_api_name]</td>\n<td>no</td>\n<td>a value for any custom field</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lists","{{contact_list_id}}","add_contact"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc53836a-3b7c-4cf7-b975-645db7e50a9c"},{"name":"delete contact from a contact list","event":[{"listen":"test","script":{"id":"0e0ef016-e0c3-4b6d-bbbf-ab9fc84c7595","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.status         = jsonData.status === \"success\";",""],"type":"text/javascript"}}],"id":"aa244621-2307-4cdd-aa6b-d671fd538340","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"contacts_list\" : [\"+13214005002\"]\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists/{{contact_list_id}}/remove_contacts","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>contact_list_id</td>\n<td>yes</td>\n<td>the contact list id</td>\n</tr>\n<tr>\n<td>contacts_list</td>\n<td>yes</td>\n<td>array of contact numbers in e.164 format</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lists","{{contact_list_id}}","remove_contacts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa244621-2307-4cdd-aa6b-d671fd538340"},{"name":"delete all contacts from a contact list","id":"6fa0fb7e-be89-49c9-b325-60b37daaaa66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lists/{{contact_list_id}}/remove_all_contacts","description":"<p>removes all of the contacts in a give contact list but retains the contact list</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>contact_list_id</td>\n<td>yes</td>\n<td>the contact list id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lists","{{contact_list_id}}","remove_all_contacts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6fa0fb7e-be89-49c9-b325-60b37daaaa66"}],"id":"9c0179f2-d0ef-4ff3-9723-0f0a3546499c","_postman_id":"9c0179f2-d0ef-4ff3-9723-0f0a3546499c","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Custom Fields","item":[{"name":"list of custom fields","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"status is success\"] = jsonData.status === \"success\";","tests[\"custom_fields is an array\"] = Array.isArray(jsonData.custom_fields);"]}}],"id":"c34aa672-28b9-4a31-8579-7a2449daf655","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/custom_fields","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div><p>To edit the custom fields on a particular call, see Calls - Modify Call Details.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","custom_fields"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c34aa672-28b9-4a31-8579-7a2449daf655"},{"name":"list of custom panels","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"status is success\"] = jsonData.status === \"success\";","tests[\"custom_panels is an array\"] = Array.isArray(jsonData.custom_panels);"]}}],"id":"8542586a-f39c-4711-87d3-7da20b4dec81","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/custom_fields/panels","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","custom_fields","panels"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8542586a-f39c-4711-87d3-7da20b4dec81"},{"name":"custom field","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"status is success\"] = jsonData.status === \"success\";","tests[\"custom_field has an id\"] = Number.isInteger(jsonData.custom_field.id);"]}}],"id":"1ec2cc9e-9410-4d7b-b0f0-0bafa16a5b6c","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/custom_fields/{{custom_field_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>custom_field_id</td>\n<td>yes</td>\n<td>the custom field's id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","custom_fields","{{custom_field_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ec2cc9e-9410-4d7b-b0f0-0bafa16a5b6c"},{"name":"custom panel","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"status is success\"] = jsonData.status === \"success\";","tests[\"custom_panel has an id\"] = Number.isInteger(jsonData.custom_panel.id);"]}}],"id":"cd30ff2e-0778-4b64-bca8-49ae4746e582","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/custom_fields/{{custom_panel_id}}/panel","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>custom_panel_id</td>\n<td>yes</td>\n<td>the custom panel's id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","custom_fields","{{custom_panel_id}}","panel"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd30ff2e-0778-4b64-bca8-49ae4746e582"},{"name":"save panels","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"status is success\"] = jsonData.status === \"success\";","tests[\"panels is an array\"] = Array.isArray(jsonData.panels);","tests[\"fields is an array\"] = Array.isArray(jsonData.fields);"]}}],"id":"31202829-32b7-4fb2-85c3-47dc3da03911","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"panels\": [\n    {\n    \"name\": \"Sample\",\n    \"icon\": \"user\",\n    \"description\": \"this is another example\",\n    \"id\": \"_0\",\n      \"log_type\": \"none\"\n    }\n  ],\n  \"fields\": [\n    {\n      \"name\": \"example\",\n      \"api_name\": \"example\",\n      \"field_type\": \"text\",\n      \"object_type\": \"Caller\",\n      \"panel\": \"contact\",\n      \"released\": false\n    },\n    {\n      \"name\": \"another_example\",\n      \"api_name\": \"another_example\",\n      \"field_type\": \"number\",\n      \"object_type\": \"Caller\",\n      \"panel\": \"_0\",\n      \"released\": false\n    }\n  ]\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/custom_fields/save","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div><p>Responds with status and (if status is success) array of panel IDs and array of field IDs.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","custom_fields","save"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"31202829-32b7-4fb2-85c3-47dc3da03911"},{"name":"update picker options","event":[{"listen":"test","script":{"id":"fd508482-d09d-4a9b-812c-42523bb8468a","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"status is success\"] = jsonData.status === \"success\";","tests[\"panels is an array\"] = Array.isArray(jsonData.panels);","tests[\"fields is an array\"] = Array.isArray(jsonData.fields);"],"type":"text/javascript"}}],"id":"750a5583-35fc-4a02-b71f-c888d0381ad6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"options\": \"Choice 1\\nChoice 2\\nChoice3\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/custom_fields/{{custom_field_id}}/update_picker_options","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>custom_field_id</td>\n<td>yes</td>\n<td>the custom field id</td>\n</tr>\n<tr>\n<td>options</td>\n<td>yes</td>\n<td>a string containing line-feed (\\n) delineated list of fields</td>\n</tr>\n</tbody>\n</table>\n</div><p>options may optionally specify an internal name using ':' separators (value:label) such as: \"Option 1:option1\\nOption 2:option2\\nOption 3:option3\"</p>\n<p>Responds with status and (if status is success) the new custom field with similar output.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","custom_fields","{{custom_field_id}}","update_picker_options"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"750a5583-35fc-4a02-b71f-c888d0381ad6"},{"name":"create custom field","id":"86d3507e-beed-4c6f-80f7-bfc3fb5c2cac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{ \"custom_field\": \n  {\n    \"name\": \"field name\",\n    \"dependent_field_id\": \"another field id\",\n    \"required\": true,\n    \"log_visible\": true,\n    \"lambda_action_id\": \"lambda function id (optional)\",\n    \"multipicker\": false,\n    \"api_name\": \"api_name_for_field_case_matters_length_16_alpha_numeric\",\n    \"object_type\": \"Contact\",\n    \"field_type\": \"picker_but_there_are_many_to_choose_from\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/custom_fields","description":"<p>Create a single custom field by posting the details to this endpoint.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>name of the custom field (for users to read)</td>\n</tr>\n<tr>\n<td>api_name</td>\n<td>should be alpha numeric and underscores only. should be only lower case characters.</td>\n</tr>\n<tr>\n<td>field_type</td>\n<td>can be anyone of the following types:  <br />number  <br />float  <br />text  <br />date  <br />email  <br />url  <br />phone  <br />picker  <br />bool  <br />rating  <br />duration  <br />country  <br />region  <br />textarea  <br />geo</td>\n</tr>\n<tr>\n<td>required</td>\n<td>can be \"yes\", \"on\" or \"1\" - to indicate whether the custom field is required in the context of the panel it's included in.</td>\n</tr>\n<tr>\n<td>log_visible</td>\n<td>can be \"yes\", \"on\" or \"1\" - to indicate whether the custom field is visible within the call log without loading the specific panel its included within.</td>\n</tr>\n<tr>\n<td>multipicker</td>\n<td>when using the field_type: \"picker\" this allows a user to select multiple values. should be either \"yes\", \"on\" or \"1\" to enable</td>\n</tr>\n<tr>\n<td>object_type</td>\n<td>Can be one of  <br />Call  <br />Contact  <br />TrackingNumber  <br />  <br />Call indicates this is an Activity level custom field that will have a unique value for each activity record e.g. phone call in the logs.  <br />  <br />Contact indicates it'll be shared value so any activity that involves the same contact will share this value.  <br />  <br />TrackingNumber allows you to assign a value to a tracking number and any value on that custom field will be exposed to the activities.</td>\n</tr>\n<tr>\n<td>panel</td>\n<td>contact or score</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","custom_fields"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"86d3507e-beed-4c6f-80f7-bfc3fb5c2cac"},{"name":"update custom field","id":"776424d4-54cd-49e9-9e46-89c3a82e81cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/custom_fields/{{custom_field_id}}/","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","custom_fields","{{custom_field_id}}",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"776424d4-54cd-49e9-9e46-89c3a82e81cf"},{"name":"delete custom field","id":"8ccede28-1677-4fcd-9d7e-36c7145dc33b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/custom_fields/{{custom_field_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","custom_fields","{{custom_field_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ccede28-1677-4fcd-9d7e-36c7145dc33b"},{"name":"list custom fields by type","id":"c4be4380-fd4d-4614-ac3e-43faa6467ada","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/custom_fields/list","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","custom_fields","list"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c4be4380-fd4d-4614-ac3e-43faa6467ada"},{"name":"show custom field","id":"e04f6da5-4de9-4006-8d40-963a5ea7c6a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/custom_fields/{{custom_field_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","custom_fields","{{custom_field_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e04f6da5-4de9-4006-8d40-963a5ea7c6a7"}],"id":"68cdb7a2-99bb-4125-913d-4cbd4d4f51ec","_postman_id":"68cdb7a2-99bb-4125-913d-4cbd4d4f51ec","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Dialer","item":[{"name":"list of dialers","id":"7cf4b13a-e939-4332-84c2-cc92740812a4","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>no</td>\n<td>search string for dialer name/description</td>\n</tr>\n<tr>\n<td>page</td>\n<td>no</td>\n<td>the page number</td>\n</tr>\n<tr>\n<td>per_page</td>\n<td>no</td>\n<td>the number of items per page, defaults to 10</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","dialers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"15d2614f-c8e8-4ca0-9fc9-79db574e7636","name":"list of dialers","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"page\": 1,\n    \"per_page\": 10,\n    \"total_entries\": 3,\n    \"total_pages\": 1,\n    \"next_page\": null,\n    \"previous_page\": null,\n    \"dialers\": [\n        {\n            \"id\": \"DIL0131BF8D9BEF37FA949BA4DF2417E4EF\",\n            \"name\": \"test\",\n            \"description\": \"\",\n            \"dialer_mode\": \"progressive\",\n            \"min_required_agents\": 1,\n            \"call_queue_id\": null,\n            \"agent_selection_type\": \"CallQueue\",\n            \"agent_selection_id\": null,\n            \"tag_list\": \"\",\n            \"callerid_mode\": \"agent\",\n            \"outbound_callerid\": \"bestmatch\",\n            \"best_match_team_id\": null,\n            \"outbound_campaign_id\": null,\n            \"premium_lookup\": false,\n            \"restrict_by_time\": true,\n            \"start_time\": \"09:00 am\",\n            \"end_time\": \"05:00 pm\",\n            \"prompt_agents\": true,\n            \"greeting_for_agent\": \"say:man:en:\",\n            \"schedule_id\": null,\n            \"machine_check\": false,\n            \"machine_route_id\": null,\n            \"machine_route_type\": null,\n            \"post_call_confirmation\": true,\n            \"post_call_phone_prompt\": \"\",\n            \"post_call_phone_prompt_action\": \"\",\n            \"post_call_phone_prompt_no_action\": \"No\",\n            \"transfer_confirmation\": false,\n            \"call_duration_confirmation\": false,\n            \"call_duration_threshold\": 100,\n            \"default_action_label\": null,\n            \"default_action_id\": null,\n            \"default_action_type\": \"VoiceMenu\",\n            \"max_dial_rate\": 1,\n            \"max_dials_to_agent\": 0,\n            \"broadcast\": false,\n            \"dial_order\": \"fifo\",\n            \"call_keypress_confirmation\": \"\",\n            \"dialer_broad_cast_rate\": \"fast\",\n            \"dialer_start_at\": null,\n            \"dialer_end_at\": null,\n            \"use_keypress_confirmation\": false,\n            \"consider_outbound_a_success\": true,\n            \"consider_callback_a_success\": false,\n            \"consider_chat_a_success\": false,\n            \"dial_plans\": [\n                {\n                    \"id\": 24,\n                    \"callback_minutes\": 0,\n                    \"is_sms\": false,\n                    \"sms_message\": \"\"\n                }\n            ]\n        },\n        {\n            \"id\": \"DIL0131BF8D9BEF37FAB4AF686DC509C9C8\",\n            \"name\": \"test-a\",\n            \"description\": \"\",\n            \"dialer_mode\": \"progressive\",\n            \"min_required_agents\": 1,\n            \"call_queue_id\": null,\n            \"agent_selection_type\": \"CallQueue\",\n            \"agent_selection_id\": null,\n            \"tag_list\": \"\",\n            \"callerid_mode\": \"agent\",\n            \"outbound_callerid\": \"bestmatch\",\n            \"best_match_team_id\": null,\n            \"outbound_campaign_id\": null,\n            \"premium_lookup\": false,\n            \"restrict_by_time\": true,\n            \"start_time\": \"09:00 am\",\n            \"end_time\": \"05:00 pm\",\n            \"prompt_agents\": true,\n            \"greeting_for_agent\": \"say:man:en:\",\n            \"schedule_id\": null,\n            \"machine_check\": false,\n            \"machine_route_id\": null,\n            \"machine_route_type\": null,\n            \"post_call_confirmation\": true,\n            \"post_call_phone_prompt\": \"\",\n            \"post_call_phone_prompt_action\": \"\",\n            \"post_call_phone_prompt_no_action\": \"No\",\n            \"transfer_confirmation\": false,\n            \"call_duration_confirmation\": false,\n            \"call_duration_threshold\": 100,\n            \"default_action_label\": null,\n            \"default_action_id\": null,\n            \"default_action_type\": \"VoiceMenu\",\n            \"max_dial_rate\": 1,\n            \"max_dials_to_agent\": 0,\n            \"broadcast\": false,\n            \"dial_order\": \"fifo\",\n            \"call_keypress_confirmation\": \"\",\n            \"dialer_broad_cast_rate\": \"fast\",\n            \"dialer_start_at\": null,\n            \"dialer_end_at\": null,\n            \"use_keypress_confirmation\": false,\n            \"consider_outbound_a_success\": true,\n            \"consider_callback_a_success\": false,\n            \"consider_chat_a_success\": false,\n            \"dial_plans\": [\n                {\n                    \"id\": 25,\n                    \"callback_minutes\": 0,\n                    \"is_sms\": false,\n                    \"sms_message\": \"\"\n                }\n            ]\n        },\n        {\n            \"id\": \"DIL0131BF8D9BEF37FA6C5C7F7FD397132F\",\n            \"name\": \"Cargo VC 09242019 (2nd)\",\n            \"description\": \"PMC Sup\",\n            \"dialer_mode\": \"predictive\",\n            \"min_required_agents\": 1,\n            \"call_queue_id\": null,\n            \"agent_selection_type\": \"CallQueue\",\n            \"agent_selection_id\": null,\n            \"tag_list\": \"\",\n            \"callerid_mode\": \"number\",\n            \"outbound_callerid\": \"67481\",\n            \"best_match_team_id\": null,\n            \"outbound_campaign_id\": null,\n            \"premium_lookup\": false,\n            \"restrict_by_time\": true,\n            \"start_time\": \"09:00 am\",\n            \"end_time\": \"05:00 pm\",\n            \"prompt_agents\": true,\n            \"greeting_for_agent\": \"say:man:en:\",\n            \"schedule_id\": null,\n            \"machine_check\": false,\n            \"machine_route_id\": null,\n            \"machine_route_type\": null,\n            \"post_call_confirmation\": true,\n            \"post_call_phone_prompt\": \"\",\n            \"post_call_phone_prompt_action\": \"\",\n            \"post_call_phone_prompt_no_action\": \"No\",\n            \"transfer_confirmation\": false,\n            \"call_duration_confirmation\": false,\n            \"call_duration_threshold\": 100,\n            \"default_action_label\": null,\n            \"default_action_id\": null,\n            \"default_action_type\": \"VoiceMenu\",\n            \"max_dial_rate\": 1,\n            \"max_dials_to_agent\": 0,\n            \"broadcast\": true,\n            \"dial_order\": \"fifo\",\n            \"call_keypress_confirmation\": \"\",\n            \"dialer_broad_cast_rate\": \"even\",\n            \"dialer_start_at\": \"2019-09-25T00:00:00Z\",\n            \"dialer_end_at\": \"2019-09-25T00:00:00Z\",\n            \"use_keypress_confirmation\": false,\n            \"consider_outbound_a_success\": true,\n            \"consider_callback_a_success\": false,\n            \"consider_chat_a_success\": false,\n            \"dial_plans\": [\n                {\n                    \"id\": 26,\n                    \"callback_minutes\": 0,\n                    \"is_sms\": false,\n                    \"sms_message\": \"\"\n                },\n                {\n                    \"id\": 28,\n                    \"callback_minutes\": 5,\n                    \"is_sms\": false,\n                    \"sms_message\": \"\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"7cf4b13a-e939-4332-84c2-cc92740812a4"},{"name":"dialer details","id":"19ecaca4-843f-4024-b67c-be38eaa3bbc8","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers/{{dialer_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>dialer_id</td>\n<td>yes</td>\n<td>the dialer id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","dialers","{{dialer_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"19ecaca4-843f-4024-b67c-be38eaa3bbc8"},{"name":"dialer status","id":"b86b9199-711f-45a0-b0b7-f0bd4160734a","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers/{{dialer_id}}/status","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>dialer_id</td>\n<td>yes</td>\n<td>the dialer id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","dialers","{{dialer_id}}","status"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b86b9199-711f-45a0-b0b7-f0bd4160734a"},{"name":"list of numbers in dialer","id":"666f4b3e-a4d5-4e01-86bf-c257237bb480","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers/{{dialer_id}}/numbers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>dialer_id</td>\n<td>yes</td>\n<td>the dialer id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","dialers","{{dialer_id}}","numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"666f4b3e-a4d5-4e01-86bf-c257237bb480"},{"name":"start","id":"aaabf93a-ef10-4372-aead-93c23fb6e13f","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"I_Accept_Outbound_Call_and_Text_Compliance\": true\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers/{{dialer_id}}/start","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>dialer_id</td>\n<td>yes</td>\n<td>the dialer id</td>\n</tr>\n<tr>\n<td>I_Accept_Outbound_Call_and_Text_Compliance</td>\n<td>yes</td>\n<td>needs to be set to true or the dialer will not be started</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","dialers","{{dialer_id}}","start"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aaabf93a-ef10-4372-aead-93c23fb6e13f"},{"name":"create dialer","id":"3253e133-ce93-4bd4-9e7d-58b459f68cfc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"name\": \"Test Dialer\",\n\"description\": \"super test\",\n\"dialer_mode\": \"progressive\",\n\"contact_list_id\": \"contact list id\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>dialer_mode</td>\n<td>yes</td>\n<td>the dialer mode either progressive or predictive</td>\n</tr>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>name of your dialer</td>\n</tr>\n<tr>\n<td>description</td>\n<td>no</td>\n<td>description text for your dialer</td>\n</tr>\n<tr>\n<td>min_required_agents</td>\n<td>no</td>\n<td>defaults to 1</td>\n</tr>\n<tr>\n<td>call_queue_id</td>\n<td>no</td>\n<td>required for progressive dialer but not for predictive</td>\n</tr>\n<tr>\n<td>contact_list_id</td>\n<td>no</td>\n<td>You can push a contact list to the dialer instead of a list of phone numbers.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example:</p>\n<p>{<br />\"id\": \"DIL0131BF8D9BEF37FA5F2729814AC1D724\",<br />\"name\": \"Test Dialer\",<br />\"description\": \"super test\",<br />\"dialer_mode\": \"progressive\",<br />\"min_required_agents\": 2,<br />\"call_queue_id\": 72,<br />\"tag_list\": \"\",<br />\"callerid_mode\": \"best\",<br />\"outbound_callerid\": \"67262\",<br />\"best_match_team_id\": 1,<br />\"premium_lookup\": false,<br />\"restrict_by_time\": false,<br />\"start_time\": \"07:00 am\",<br />\"end_time\": \"11:00pm\",<br />\"prompt_agents\": true,<br />\"greeting_for_agent\": \"say:alice:en-US:\",<br />\"schedule_id\": null,<br />\"machine_check\": false,<br />\"post_call_confirmation\": true,<br />\"post_call_phone_prompt\": \"Did you connect?\",<br />\"post_call_phone_prompt_action\": \"Yes Connected\",<br />\"transfer_confirmation\": false,<br />\"call_duration_confirmation\": false,<br />\"call_duration_threshold\": 10,<br />\"default_action_label\": null,<br />\"default_action_id\": 1524,<br />\"default_action_type\": \"VoiceMenu\",<br />\"max_dial_rate\": 1,<br />\"max_dials_to_agent\": 20,<br />\"broadcast\": true,<br />\"dial_order\": \"lifo\",<br />\"call_keypress_confirmation\": \"1\",<br />\"dialer_broad_cast_rate\": \"fast\",<br />\"dialer_start_at\": null,<br />\"dialer_end_at\": null,<br />\"use_keypress_confirmation\": false,<br />\"consider_callback_a_success\": false, \"contact_list_id\": \"contact list id\",<br />\"dial_plans\": [<br />{<br />\"id\": 949,<br />\"callback_minutes\": 0,<br />\"is_sms\": false,<br />\"sms_message\": \"\"<br />}<br />]<br />}</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","dialers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3253e133-ce93-4bd4-9e7d-58b459f68cfc"},{"name":"update dialer","id":"9cc7e4d5-61b8-426c-a21b-23f02f4e6dd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"I_Accept_Outbound_Call_and_Text_Compliance\": true\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers/{{dialer_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>dialer_mode</td>\n<td>yes</td>\n<td>the dialer mode either progressive or predictive</td>\n</tr>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>name of your dialer</td>\n</tr>\n<tr>\n<td>description</td>\n<td>no</td>\n<td>description text for your dialer</td>\n</tr>\n<tr>\n<td>min_required_agents</td>\n<td>no</td>\n<td>defaults to 1</td>\n</tr>\n<tr>\n<td>call_queue_id</td>\n<td>no</td>\n<td>required for progressive dialer but not for predictive</td>\n</tr>\n<tr>\n<td>contact_list_id</td>\n<td>no</td>\n<td>optionally send a contact list id and we'll populate the number list in the dialer from the list.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example:</p>\n<p>{<br />\"id\": \"DIL0131BF8D9BEF37FA5F2729814AC1D724\",<br />\"name\": \"Test Dialer\",<br />\"description\": \"super test\",<br />\"dialer_mode\": \"progressive\",<br />\"min_required_agents\": 2,<br />\"call_queue_id\": 72,<br />\"tag_list\": \"\",<br />\"callerid_mode\": \"best\",<br />\"outbound_callerid\": \"67262\",<br />\"best_match_team_id\": 1,<br />\"premium_lookup\": false,<br />\"restrict_by_time\": false,<br />\"start_time\": \"07:00 am\",<br />\"end_time\": \"11:00pm\",<br />\"prompt_agents\": true,<br />\"greeting_for_agent\": \"say:alice:en-US:\",<br />\"schedule_id\": null,<br />\"machine_check\": false,<br />\"post_call_confirmation\": true,<br />\"post_call_phone_prompt\": \"Did you connect?\",<br />\"post_call_phone_prompt_action\": \"Yes Connected\",<br />\"transfer_confirmation\": false,<br />\"call_duration_confirmation\": false,<br />\"call_duration_threshold\": 10,<br />\"default_action_label\": null,<br />\"default_action_id\": 1524,<br />\"default_action_type\": \"VoiceMenu\",<br />\"max_dial_rate\": 1,<br />\"max_dials_to_agent\": 20,<br />\"broadcast\": true,<br />\"dial_order\": \"lifo\",<br />\"call_keypress_confirmation\": \"1\",<br />\"dialer_broad_cast_rate\": \"fast\",<br />\"dialer_start_at\": null,<br />\"dialer_end_at\": null,<br />\"use_keypress_confirmation\": false,<br />\"consider_callback_a_success\": false,\"contact_list_id\": \"a contact list id\",<br />\"dial_plans\": [<br />{<br />\"id\": 949,<br />\"callback_minutes\": 0,<br />\"is_sms\": false,<br />\"sms_message\": \"\"<br />}<br />]<br />}</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","dialers","{{dialer_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9cc7e4d5-61b8-426c-a21b-23f02f4e6dd7"},{"name":"stop","id":"5df12b06-5a13-4005-af7c-0c4464e40b8c","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers/{{dialer_id}}/stop","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>dialer_id</td>\n<td>yes</td>\n<td>the dialer id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","dialers","{{dialer_id}}","stop"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5df12b06-5a13-4005-af7c-0c4464e40b8c"},{"name":"add numbers","id":"939b34a7-86df-4098-81a4-072648cff491","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"numbers_list\":  [ \"+18885551111\", \"+18885552222\", \"+18885553333\", \"+18885554444\", \"+18885555555\", \"+18885556666\", \"+18885557777\", \"+18885558888\", \"+18885559999\"],\n\t\"I_Accept_Outbound_Call_and_Text_Compliance\": true\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers/{{dialer_id}}/add_numbers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>dialer_id</td>\n<td>yes</td>\n<td>the auto dialer id</td>\n</tr>\n<tr>\n<td>numbers_list</td>\n<td>yes</td>\n<td>an array of phone numbers to dial in E.164 format</td>\n</tr>\n<tr>\n<td>I_Accept_Outbound_Call_and_Text_Compliance</td>\n<td>yes</td>\n<td>needs to be set to true or numbers will not be added</td>\n</tr>\n<tr>\n<td>new_only</td>\n<td>no</td>\n<td>set to 1 to perform an upsert operation: dialer stats will not be reset if you add a number again</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","dialers","{{dialer_id}}","add_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"939b34a7-86df-4098-81a4-072648cff491"},{"name":"remove numbers","id":"5a81b682-07eb-4d3c-ae2a-22dc97782c5b","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"numbers_list\": [ \"+18885551212\", \"+18885551111\", \"+18885559999\" ]\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers/{{dialer_id}}/remove_numbers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>dialer_id</td>\n<td>yes</td>\n<td>the dialer id</td>\n</tr>\n<tr>\n<td>numbers_list</td>\n<td>yes</td>\n<td>an array of numbers in E.164 format that should be removed from the auto dialer</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","dialers","{{dialer_id}}","remove_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a81b682-07eb-4d3c-ae2a-22dc97782c5b"},{"name":"remove all numbers","id":"23d54c43-103c-4933-a6c0-c620cce15e99","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers/{{dialer_id}}/remove_all_numbers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>dialer_id</td>\n<td>yes</td>\n<td>the dialer id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","dialers","{{dialer_id}}","remove_all_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"23d54c43-103c-4933-a6c0-c620cce15e99"},{"name":"remove from all","id":"7c0b560d-12bf-43e7-8603-9f119d42b078","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers/remove_from_all","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>number</td>\n<td>yes</td>\n<td>E.164 formatted phone number. You may need to ensure the + in the phone number is encoded e.g. '+' must be CGI or URI encoded.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","dialers","remove_from_all"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c0b560d-12bf-43e7-8603-9f119d42b078"},{"name":"Import Contact List","id":"2cc56aeb-c3f8-4721-9e3f-f1bb3d337564","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"contact_list_id\":\"CLS96B439815AF3EDF34EE793442D6C85DB5B35762CE441FE27\", \"I_Accept_Outbound_Call_and_Text_Compliance\": true }","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/dialers/{{dialer_id}}/import_contact_list","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","dialers","{{dialer_id}}","import_contact_list"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2cc56aeb-c3f8-4721-9e3f-f1bb3d337564"}],"id":"098ca278-f2a1-4665-b388-382a5358d453","_postman_id":"098ca278-f2a1-4665-b388-382a5358d453","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Divisions","item":[{"name":"list of divisions","event":[{"listen":"test","script":{"id":"cbc60afe-6e84-432f-aa05-1356d218b1c3","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"schedules is an array\"] = Array.isArray(jsonData.divisions);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"94f1d490-32e3-42e9-a7bd-d5415020796b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/divisions","description":"<p>get list of divisions</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","divisions"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"94f1d490-32e3-42e9-a7bd-d5415020796b"},{"name":"list of divisions account list","event":[{"listen":"test","script":{"id":"cbc60afe-6e84-432f-aa05-1356d218b1c3","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"schedules is an array\"] = Array.isArray(jsonData.divisions);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"b71283a7-99d5-44b5-b295-f18813bf17af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/divisions/{{division_id}}/account_list","description":"<p>get a divisions list of accounts</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td></td>\n</tr>\n<tr>\n<td>division_id</td>\n<td>yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","divisions","{{division_id}}","account_list"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b71283a7-99d5-44b5-b295-f18813bf17af"},{"name":"list of divisions user list","event":[{"listen":"test","script":{"id":"cbc60afe-6e84-432f-aa05-1356d218b1c3","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"schedules is an array\"] = Array.isArray(jsonData.divisions);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"687aad66-b264-4862-b39d-f4f4d66e970a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/divisions/{{division_id}}/user_list","description":"<p>get a divisions list of users</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td></td>\n</tr>\n<tr>\n<td>division_id</td>\n<td>yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","divisions","{{division_id}}","user_list"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"687aad66-b264-4862-b39d-f4f4d66e970a"},{"name":"list of divisions admin list","event":[{"listen":"test","script":{"id":"cbc60afe-6e84-432f-aa05-1356d218b1c3","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"schedules is an array\"] = Array.isArray(jsonData.divisions);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"9e3e94d6-cb29-45e0-ba83-10c90e3f507c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/divisions/{{division_id}}/admin_list","description":"<p>get a divisions list of admins</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td></td>\n</tr>\n<tr>\n<td>division_id</td>\n<td>yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","divisions","{{division_id}}","admin_list"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e3e94d6-cb29-45e0-ba83-10c90e3f507c"}],"id":"ecf465ed-abb0-4d9a-9aa4-8572fb19498b","_postman_id":"ecf465ed-abb0-4d9a-9aa4-8572fb19498b","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"FormReactor","item":[{"name":"list of FormReactors","id":"e575e9a3-e175-4e58-bd1e-419df9a1a7f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/form_reactors","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","form_reactors"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e575e9a3-e175-4e58-bd1e-419df9a1a7f7"},{"name":"FormReactors details","id":"98651e5d-1a03-4dd2-87ee-3903920fc24c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/form_reactors/{{form_reactor_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","form_reactors","{{form_reactor_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"98651e5d-1a03-4dd2-87ee-3903920fc24c"},{"name":"formreactor server side request","id":"61a833fa-9e13-4fb8-8777-1efc7e4885ab","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/formreactor/{{unique_form_id}}","description":"<p>FormReactors may be used through other form systems using our API (managed mode). When operating in managed mode, the specific form fields are managed by your third party system. The form data sent through this endpoint automatically creates a new FormReactor (based on the {unique_form_id}) and adds the form submission in your account's call log. You can then use the created FormReactor to configure how to react to new form submissions through the same {unique_form_id}. We limit the total number of unique API-based FormReactors to 1000 per account on the Growth and Connect plans and 100 for Performance plans.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>unique_form_id</td>\n<td>yes</td>\n<td>a unique ID to identify your form. One FormReactor's will be created for each unique ID. When using a user provider unique form id be sure to additionally pass the type parameter with the value API</td>\n</tr>\n<tr>\n<td>caller_name</td>\n<td>no</td>\n<td>caller's name</td>\n</tr>\n<tr>\n<td>country_code</td>\n<td>no</td>\n<td>phone number's country code (numeric)</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td>yes</td>\n<td>phone number (i.e. 8885551212)</td>\n</tr>\n<tr>\n<td>email</td>\n<td>no</td>\n<td>email address</td>\n</tr>\n<tr>\n<td>visitor_sid</td>\n<td>no</td>\n<td>the visitor id</td>\n</tr>\n<tr>\n<td>callback_number</td>\n<td>no</td>\n<td>the callback number, is a tracking number and used as the callerid when dialing a receiving number</td>\n</tr>\n<tr>\n<td>receiving_number</td>\n<td>no</td>\n<td>optionally use to modify the receiving number dialed when dialing a receiving number first. An E.164 number that also exists as a receiving number in CTM</td>\n</tr>\n<tr>\n<td>delay_calling_by</td>\n<td>no</td>\n<td>optionally delay the form reactor from triggering any events by passing a value in minutes that is between 1 minute and 60 days.</td>\n</tr>\n<tr>\n<td>custom_field</td>\n<td>no</td>\n<td>custom field (each custom field id is prefixed with \"custom_\") e.g. The custom field 'color' would be sent as custom_color or if you prefer british english custom_colour, but lets be real color is easier.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","formreactor","{{unique_form_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"aab4dfb3-20c3-4349-af0c-7193cf74a903","name":"formreactor server side request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[{"key":"caller_name","value":"","description":"Name field","type":"text"},{"key":"country_code","value":"","description":"Country code e.g. 1, 44, 61, etc...","type":"text"},{"key":"phone_number","value":"","description":"The phone number following the country code, in most cases not including a leading 0 unless Italy.","type":"text"},{"key":"email","value":"","description":"The form email address","type":"text"},{"key":"visitor_sid","value":"","description":"The session ID from Javascript code","type":"text"},{"key":"callback_number","value":"","description":"A dialback number for overriding the call routing when dialing an agent first.","type":"text"}]},"url":"https://{{host}}/{{base_path}}/formreactor/{{unique_form_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"<?php\n\n$username = \"your-api-key\";\n$password = \"your-api-sec\";\n\n$form_url = \"https://api.calltrackingmetrics.com/api/v1/formreactor/{your-form-id}\";\n\n\n$ch = curl_init();\ncurl_setopt($ch, CURLOPT_URL,$form_url);\ncurl_setopt($ch, CURLOPT_POST, 1);\n\n$post_fields = [\n  \"phone_number\" => \"{your-10-digit-number}\",\n  \"country_code\" => \"1\",\n  \"type\" => \"API\",\n  \"caller_name\" => \"Your Name\",\n  \"email\" => \"your.email@example.com\",\n  \"custom_{your-field-id}\" => \"hello custom field\"\n];\n// optionally if your Form is configured for upsert you can pass the upsert_id\n// this value determines whether we should create a new form entry or update an existing form entry.\n/*\n$post_fields['upsert_id'] = 10; // you would assign this to some autogenerated external ID.\n*/\n\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$headers = array(\n  'Authorization: Basic '. base64_encode(\"$username:$password\")\n);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n\n#curl_setopt($process, CURLOPT_USERPWD, $username . \":\" . $password);\n\n$server_output = curl_exec ($ch);\n\nvar_dump($server_output);\n\ncurl_close ($ch);\n\n\n?>"}],"_postman_id":"61a833fa-9e13-4fb8-8777-1efc7e4885ab"},{"name":"Resolve FormReactor response to activity ID","id":"dbb714d5-1d1c-4093-9545-7561a92f664d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"ref_ids\": [id1,id2,id3,id4]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.calltrackingmetrics.com/api/v1/accounts/{{account_id}}/formreactor/lookup?=","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","accounts","{{account_id}}","formreactor","lookup"],"host":["api","calltrackingmetrics","com"],"query":[{"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"dbb714d5-1d1c-4093-9545-7561a92f664d"},{"name":"grant consent","id":"d3edb66f-057e-488c-bb0b-6b405fd765d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/form_reactor/consent","description":"<p>Accept the consent for form reactor submission</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>parameters</strong></th>\n<th><strong>required</strong></th>\n<th><strong>comments</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email</td>\n<td>yes</td>\n<td>this should be the email of the agency owner</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","form_reactor","consent"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d3edb66f-057e-488c-bb0b-6b405fd765d4"}],"id":"8f5327f8-1f57-4cfc-848f-c9437f00d699","_postman_id":"8f5327f8-1f57-4cfc-848f-c9437f00d699","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Geo Routers","item":[{"name":"list of geo routers","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"]}}],"id":"ebc17eb6-899b-43ba-a94b-5a5ded2141b8","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"transfer_type\": \"transfer\",\n    \"route_to\": \"queue_id\",\n    \"queue_id\": \"{{queue_id}}\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/geo_routes","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>no</td>\n<td>a filter to use for searching by name</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","geo_routes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ebc17eb6-899b-43ba-a94b-5a5ded2141b8"},{"name":"geo router detail","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"]}}],"id":"f938b50e-b33e-4ede-ad4d-a8a3da06a0ea","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"transfer_type\": \"transfer\",\n    \"route_to\": \"queue_id\",\n    \"queue_id\": \"{{queue_id}}\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/geo_routes/{{geo_route_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>geo_route_id</td>\n<td>yes</td>\n<td>the geo router id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","geo_routes","{{geo_route_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f938b50e-b33e-4ede-ad4d-a8a3da06a0ea"},{"name":"Update Geo Router","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"]}}],"id":"859e3087-2c5a-4e8e-a7a9-16721ba25f50","request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"transfer_type\": \"transfer\",\n    \"route_to\": \"queue_id\",\n    \"queue_id\": \"{{queue_id}}\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/geo_routes/{{geo_router_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>geo_config_id</td>\n<td>yes</td>\n<td>the geo router id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>set to: <code>transfer</code></td>\n</tr>\n<tr>\n<td>play_message</td>\n<td>yes</td>\n<td>a voice message or audio recording to playback e.g. say: .. play:...</td>\n</tr>\n<tr>\n<td>route_by</td>\n<td>yes</td>\n<td>how to route either 'zipcode' or 'areacode'</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","geo_routes","{{geo_router_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"859e3087-2c5a-4e8e-a7a9-16721ba25f50"},{"name":"Batch GEO Processing","id":"82bf5273-ee0e-4dfe-86f5-87ceff30077c","request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/geo_routes/{{geo_router_id}}/batch","description":"<h4 id=\"you-can-use-the-batch-geo-processing-interface-to-easily-setup-a-large-geo-router-using-a-simple-command-based-interface-to\">You can use the batch geo processing interface to easily setup a large geo router using a simple command based interface to</h4>\n<p> add, update and remove receiving numbers from your geo router.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>curl -XPUT-uAPI:SEC --upload-file commands.txt \\\nhttps://api.calltrackingmetrics.com/api/v1/accounts/{account_id}/geo_routes/{geo_router_id}/batch\n</code></pre><h4 id=\"example-commandstxt\">example commands.txt</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>create +15555553232 todd cell phone\nupdate +15555553232 updated phone label\naddzip +15555553232 21146 21144\ndelzip +15555553232 21144\nclearzips +15555553232\nremove +15555553232\nmark   +15555553232\npurge log\n</code></pre><p>The following options can be included in your request URL to adjust how we process each command</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>global</td>\n<td>no</td>\n<td>when passed as 1 - we will treat receiving numbers as global to your account instead of scoping to the geo router.</td>\n</tr>\n<tr>\n<td>create</td>\n<td>no</td>\n<td>when passed as 1 - will always create a new receiving number, otherwise create will actually just operate like update.  The default 0 is usually what you want</td>\n</tr>\n</tbody>\n</table>\n</div><p>Adding a post_back_url or a post_back_email will trigger a web service POST request to the post_back_url, that will include the resulting status of the transaction of batched commands.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>command</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>create</td>\n<td>find or create the number associating it to the geo router</td>\n</tr>\n<tr>\n<td>update</td>\n<td>update the provided numbers label</td>\n</tr>\n<tr>\n<td>addzip</td>\n<td>add one or more zip codes to the provided number</td>\n</tr>\n<tr>\n<td>delzip</td>\n<td>delete one or more zip codes from the provided number</td>\n</tr>\n<tr>\n<td>clearzips</td>\n<td>remove all associated zipcode data from the provided number</td>\n</tr>\n<tr>\n<td>remove</td>\n<td>remove the provided number from the given geo router</td>\n</tr>\n<tr>\n<td>mark</td>\n<td>mark this number so it is not purged</td>\n</tr>\n<tr>\n<td>purge</td>\n<td>purge will remove, delete or log to indicate which numbers were not marked that exist within the geo router</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"mark-and-purge\">Mark and Purge</h3>\n<p>Mark and Purge work together allowing you to indicate the numbers you want to retain\nby calling mark (number)\nand at the end of your file calling purge will remove any non-marked numbers from the geo router</p>\n<p><em>mark  number</em> - marks this number to keep it any number not marked will be eligible for purge</p>\n<p><em>purge remove</em> - removes the number but does not delete it from your geo router</p>\n<p><em>purge delete</em> - deletes the number and removes it from your geo router</p>\n<p><em>purge log</em>    - logs the number we would delete log will include purge_list in the post_back_url request json data</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","geo_routes","{{geo_router_id}}","batch"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"82bf5273-ee0e-4dfe-86f5-87ceff30077c"},{"name":"Create Geo Router","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"]}}],"id":"e34f7a7b-1f8f-48fc-a58c-0d957417cca9","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"GEO...\",\n    \"name\": \"your api name\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/geo_routes/","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>set to: <code>transfer</code></td>\n</tr>\n<tr>\n<td>play_message</td>\n<td>yes</td>\n<td>a voice message or audio recording to playback e.g. say: .. play:...</td>\n</tr>\n<tr>\n<td>route_by</td>\n<td>yes</td>\n<td>how to route either 'zipcode' or 'areacode'</td>\n</tr>\n<tr>\n<td>default_state</td>\n<td>yes</td>\n<td>how to route incoming callers either prompt, number or always.  number will never prompt, so make sure the default is configured.  always will always prompt.  prompt will conditionally prompt when no data on the incoming caller is available.</td>\n</tr>\n<tr>\n<td>retry_prompt_count</td>\n<td>no</td>\n<td>how many times should we reprompt when prompting. e.g. 1 or 2 times</td>\n</tr>\n<tr>\n<td>input_verify</td>\n<td>no</td>\n<td>boolean value to indicate whether we should prompt the caller to verify their input.</td>\n</tr>\n<tr>\n<td>default_route_to</td>\n<td>no</td>\n<td>if we do not have a valid location or we have no geo data to route by and we did not get a valid prompt entry - where should we route the incoming caller?  Options: hangup, receiving_number, voice_menu.   When choosing receiving_number or voice_menu see the default_number_id and voice_menu_id respectively.</td>\n</tr>\n<tr>\n<td>voice_menu_id</td>\n<td>no</td>\n<td>a default voice menu to route callers to without geo data.</td>\n</tr>\n<tr>\n<td>default_number_id</td>\n<td>no</td>\n<td>a default receiving number to route callers to without geo data.</td>\n</tr>\n<tr>\n<td>multi_route_preference</td>\n<td>no</td>\n<td>simultaneous, round robin, or sequential - this option allows you to specify how we should handle routing to a geo graphic location that has multiple overlapping receiving numbers.  The default is simultaneous.  round robin will alternate the starting number based on the previous call.  sequential works like round robin but instead of locking to a single receiving number will cascade to the other set of numbers automatically after 9 seconds of ringing.</td>\n</tr>\n<tr>\n<td>default_match_radius</td>\n<td>no</td>\n<td>default 100 miles.  This is a match radius if we do not have an exact match we can do a geo graphic distance calculation to select the nearest numbers to the given location.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","geo_routes",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e34f7a7b-1f8f-48fc-a58c-0d957417cca9"},{"name":"pause number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"]}}],"id":"e352c70c-9036-4372-abbe-225d63dcee9f","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/geo_routes/{{geo_route_id}}/pause_number?ppn_id={{ppn_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>geo_route_id</td>\n<td>yes</td>\n<td>the geo router id</td>\n</tr>\n<tr>\n<td>ppn_id</td>\n<td>yes</td>\n<td>the ppn_id of the phone number</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","geo_routes","{{geo_route_id}}","pause_number"],"host":["{{host}}"],"query":[{"key":"ppn_id","value":"{{ppn_id}}"}],"variable":[]}},"response":[],"_postman_id":"e352c70c-9036-4372-abbe-225d63dcee9f"},{"name":"resume number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                = JSON.parse(responseBody);","tests[\"queued is true\"]     = jsonData.queued === true;"]}}],"id":"363f9d83-fe76-4c4e-9099-b3e9a07622e4","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/geo_routes/{{geo_route_id}}/resume_number?ppn_id={{ppn_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>geo_route_id</td>\n<td>yes</td>\n<td>the geo router id</td>\n</tr>\n<tr>\n<td>ppn_id</td>\n<td>yes</td>\n<td>the ppn_id of the phone number</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","geo_routes","{{geo_route_id}}","resume_number"],"host":["{{host}}"],"query":[{"key":"ppn_id","value":"{{ppn_id}}"}],"variable":[]}},"response":[],"_postman_id":"363f9d83-fe76-4c4e-9099-b3e9a07622e4"}],"id":"8f34ed8f-9040-4c32-8f06-87af7cddd7bb","description":"<p>Geo Routers allow you configure massive number of receiving numbers and map them to multiple area codes or multiple zip codes.</p>\n","_postman_id":"8f34ed8f-9040-4c32-8f06-87af7cddd7bb","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Google Analytics","item":[{"name":"google analytics link information","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"linked is boolean\"] = typeof jsonData.linked === \"boolean\";","tests[\"status is non-empty string\"] = (typeof jsonData.status === \"string\") && (jsonData.status.length > 0);"]}}],"id":"1b5cc51b-7089-402d-a89a-2c8a976d703b","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/ga/link","description":"<p>requires agency api access</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","ga","link"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b5cc51b-7089-402d-a89a-2c8a976d703b"},{"name":"google analytics links","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData             = JSON.parse(responseBody);","tests[\"sites is array\"]  = Array.isArray(jsonData.sites);"]}}],"id":"16fa6a54-ed5b-4fdf-91f6-0f4f9e2565b0","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/ga/links","description":"<p>requires agency api access</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","ga","links"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"16fa6a54-ed5b-4fdf-91f6-0f4f9e2565b0"},{"name":"google analytics trigger event","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData              = JSON.parse(responseBody);","tests[\"status is queued\"] = jsonData.status === \"queued\";"]}}],"id":"274fb4a4-29f7-4ec4-94f4-7f26c913a5d1","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"  {\n    \"ga_category\": \"YourCategory\",\n    \"ga_action\": \"YourAction\",\n    \"ga_label\": \"YourLabel\",\n    \"ga_value\": \"[0-9]*\",\n    \"uacode\":   \"UA-XXX...\"\n  }"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/ga/{{call_id}}","description":"<p>requires agency api access</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameters</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>call_id</td>\n<td>yes</td>\n<td>the call id</td>\n</tr>\n<tr>\n<td>ga_category</td>\n<td>no</td>\n<td>the Google Analytics category</td>\n</tr>\n<tr>\n<td>ga_action</td>\n<td>no</td>\n<td>the Google Analytics action</td>\n</tr>\n<tr>\n<td>ga_label</td>\n<td>no</td>\n<td>the Google Analytics label</td>\n</tr>\n<tr>\n<td>ga_value</td>\n<td>no</td>\n<td>the Google Analytics value</td>\n</tr>\n<tr>\n<td>uacode</td>\n<td>no</td>\n<td>the Google Analytics tracking id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","ga","{{call_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"274fb4a4-29f7-4ec4-94f4-7f26c913a5d1"}],"id":"3d1b5ac2-fd45-4bf1-9c89-1bbe39f443dc","_postman_id":"3d1b5ac2-fd45-4bf1-9c89-1bbe39f443dc","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Javascript Events API","item":[],"id":"978fdd9d-85bd-4f0d-abfe-4c0e67d5b4ce","description":"<h2 id=\"introduction\">Introduction</h2>\n<p>This API allows you to send a tracking event to our analytics service. Doing this allows you to track that a visitor has seen a given number. It also allows you to attach custom variables to website visitors for additional third party tracking tools.</p>\n<h2 id=\"tracking-ready-event\">Tracking Ready Event</h2>\n<p>When loading our JavaScript, you may need to know when it’s ready to interact with. This can be done by attaching a <code>__ctm_loaded</code> method.</p>\n<h2 id=\"event-tracking\">Event Tracking</h2>\n<p>These functions should be invoked within the <code>CTMSourceEvent</code> callback.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">__ctm.tracker.trackVisitor(\"dddddddddd\", \"eeeeeeeeee\");\n</code></pre>\n<p>This function should only be called once per page, and can be useful to call when swapping images on a page to ensure we track the visitor.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">__ctm.tracker.trackEvent(\"dddddddddd\", \"eeeeeeeeee\", \"visible\");\n</code></pre>\n<p>This function can be called multiple times per page, and is useful for indicating whether the number was visible to the visitor or whether the number clicked on by the visitor.</p>\n<h2 id=\"formreactor-events\">FormReactor Events</h2>\n<p>After a form is submitted within FormReactor there are a number of events you can subscribe to.  The events are available when using the embeddable FormReactor widget.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ctm.form.success</td>\n<td>trigger after a form is successfully submitted to a CTM server</td>\n</tr>\n<tr>\n<td>ctm.form.limited</td>\n<td>trigger when a customer was rate limited e.g. has already or recently submitted the form successfully</td>\n</tr>\n<tr>\n<td>ctm.form.error</td>\n<td>trigger when a customer has an error with their submission; see <code>evt.fields</code> for a list of fields that are not valid</td>\n</tr>\n<tr>\n<td>ctm.form.failure</td>\n<td>trigger when a CTM server fails to handle the submission successfully</td>\n</tr>\n</tbody>\n</table>\n</div><p>To use the Form Events you can subscribe via the global __jctm, a wrapper object for jQuery.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>__jctm(window).bind(\"ctm.form.success\", function(evt) { \n  console.log(evt);\n});\n</code></pre><p>The example above, will trigger the callback whenever the embedded widget is successfully filled out.  This gives you the option to customize what happens after someone fills out the form.  One option here is to add a conversion tracking pixel or other customized post form fill actions.</p>\n","_postman_id":"978fdd9d-85bd-4f0d-abfe-4c0e67d5b4ce","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Javascript Images API","item":[],"id":"0583fe8e-825c-463b-b965-731e5b0042c5","description":"<h2 id=\"replacing-images\">Replacing Images</h2>\n<p>To replace an image with a phone number, all you need is to hook into the <code>CTMSourceEvent</code> function.  Locate the image you want to replace, either by adding a class or ID attribute. If you have a library such as jQuery this is fairly easy but will also work with native DOM functions.</p>\n<p>You do not need to update your embedded code; you can add all of this code within account settings.</p>\n<p>The example assumes you have an image element with the ID attribute <code>yournumber</code>. It has a mapping table that associates each tracking number to a specific CallTrackingMetrics tracking number.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">// javascript within account settings - tracking script\nwindow.CTMSourceEvent = function(event) {\n  if (event.state != 'before') { return; }\n  var numberMap = {\n    \"4103949424\": \"/images/samples/ctm-logo-4103949424.png\", // direct visits\n    \"4106954857\": \"/images/samples/ctm-logo-4106954857.png\"  // this demo\n  }\n  var swapNumber = numberMap[event.new_number]\n  if (swapNumber) {\n    document.getElementById(\"yournumber\").src = swapNumber;\n  }\n}\n</code></pre>\n","_postman_id":"0583fe8e-825c-463b-b965-731e5b0042c5","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Javascript Tracking API","item":[],"id":"5fb5ebb3-a182-4ace-9621-19055baecc05","description":"<h2 id=\"introduction\">Introduction</h2>\n<p>This section of the documentation describes the interface to our client side JavaScript API. With this API you can dynamically update images based on the chosen tracking number for the current visitor. You can adjust phone number formats, set custom variables and more.</p>\n<h2 id=\"tracking-code\">Tracking Code</h2>\n<p>Be sure to have our tracking code installed on each page of your website. Even if the phone number is not found on the page, it’s important because we use cookies in order to preserve the visitor's first touch source. This ensures we always show each website visitor a consistent phone number.</p>\n<h2 id=\"callback-api\">Callback API</h2>\n<p>The primary interface to our client side code is through a global call back function, <code>CTMSourceEvent</code>. This function will be invoked to signal different events or stages of the number replacement and tracking process.</p>\n<p>As the tracking code works to locate and update phone numbers automatically, it will call this method before replacing a number and after replacing a number. This will allow you to 'hook’ into the number replacement flow, such that you can manipulate the output format, identify which phone number was selected for tracking, and other customizations.</p>\n<p>For example, the following <code>CTMSourceEvent</code> function could be defined within the account settings dashboard under “tracking script” in order to add an additional DOM element under the update phone number.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">window.CTMSourceEvent = function(event) {\n  if (event.state == 'after') {\n    // update DOM after number replacement\n  }\n}\n</code></pre>\n<p>The event object passed to this method includes the following attributes:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>event.state</td>\n<td><code>before</code>: event is fired before the number swap algorithm is run against your web page DOM tree<br /><code>after</code>: event is fired after our number swap algorithm is run against your web page DOM tree<br /><code>node:before</code>: event is fired before the number swap is run on a specific element on the web page.<br /><code>node:after</code>: event is fired after the number swap is run on a specific element on the web page.</td>\n</tr>\n<tr>\n<td>event.current_number</td>\n<td>current number found in your website’s DOM tree; this number is the receiving number that was present on your website before any tracking code is executed</td>\n</tr>\n<tr>\n<td>event.new_number</td>\n<td>the new number that will replace the current_number; this number is the tracking number that will be present after tracking code is executed</td>\n</tr>\n<tr>\n<td>event.node</td>\n<td>this attribute is included when the callback is triggered by the <code>node:before</code> and the <code>node:after</code> events</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"custom-variables\">Custom Variables</h2>\n<p>You can assign custom variables to each visitor tracked by initializing a variable <code>__ctm_cvars</code>. Set the variables before loading the embed code. For example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">var __ctm_cvars = __ctm_cvars || [];\n__ctm_cvars.push({uservar1: 'test'});\n</code></pre>\n<p>The value that you push into the Array can be either a String or an Object. When the value is an Object, it will be serialized to JSON before being stored with the visitor.</p>\n<h2 id=\"conversion-tracking\">Conversion Tracking</h2>\n<p>To track form conversions back to calls, CallTrackingMetrics provides an interface to record information about the form conversion such as the phone number, email and value of the conversion. The global variable <code>__ctmi</code> is used to track conversions. See the example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">var __ctmi = __ctmi || [];\n(window.__ctm_loaded || []).push(function() {\n__ctmi.push(['form.conversion', \"+15555555555\", \"address@example.com\", 282.28]);\n});\n</code></pre>\n<p>The first argument tells <code>__ctmi</code> you want to track a form conversion. The next arguments are some information about the form entry that allows us to better match each form entry to a previous caller. The last argument after the phone number and email arguments is the value of the conversion.</p>\n<h6 id=\"setting-it-up\">Setting it up:</h6>\n<p>To setup the conversions tracking code above, you should place it on the thank you or confirmation page of your form.</p>\n<p>Here are some examples of how you could retrieve the values to track in the CTM conversion code:</p>\n<h6 id=\"php\">PHP</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-html\">&lt;script&gt;\nvar __ctmi = __ctmi || [];\n(window.__ctm_loaded || []).push(function() {\n__ctmi.push([\"form.conversion\", \"&lt;?php echo $number ?&gt;\",\"&lt;?php echo $email ?&gt;\"]);\n});\n&lt;/script&gt;\n</code></pre>\n<h6 id=\"ruby\">Ruby</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-html\">&lt;script&gt;\nvar __ctmi = __ctmi || [];\n(window.__ctm_loaded || []).push(function() {\n__ctmi.push([\"form.conversion\", \"&lt;%= number %&gt;\",\"&lt;%= email %&gt;\"]);\n});\n&lt;/script&gt;\n</code></pre>\n<h2 id=\"preventing-number-swapping\">Preventing Number Swapping</h2>\n<p>In some cases, you will have the phone number on the page but you will not want us to replace it. To support this case, you can add a class name around the parent DOM Element <code>ctm-no-swap</code>. For example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-html\">&lt;p class=\"ctm-no-swap\"&gt;(555) 555-5555&lt;/p&gt;\n</code></pre>\n<p>You may also set the variable:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-js\">__ctm.no_swap=true;\n</code></pre>\n<p>If for example, you have a cookie and want to conditionally disable tracking based on the cookie you would do the following:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-js\">window.CTMSourceEvent = function(event) {\n   var cookie = document.cookie;\n   if (cookie.match(/disable_ctm=1/)) {\n      __ctm.no_swap=true;\n   }\n   }\n}\n</code></pre>\n","_postman_id":"5fb5ebb3-a182-4ace-9621-19055baecc05","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Numbers | Address","item":[{"name":"list of addresses","event":[{"listen":"test","script":{"id":"532ec661-d872-465c-b67d-3d59b2d38d0f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"return value is an array\"] = Array.isArray(jsonData);"],"type":"text/javascript"}}],"id":"af4b4e9c-dd6c-49af-824e-a25fabbc63eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/number_address/","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div><p>The returned addresses will include a sid field that can be used with other address API endpoints.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","number_address",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"af4b4e9c-dd6c-49af-824e-a25fabbc63eb"},{"name":"create a new address","event":[{"listen":"test","script":{"id":"532ec661-d872-465c-b67d-3d59b2d38d0f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);"],"type":"text/javascript"}}],"id":"8ff21887-db9f-4459-8c8b-0382c6359fb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Example Company\",\n  \"street\": \"123 Main St\",\n  \"city\": \"Munich\",\n  \"region\": \"Bayern\",\n  \"postal_code\": \"80335\",\n  \"country\": \"Germany\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/number_address/","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>the business name (defaults to agency name)</td>\n</tr>\n<tr>\n<td>street</td>\n<td>yes</td>\n<td>street portion of the address</td>\n</tr>\n<tr>\n<td>city</td>\n<td>yes</td>\n<td>city portion of the address</td>\n</tr>\n<tr>\n<td>region</td>\n<td>yes</td>\n<td>region portion of the address</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>yes</td>\n<td>postal code for the address</td>\n</tr>\n<tr>\n<td>country</td>\n<td>yes</td>\n<td>name or ISO code (UK, DE, etc) of the country</td>\n</tr>\n</tbody>\n</table>\n</div><p>The returned address will include a sid field that can be used with other address API endpoints.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","number_address",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ff21887-db9f-4459-8c8b-0382c6359fb8"},{"name":"delete an address","event":[{"listen":"test","script":{"id":"532ec661-d872-465c-b67d-3d59b2d38d0f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);"],"type":"text/javascript"}}],"id":"08ca31d3-4af5-46c9-b842-9b1bd25dadc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/number_address/{{address_sid}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>address_sid</td>\n<td>yes</td>\n<td>the address sid (AD_________) as provided by the list/create endpoints</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","number_address","{{address_sid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"08ca31d3-4af5-46c9-b842-9b1bd25dadc9"},{"name":"address for tracking number","event":[{"listen":"test","script":{"id":"532ec661-d872-465c-b67d-3d59b2d38d0f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"address sid is reasonable\"] = jsonData.sid.match(/^AD[0-9A-Fa-f]+$/);"],"type":"text/javascript"}}],"id":"4e6904b8-b821-43d7-87b8-8e6450ce7e07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}/number_address/","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN tracking number ID</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}","number_address",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4e6904b8-b821-43d7-87b8-8e6450ce7e07"},{"name":"update tracking number address","event":[{"listen":"test","script":{"id":"532ec661-d872-465c-b67d-3d59b2d38d0f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"address sid is reasonable\"] = jsonData.sid.match(/^AD[0-9A-Fa-f]+$/);"],"type":"text/javascript"}}],"id":"f0e23493-d1c9-43d7-be57-d03bd9568fd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"address_sid\": \"ADxxxxxxxxxxxxxxxxxxxx\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}/update_number_address/","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN tracking number ID</td>\n</tr>\n<tr>\n<td>address_sid</td>\n<td>yes</td>\n<td>the AD address ID to associate with the number</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}","update_number_address",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0e23493-d1c9-43d7-be57-d03bd9568fd8"}],"id":"3fd9ea2f-f1c2-45dc-b906-3b851c75782e","description":"<p>Many non-US/CA tracking numbers are required to be linked to a physical address.</p>\n","event":[{"listen":"prerequest","script":{"id":"02fdf605-6ab0-4568-9a5f-f539a8975731","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5333a3c3-4dc4-4c7e-b20d-652a638d74a6","type":"text/javascript","exec":[""]}}],"_postman_id":"3fd9ea2f-f1c2-45dc-b906-3b851c75782e","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Numbers | Purchase","item":[{"name":"search for US/CA numbers","event":[{"listen":"test","script":{"id":"5760fa84-d937-47b0-8f7c-b6bdb13d7392","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                  = JSON.parse(responseBody);","tests[\"numbers is an array\"]  = Array.isArray(jsonData.numbers);","tests[\"country is two chars\"] = jsonData.country.length === 2;","tests[\"status is success\"]    = jsonData.status === \"success\";"],"type":"text/javascript"}}],"id":"f6759000-dded-4a48-9c95-24158d775cbf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/search.json?country=US&searchby=area&areacode=443","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>country</td>\n<td>yes</td>\n<td>the <a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\">ISO_3166-1_alpha-2</a> two-letter country code</td>\n</tr>\n<tr>\n<td>searchby</td>\n<td>yes</td>\n<td>one of <code>area</code>, <code>tollfree</code>, <code>address</code>, or <code>number</code></td>\n</tr>\n<tr>\n<td>area_code</td>\n<td>no</td>\n<td>if using <code>searchby</code> set to <code>area</code> specify an area code to search for numbers in</td>\n</tr>\n<tr>\n<td>pattern</td>\n<td>no</td>\n<td>an optional pattern to search for</td>\n</tr>\n<tr>\n<td>address</td>\n<td>no</td>\n<td>if using <code>searchby</code> set to <code>address</code> specify an address or zip code: <code>123 main street, new york, ny</code> or <code>10001</code></td>\n</tr>\n<tr>\n<td>number</td>\n<td>no</td>\n<td>if using <code>searchby</code> set to <code>number</code> specify an area code and prefix: <code>917563</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","search.json"],"host":["{{host}}"],"query":[{"key":"country","value":"US"},{"key":"searchby","value":"area"},{"key":"areacode","value":"443"}],"variable":[]}},"response":[{"id":"df91c7fc-f21a-438a-9ef5-b5db6c0244b5","name":"search for US/CA numbers","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/search.json?country=US&searchby=area&areacode=443","protocol":"https","host":["{{host}}"],"path":["{{base_path}}","accounts","{{account_id}}","numbers","search.json"],"query":[{"key":"country","value":"US"},{"key":"searchby","value":"area"},{"key":"areacode","value":"443"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.3.1","enabled":true},{"key":"Date","value":"Mon, 08 Feb 2021 20:13:29 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"X-Download-Options","value":"noopen","enabled":true},{"key":"X-Permitted-Cross-Domain-Policies","value":"none","enabled":true},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin","enabled":true},{"key":"ETag","value":"W/\"d657ba1c0a361d2627f3f32ae520950a\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"X-Request-Id","value":"0f393d1f-def7-4dc6-b9ef-7b778f90935d","enabled":true},{"key":"X-Runtime","value":"0.758451","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"numbers\": [\n        {\n            \"friendly_name\": \"+1 (443) 342-2893\",\n            \"latitude\": \"38.334600\",\n            \"longitude\": \"-76.468100\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433422893\",\n            \"phone_number\": \"+14433422893\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-9453\",\n            \"latitude\": \"38.334600\",\n            \"longitude\": \"-76.468100\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433429453\",\n            \"phone_number\": \"+14433429453\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 323-2321\",\n            \"latitude\": \"38.542600\",\n            \"longitude\": \"-75.719400\",\n            \"lata\": \"242\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21861\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433232321\",\n            \"phone_number\": \"+14433232321\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 323-1609\",\n            \"latitude\": \"38.542600\",\n            \"longitude\": \"-75.719400\",\n            \"lata\": \"242\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21861\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433231609\",\n            \"phone_number\": \"+14433231609\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-9519\",\n            \"latitude\": \"38.334600\",\n            \"longitude\": \"-76.468100\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433429519\",\n            \"phone_number\": \"+14433429519\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 323-0556\",\n            \"latitude\": \"38.542600\",\n            \"longitude\": \"-75.719400\",\n            \"lata\": \"242\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21861\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433230556\",\n            \"phone_number\": \"+14433230556\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 222-0328\",\n            \"latitude\": \"39.460110\",\n            \"longitude\": \"-76.753860\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14432220328\",\n            \"phone_number\": \"+14432220328\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-9501\",\n            \"latitude\": \"38.334600\",\n            \"longitude\": \"-76.468100\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433429501\",\n            \"phone_number\": \"+14433429501\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-9518\",\n            \"latitude\": \"38.320000\",\n            \"longitude\": \"-76.450000\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433429518\",\n            \"phone_number\": \"+14433429518\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-9572\",\n            \"latitude\": \"38.320000\",\n            \"longitude\": \"-76.450000\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433429572\",\n            \"phone_number\": \"+14433429572\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-9313\",\n            \"latitude\": \"38.334600\",\n            \"longitude\": \"-76.468100\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433429313\",\n            \"phone_number\": \"+14433429313\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 241-3633\",\n            \"latitude\": \"39.575400\",\n            \"longitude\": \"-76.995800\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21158\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14432413633\",\n            \"phone_number\": \"+14432413633\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 241-2637\",\n            \"latitude\": \"39.575400\",\n            \"longitude\": \"-76.995800\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21158\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14432412637\",\n            \"phone_number\": \"+14432412637\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 323-1673\",\n            \"latitude\": \"38.542600\",\n            \"longitude\": \"-75.719400\",\n            \"lata\": \"242\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21861\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433231673\",\n            \"phone_number\": \"+14433231673\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 323-0698\",\n            \"latitude\": \"38.542600\",\n            \"longitude\": \"-75.719400\",\n            \"lata\": \"242\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21861\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433230698\",\n            \"phone_number\": \"+14433230698\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-9468\",\n            \"latitude\": \"38.334600\",\n            \"longitude\": \"-76.468100\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433429468\",\n            \"phone_number\": \"+14433429468\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 238-1098\",\n            \"latitude\": \"39.647600\",\n            \"longitude\": \"-76.679300\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21120\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14432381098\",\n            \"phone_number\": \"+14432381098\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 323-2159\",\n            \"latitude\": \"38.542600\",\n            \"longitude\": \"-75.719400\",\n            \"lata\": \"242\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21861\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433232159\",\n            \"phone_number\": \"+14433232159\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-9521\",\n            \"latitude\": \"38.334600\",\n            \"longitude\": \"-76.468100\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433429521\",\n            \"phone_number\": \"+14433429521\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 323-2510\",\n            \"latitude\": \"38.542600\",\n            \"longitude\": \"-75.719400\",\n            \"lata\": \"242\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21861\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433232510\",\n            \"phone_number\": \"+14433232510\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-9564\",\n            \"latitude\": \"38.334600\",\n            \"longitude\": \"-76.468100\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433429564\",\n            \"phone_number\": \"+14433429564\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-9440\",\n            \"latitude\": \"38.334600\",\n            \"longitude\": \"-76.468100\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433429440\",\n            \"phone_number\": \"+14433429440\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-9275\",\n            \"latitude\": \"38.334600\",\n            \"longitude\": \"-76.468100\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433429275\",\n            \"phone_number\": \"+14433429275\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 331-4907\",\n            \"latitude\": \"39.657500\",\n            \"longitude\": \"-77.174800\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21787\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433314907\",\n            \"phone_number\": \"+14433314907\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 331-5791\",\n            \"latitude\": \"39.657500\",\n            \"longitude\": \"-77.174800\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21787\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433315791\",\n            \"phone_number\": \"+14433315791\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-9418\",\n            \"latitude\": \"38.334600\",\n            \"longitude\": \"-76.468100\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433429418\",\n            \"phone_number\": \"+14433429418\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 331-5378\",\n            \"latitude\": \"39.657500\",\n            \"longitude\": \"-77.174800\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21787\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433315378\",\n            \"phone_number\": \"+14433315378\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 329-9834\",\n            \"latitude\": \"39.099300\",\n            \"longitude\": \"-76.848300\",\n            \"lata\": \"236\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20707\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433299834\",\n            \"phone_number\": \"+14433299834\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-9533\",\n            \"latitude\": \"38.320000\",\n            \"longitude\": \"-76.450000\",\n            \"lata\": \"238\",\n            \"region\": \"MD\",\n            \"postal_code\": \"20688\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433429533\",\n            \"phone_number\": \"+14433429533\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 323-2314\",\n            \"latitude\": \"38.542600\",\n            \"longitude\": \"-75.719400\",\n            \"lata\": \"242\",\n            \"region\": \"MD\",\n            \"postal_code\": \"21861\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": true\n            },\n            \"number\": \"+14433232314\",\n            \"phone_number\": \"+14433232314\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"none\",\n            \"hipaa_friendly\": true,\n            \"ratecenter\": \"\",\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+1 (443) 844-3429\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14438443429\",\n            \"phone_number\": \"+14438443429\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 516-8580\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14435168580\",\n            \"phone_number\": \"+14435168580\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 767-1419\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14437671419\",\n            \"phone_number\": \"+14437671419\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 639-8517\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14436398517\",\n            \"phone_number\": \"+14436398517\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 746-7192\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"242\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14437467192\",\n            \"phone_number\": \"+14437467192\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 933-8385\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14439338385\",\n            \"phone_number\": \"+14439338385\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 572-3307\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14435723307\",\n            \"phone_number\": \"+14435723307\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 329-9893\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"236\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14433299893\",\n            \"phone_number\": \"+14433299893\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 339-5662\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14433395662\",\n            \"phone_number\": \"+14433395662\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 526-4610\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14435264610\",\n            \"phone_number\": \"+14435264610\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 672-4166\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14436724166\",\n            \"phone_number\": \"+14436724166\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 590-7941\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14435907941\",\n            \"phone_number\": \"+14435907941\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 342-2610\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14433422610\",\n            \"phone_number\": \"+14433422610\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 733-4842\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14437334842\",\n            \"phone_number\": \"+14437334842\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 938-9389\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14439389389\",\n            \"phone_number\": \"+14439389389\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 957-1950\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14439571950\",\n            \"phone_number\": \"+14439571950\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 844-3810\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14438443810\",\n            \"phone_number\": \"+14438443810\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 552-5748\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14435525748\",\n            \"phone_number\": \"+14435525748\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 938-9802\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14439389802\",\n            \"phone_number\": \"+14439389802\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        },\n        {\n            \"friendly_name\": \"+1 (443) 645-5148\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"lata\": \"238\",\n            \"region\": \"\",\n            \"postal_code\": \"\",\n            \"iso_country\": \"US\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": true,\n                \"MMS\": false\n            },\n            \"number\": \"+14436455148\",\n            \"phone_number\": \"+14436455148\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"\",\n            \"hipaa_friendly\": false,\n            \"ratecenter\": \"\",\n            \"source\": 3\n        }\n    ],\n    \"country\": \"US\",\n    \"searchby\": \"area\",\n    \"error\": [],\n    \"format_style\": \"v2\",\n    \"include_distance\": false,\n    \"overlays\": [\n        \"410\",\n        \"667\"\n    ],\n    \"contains\": null,\n    \"areacode\": \"443\",\n    \"status\": \"success\"\n}"}],"_postman_id":"f6759000-dded-4a48-9c95-24158d775cbf"},{"name":"search for international numbers","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                  = JSON.parse(responseBody);","tests[\"numbers is an array\"]  = Array.isArray(jsonData.numbers);","tests[\"country is two chars\"] = jsonData.country.length === 2;","tests[\"status is success\"]    = jsonData.status === \"success\";"]}}],"id":"941273b2-0449-4fcb-9935-73c170ae3ac4","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/search.json?country=GB&pattern=430","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>country</td>\n<td>yes</td>\n<td>the <a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\">ISO_3166-1_alpha-2</a> two-letter country code</td>\n</tr>\n<tr>\n<td>pattern</td>\n<td>no</td>\n<td>an optional pattern to search for</td>\n</tr>\n<tr>\n<td>operator</td>\n<td>no</td>\n<td>either <code>start_with</code> or <code>includes</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>The default operator is <code>includes</code>. It will look for numbers that contain the <code>pattern</code>.</p>\n<p>The <code>start_with</code> operator allows you to find numbers by area code and prefix.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","search.json"],"host":["{{host}}"],"query":[{"key":"country","value":"GB"},{"key":"pattern","value":"430"}],"variable":[]}},"response":[{"id":"5b2f5c40-196a-4a76-933d-7d91495c04d8","name":"search for international numbers","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/search.json?country=GB&pattern=430","protocol":"https","host":["{{host}}"],"path":["{{base_path}}","accounts","{{account_id}}","numbers","search.json"],"query":[{"key":"country","value":"GB"},{"key":"pattern","value":"430"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.3.1","enabled":true},{"key":"Date","value":"Mon, 08 Feb 2021 20:14:54 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"X-Download-Options","value":"noopen","enabled":true},{"key":"X-Permitted-Cross-Domain-Policies","value":"none","enabled":true},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin","enabled":true},{"key":"ETag","value":"W/\"38ad103f5b99b1e1bdc21b0e0b832c8f\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"X-Request-Id","value":"ae3ea4a8-86fb-43d9-9c9f-4640c9ae1b09","enabled":true},{"key":"X-Runtime","value":"0.857260","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"numbers\": [\n        {\n            \"friendly_name\": \"+44 1855 430378\",\n            \"latitude\": \"56.711570\",\n            \"longitude\": \"-4.973550\",\n            \"lata\": null,\n            \"region\": \"Scotland\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441855430378\",\n            \"phone_number\": \"+441855430378\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 23 9387 7430\",\n            \"latitude\": \"50.903950\",\n            \"longitude\": \"-1.404280\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+442393877430\",\n            \"phone_number\": \"+442393877430\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1430 338690\",\n            \"latitude\": \"53.863100\",\n            \"longitude\": \"-0.665050\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441430338690\",\n            \"phone_number\": \"+441430338690\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1430 337998\",\n            \"latitude\": \"53.863100\",\n            \"longitude\": \"-0.665050\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441430337998\",\n            \"phone_number\": \"+441430337998\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1430 337013\",\n            \"latitude\": \"53.863100\",\n            \"longitude\": \"-0.665050\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441430337013\",\n            \"phone_number\": \"+441430337013\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1290 430193\",\n            \"latitude\": \"55.454450\",\n            \"longitude\": \"-4.266440\",\n            \"lata\": null,\n            \"region\": \"Scotland\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441290430193\",\n            \"phone_number\": \"+441290430193\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1728 448430\",\n            \"latitude\": \"52.206110\",\n            \"longitude\": \"1.577570\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441728448430\",\n            \"phone_number\": \"+441728448430\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1290 430209\",\n            \"latitude\": \"55.454450\",\n            \"longitude\": \"-4.266440\",\n            \"lata\": null,\n            \"region\": \"Scotland\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441290430209\",\n            \"phone_number\": \"+441290430209\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1855 430365\",\n            \"latitude\": \"56.711570\",\n            \"longitude\": \"-4.973550\",\n            \"lata\": null,\n            \"region\": \"Scotland\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441855430365\",\n            \"phone_number\": \"+441855430365\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1430 337012\",\n            \"latitude\": \"53.863100\",\n            \"longitude\": \"-0.665050\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441430337012\",\n            \"phone_number\": \"+441430337012\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1507 430820\",\n            \"latitude\": \"53.250000\",\n            \"longitude\": \"0.183330\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441507430820\",\n            \"phone_number\": \"+441507430820\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1855 430374\",\n            \"latitude\": \"56.711570\",\n            \"longitude\": \"-4.973550\",\n            \"lata\": null,\n            \"region\": \"Scotland\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441855430374\",\n            \"phone_number\": \"+441855430374\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1434 303696\",\n            \"latitude\": \"54.969860\",\n            \"longitude\": \"-2.104000\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441434303696\",\n            \"phone_number\": \"+441434303696\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1507 430819\",\n            \"latitude\": \"53.250000\",\n            \"longitude\": \"0.183330\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441507430819\",\n            \"phone_number\": \"+441507430819\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1507 430815\",\n            \"latitude\": \"53.250000\",\n            \"longitude\": \"0.183330\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441507430815\",\n            \"phone_number\": \"+441507430815\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1290 430250\",\n            \"latitude\": \"55.454450\",\n            \"longitude\": \"-4.266440\",\n            \"lata\": null,\n            \"region\": \"Scotland\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441290430250\",\n            \"phone_number\": \"+441290430250\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1434 303706\",\n            \"latitude\": \"54.969860\",\n            \"longitude\": \"-2.104000\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441434303706\",\n            \"phone_number\": \"+441434303706\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1544 304209\",\n            \"latitude\": \"52.200000\",\n            \"longitude\": \"-2.016670\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441544304209\",\n            \"phone_number\": \"+441544304209\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1406 430992\",\n            \"latitude\": \"52.804010\",\n            \"longitude\": \"0.014420\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441406430992\",\n            \"phone_number\": \"+441406430992\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1276 984309\",\n            \"latitude\": \"51.337050\",\n            \"longitude\": \"-0.742610\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441276984309\",\n            \"phone_number\": \"+441276984309\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1430 338692\",\n            \"latitude\": \"53.863100\",\n            \"longitude\": \"-0.665050\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441430338692\",\n            \"phone_number\": \"+441430338692\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1290 430244\",\n            \"latitude\": \"55.454450\",\n            \"longitude\": \"-4.266440\",\n            \"lata\": null,\n            \"region\": \"Scotland\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441290430244\",\n            \"phone_number\": \"+441290430244\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1343 614308\",\n            \"latitude\": \"57.649470\",\n            \"longitude\": \"-3.318430\",\n            \"lata\": null,\n            \"region\": \"Scotland\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441343614308\",\n            \"phone_number\": \"+441343614308\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1430 338497\",\n            \"latitude\": \"53.863100\",\n            \"longitude\": \"-0.665050\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441430338497\",\n            \"phone_number\": \"+441430338497\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1430 637437\",\n            \"latitude\": \"53.863100\",\n            \"longitude\": \"-0.665050\",\n            \"lata\": null,\n            \"region\": \"England\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441430637437\",\n            \"phone_number\": \"+441430637437\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1290 430222\",\n            \"latitude\": \"55.454450\",\n            \"longitude\": \"-4.266440\",\n            \"lata\": null,\n            \"region\": \"Scotland\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441290430222\",\n            \"phone_number\": \"+441290430222\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1290 430215\",\n            \"latitude\": \"55.454450\",\n            \"longitude\": \"-4.266440\",\n            \"lata\": null,\n            \"region\": \"Scotland\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441290430215\",\n            \"phone_number\": \"+441290430215\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1290 430218\",\n            \"latitude\": \"55.454450\",\n            \"longitude\": \"-4.266440\",\n            \"lata\": null,\n            \"region\": \"Scotland\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441290430218\",\n            \"phone_number\": \"+441290430218\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1343 614304\",\n            \"latitude\": \"57.649470\",\n            \"longitude\": \"-3.318430\",\n            \"lata\": null,\n            \"region\": \"Scotland\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441343614304\",\n            \"phone_number\": \"+441343614304\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        },\n        {\n            \"friendly_name\": \"+44 1290 430242\",\n            \"latitude\": \"55.454450\",\n            \"longitude\": \"-4.266440\",\n            \"lata\": null,\n            \"region\": \"Scotland\",\n            \"postal_code\": null,\n            \"iso_country\": \"GB\",\n            \"capabilities\": {\n                \"voice\": true,\n                \"SMS\": false,\n                \"MMS\": false\n            },\n            \"number\": \"+441290430242\",\n            \"phone_number\": \"+441290430242\",\n            \"number_type\": \"local\",\n            \"addr_required\": \"any\",\n            \"hipaa_friendly\": true,\n            \"source\": 1\n        }\n    ],\n    \"country\": \"GB\",\n    \"searchby\": \"area\",\n    \"error\": [],\n    \"format_style\": \"v2\",\n    \"include_distance\": false,\n    \"contains\": \"430\",\n    \"areacode\": null,\n    \"status\": \"success\"\n}"}],"_postman_id":"941273b2-0449-4fcb-9935-73c170ae3ac4"},{"name":"buy number for an account","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"status is success\"] = jsonData.status === \"success\";","tests[\"number.id looks reasonable\"] = jsonData.number.id.match(/^TPN[0-9A-Fa-f]+$/);","tests[\"number.number looks reasonable\"] = jsonData.number.number.match(/^\\+\\d+$/);","tests[\"number.account_id is integer\"] = Number.isInteger(parseInt(jsonData.number.account_id));","tests[\"number.country_code is integer\"] = Number.isInteger(parseInt(jsonData.number.country_code));","tests[\"number.url looks reasonable\"] = jsonData.number.url.match(/https:\\/\\/api\\..*api\\/v1\\/accounts\\//);"]}}],"id":"5f227582-1606-4dd9-a182-3dd0fbb9b7f9","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"phone_number\": \"+14102051558\",\n    \"test\": true\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td>yes</td>\n<td>use <code>phone_number</code> from search</td>\n</tr>\n<tr>\n<td>test</td>\n<td>no</td>\n<td>if you set a value for <code>test</code>, you will not actually purchase the number, but it can be used to test setting up tracking number, etc.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"465817b0-4459-49b9-bca0-816ddd04a6ab","name":"buy number for an account","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"phone_number\": \"+14105931874\",\n    \"test\": true\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"number\": {\n    \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFF048D7517B267A4922EE12D3972395F\",\n    \"type\": \"local\",\n    \"filter_id\": 67517,\n    \"name\": null,\n    \"active\": true,\n    \"status\": \"stopped\",\n    \"account_id\": \"18614\",\n    \"source\": null,\n    \"number\": \"+14105931874\",\n    \"extension\": null,\n    \"call_setting\": {\n      \"id\": \"NCF5B75DB2863BDEA0F8D82E7B25F78F3AE153BCF1573F54745D3914641D59EA054\",\n      \"url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/18614/call_settings/NCF5B75DB2863BDEA0F8D82E7B25F78F3AE153BCF1573F54745D3914641D59EA054\",\n      \"name\": \"Account Level\"\n    },\n    \"country_code\": \"1\",\n    \"next_billing_date\": \"2020-05-06\",\n    \"purchased_by\": null,\n    \"purchased_time\": \"2020-04-06T19:12:25Z\",\n    \"last_modified_by\": null,\n    \"route_to\": {\n      \"type\": \"receiving_number\",\n      \"multi\": true,\n      \"mode\": \"simultaneous\",\n      \"dial\": [\n\n      ]\n    },\n    \"split\": [\n      \"1\",\n      \"410\",\n      \"593\",\n      \"1874\"\n    ],\n    \"stats\": {\n      \"since\": 1586200347.855396,\n      \"renewal_costs\": \"1.25\",\n      \"calls\": 0,\n      \"minutes\": 0,\n      \"minute_costs\": \"0.0\"\n    },\n    \"formatted\": \"(410) 593-1874\",\n    \"routing\": \"simultaneous\",\n    \"call_script\": null,\n    \"text_route\": null,\n    \"schedule\": null,\n    \"tag_list\": [\n\n    ],\n    \"failsafe_number\": null,\n    \"google_attribution\": null,\n    \"url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/18614/numbers/TPNC3C4B23C348AEC2EE54EFD301979CD2EFF048D7517B267A4922EE12D3972395F.json\"\n  }"}],"_postman_id":"5f227582-1606-4dd9-a182-3dd0fbb9b7f9"},{"name":"buy number for an account by area code","event":[{"listen":"test","script":{"id":"c15fc9f0-3fee-42f5-8eb8-d1ef73f71e56","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"status is success\"] = jsonData.status === \"success\";","tests[\"number.id looks reasonable\"] = jsonData.number.id.match(/^TPN[0-9A-Fa-f]+$/);","tests[\"number.number looks reasonable\"] = jsonData.number.number.match(/^\\+\\d+$/);","tests[\"number.account_id is integer\"] = Number.isInteger(parseInt(jsonData.number.account_id));","tests[\"number.country_code is integer\"] = Number.isInteger(parseInt(jsonData.number.country_code));","tests[\"number.url looks reasonable\"] = jsonData.number.url.match(/https:\\/\\/api\\..*api\\/v1\\/accounts\\//);"],"type":"text/javascript"}}],"id":"a96b470a-2d21-4f01-b97a-c2145620b3c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"area_code\": \"+410\",\n    \"test\": true,\n    \"carrier\": \"A,B,C\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/areacode","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>area_code</td>\n<td>yes</td>\n<td>an area code you want to buy a number in</td>\n</tr>\n<tr>\n<td>test</td>\n<td>no</td>\n<td>if you set a value for <code>test</code>, you will not actually purchase the number, but it can be used to test setting up tracking number, etc.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","areacode"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"bada4134-fce3-4157-91fc-1859690eac2e","name":"buy number for an account by area code","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"area_code\": \"410\",\n    \"test\": true\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/areacode"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"number\": {\n    \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFF048D7517B267A4922EE12D3972395F\",\n    \"type\": \"local\",\n    \"filter_id\": 67517,\n    \"name\": null,\n    \"active\": true,\n    \"status\": \"stopped\",\n    \"account_id\": \"18614\",\n    \"source\": null,\n    \"number\": \"+14105931874\",\n    \"extension\": null,\n    \"call_setting\": {\n      \"id\": \"NCF5B75DB2863BDEA0F8D82E7B25F78F3AE153BCF1573F54745D3914641D59EA054\",\n      \"url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/18614/call_settings/NCF5B75DB2863BDEA0F8D82E7B25F78F3AE153BCF1573F54745D3914641D59EA054\",\n      \"name\": \"Account Level\"\n    },\n    \"country_code\": \"1\",\n    \"next_billing_date\": \"2020-05-06\",\n    \"purchased_by\": null,\n    \"purchased_time\": \"2020-04-06T19:12:25Z\",\n    \"last_modified_by\": null,\n    \"route_to\": {\n      \"type\": \"receiving_number\",\n      \"multi\": true,\n      \"mode\": \"simultaneous\",\n      \"dial\": [\n\n      ]\n    },\n    \"split\": [\n      \"1\",\n      \"410\",\n      \"593\",\n      \"1874\"\n    ],\n    \"stats\": {\n      \"since\": 1586200347.855396,\n      \"renewal_costs\": \"1.25\",\n      \"calls\": 0,\n      \"minutes\": 0,\n      \"minute_costs\": \"0.0\"\n    },\n    \"formatted\": \"(410) 593-1874\",\n    \"routing\": \"simultaneous\",\n    \"call_script\": null,\n    \"text_route\": null,\n    \"schedule\": null,\n    \"tag_list\": [\n\n    ],\n    \"failsafe_number\": null,\n    \"google_attribution\": null,\n    \"url\": \"https://api.calltrackingmetrics.com/api/v1/accounts/18614/numbers/TPNC3C4B23C348AEC2EE54EFD301979CD2EFF048D7517B267A4922EE12D3972395F.json\"\n  }"}],"_postman_id":"a96b470a-2d21-4f01-b97a-c2145620b3c4"}],"id":"dd2aa6ca-b081-4995-ad2c-5d042f2da905","_postman_id":"dd2aa6ca-b081-4995-ad2c-5d042f2da905","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Numbers | Receiving","item":[{"name":"list receiving numbers","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"receiving_numbers is an array\"] = Array.isArray(jsonData.receiving_numbers);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"]}}],"id":"2821bd6c-eeb3-4dae-b3b2-e0ecbb50be3a","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/receiving_numbers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>number</td>\n<td>no</td>\n<td>optionally filter by the given phone number digits</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>optionally filter by the given description of the number.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","receiving_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"df8709b6-ac53-41b8-ae18-2b7adbd653a5","name":"success","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/receiving_numbers"},"status":"OK","code":200,"_postman_previewlanguage":"javascript","header":[{"name":"Access-Control-Allow-Origin","key":"Access-Control-Allow-Origin","value":"*","description":"","enabled":true},{"name":"Cache-Control","key":"Cache-Control","value":"must-revalidate, private, max-age=0","description":"","enabled":true},{"name":"Connection","key":"Connection","value":"keep-alive","description":"","enabled":true},{"name":"Content-Encoding","key":"Content-Encoding","value":"gzip","description":"","enabled":true},{"name":"Content-Type","key":"Content-Type","value":"application/json; charset=utf-8","description":"","enabled":true},{"name":"Date","key":"Date","value":"Fri, 22 Jul 2016 19:05:16 GMT","description":"","enabled":true},{"name":"ETag","key":"ETag","value":"W/\"bcfcd943892613ac3f341154466d43fc\"","description":"","enabled":true},{"name":"Server","key":"Server","value":"nginx","description":"","enabled":true},{"name":"Strict-Transport-Security","key":"Strict-Transport-Security","value":"max-age=15768000","description":"","enabled":true},{"name":"Transfer-Encoding","key":"Transfer-Encoding","value":"chunked","description":"","enabled":true},{"name":"Vary","key":"Vary","value":"Accept-Encoding","description":"","enabled":true},{"name":"X-UA-Compatible","key":"X-UA-Compatible","value":"IE=Edge","description":"","enabled":true}],"cookie":[],"responseTime":"164","body":"{\n  \"total_entries\": 1,\n  \"total_pages\": 1,\n  \"next_page\": \"https://api.ctmdev.us/api/v1/accounts/18637/receiving_numbers\",\n  \"previous_page\": \"https://api.ctmdev.us/api/v1/accounts/18637/receiving_numbers\",\n  \"receiving_numbers\": [\n    {\n      \"id\": \"RPN34D8AC3F61E8848FEA641CEF711011AA4EBC1EAE6A8B0FA833381FE66ADD02D1\",\n      \"filter_id\": 40147,\n      \"name\": \"test number label\",\n      \"number\": \"+18885551212\",\n      \"display_number\": \"(888) 555-1212\",\n      \"account_id\": 18637,\n      \"country_code\": \"1\",\n      \"split\": [\n        \"1\",\n        \"888\",\n        \"555\",\n        \"1212\"\n      ],\n      \"formatted\": \"(888)-555-1212\",\n      \"url\": \"/api/v1/accounts/18637/receiving_numbers/RPN34D8AC3F61E8848FEA641CEF711011AA4EBC1EAE6A8B0FA833381FE66ADD02D1\"\n    }\n  ]\n}"}],"_postman_id":"2821bd6c-eeb3-4dae-b3b2-e0ecbb50be3a"},{"name":"receiving number details","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"id looks reasonable\"] = jsonData.id.match(/^RPN[0-9A-Fa-f]+$/);","tests[\"number looks reasonable\"] = jsonData.number.match(/^\\+\\d+$/);","tests[\"account_id is integer\"] = Number.isInteger(jsonData.account_id);","tests[\"country_code is integer\"] = Number.isInteger(parseInt(jsonData.country_code));","tests[\"url looks reasonable\"] = jsonData.url.match(/https:\\/\\/api\\..*api\\/v1\\/accounts\\//);"]}}],"id":"c23553f6-eb53-4151-a4c0-837031d8904a","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/receiving_numbers/{{receiving_number_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>receiving_number_id</td>\n<td>yes</td>\n<td>the RPN id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","receiving_numbers","{{receiving_number_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"42fe19ee-fce1-481c-84fd-8a2801d9a69d","name":"success","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/receiving_numbers"},"status":"OK","code":200,"_postman_previewlanguage":"javascript","header":[{"name":"Access-Control-Allow-Origin","key":"Access-Control-Allow-Origin","value":"*","description":"","enabled":true},{"name":"Cache-Control","key":"Cache-Control","value":"must-revalidate, private, max-age=0","description":"","enabled":true},{"name":"Connection","key":"Connection","value":"keep-alive","description":"","enabled":true},{"name":"Content-Encoding","key":"Content-Encoding","value":"gzip","description":"","enabled":true},{"name":"Content-Type","key":"Content-Type","value":"application/json; charset=utf-8","description":"","enabled":true},{"name":"Date","key":"Date","value":"Fri, 22 Jul 2016 19:05:16 GMT","description":"","enabled":true},{"name":"ETag","key":"ETag","value":"W/\"bcfcd943892613ac3f341154466d43fc\"","description":"","enabled":true},{"name":"Server","key":"Server","value":"nginx","description":"","enabled":true},{"name":"Strict-Transport-Security","key":"Strict-Transport-Security","value":"max-age=15768000","description":"","enabled":true},{"name":"Transfer-Encoding","key":"Transfer-Encoding","value":"chunked","description":"","enabled":true},{"name":"Vary","key":"Vary","value":"Accept-Encoding","description":"","enabled":true},{"name":"X-UA-Compatible","key":"X-UA-Compatible","value":"IE=Edge","description":"","enabled":true}],"cookie":[],"responseTime":"164","body":"{\n  \"total_entries\": 1,\n  \"total_pages\": 1,\n  \"next_page\": \"https://api.ctmdev.us/api/v1/accounts/18637/receiving_numbers\",\n  \"previous_page\": \"https://api.ctmdev.us/api/v1/accounts/18637/receiving_numbers\",\n  \"receiving_numbers\": [\n    {\n      \"id\": \"RPN34D8AC3F61E8848FEA641CEF711011AA4EBC1EAE6A8B0FA833381FE66ADD02D1\",\n      \"filter_id\": 40147,\n      \"name\": \"test number label\",\n      \"number\": \"+18885551212\",\n      \"display_number\": \"(888) 555-1212\",\n      \"account_id\": 18637,\n      \"country_code\": \"1\",\n      \"split\": [\n        \"1\",\n        \"888\",\n        \"555\",\n        \"1212\"\n      ],\n      \"formatted\": \"(888)-555-1212\",\n      \"url\": \"/api/v1/accounts/18637/receiving_numbers/RPN34D8AC3F61E8848FEA641CEF711011AA4EBC1EAE6A8B0FA833381FE66ADD02D1\"\n    }\n  ]\n}"}],"_postman_id":"c23553f6-eb53-4151-a4c0-837031d8904a"},{"name":"create a receiving number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"status is success\"] = jsonData.status === \"success\";","tests[\"receiving_number.id looks reasonable\"] = jsonData.receiving_number.id.match(/^RPN[0-9A-Fa-f]+$/);","tests[\"receiving_number.number looks reasonable\"] = jsonData.receiving_number.number.match(/^\\+\\d+$/);","tests[\"receiving_number.account_id is integer\"] = Number.isInteger(parseInt(jsonData.receiving_number.account_id));","tests[\"receiving_number.country_code is integer\"] = Number.isInteger(parseInt(jsonData.receiving_number.country_code));","tests[\"receiving_number.url looks reasonable\"] = jsonData.receiving_number.url.match(/https:\\/\\/api\\..*api\\/v1\\/accounts\\//);"]}}],"id":"60fdd26a-aa7d-40bf-9d1c-ed5bc324e730","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"number\": \"+14104445555\",\n    \"name\": \"testing123\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/receiving_numbers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>number</td>\n<td>yes</td>\n<td>a receiving number in [E.164](<a href=\"https://en.wikipedia.org/wiki/E.164\">https://en.wikipedia.org/wiki/E.164</a> Wikipedia) format (i.e. +18885551212 or +441632960162)</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>a label for the receiving number</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","receiving_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"60fdd26a-aa7d-40bf-9d1c-ed5bc324e730"},{"name":"delete a receiving number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests.status = jsonData.status === \"success\";"]}}],"id":"b9f4cba5-58d7-405f-bb26-3409ca9dba68","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/receiving_numbers/{{receiving_number_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>receiving_number_id</td>\n<td>yes</td>\n<td>the RPN id (receiving number id) to delete</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","receiving_numbers","{{receiving_number_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9f4cba5-58d7-405f-bb26-3409ca9dba68"},{"name":"update a receiving number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"status is success\"] = jsonData.status === \"success\";","tests[\"receiving_number.id looks reasonable\"] = jsonData.receiving_number.id.match(/^RPN[0-9A-Fa-f]+$/);","tests[\"receiving_number.number looks reasonable\"] = jsonData.receiving_number.number.match(/^\\+\\d+$/);","tests[\"receiving_number.account_id is integer\"] = Number.isInteger(parseInt(jsonData.receiving_number.account_id));","tests[\"receiving_number.country_code is integer\"] = Number.isInteger(parseInt(jsonData.receiving_number.country_code));","tests[\"receiving_number.url looks reasonable\"] = jsonData.receiving_number.url.match(/https:\\/\\/api\\..*api\\/v1\\/accounts\\//);"]}}],"id":"5afb3992-6629-44b1-88d8-37bb8265aa55","request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"number\": \"+14104445555\",\n    \"name\": \"testing123\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/receiving_numbers/{{receiving_number_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>receiving_number_id</td>\n<td>yes</td>\n<td>the receiving number id from details or list</td>\n</tr>\n<tr>\n<td>number</td>\n<td>yes</td>\n<td>a receiving number in [E.164](<a href=\"https://en.wikipedia.org/wiki/E.164\">https://en.wikipedia.org/wiki/E.164</a> Wikipedia) format (i.e. +18885551212 or +441632960162)</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>a label for the receiving number</td>\n</tr>\n<tr>\n<td>dial_extension</td>\n<td>no</td>\n<td>optionally after connecting dial an extension.</td>\n</tr>\n<tr>\n<td>dial_extension_wait_time</td>\n<td>no</td>\n<td>number of seconds to pause before dialing the given extension e.g. 0.0 up to 30.0</td>\n</tr>\n<tr>\n<td>fallback_to</td>\n<td>no</td>\n<td>configure a fallback for this number when not answered or if it rings busy - possibly routing options include: receiving_number, voice_menu, call_queue, conditional_router</td>\n</tr>\n<tr>\n<td>fallback_timeout</td>\n<td>no</td>\n<td>seconds to wait before automatically falling back to a given route. A busy signal or no answer will automatically trigger the fallback</td>\n</tr>\n<tr>\n<td>fallback_number_id</td>\n<td>no</td>\n<td>a receiving number ID</td>\n</tr>\n<tr>\n<td>fallback_voice_menu_id</td>\n<td>no</td>\n<td>a voice menu ID</td>\n</tr>\n<tr>\n<td>fallback_call_queue_id</td>\n<td>no</td>\n<td>a call queue ID</td>\n</tr>\n<tr>\n<td>fallback_conditional_router_id</td>\n<td>no a smart router e.g. conditional router ID</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","receiving_numbers","{{receiving_number_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5afb3992-6629-44b1-88d8-37bb8265aa55"}],"id":"cd89c336-71a9-46fa-9d84-a50e6500c00b","_postman_id":"cd89c336-71a9-46fa-9d84-a50e6500c00b","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Numbers | Routing","item":[{"name":"update number routing","id":"890d5af7-5615-4bf5-8cc9-4cbb604adc0d","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"dial_route\": \"number\",\n    \"numbers\": [\"8665552222\",\"4165553333\"],\n    \"country_codes\": [\"US\",\"CA\"]\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}/update_number","description":"<h4 id=\"route-a-tracking-number-to-receiving-numbers-when-you-know-the-receiving-number-ids-rpn\">Route a tracking number to receiving number(s) when you know the receiving number ID(s) (RPN)</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN id of the tracking number</td>\n</tr>\n<tr>\n<td>dial_route</td>\n<td>yes</td>\n<td><code>number</code></td>\n</tr>\n<tr>\n<td>numbers_id</td>\n<td>yes</td>\n<td>an array of RPN IDs (receiving number IDs)</td>\n</tr>\n<tr>\n<td>tracking_source_id</td>\n<td>no</td>\n<td>the tracking source id</td>\n</tr>\n<tr>\n<td>number_config_id</td>\n<td>no</td>\n<td>the number/call setting id</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Sample JSON body</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"dial_route\": \"number\",\n    \"numbers_id\": [ \"RPN...\", \"RPN...\" ]\n}\n</code></pre>\n<h4 id=\"route-a-tracking-number-to-receiving-numbers-that-do-not-already-exist\">Route a tracking number to receiving numbers that do not already exist</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN id of the tracking number</td>\n</tr>\n<tr>\n<td>dial_route</td>\n<td>yes</td>\n<td><code>number</code></td>\n</tr>\n<tr>\n<td>numbers</td>\n<td>yes</td>\n<td>an array of phone numbers without the country dial prefix (i.e. no +1 or +44)</td>\n</tr>\n<tr>\n<td>country_codes</td>\n<td>yes</td>\n<td>an array of ISO 3166-1 alpha-2 country codes  (i.e. US, CA, GB)</td>\n</tr>\n<tr>\n<td>tracking_source_id</td>\n<td>no</td>\n<td>the tracking source id</td>\n</tr>\n<tr>\n<td>number_config_id</td>\n<td>no</td>\n<td>the number/call setting id</td>\n</tr>\n<tr>\n<td>geo_config_id</td>\n<td>no</td>\n<td>the id of your geo router as well you want to set the dial_route 'geo_config'</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Sample JSON body</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"dial_route\": \"number\",\n    \"numbers\": [\"8665552222\",\"4165553333\"],\n    \"country_codes\": [\"US\",\"CA\"]\n}\n</code></pre>\n<p><strong>Sample JSON to set a Geo Router</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"dial_route\": \"geo_config\",\n    \"geo_config_id\": \"GEO188.....\",\n}\n</code></pre>\n<h4 id=\"set-up-other-routes\">Set up other routes</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>dial_route</td>\n<td>yes</td>\n<td>one of <code>number</code>, <code>voice_menu</code>, <code>geo_config</code>, <code>call_queue</code>, <code>conditional_router</code>, or <code>call_agent</code></td>\n</tr>\n<tr>\n<td>tracking_source_id</td>\n<td></td>\n<td>the tracking source id</td>\n</tr>\n<tr>\n<td>number_config_id</td>\n<td></td>\n<td>the number/call setting id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}","update_number"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"890d5af7-5615-4bf5-8cc9-4cbb604adc0d"}],"id":"5a8fd386-3139-405a-a5b3-79532b3f425a","_postman_id":"5a8fd386-3139-405a-a5b3-79532b3f425a","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Numbers | Target","item":[{"name":"list of target numbers","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"numbers is an array\"] = Array.isArray(jsonData.numbers);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"]}}],"id":"07a8bc60-d798-4092-8d2c-cb888f8c6ae7","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/target_numbers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>number</td>\n<td>no</td>\n<td>a phone number to filter the list by</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>a phone number name to filter the list by</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>no</td>\n<td>a tracking number id to filter the list by</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","target_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"07a8bc60-d798-4092-8d2c-cb888f8c6ae7"},{"name":"target number details","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"id looks reasonable\"] = jsonData.id.match(/^TNI[0-9A-Fa-f]+$/);","tests[\"number looks reasonable\"] = jsonData.number.match(/^\\d+$/);","tests[\"account_id is integer\"] = Number.isInteger(parseInt(jsonData.account_id));","tests[\"tracking_numbers is array\"] = Array.isArray(jsonData.tracking_numbers);"]}}],"id":"86118d20-60aa-467f-919e-707c7f5f4296","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/target_numbers/{{target_number_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>target_number_id</td>\n<td>yes</td>\n<td>the TNI target number ID</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","target_numbers","{{target_number_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"86118d20-60aa-467f-919e-707c7f5f4296"},{"name":"create a target number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"status is success\"] = jsonData.status === \"success\";","tests[\"target_number.id looks reasonable\"] = jsonData.target_number.id.match(/^TNI[0-9A-Fa-f]+$/);","tests[\"target_number.number looks reasonable\"] = jsonData.target_number.number.match(/^\\d+$/);","tests[\"target_number.account_id is integer\"] = Number.isInteger(parseInt(jsonData.target_number.account_id));","tests[\"target_number.tracking_numbers is array\"] = Array.isArray(jsonData.target_number.tracking_numbers);"]}}],"id":"891b3c50-86c9-48a3-82b0-e8aac1e014bd","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"number\": \"+14104445555\",\n    \"name\": \"testing123\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/target_numbers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>number</td>\n<td>yes</td>\n<td>a target number in [E.164](<a href=\"https://en.wikipedia.org/wiki/E.164\">https://en.wikipedia.org/wiki/E.164</a> Wikipedia) format (i.e. +18885551212 or +441632960162)</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>a label for the target number</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","target_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"891b3c50-86c9-48a3-82b0-e8aac1e014bd"},{"name":"delete a target number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests.status = jsonData.status === \"success\";"]}}],"id":"eedec147-3b9b-4f6a-bbfb-28b447763380","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/target_numbers/{{target_number_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>target_number_id</td>\n<td>yes</td>\n<td>the TNI id (tracking number id) to delete</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","target_numbers","{{target_number_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eedec147-3b9b-4f6a-bbfb-28b447763380"},{"name":"add tracking number to target number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"status is success\"] = jsonData.status === \"success\";","tests[\"target_number.id looks reasonable\"] = jsonData.target_number.id.match(/^TNI[0-9A-Fa-f]+$/);","tests[\"target_number.number looks reasonable\"] = jsonData.target_number.number.match(/^\\d+$/);","tests[\"target_number.account_id is integer\"] = Number.isInteger(parseInt(jsonData.target_number.account_id));","tests[\"target_number.tracking_numbers is array\"] = Array.isArray(jsonData.target_number.tracking_numbers);","tests[\"target_number.tracking_numbers should include tracking_number_id\"] = jsonData.target_number.tracking_numbers.includes(postman.getEnvironmentVariable(\"tracking_number_id\"));"]}}],"id":"80fa9113-bcbd-4af8-859a-baccf0a1d899","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}/target_numbers/{{target_number_id}}/add","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN tracking number ID</td>\n</tr>\n<tr>\n<td>target_number_id</td>\n<td>yes</td>\n<td>the TNI target number ID</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}","target_numbers","{{target_number_id}}","add"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"80fa9113-bcbd-4af8-859a-baccf0a1d899"},{"name":"remove tracking number from target number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"status is success\"] = jsonData.status === \"success\";","tests[\"target_number.id looks reasonable\"] = jsonData.target_number.id.match(/^TNI[0-9A-Fa-f]+$/);","tests[\"target_number.number looks reasonable\"] = jsonData.target_number.number.match(/^\\d+$/);","tests[\"target_number.account_id is integer\"] = Number.isInteger(parseInt(jsonData.target_number.account_id));","tests[\"target_number.tracking_numbers is array\"] = Array.isArray(jsonData.target_number.tracking_numbers);","tests[\"target_number.tracking_numbers should not include tracking_number_id\"] = !jsonData.target_number.tracking_numbers.includes(postman.getEnvironmentVariable(\"tracking_number_id\"));"]}}],"id":"114a2941-678a-4872-b996-a3a75ce94b15","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"number\": \"+14104445555\",\n    \"name\": \"testing123\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}/target_numbers/{{target_number_id}}/rem","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN tracking number ID</td>\n</tr>\n<tr>\n<td>target_number_id</td>\n<td>yes</td>\n<td>the TNI target number ID</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}","target_numbers","{{target_number_id}}","rem"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"114a2941-678a-4872-b996-a3a75ce94b15"}],"id":"800175c6-4e3c-4d80-b80f-1ee805d2d33e","_postman_id":"800175c6-4e3c-4d80-b80f-1ee805d2d33e","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Numbers | Tracking","item":[{"name":"list of tracking numbers","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"numbers is an array\"] = Array.isArray(jsonData.numbers);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"]}}],"id":"6b8ecc5b-d2f3-4169-8a6f-467ab6fe4200","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{Basic Auth}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>number</td>\n<td>no</td>\n<td>a phone number to filter the list by</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>a phone number name to filter the list by</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b8ecc5b-d2f3-4169-8a6f-467ab6fe4200"},{"name":"tracking number details","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"id looks reasonable\"] = jsonData.id.match(/^TPN[0-9A-Fa-f]+$/);","tests[\"number looks reasonable\"] = jsonData.number.match(/^\\+\\d+$/);","tests[\"account_id is integer\"] = Number.isInteger(parseInt(jsonData.account_id));","tests[\"country_code is integer\"] = Number.isInteger(parseInt(jsonData.country_code));","tests[\"url looks reasonable\"] = jsonData.url.match(/https:\\/\\/api\\..*api\\/v1\\/accounts\\//);","tests[\"active is boolean\"] = typeof jsonData.active === \"boolean\";"]}}],"id":"5f5dac0e-ec72-4cb6-aee5-e073a76628b1","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN tracking number ID</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5f5dac0e-ec72-4cb6-aee5-e073a76628b1"},{"name":"dial route details for tracking number","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"id looks reasonable\"] = jsonData.id.match(/^TPN[0-9A-Fa-f]+$/);","tests[\"number looks reasonable\"] = jsonData.number.match(/^\\+\\d+$/);","tests[\"account_id is integer\"] = Number.isInteger(parseInt(jsonData.account_id));","tests[\"country_code is integer\"] = Number.isInteger(parseInt(jsonData.country_code));","tests[\"url looks reasonable\"] = jsonData.url.match(/https:\\/\\/api\\..*api\\/v1\\/accounts\\//);","tests[\"active is boolean\"] = typeof jsonData.active === \"boolean\";"]}}],"id":"9b14ac76-be61-45f8-933c-8c2b6655d270","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}/dial_routes","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN tracking number ID</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}","dial_routes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b14ac76-be61-45f8-933c-8c2b6655d270"},{"name":"update tracking number details","id":"c1c6e2c4-68af-4fee-b372-19201723dec8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"testing123\",\n  \"custom_fields\": {\n      \"contract_id\" : \"123\",\n      \"version\" : 99,\n      \"test\": true,\n      \"choices\": \"second\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}/update_number","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN tracking number ID</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>the name or label of the tracking number</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}","update_number"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1c6e2c4-68af-4fee-b372-19201723dec8"},{"name":"update tracking number status","id":"312f6e15-a680-4e25-83b4-b3cf8e4a86a3","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"stopped\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}/status_update","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN tracking number ID</td>\n</tr>\n<tr>\n<td>status</td>\n<td>yes</td>\n<td>one of <code>active</code>, <code>paused</code>, or <code>stopped</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}","status_update"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d097b734-d203-42ce-b252-69589163b767","name":"success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json","description":"The mime type of this content"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"stopped\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56/status_update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"","enabled":true},{"key":"Connection","value":"keep-alive","name":"Connection","description":"","enabled":true},{"key":"Content-Length","value":"108","name":"Content-Length","description":"","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"","enabled":true},{"key":"Date","value":"Thu, 03 Nov 2016 21:31:43 GMT","name":"Date","description":"","enabled":true},{"key":"ETag","value":"\"19d42e733a8d36d88816c8bd44956887\"","name":"ETag","description":"","enabled":true},{"key":"Server","value":"nginx","name":"Server","description":"","enabled":true},{"key":"Set-Cookie","value":"_ctm2=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTY5YWZhNWE4OWY1NGIxM2U0NWFiYmNkNWQ1ZmFjMjhjBjsAVEkiD2V4cGlyZXNfYXQGOwBGVTogQWN0aXZlU3VwcG9ydDo6VGltZVdpdGhab25lWwhJdToJVGltZQ2NKB3A1ue3fgY6CXpvbmVJIghVVEMGOwBUSSIIVVRDBjsAVEAM--e5ac644d84b91396f7805f9d86e0978db8efe09c; domain=.ctmdev.us; path=/; expires=Fri, 04-Nov-2016 13:31:43 GMT; secure; HttpOnly","name":"Set-Cookie","description":"","enabled":true},{"key":"Set-Cookie","value":"remember_user_token=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT","name":"Set-Cookie","description":"","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=15768000","name":"Strict-Transport-Security","description":"","enabled":true},{"key":"X-UA-Compatible","value":"IE=Edge","name":"X-UA-Compatible","description":"","enabled":true}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"ctmdev.us","path":"/","secure":true,"value":"BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTY5YWZhNWE4OWY1NGIxM2U0NWFiYmNkNWQ1ZmFjMjhjBjsAVEkiD2V4cGlyZXNfYXQGOwBGVTogQWN0aXZlU3VwcG9ydDo6VGltZVdpdGhab25lWwhJdToJVGltZQ2NKB3A1ue3fgY6CXpvbmVJIghVVEMGOwBUSSIIVVRDBjsAVEAM--e5ac644d84b91396f7805f9d86e0978db8efe09c","key":"_ctm2"}],"responseTime":"188","body":"{\n  \"status\": \"success\",\n  \"number\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\"\n}"}],"_postman_id":"312f6e15-a680-4e25-83b4-b3cf8e4a86a3"},{"name":"add receiving number to tracking number","id":"e100d735-a26b-42d4-bf73-2f1f3daab7a4","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}/receiving_numbers/{{receiving_number_id}}/add","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>receiving_number_id</td>\n<td>yes</td>\n<td>the RPN receiving number ID</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN tracking number ID</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}","receiving_numbers","{{receiving_number_id}}","add"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e100d735-a26b-42d4-bf73-2f1f3daab7a4"},{"name":"enable SMS","id":"84672bff-6f9b-44ab-9971-1d781416babf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"testing123\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}/enable_sms?long_outgoing=1","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN tracking number ID</td>\n</tr>\n<tr>\n<td>long_outgoing</td>\n<td>no</td>\n<td>a value of 1 will enable long (concatenated) text messages. a value of 0 will disable long text messages</td>\n</tr>\n</tbody>\n</table>\n</div><p>This endpoint can only be used to enable SMS on a number that is SMS capable. Possible return values are 200 success, 404 notfound, 200 alreadyenabled, and 406 failure.</p>\n","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}","enable_sms"],"host":["{{host}}"],"query":[{"key":"long_outgoing","value":"1"}],"variable":[]}},"response":[],"_postman_id":"84672bff-6f9b-44ab-9971-1d781416babf"},{"name":"disable SMS","id":"e206e5e0-c2cd-4ab8-a87e-b47103c2fbc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"testing123\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}/disable_sms?long_outgoing=0","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN tracking number ID</td>\n</tr>\n<tr>\n<td>long_outgoing</td>\n<td>no</td>\n<td>a value of 1 will enable long (concatenated) text messages. a value of 0 will disable long text messages</td>\n</tr>\n</tbody>\n</table>\n</div><p>This endpoint can only be used to disable SMS on a number that is SMS capable. Possible return values are 200 success, 404 notfound, 200 alreadydisabled, and 406 failure.</p>\n","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}","disable_sms"],"host":["{{host}}"],"query":[{"key":"long_outgoing","value":"0"}],"variable":[]}},"response":[],"_postman_id":"e206e5e0-c2cd-4ab8-a87e-b47103c2fbc7"},{"name":"remove receiving number from tracking number","id":"0a6ee372-015b-4afd-93a9-9e0ab7e59927","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}/receiving_numbers/{{receiving_number_id}}/rem","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>receiving_number_id</td>\n<td>yes</td>\n<td>the RPN receiving number ID</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN tracking number ID</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}","receiving_numbers","{{receiving_number_id}}","rem"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a6ee372-015b-4afd-93a9-9e0ab7e59927"},{"name":"update tracking numbers routes","id":"d6691013-9f25-4d2c-ad3b-56c4ada9b1ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"virtual_phone_number\": {\n    \"dial_route\": \"voice_menu\",\n    \"voice_menu_id\": \"VOM93F974B7707B24676C5C3433D23BA1162011FDE49286CD32\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}/dial_routes","description":"<h3 id=\"route-tracking-number-to-a-voice-menu\">Route Tracking Number to a Voice Menu</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the TPN tracking number ID</td>\n</tr>\n<tr>\n<td>dial_route</td>\n<td>yes</td>\n<td><code>voice_menu</code></td>\n</tr>\n<tr>\n<td>voice_menu_id</td>\n<td>yes</td>\n<td>the VOM id of the voice menu</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"request-body-to-route-to-voice-mail\">Request Body to route to voice mail</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"virtual_phone_number\": {\n    \"dial_route\": \"voice_menu\",\n    \"voice_menu_id\": \"VOM...\"\n  }\n}\n</code></pre>\n<h4 id=\"request-body-to-route-to-agent\">Request Body to route to agent</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"virtual_phone_number\": {\n    \"dial_route\": \"call_agent\",\n    \"user_id\": \"USR043E46722529BCB5FE87E1200DC64BF9\",\n    \"user_default_action_label\": \"voicemail\",\n    \"user_no_answer_seconds\": 25\n  }\n}\n</code></pre>\n","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}","dial_routes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6691013-9f25-4d2c-ad3b-56c4ada9b1ea"},{"name":"release (delete) a tracking number","id":"7a1e3606-344d-44fd-807d-b8dadb219df1","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/numbers/{{tracking_number_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","numbers","{{tracking_number_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a1e3606-344d-44fd-807d-b8dadb219df1"}],"id":"74c499a2-647a-4093-9d8b-9b6904eab43e","_postman_id":"74c499a2-647a-4093-9d8b-9b6904eab43e","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Lookup Query API","item":[{"name":"lookup api","event":[{"listen":"test","script":{"id":"76988f4f-3101-4610-b1a1-bbbecb3f87e7","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                       = JSON.parse(responseBody);","tests[\"tracking code reasonable\"]  = jsonData.tracking.match(/^<script async src=\\\"\\/\\/\\d+.tctm.co\\/t.js\\\"><\\/script>$/);","tests[\"google_adwords is present\"] = typeof jsonData.google_adwords === 'string';"],"type":"text/javascript"}}],"id":"51b21a93-db45-492b-8dbc-b3fb0ab708e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lookup.json?object_type=&search=","description":"<p>Lookup objects by type and optional search filter</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>search</td>\n<td>no</td>\n<td>filter the results by matching text</td>\n</tr>\n<tr>\n<td>object_type</td>\n<td>yes</td>\n<td>type of object to filter e.g. tag, tracking_number, receiving_number see lookup query documentation above.</td>\n</tr>\n</tbody>\n</table>\n</div><p>curl -XGET <a href=\"https://api.calltrackingmetrics.com/api/v1/accounts/%7Byour-account-id%7D/lookup.json?object_type=tag&amp;search=%7Boption\">https://api.calltrackingmetrics.com/api/v1/accounts/{your-account-id}/lookup.json?object_type=tag&amp;search={option</a> filter text}</p>\n<p>{\"total\":1,\"page\":1,\"per_page\":10,\"results\":[{\"id\":\"c\",\"text\":\"c\",\"_source_id\":\"246941.1091859867\"}]}</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lookup.json"],"host":["{{host}}"],"query":[{"key":"object_type","value":""},{"key":"search","value":""}],"variable":[]}},"response":[],"_postman_id":"51b21a93-db45-492b-8dbc-b3fb0ab708e0"}],"id":"7e9454d4-7b71-4c56-aa17-8bed0de1979b","description":"<p>Easily query for objects by type and an optional filter string.  Designed to give you away to quickly lookup an object by type.</p>\n<p>Valid object types include:</p>\n<p>call \nactivity \ntracking_number\ntarget_number \nreceiving_number\ntracking_source\ntag\nagent\naccount\nagency\nschedule\nprice_schedule\ncall_queue\ngeo_config\nvoice_menu\nvoice_mail\nreport_filter\ncountry\nplan\nuser\nemail\ncontact_number\nkeypress\ncsr\nform_reactor\nchat_widget\naddress\nnumber_config\ncall_setting\noutbound_voicemail\nwebhook\nconditional_router\ncustom_field\ncustom_panel\ntransfer_to\ntransfer_from\ndialer\ncall_script notification\nsignup_page\noutbound_number\nagent_status\nrecurring_bulk_sms\nautomator\nsalesforce_router\nlambda_action\npreset\ncurrency\nfacebook_ad_accounts\nsalesforce_object\nmessage_response\nmicrosoft_dynamics_object\nphone_setting\noutbound_campaign\nhubspot_object\naccess_control_group\nlist\ncontact\ncontact_list_contacts\nroute_ids</p>\n","event":[{"listen":"prerequest","script":{"id":"411c81db-0af9-4ade-bd09-c18c9f827a40","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e68a3cb8-ea66-4f6a-bdd7-ebf3fd8c0f0f","type":"text/javascript","exec":[""]}}],"_postman_id":"7e9454d4-7b71-4c56-aa17-8bed0de1979b","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Payment Methods","item":[{"name":"list of payment methods","id":"d2457e73-aa0a-4738-963c-dc7a8f104bf6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/payment_methods","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","payment_methods"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b3cfb15c-479e-45a0-925b-66f8b07579a6","name":"list response","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/payment_methods"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.9.1","enabled":true},{"key":"Date","value":"Tue, 01 Aug 2023 19:21:02 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"Vary","value":"Accept","enabled":true},{"key":"ETag","value":"W/\"e14101d70542d4f22757cbafe84a35d3\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=HpOMAVvyLlAz2w%2B91D25VDwygXFe8tvPEKrHLDh0PZAhrNJB37L4Hj9IZnVpagOrqA%2FNKTvcQWb7zW%2BudT1REfGMRhUdpEeW%2Fk4bY5vk%2BrGn4GY1Qrz%2B8UWGsg%2FMhiujJA0b0rVCHMB9wkJwa8nL2x8A8%2FtVLxcpO94WEf4N6y2MqOnNZYEfHZgUdz%2FnWpO1C6u3P%2BF0Csf2R3UlpMG1MKLPg72Qzqmr80m2xKE3A7Qd9RnX22FpAGDq7Up8l1LBdH6%2B3g%2FWBjnqzk4hvK2p0xoTllYYa%2FfGw0HHp3Tct0Xo3LyXMKHH--TNI5XB3YkVKlXLei--3WFz%2FpbgXfkThwmto3mFEA%3D%3D; domain=.ctmdev.us; path=/; expires=Wed, 02 Aug 2023 11:21:02 GMT; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Request-Id","value":"d1bea217-9c34-46aa-ab1b-f8b5df69e03f","enabled":true},{"key":"X-Runtime","value":"0.053763","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"balance\": {\n        \"cents\": 9494,\n        \"currency\": \"USD\",\n        \"precision\": 2\n    },\n    \"cards\": [\n        {\n            \"card_type\": \"visa\",\n            \"id\": \"PAPE64E7B114DE7263E8F38D3DC820E5D3A1650AF9FF45228C8\",\n            \"display_number\": \"XXXX-XXXX-XXXX-1111\",\n            \"expiration_date\": \"04 / 28\",\n            \"primary\": true,\n            \"backup\": false\n        },\n        {\n            \"card_type\": \"visa\",\n            \"id\": \"PAPE64E7B114DE7263E8F38D3DC820E5D3A07DC919841008CF6\",\n            \"display_number\": \"XXXX-XXXX-XXXX-4242\",\n            \"expiration_date\": \"10/2027\",\n            \"primary\": false,\n            \"backup\": false\n        }\n    ]\n}"}],"_postman_id":"d2457e73-aa0a-4738-963c-dc7a8f104bf6"},{"name":"payment method details","id":"fb72c679-91ca-4f12-a1d5-3e704d281137","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/payment_methods/{{payment_method_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","payment_methods","{{payment_method_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"648dc264-f733-406a-ab3f-90772e7b2a0e","name":"details response","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/payment_methods/{{payment_method_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.9.1","enabled":true},{"key":"Date","value":"Tue, 01 Aug 2023 19:15:52 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"Vary","value":"Accept","enabled":true},{"key":"ETag","value":"W/\"8e2067a26858794126439162c0939270\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=YCPN%2BNSI4Cw9DMIbFxwSQTQ%2FvnaCrTpan%2BU2PxAzg%2BD8LxbTDhHv4G%2F4JiQRSSq1P7P6P3o82aqwUTUBTE77uTniJWlx4uhFYYf4aS07e8abLeayJifHZyXjEXtioQdsmSXd%2FgzdJ14gYNUaqnMhofe%2BpP0H2TxN1ZjjpUo6OJ6ZPHl3zCSRwNRFR85WPpFuLiuuiKZQqJ2d%2BuZv0LJkmMYd0oc45oH%2F5324H5oTKlgZKSBHApcVf3C%2BcfgO5y2bbGTYVSSOqo%2BzCf1vaUGYKqNexF7nwrRM9ld6LRRQAzGd6NKIHHBS--ACsGpdi4k%2BX85UrI--5kP3daznmipt5%2BELwUur9A%3D%3D; domain=.ctmdev.us; path=/; expires=Wed, 02 Aug 2023 11:15:52 GMT; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Request-Id","value":"8fb676e2-ce77-4440-ae00-c53cfafcec0e","enabled":true},{"key":"X-Runtime","value":"0.060517","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"card_type\": \"visa\",\n    \"id\": \"PAPE64E7B114DE7263E8F38D3DC820E5D3A1650AF9FF45228C8\",\n    \"display_number\": \"XXXX-XXXX-XXXX-1111\",\n    \"expiration_date\": \"04 / 28\",\n    \"primary\": true,\n    \"backup\": false\n}"}],"_postman_id":"fb72c679-91ca-4f12-a1d5-3e704d281137"},{"name":"add payment method","id":"94786557-5e14-4084-9f67-323fc51ce638","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"payment_profiles_attributes\" : {\n        \"first_name\": \"First\",\n        \"last_name\": \"Last\",\n        \"address\": \"1234 main street\",\n        \"city\": \"Somewhere\",\n        \"zip\": \"90210\",\n        \"country\": \"US\",\n        \"card_type\": \"visa\",\n        \"card_number\": \"4242424242424242\",\n        \"verification_value\": \"123\",\n        \"month\": 10,\n        \"year\": 2027\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/payment_methods","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","payment_methods"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"dba177bb-2d0e-4dd7-8dd5-d811fbf2c577","name":"add response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"payment_profiles_attributes\" : {\n        \"first_name\": \"First\",\n        \"last_name\": \"Last\",\n        \"address\": \"1234 main street\",\n        \"city\": \"Somewhere\",\n        \"zip\": \"90210\",\n        \"country\": \"US\",\n        \"card_type\": \"visa\",\n        \"card_number\": \"4242424242424242\",\n        \"verification_value\": \"123\",\n        \"month\": 10,\n        \"year\": 2027\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/payment_methods"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.9.1","enabled":true},{"key":"Date","value":"Tue, 01 Aug 2023 19:20:58 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"Vary","value":"Accept","enabled":true},{"key":"ETag","value":"W/\"84b314fdb246e4ed873bdbabc5d0ea10\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=xTAy3pIEvZee7vFxcXpXmaQRzdueeTIu9doBin7ozYj5tyKIhiwqXeoko6BTaW2%2Flj2AuzvYboG4mOeoLWZixhlrM8pQ3nT8xanHenV9eQqVEZbRoXcwLyhaXIQ3CMJ9d4iCppgdgvyS3%2FFw6cJh%2BHGabL9MKAue2p3PaPo5DMneYkoJfvWwGGf%2BmuZJeCvEjWpde%2BdtHpBXbod2I6ponRVKvBr%2BOgMZSOoRII2C1MX9RMJMMQS7DPIRryfPk2LlVNJFIW8t%2B546sBSOn82sxWWPPMPskTfCE2KUg%2FCL%2FTC%2FGgeTaZhL--yZAGDc0pVVCu06Vt--R4EsOZ6gJWoNz%2BTFtidDvQ%3D%3D; domain=.ctmdev.us; path=/; expires=Wed, 02 Aug 2023 11:20:58 GMT; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Request-Id","value":"9fdbaa76-14b5-4f65-9ffa-7154cb5d750a","enabled":true},{"key":"X-Runtime","value":"0.813912","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"card_type\": \"visa\",\n    \"id\": \"PAPE64E7B114DE7263E8F38D3DC820E5D3A07DC919841008CF6\",\n    \"display_number\": \"XXXX-XXXX-XXXX-4242\",\n    \"expiration_date\": \"10/2027\",\n    \"primary\": false,\n    \"backup\": false\n}"}],"_postman_id":"94786557-5e14-4084-9f67-323fc51ce638"},{"name":"delete payment method","id":"ea45c189-ac61-4a8d-9570-f2c81d515b8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"payment_profiles_attributes\" : {\n        \"first_name\": \"First\",\n        \"last_name\": \"Last\",\n        \"address\": \"1234 main street\",\n        \"city\": \"Somewhere\",\n        \"zip\": \"90210\",\n        \"country\": \"US\",\n        \"card_type\": \"visa\",\n        \"card_number\": \"4242424242424242\",\n        \"verification_value\": \"123\",\n        \"month\": 10,\n        \"year\": 2027\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/payment_methods/{{payment_method_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","payment_methods","{{payment_method_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"5bde263a-393b-470d-9434-b21f1c0aa61c","name":"delete response","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"payment_profiles_attributes\" : {\n        \"first_name\": \"First\",\n        \"last_name\": \"Last\",\n        \"address\": \"1234 main street\",\n        \"city\": \"Somewhere\",\n        \"zip\": \"90210\",\n        \"country\": \"US\",\n        \"card_type\": \"visa\",\n        \"card_number\": \"4242424242424242\",\n        \"verification_value\": \"123\",\n        \"month\": 10,\n        \"year\": 2027\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/payment_methods/PAPE64E7B114DE7263E8F38D3DC820E5D3A07DC919841008CF6"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.9.1","enabled":true},{"key":"Date","value":"Tue, 01 Aug 2023 19:24:50 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"Vary","value":"Accept","enabled":true},{"key":"ETag","value":"W/\"3e483db0869e50b7d9188c658d2260aa\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=%2F9ATF2FPGNN4cJTDqJYzwbj8JTWtIHFY14u%2FT4XQVe4D%2FVPWv%2FVVTRoTsVDcHzFVGAcDvwuLVYO8oa1j6xsabBiupm02GUEREsRPkYufTp9QcMe2uGqR2hXoZFpGIoTV22gmRnnY3WnUTAFQetDuFYbSYK2dIYDdvt4WWgHSwEhW4aHaNEF0Rrvmmfnyr2aOl4oNvICRqHUcpWKEuH1jnceuJjUNnBd7SEV4NKqHL68xqJxU4CzBvV%2FRXLPi6CVtbcZHRwKOPOmwl1p%2FBaI1%2B0Syo8NE6Bk2bhcXTvV%2FuE0X9TIbszze--a2QFbqYtMLLezqyX--xm%2BrS8hLkhhUK2lKbICdzw%3D%3D; domain=.ctmdev.us; path=/; expires=Wed, 02 Aug 2023 11:24:50 GMT; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Request-Id","value":"30f7d7fd-f117-4be8-b3d9-18e7aecd34bb","enabled":true},{"key":"X-Runtime","value":"0.109210","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"deleted\"\n}"}],"_postman_id":"ea45c189-ac61-4a8d-9570-f2c81d515b8d"},{"name":"set payment method as primary","id":"3c9daccd-9597-417e-92cf-30a04b286361","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"payment_profiles_attributes\" : {\n        \"first_name\": \"First\",\n        \"last_name\": \"Last\",\n        \"address\": \"1234 main street\",\n        \"city\": \"Somewhere\",\n        \"zip\": \"90210\",\n        \"country\": \"US\",\n        \"card_type\": \"visa\",\n        \"card_number\": \"4242424242424242\",\n        \"verification_value\": \"123\",\n        \"month\": 10,\n        \"year\": 2027\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/payment_methods/{{payment_method_id}}/set_primary","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","payment_methods","{{payment_method_id}}","set_primary"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"39a68720-42fe-4265-9194-e103110f583f","name":"primary response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"payment_profiles_attributes\" : {\n        \"first_name\": \"First\",\n        \"last_name\": \"Last\",\n        \"address\": \"1234 main street\",\n        \"city\": \"Somewhere\",\n        \"zip\": \"90210\",\n        \"country\": \"US\",\n        \"card_type\": \"visa\",\n        \"card_number\": \"4242424242424242\",\n        \"verification_value\": \"123\",\n        \"month\": 10,\n        \"year\": 2027\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/payment_methods/{{payment_method_id}}/set_primary"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.9.1","enabled":true},{"key":"Date","value":"Tue, 01 Aug 2023 19:24:21 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"Vary","value":"Accept","enabled":true},{"key":"ETag","value":"W/\"9ba0049a7dbe762c97e4c5901806e538\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=BcCCNKoLeMG7iSe4G0QhliYyRstborOyZN%2F5gTH%2F2S0JS0ja35W%2B4R0MIVju09JAPQ6VizDsda4xtmvk2d3nbmh5XzfRJcY0QWKW4Z5df%2Fcq%2F%2Bnp3ezSd%2BGg5fqNfJGW17LBSK83c8Xw8JSpKQ4LB8VbEla9V1qMJNmkyLxpsLx6QT9jCYKE95choCkGFZnPmcXubHaVN33EW6ZQU48sCtVqp1225%2BUUFFoIcQSFj%2BpcJARd%2F8w7CdurLStuU08QNCw%2FBRkz6bahFscep5YDFXoSUDUvnbYVTBtG%2Fo05QcrUftylPx42--c9glR0EgsD3VWna1--p7afbVMnI8YxERyPW1QJGQ%3D%3D; domain=.ctmdev.us; path=/; expires=Wed, 02 Aug 2023 11:24:21 GMT; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Request-Id","value":"4f452de1-9fd2-417e-b8f4-9a3a00461d72","enabled":true},{"key":"X-Runtime","value":"0.244652","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"card_type\": \"visa\",\n    \"id\": \"PAPE64E7B114DE7263E8F38D3DC820E5D3A1650AF9FF45228C8\",\n    \"display_number\": \"XXXX-XXXX-XXXX-1111\",\n    \"expiration_date\": \"04 / 28\",\n    \"primary\": true,\n    \"backup\": false\n}"}],"_postman_id":"3c9daccd-9597-417e-92cf-30a04b286361"},{"name":"set payment method as backup","id":"f2115399-895c-4d0d-853e-06b25ff098d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"payment_profiles_attributes\" : {\n        \"first_name\": \"First\",\n        \"last_name\": \"Last\",\n        \"address\": \"1234 main street\",\n        \"city\": \"Somewhere\",\n        \"zip\": \"90210\",\n        \"country\": \"US\",\n        \"card_type\": \"visa\",\n        \"card_number\": \"4242424242424242\",\n        \"verification_value\": \"123\",\n        \"month\": 10,\n        \"year\": 2027\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/payment_methods/{{payment_method_id}}/toggle_backup","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","payment_methods","{{payment_method_id}}","toggle_backup"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d47c232e-be35-4878-a0b8-5d27750f21b9","name":"backup response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"payment_profiles_attributes\" : {\n        \"first_name\": \"First\",\n        \"last_name\": \"Last\",\n        \"address\": \"1234 main street\",\n        \"city\": \"Somewhere\",\n        \"zip\": \"90210\",\n        \"country\": \"US\",\n        \"card_type\": \"visa\",\n        \"card_number\": \"4242424242424242\",\n        \"verification_value\": \"123\",\n        \"month\": 10,\n        \"year\": 2027\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/payment_methods/{{payment_method_id}}/toggle_backup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.19.9.1","enabled":true},{"key":"Date","value":"Tue, 01 Aug 2023 19:17:25 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"Vary","value":"Accept","enabled":true},{"key":"ETag","value":"W/\"8fbb5c4a4444a55fa6e763ab505d6809\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=dA1z4SgBxDCJjL1Y2R8tqAeUgsf9THuOyLJ%2FKNP2BDlS%2BmF59fSldO6LlxJuH0QrX1h%2BqczQzKDa1rqCPdtOdGQqJzGxCDjL1IH%2B03eezWeA9qVoRCdIDdFDRqJn2dXZmbAtHHhZAu8wlNI7ciys6cQHz%2Brt9nP%2BQn01q6l8rbX3eiXZ0c6bkb4bqf98N1nHdjb0IEFKrWukJQyMbzLOOK8WstMNAszu6x499fXjR%2BvyG8mQ3MDZ2DWmAJXu8mYCU6v8GwYQVOvcTL5yIQAtM7AmCVujleVC8jX94ybzsBicSQLHfAbj--QKRTTedX2aMclgFU--1sS57x7yajhYnLxV6UJ9oQ%3D%3D; domain=.ctmdev.us; path=/; expires=Wed, 02 Aug 2023 11:17:25 GMT; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Request-Id","value":"bc06a4b0-8c1f-4347-9b00-fdfaed83827d","enabled":true},{"key":"X-Runtime","value":"0.248976","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"card_type\": \"visa\",\n    \"id\": \"PAPE64E7B114DE7263E8F38D3DC820E5D3A1650AF9FF45228C8\",\n    \"display_number\": \"XXXX-XXXX-XXXX-1111\",\n    \"expiration_date\": \"04 / 28\",\n    \"primary\": false,\n    \"backup\": true\n}"}],"_postman_id":"f2115399-895c-4d0d-853e-06b25ff098d8"}],"id":"6d8ca940-ffcd-4a05-97a8-0869f12cf956","description":"<p>Use these endpoints to manage payment methods (credit cards) on an agency or account.</p>\n","_postman_id":"6d8ca940-ffcd-4a05-97a8-0869f12cf956","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Price Schedules","item":[{"name":"list price schedules","id":"8253eb81-2ce5-4612-9cde-e33b82fdd8e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{Basic Auth}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/price_schedules","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>page</td>\n<td>no</td>\n<td>the page of the records</td>\n</tr>\n<tr>\n<td>per_page</td>\n<td>no</td>\n<td>how many records per page, default 10, maximum 100</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","price_schedules"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8253eb81-2ce5-4612-9cde-e33b82fdd8e1"},{"name":"price schedule information","id":"9cff2496-bb38-4a4b-a6cc-a09fb5963c8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{Basic Auth}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/price_schedules/{{price_schedule_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>price_schedule_id</td>\n<td>yes</td>\n<td>the price schedule id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","price_schedules","{{price_schedule_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9cff2496-bb38-4a4b-a6cc-a09fb5963c8d"},{"name":"add account to price schedule","id":"efddfbf7-089b-4a23-bf39-820b14609252","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{Basic Auth}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/price_schedules/{{price_schedule_id}}/add_account","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>price_schedule_id</td>\n<td>yes</td>\n<td>the price schedule id</td>\n</tr>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account to add to the price schedule</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","price_schedules","{{price_schedule_id}}","add_account"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"efddfbf7-089b-4a23-bf39-820b14609252"},{"name":"remove account from price schedule","id":"43b67182-728c-47e0-9c98-e3d6ff4f801d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{Basic Auth}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/price_schedules/{{price_schedule_id}}/del_account","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>price_schedule_id</td>\n<td>yes</td>\n<td>the price schedule id</td>\n</tr>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account to remove from the price schedule</td>\n</tr>\n<tr>\n<td>remove_billing</td>\n<td>no</td>\n<td>set to 1 to remove the link to an external payment provider</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","price_schedules","{{price_schedule_id}}","del_account"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"43b67182-728c-47e0-9c98-e3d6ff4f801d"},{"name":"create price schedule","id":"195945e7-c7fc-43ca-bd4f-0b9aa7c83bf7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{Basic Auth}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"price_setting\": {\n\t\t\"name\": \"blah blah\",\n\t\t\"description\": \"\",\n\t\t\"billing_style\": \"usage\",\n\t\t\"stripe_plan\": \"\",\n\t\t\"cost_call_markup\": {\n\t\t\t\"charges_enabled\": \"0\",\n\t\t\t\"price_type\": \"mmp\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"cost_per_call\": \"0.00\",\n\t\t\t\"cost_per_call_length\": \"0\",\n\t\t\t\"fixed_price\": \"0.00\"\n\t\t},\n\t\t\"cost_number_markup\": {\n\t\t\t\"charges_enabled\": \"1\",\n\t\t\t\"price_type\": \"cpn\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"cost_per_call_in_cents\": \"25.0\"\n\t\t},\n\t\t\"cost_sms_markup\": {\n\t\t\t\"charges_enabled\": \"0\",\n\t\t\t\"price_type\": \"tmp\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"cost_per_call_in_cents\": \"\"\n\t\t},\n\t\t\"cost_user_license_markup\": {\n\t\t\t\"charges_enabled\": \"0\",\n\t\t\t\"price_type\": \"lmp\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"cost_per_call_in_cents\": \"\"\n\t\t},\n\t\t\"cost_transcription_markup\": {\n\t\t\t\"charges_enabled\": \"0\",\n\t\t\t\"price_type\": \"mmp\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"fixed_price\": \"\"\n\t\t},\n\t\t\"cost_spam_markup\": {\n\t\t\t\"charges_enabled\": \"0\",\n\t\t\t\"price_type\": \"ppl\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"fixed_price\": \"\"\n\t\t},\n\t\t\"cost_lookup_markup\": {\n\t\t\t\"charges_enabled\": \"0\",\n\t\t\t\"price_type\": \"ppl\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"fixed_price\": \"\"\n\t\t},\n\t\t\"signup_pages\": \"\"\n\t}\n}"},"url":"https://{{host}}/{{base_path}}/price_schedules","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>price_schedule</td>\n<td>yes</td>\n<td>the price schedule object containing the following</td>\n</tr>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>the name used for the price schedule</td>\n</tr>\n<tr>\n<td>description</td>\n<td>no</td>\n<td>the description for the price schedule</td>\n</tr>\n<tr>\n<td>billing_style</td>\n<td>yes</td>\n<td>the billing style: options are 'usage' for manual billing and 'usage_plus_stripe' for linking to Stripe (note that Stripe does not support fractional cents)</td>\n</tr>\n<tr>\n<td>signup_pages</td>\n<td>no</td>\n<td>a comma separated list containing the signup page ids to be associated with this price setting</td>\n</tr>\n</tbody>\n</table>\n</div><p>| cost_call_markup           | no       | a hash containing the settings for marking up phone calls as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable call markups, required if cost_call_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'mmp' for Markup Minutes by a Percentage, 'cpc' for fixed Cost Per Call, 'fcm' for Fixed Cost per Minute |\n| markup_percentage | no       | the markup percentage, required if price_type is 'mmp', for example '1' means 1 percent |\n| cost_per_call     | no       | the cost per call in cents, required if price_type is 'cpc' |\n| cost_per_call_length    | no       | the cost per minute in cents, required if price_type is 'fcm' |</p>\n<p>| cost_number_markup           | no       | a hash containing the settings for marking up phone numbers as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable phone number markups, required if cost_number_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'fcn' for Fixed Cost per Number, 'nmp' for Number Markup by a Percentage |\n| markup_percentage | no       | the markup percentage, required if price_type is 'nmp', for example '1' means 1 percent |\n| cost_per_call_in_cents     | no       | the markup added per number, in cents, required if price_type is 'fcn' |</p>\n<p>| cost_sms_markup           | no       | a hash containing the settings for marking up SMS (texts) as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable SMS markups, required if cost_sms_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'cpt' for fixed Cost Per Text, 'tmp' for Text Markup by a Percentage |\n| markup_percentage | no       | the markup percentage, required if price_type is 'tmp', for example '1' means 1 percent |\n| cost_per_call_in_cents     | no       | the markup added per text, in cents, required if price_type is 'cpt' |</p>\n<p>| cost_user_license_markup           | no       | a hash containing the settings for marking up user licenses as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable user license markups, required if cost_user_license_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'lmp' for License Markup by a Percentage |\n| markup_percentage | no       | the markup percentage, required if price_type is 'lmp', for example '1' means 1 percent |\n| cost_per_call_in_cents     | no       | reserved for future use |</p>\n<p>| cost_transcription_markup           | no       | a hash containing the settings for marking up transcriptions as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable transcription markups, required if cost_transcription_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'fcm' for Fixed Cost Markup per transcription, 'mmp' for Markup Minutes by a Percentage |\n| markup_percentage | no       | the markup percentage, required if price_type is 'mmp', for example '1' means 1 percent |\n| fixed_price     | no       | the markup added per transcription, in cents, required if price_type is 'fcm' |</p>\n<p>| cost_spam_markup           | no       | a hash containing the settings for marking up spam lookups as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable spam lookup markups, required if cost_spam_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'fpl' for Fixed markup Per Lookup, 'ppl' for markup by a Percentage Per Lookup |\n| markup_percentage | no       | the markup percentage, required if price_type is 'ppl', for example '1' means 1 percent |\n| fixed_price     | no       | the markup added per spam lookup, in cents, required if price_type is 'fpl' |</p>\n<p>| cost_lookup_markup           | no       | a hash containing the settings for marking up enhanced caller id lookups as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable enhanced caller id lookup markups, required if cost_lookup_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'fpl' for Fixed markup Per Lookup, 'ppl' for markup by a Percentage Per Lookup |\n| markup_percentage | no       | the markup percentage, required if price_type is 'ppl', for example '1' means 1 percent |\n| fixed_price     | no       | the markup added per enhanced caller id lookup, in cents, required if price_type is 'fpl' |</p>\n<p>Example: {\"price_schedule\"=&gt;{\"name\"=&gt;\"example price schedule\", \"description\"=&gt;\"\", \"billing_style\"=&gt;\"usage\", \"stripe_plan\"=&gt;\"\", \"cost_call_markup\"=&gt;{\"charges_enabled\"=&gt;\"0\", \"price_type\"=&gt;\"mmp\", \"markup_percentage\"=&gt;\"\", \"cost_per_call\"=&gt;\"0.00\", \"cost_per_call_length\"=&gt;\"0\", \"fixed_price\"=&gt;\"0.00\"}, \"cost_number_markup\"=&gt;{\"charges_enabled\"=&gt;\"1\", \"price_type\"=&gt;\"cpn\", \"markup_percentage\"=&gt;\"\", \"cost_per_call_in_cents\"=&gt;\"25.0\"}, \"cost_sms_markup\"=&gt;{\"charges_enabled\"=&gt;\"0\", \"price_type\"=&gt;\"tmp\", \"markup_percentage\"=&gt;\"\", \"cost_per_call_in_cents\"=&gt;\"\"}, \"cost_user_license_markup\"=&gt;{\"charges_enabled\"=&gt;\"0\", \"price_type\"=&gt;\"lmp\", \"markup_percentage\"=&gt;\"\", \"cost_per_call_in_cents\"=&gt;\"\"}, \"cost_transcription_markup\"=&gt;{\"charges_enabled\"=&gt;\"0\", \"price_type\"=&gt;\"mmp\", \"markup_percentage\"=&gt;\"\", \"fixed_price\"=&gt;\"\"}, \"cost_spam_markup\"=&gt;{\"charges_enabled\"=&gt;\"0\", \"price_type\"=&gt;\"ppl\", \"markup_percentage\"=&gt;\"\", \"fixed_price\"=&gt;\"\"}, \"cost_lookup_markup\"=&gt;{\"charges_enabled\"=&gt;\"0\", \"price_type\"=&gt;\"ppl\", \"markup_percentage\"=&gt;\"\", \"fixed_price\"=&gt;\"\"}, \"signup_pages\"=&gt;\"\"} }</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","price_schedules"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"195945e7-c7fc-43ca-bd4f-0b9aa7c83bf7"},{"name":"update price schedule","id":"2f92896b-f81a-4ae1-8e04-0b533cada5a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","type":"text","value":"{{Basic Auth}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/price_schedules/{{price_schedule_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>price_schedule_id</td>\n<td>yes</td>\n<td>the price schedule id</td>\n</tr>\n<tr>\n<td>price_schedule</td>\n<td>yes</td>\n<td>the price schedule object containing the following</td>\n</tr>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>the name used for the price schedule</td>\n</tr>\n<tr>\n<td>description</td>\n<td>no</td>\n<td>the description for the price schedule</td>\n</tr>\n<tr>\n<td>billing_style</td>\n<td>yes</td>\n<td>the billing style: options are 'usage' for manual billing and 'usage_plus_stripe' for linking to Stripe (note that Stripe does not support fractional cents)</td>\n</tr>\n<tr>\n<td>signup_pages</td>\n<td>no</td>\n<td>a comma separated list containing the signup page ids to be associated with this price setting</td>\n</tr>\n</tbody>\n</table>\n</div><p>| cost_call_markup           | no       | a hash containing the settings for marking up phone calls as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable call markups, required if cost_call_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'mmp' for Markup Minutes by a Percentage, 'cpc' for fixed Cost Per Call, 'fcm' for Fixed Cost per Minute |\n| markup_percentage | no       | the markup percentage, required if price_type is 'mmp', for example '1' means 1 percent |\n| cost_per_call     | no       | the cost per call in cents, required if price_type is 'cpc' |\n| cost_per_call_length    | no       | the cost per minute in cents, required if price_type is 'fcm' |</p>\n<p>| cost_number_markup           | no       | a hash containing the settings for marking up phone numbers as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable phone number markups, required if cost_number_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'fcn' for Fixed Cost per Number, 'nmp' for Number Markup by a Percentage |\n| markup_percentage | no       | the markup percentage, required if price_type is 'nmp', for example '1' means 1 percent |\n| cost_per_call_in_cents     | no       | the markup added per number, in cents, required if price_type is 'fcn' |</p>\n<p>| cost_sms_markup           | no       | a hash containing the settings for marking up SMS (texts) as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable SMS markups, required if cost_sms_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'cpt' for fixed Cost Per Text, 'tmp' for Text Markup by a Percentage |\n| markup_percentage | no       | the markup percentage, required if price_type is 'tmp', for example '1' means 1 percent |\n| cost_per_call_in_cents     | no       | the markup added per text, in cents, required if price_type is 'cpt' |</p>\n<p>| cost_user_license_markup           | no       | a hash containing the settings for marking up user licenses as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable user license markups, required if cost_user_license_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'lmp' for License Markup by a Percentage |\n| markup_percentage | no       | the markup percentage, required if price_type is 'lmp', for example '1' means 1 percent |\n| cost_per_call_in_cents     | no       | reserved for future use |</p>\n<p>| cost_transcription_markup           | no       | a hash containing the settings for marking up transcriptions as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable transcription markups, required if cost_transcription_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'fcm' for Fixed Cost Markup per transcription, 'mmp' for Markup Minutes by a Percentage |\n| markup_percentage | no       | the markup percentage, required if price_type is 'mmp', for example '1' means 1 percent |\n| fixed_price     | no       | the markup added per transcription, in cents, required if price_type is 'fcm' |</p>\n<p>| cost_spam_markup           | no       | a hash containing the settings for marking up spam lookups as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable spam lookup markups, required if cost_spam_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'fpl' for Fixed markup Per Lookup, 'ppl' for markup by a Percentage Per Lookup |\n| markup_percentage | no       | the markup percentage, required if price_type is 'ppl', for example '1' means 1 percent |\n| fixed_price     | no       | the markup added per spam lookup, in cents, required if price_type is 'fpl' |</p>\n<p>| cost_lookup_markup           | no       | a hash containing the settings for marking up enhanced caller id lookups as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable enhanced caller id lookup markups, required if cost_lookup_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'fpl' for Fixed markup Per Lookup, 'ppl' for markup by a Percentage Per Lookup |\n| markup_percentage | no       | the markup percentage, required if price_type is 'ppl', for example '1' means 1 percent |\n| fixed_price     | no       | the markup added per enhanced caller id lookup, in cents, required if price_type is 'fpl' |</p>\n<p>Example: {\"price_schedule\"=&gt;{\"name\"=&gt;\"example price schedule\", \"description\"=&gt;\"\", \"billing_style\"=&gt;\"usage\", \"stripe_plan\"=&gt;\"\", \"cost_call_markup\"=&gt;{\"charges_enabled\"=&gt;\"0\", \"price_type\"=&gt;\"mmp\", \"markup_percentage\"=&gt;\"\", \"cost_per_call\"=&gt;\"0.00\", \"cost_per_call_length\"=&gt;\"0\", \"fixed_price\"=&gt;\"0.00\"}, \"cost_number_markup\"=&gt;{\"charges_enabled\"=&gt;\"1\", \"price_type\"=&gt;\"cpn\", \"markup_percentage\"=&gt;\"\", \"cost_per_call_in_cents\"=&gt;\"25.0\"}, \"cost_sms_markup\"=&gt;{\"charges_enabled\"=&gt;\"0\", \"price_type\"=&gt;\"tmp\", \"markup_percentage\"=&gt;\"\", \"cost_per_call_in_cents\"=&gt;\"\"}, \"cost_user_license_markup\"=&gt;{\"charges_enabled\"=&gt;\"0\", \"price_type\"=&gt;\"lmp\", \"markup_percentage\"=&gt;\"\", \"cost_per_call_in_cents\"=&gt;\"\"}, \"cost_transcription_markup\"=&gt;{\"charges_enabled\"=&gt;\"0\", \"price_type\"=&gt;\"mmp\", \"markup_percentage\"=&gt;\"\", \"fixed_price\"=&gt;\"\"}, \"cost_spam_markup\"=&gt;{\"charges_enabled\"=&gt;\"0\", \"price_type\"=&gt;\"ppl\", \"markup_percentage\"=&gt;\"\", \"fixed_price\"=&gt;\"\"}, \"cost_lookup_markup\"=&gt;{\"charges_enabled\"=&gt;\"0\", \"price_type\"=&gt;\"ppl\", \"markup_percentage\"=&gt;\"\", \"fixed_price\"=&gt;\"\"}, \"signup_pages\"=&gt;\"\"} }</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","price_schedules","{{price_schedule_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f92896b-f81a-4ae1-8e04-0b533cada5a7"},{"name":"remove price setting","id":"2c25cf99-892c-4eb0-90d7-9cd0448535f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","type":"text","value":"{{Basic Auth}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/price_schedules/{{price_schedule_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>price_setting_id</td>\n<td>yes</td>\n<td>the price setting id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","price_schedules","{{price_schedule_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c25cf99-892c-4eb0-90d7-9cd0448535f2"}],"id":"5057ca34-df45-423c-8935-0eb9400131ab","_postman_id":"5057ca34-df45-423c-8935-0eb9400131ab","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Price Settings","item":[{"name":"list price settings","id":"84df0ef0-af0f-45c0-80fa-8e0887ac548f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://{{host}}/{{base_path}}/price_settings","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>page</td>\n<td>no</td>\n<td>the page of the records</td>\n</tr>\n<tr>\n<td>per_page</td>\n<td>no</td>\n<td>how many records per page, default 10, maximum 100</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","price_settings"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"84df0ef0-af0f-45c0-80fa-8e0887ac548f"},{"name":"price setting information","id":"aa206855-57d8-4253-a486-60908cfda603","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{Basic Auth}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/price_settings/{{price_setting_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>price_setting_id</td>\n<td>yes</td>\n<td>the price setting id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","price_settings","{{price_setting_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa206855-57d8-4253-a486-60908cfda603"},{"name":"create price setting","id":"afd513e8-3ed2-4112-8571-976c626619f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{Basic Auth}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"price_setting\": {\n\t\t\"name\": \"blah blah\",\n\t\t\"description\": \"\",\n\t\t\"billing_style\": \"usage\",\n\t\t\"stripe_plan\": \"\",\n\t\t\"cost_call_markup\": {\n\t\t\t\"charges_enabled\": \"0\",\n\t\t\t\"price_type\": \"mmp\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"cost_per_call\": \"0.00\",\n\t\t\t\"cost_per_call_length\": \"0\",\n\t\t\t\"fixed_price\": \"0.00\"\n\t\t},\n\t\t\"cost_number_markup\": {\n\t\t\t\"charges_enabled\": \"1\",\n\t\t\t\"price_type\": \"cpn\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"cost_per_call_in_cents\": \"25.0\"\n\t\t},\n\t\t\"cost_sms_markup\": {\n\t\t\t\"charges_enabled\": \"0\",\n\t\t\t\"price_type\": \"tmp\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"cost_per_call_in_cents\": \"\"\n\t\t},\n\t\t\"cost_user_license_markup\": {\n\t\t\t\"charges_enabled\": \"0\",\n\t\t\t\"price_type\": \"lmp\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"cost_per_call_in_cents\": \"\"\n\t\t},\n\t\t\"cost_transcription_markup\": {\n\t\t\t\"charges_enabled\": \"0\",\n\t\t\t\"price_type\": \"mmp\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"fixed_price\": \"\"\n\t\t},\n\t\t\"cost_spam_markup\": {\n\t\t\t\"charges_enabled\": \"0\",\n\t\t\t\"price_type\": \"ppl\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"fixed_price\": \"\"\n\t\t},\n\t\t\"cost_lookup_markup\": {\n\t\t\t\"charges_enabled\": \"0\",\n\t\t\t\"price_type\": \"ppl\",\n\t\t\t\"markup_percentage\": \"\",\n\t\t\t\"fixed_price\": \"\"\n\t\t},\n\t\t\"signup_pages\": \"\"\n\t}\n}"},"url":"https://{{host}}/{{base_path}}/price_settings","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>price_setting_id</td>\n<td>yes</td>\n<td>the price setting id</td>\n</tr>\n<tr>\n<td>price_setting</td>\n<td>yes</td>\n<td>the price setting object containing the following</td>\n</tr>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>the name used for the price setting</td>\n</tr>\n<tr>\n<td>description</td>\n<td>no</td>\n<td>the description for the price setting</td>\n</tr>\n<tr>\n<td>billing_style</td>\n<td>yes</td>\n<td>the billing style: options are 'usage' for manual billing and 'usage_plus_stripe' for linking to Stripe (note that Stripe does not support fractional cents)</td>\n</tr>\n<tr>\n<td>signup_pages</td>\n<td>no</td>\n<td>a comma separated list containing the signup page ids to be associated with this price setting</td>\n</tr>\n</tbody>\n</table>\n</div><p>| cost_call_markup           | no       | a hash containing the settings for marking up phone calls as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable call markups, required if cost_call_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'mmp' for Markup Minutes by a Percentage, 'cpc' for fixed Cost Per Call, 'fcm' for Fixed Cost per Minute |\n| markup_percentage | no       | the markup percentage, required if price_type is 'mmp', for example '1' means 1 percent |\n| cost_per_call     | no       | the cost per call in cents, required if price_type is 'cpc' |\n| cost_per_call_length    | no       | the cost per minute in cents, required if price_type is 'fcm' |</p>\n<p>| cost_number_markup           | no       | a hash containing the settings for marking up phone numbers as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable phone number markups, required if cost_number_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'fcn' for Fixed Cost per Number, 'nmp' for Number Markup by a Percentage |\n| markup_percentage | no       | the markup percentage, required if price_type is 'nmp', for example '1' means 1 percent |\n| cost_per_call_in_cents     | no       | the markup added per number, in cents, required if price_type is 'fcn' |</p>\n<p>| cost_sms_markup           | no       | a hash containing the settings for marking up SMS (texts) as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable SMS markups, required if cost_sms_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'cpt' for fixed Cost Per Text, 'tmp' for Text Markup by a Percentage |\n| markup_percentage | no       | the markup percentage, required if price_type is 'tmp', for example '1' means 1 percent |\n| cost_per_call_in_cents     | no       | the markup added per text, in cents, required if price_type is 'cpt' |</p>\n<p>| cost_user_license_markup           | no       | a hash containing the settings for marking up user licenses as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable user license markups, required if cost_user_license_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'lmp' for License Markup by a Percentage |\n| markup_percentage | no       | the markup percentage, required if price_type is 'lmp', for example '1' means 1 percent |\n| cost_per_call_in_cents     | no       | reserved for future use |</p>\n<p>| cost_transcription_markup           | no       | a hash containing the settings for marking up transcriptions as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable transcription markups, required if cost_transcription_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'fcm' for Fixed Cost Markup per transcription, 'mmp' for Markup Minutes by a Percentage |\n| markup_percentage | no       | the markup percentage, required if price_type is 'mmp', for example '1' means 1 percent |\n| fixed_price     | no       | the markup added per transcription, in cents, required if price_type is 'fcm' |</p>\n<p>| cost_spam_markup           | no       | a hash containing the settings for marking up spam lookups as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable spam lookup markups, required if cost_spam_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'fpl' for Fixed markup Per Lookup, 'ppl' for markup by a Percentage Per Lookup |\n| markup_percentage | no       | the markup percentage, required if price_type is 'ppl', for example '1' means 1 percent |\n| fixed_price     | no       | the markup added per spam lookup, in cents, required if price_type is 'fpl' |</p>\n<p>| cost_lookup_markup           | no       | a hash containing the settings for marking up enhanced caller id lookups as listed below |\n| charges_enabled   | yes      | boolean (1 or 0) to enable enhanced caller id lookup markups, required if cost_lookup_markup hash exists |\n| price_type        | no       | the type of markup, required when charges_enabled is '1', options are 'fpl' for Fixed markup Per Lookup, 'ppl' for markup by a Percentage Per Lookup |\n| markup_percentage | no       | the markup percentage, required if price_type is 'ppl', for example '1' means 1 percent |\n| fixed_price     | no       | the markup added per enhanced caller id lookup, in cents, required if price_type is 'fpl' |</p>\n<p>Example: {\"reminder_id\": \"REM4650CE7F780774E4A95600B700412079\", \"reminder\":{\"what_id\":\"9999999999\",\"what_type\":\"Call\",\"name\":\"New Reminder from API\",\"description\":\"Reminder description\",\"start_at\":\"2020-03-18 12:00:00\",\"contacts\":\"18751.14156538055\",\"timezone\":\"America/New_York\",\"alerts\":{\"how\":\"call\",\"who\":\"USR043E46722529BCB5FE8EACF50AF00F71\",\"message\":\"Reminder to call back customer.\"},\"custom_repeats_by\":{\"start_date\":\"2020-03-18 12:00:00\",\"repeat_period\":\"day\",\"repeat_every\":\"1\",\"end_type\":\"occurrences\",\"occurrences\":\"1\"}}}</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","price_settings"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"afd513e8-3ed2-4112-8571-976c626619f6"},{"name":"update price setting","id":"6f53680a-f1a1-4053-8849-435e896b64b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","type":"text","value":"{{Basic Auth}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/price_settings/{{price_setting_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>price_setting_id</td>\n<td>yes</td>\n<td>the price setting id</td>\n</tr>\n<tr>\n<td>price_setting</td>\n<td>yes</td>\n<td>the price setting object, which varies by type</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example: { \"price_setting\":\n    {\n      \"start_date\": \"2020-03-26\",\n      \"type\": \"CostCallMarkup\",\n      \"price_type\": \"mmp\",\n      \"markup_percentage\": 1.0,\n      \"cost_per_call_in_cents\": null,\n      \"local_cost_per_number_in_cents\": null,\n      \"tollfree_cost_per_number_in_cents\": null,\n      \"cost_per_text_in_cents\": null,\n      \"accounts\": []\n    }\n}</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","price_settings","{{price_setting_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f53680a-f1a1-4053-8849-435e896b64b3"},{"name":"remove price setting","id":"9a1b70e3-bdf0-40c8-be2f-72dc13c1bd88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","type":"text","value":"{{Basic Auth}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/price_settings/{{price_setting_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>price_setting_id</td>\n<td>yes</td>\n<td>the price setting id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","price_settings","{{price_setting_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9a1b70e3-bdf0-40c8-be2f-72dc13c1bd88"}],"id":"8b6c2b98-6369-420a-a733-42f78f4b43e9","_postman_id":"8b6c2b98-6369-420a-a733-42f78f4b43e9","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Queues","item":[{"name":"list of queues","event":[{"listen":"test","script":{"id":"fdada9a3-7e09-4bd7-8fe9-2a8691a6211f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"sources is an array\"] = Array.isArray(jsonData.sources);","tests.page           = Number.isInteger(jsonData.page);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"],"type":"text/javascript"}}],"id":"f3a71606-ba97-4ca3-ac3d-bf975a77d411","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/queues.json","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>search for a tracking source like name</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","queues.json"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"de03b198-9855-4868-bd99-737aabc5ed03","name":"success","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/api/v1/accounts/{{account_id}}/queues.json"},"status":"OK","code":200,"_postman_previewlanguage":"javascript","header":[{"name":"Access-Control-Allow-Origin","key":"Access-Control-Allow-Origin","value":"*","description":"","enabled":true},{"name":"Cache-Control","key":"Cache-Control","value":"must-revalidate, private, max-age=0","description":"","enabled":true},{"name":"Connection","key":"Connection","value":"keep-alive","description":"","enabled":true},{"name":"Content-Encoding","key":"Content-Encoding","value":"gzip","description":"","enabled":true},{"name":"Content-Type","key":"Content-Type","value":"application/json; charset=utf-8","description":"","enabled":true},{"name":"Date","key":"Date","value":"Fri, 22 Jul 2016 19:05:16 GMT","description":"","enabled":true},{"name":"ETag","key":"ETag","value":"W/\"bcfcd943892613ac3f341154466d43fc\"","description":"","enabled":true},{"name":"Server","key":"Server","value":"nginx","description":"","enabled":true},{"name":"Strict-Transport-Security","key":"Strict-Transport-Security","value":"max-age=15768000","description":"","enabled":true},{"name":"Transfer-Encoding","key":"Transfer-Encoding","value":"chunked","description":"","enabled":true},{"name":"Vary","key":"Vary","value":"Accept-Encoding","description":"","enabled":true},{"name":"X-UA-Compatible","key":"X-UA-Compatible","value":"IE=Edge","description":"","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n  \"page\": 1,\n  \"per_page\": 10,\n  \"total_entries\": 1,\n  \"total_pages\": 1,\n  \"next_page\": null,\n  \"previous_page\": null,\n  \"queues\": [\n    {\n      \"id\": \"CQxxxxx\",\n      \"url\": \"https://app.ctmdev.us/api/v1/accounts/12345/queues/CQxxxxx\",\n      \"name\": \"call queue\",\n      \"wait_music\": \"play:https://ctm-audio.s3.amazonaws.com/US_ringback_tone.mp3\",\n      \"after_hours_action_label\": null,\n      \"after_hours_action_id\": null,\n      \"after_hours_action_type\": null,\n      \"default_action_label\": \"voicemail\",\n      \"default_action_id\": 1,\n      \"default_action_type\": \"VoiceMail\",\n      \"post_call_action_label\": null,\n      \"post_call_action_id\": null,\n      \"post_call_action_type\": null,\n      \"prompt_agent_to_accept\": false,\n      \"fast_kill_agent_call\": false,\n      \"callerid_number_id\": null,\n      \"total_agents\": 1,\n      \"total_numbers\": 0,\n      \"schedule\": null,\n      \"agents\": \"https://app.ctmdev.us/api/v1/accounts/12345/queues/CQxxxxx/agents.json\",\n      \"numbers\": \"https://app.ctmdev.us/api/v1/accounts/12345/queues/CQxxxxx/numbers.json\"\n    }\n  ]\n}"}],"_postman_id":"f3a71606-ba97-4ca3-ac3d-bf975a77d411"},{"name":"create a queue","event":[{"listen":"test","script":{"id":"ca231415-4315-4074-8b16-a245e6b613aa","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"sources is an array\"] = Array.isArray(jsonData.sources);","tests.page           = Number.isInteger(jsonData.page);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"],"type":"text/javascript"}}],"id":"3f7d1a75-678a-4f63-b433-564f5244eaf6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/queues.json?name=&description=&fifo_order=true|false&sticky=","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>Text value - Name of queue</td>\n</tr>\n<tr>\n<td>description</td>\n<td>yes</td>\n<td>Text value - Summary of your queues purpose</td>\n</tr>\n<tr>\n<td>fifo_order</td>\n<td>no</td>\n<td>Boolean value - Whether the queue should be first in first out or out of order.  Using first in first out means agents dialed may not see the correct caller ID information when dialed.</td>\n</tr>\n<tr>\n<td>sticky</td>\n<td>no</td>\n<td>numeric values between 0, 1, 2, 3, 4.  0 being Any Agent (default), 1 being Same Agent First, 2 being New Agent and 3 being Same Agent Only.</td>\n</tr>\n<tr>\n<td>missed_caller_message</td>\n<td>no</td>\n<td>a message to play to the agent when another agent got the caller before they answer can use say:lang:text to play or play:<a href=\"https://inserturl\">https://inserturl</a> here</td>\n</tr>\n<tr>\n<td>caller_hungup_message</td>\n<td>no</td>\n<td>a message to play to the agent when the caller hangs up before they answer can use say:lang:text to play or play:<a href=\"https://inserturl\">https://inserturl</a> here</td>\n</tr>\n<tr>\n<td>allow_transfers</td>\n<td>no</td>\n<td>a boolean value to allow other agents to transfer directly to this queue</td>\n</tr>\n<tr>\n<td>detect_voicemail</td>\n<td>no</td>\n<td>boolean value to do voicemail detection when routing calls to agents on outside lines to conditionally determine whether we should prompt the agent answering or not. does not effect soft phone agents</td>\n</tr>\n<tr>\n<td>tag_list</td>\n<td>no</td>\n<td>a list of tags to apply to any call routed through this queue</td>\n</tr>\n<tr>\n<td>agent_key_press</td>\n<td>no</td>\n<td>the key press or 'any' that we expect the agent to press to be allowed to connect the call. use this option when you have agents dialed who might have voicemail box</td>\n</tr>\n<tr>\n<td>agent_key_press_message</td>\n<td>no</td>\n<td>a play/say message that prompts the agent to enter a key press of agent_key_press to connect</td>\n</tr>\n<tr>\n<td>auto_assign_single_agent_calls</td>\n<td>no</td>\n<td>should we automatically assign the call when routing an only 1 agent is available to take the call</td>\n</tr>\n<tr>\n<td>routing</td>\n<td>yes</td>\n<td>how we should route the call to agents in the queue, simultaneously, roundrobin, or longwait</td>\n</tr>\n<tr>\n<td>schedule_id</td>\n<td>no</td>\n<td>a schedule to conditionally route callers to this queue or somewhere else based on the time of the day</td>\n</tr>\n<tr>\n<td>seconds_to_answer</td>\n<td>yes</td>\n<td>how many seconds to hold a caller in this queue before routing to no answer</td>\n</tr>\n<tr>\n<td>seconds_per_agent</td>\n<td>yes</td>\n<td>how many seconds to ring each agent before either stopping ringing or starting to ring the next agent based on keep_ringing_until_answer setting</td>\n</tr>\n<tr>\n<td>beep_for_agent</td>\n<td>no</td>\n<td>beep for agent once connected</td>\n</tr>\n<tr>\n<td>beep_for_caller</td>\n<td>no</td>\n<td>beep for the caller once connected</td>\n</tr>\n<tr>\n<td>fast_no_answer</td>\n<td>no</td>\n<td>if true and we receive a call and at that moment we would queue the caller and we have no agents available - route to the no answer flow when no agents are available</td>\n</tr>\n<tr>\n<td>keep_ringing_until_answer</td>\n<td>no</td>\n<td>when set use seconds_per_agent to determine when to ring the next set of agents. and keep active outbound dials to each agent running until either the caller hangs up or one of the agents answers</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","queues.json"],"host":["{{host}}"],"query":[{"description":{"content":"<p>Name of queue</p>\n","type":"text/plain"},"key":"name","value":""},{"description":{"content":"<p>Summary of your queues purpose</p>\n","type":"text/plain"},"key":"description","value":""},{"description":{"content":"<p>Whether the queue should be first in first out or out of order.  Using first in first out means agents dialed may not see the correct caller ID information when dialed.</p>\n","type":"text/plain"},"key":"fifo_order","value":"true|false"},{"key":"sticky","value":""}],"variable":[]}},"response":[{"id":"ded0097b-9c22-452d-b493-2ccd83d7fdd7","name":"success","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/receiving_numbers"},"status":"OK","code":200,"_postman_previewlanguage":"javascript","header":[{"name":"Access-Control-Allow-Origin","key":"Access-Control-Allow-Origin","value":"*","description":"","enabled":true},{"name":"Cache-Control","key":"Cache-Control","value":"must-revalidate, private, max-age=0","description":"","enabled":true},{"name":"Connection","key":"Connection","value":"keep-alive","description":"","enabled":true},{"name":"Content-Encoding","key":"Content-Encoding","value":"gzip","description":"","enabled":true},{"name":"Content-Type","key":"Content-Type","value":"application/json; charset=utf-8","description":"","enabled":true},{"name":"Date","key":"Date","value":"Fri, 22 Jul 2016 19:05:16 GMT","description":"","enabled":true},{"name":"ETag","key":"ETag","value":"W/\"bcfcd943892613ac3f341154466d43fc\"","description":"","enabled":true},{"name":"Server","key":"Server","value":"nginx","description":"","enabled":true},{"name":"Strict-Transport-Security","key":"Strict-Transport-Security","value":"max-age=15768000","description":"","enabled":true},{"name":"Transfer-Encoding","key":"Transfer-Encoding","value":"chunked","description":"","enabled":true},{"name":"Vary","key":"Vary","value":"Accept-Encoding","description":"","enabled":true},{"name":"X-UA-Compatible","key":"X-UA-Compatible","value":"IE=Edge","description":"","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n  \"total_entries\": 1,\n  \"total_pages\": 1,\n  \"next_page\": \"https://api.ctmdev.us/api/v1/accounts/18637/receiving_numbers\",\n  \"previous_page\": \"https://api.ctmdev.us/api/v1/accounts/18637/receiving_numbers\",\n  \"receiving_numbers\": [\n    {\n      \"id\": \"RPN34D8AC3F61E8848FEA641CEF711011AA4EBC1EAE6A8B0FA833381FE66ADD02D1\",\n      \"filter_id\": 40147,\n      \"name\": \"test number label\",\n      \"number\": \"+18885551212\",\n      \"display_number\": \"(888) 555-1212\",\n      \"account_id\": 18637,\n      \"country_code\": \"1\",\n      \"split\": [\n        \"1\",\n        \"888\",\n        \"555\",\n        \"1212\"\n      ],\n      \"formatted\": \"(888)-555-1212\",\n      \"url\": \"/api/v1/accounts/18637/receiving_numbers/RPN34D8AC3F61E8848FEA641CEF711011AA4EBC1EAE6A8B0FA833381FE66ADD02D1\"\n    }\n  ]\n}"}],"_postman_id":"3f7d1a75-678a-4f63-b433-564f5244eaf6"},{"name":"add agent to a queue","id":"a05e1c08-96ea-4f19-bc01-df5c4da689c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/queues/{{call_queue_id}}/agents/{{agent_id}}.json","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","queues","{{call_queue_id}}","agents","{{agent_id}}.json"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"690b02cf-6421-4065-89ff-2ad0df447e36","name":"success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"agent_ids\": [\"00001\", \"00002\", \"00003\", \"0004\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/api/v1/accounts/{{account_id}}/queues/{{call_queue_id}}.json"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"url\": \"https://{{host}}/{{base_path}}/api/v1/accounts/{{account_id}}/queues/{{call_queue_id}}\"\n}"}],"_postman_id":"a05e1c08-96ea-4f19-bc01-df5c4da689c0"},{"name":"remove agent from a queue","id":"ce10e352-9b3b-42e6-931d-2a930b1a6b42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/queues/{{call_queue_id}}/agents/{{agent_id}}.json","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","queues","{{call_queue_id}}","agents","{{agent_id}}.json"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0a8f14dd-a651-416d-9bb0-e0f41fc622ad","name":"success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"agent_ids\": [\"00001\", \"00002\", \"00003\", \"0004\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/api/v1/accounts/{{account_id}}/queues/{{call_queue_id}}.json"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"url\": \"https://{{host}}/{{base_path}}/api/v1/accounts/{{account_id}}/queues/{{call_queue_id}}\"\n}"}],"_postman_id":"ce10e352-9b3b-42e6-931d-2a930b1a6b42"}],"id":"5c9e9d95-0f2e-424b-8169-0ce4de37a7f8","_postman_id":"5c9e9d95-0f2e-424b-8169-0ce4de37a7f8","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Reporting","item":[{"name":"Reporting Series","id":"cbb29669-6d44-438e-8300-0b24696ce501","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/reports/series.json?start_date=&end_date=&with_time=1&by={{dimension}}","description":"<p>The series endpoint allows you to aggregate multiple calls, texts, or forms by different dimensions of the activity record.  Generally, you can think of the call log and the reports aggregated here as activities with different types or as it's named in the API directions.  The directions supported are the following:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>direction</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>inbound</td>\n<td>inbound phone calls</td>\n</tr>\n<tr>\n<td>outbound</td>\n<td>outbound phone calls</td>\n</tr>\n<tr>\n<td>msg_inbound</td>\n<td>inbound text message</td>\n</tr>\n<tr>\n<td>msg_outbound</td>\n<td>outbound text message</td>\n</tr>\n<tr>\n<td>form</td>\n<td>web form received through a FormReactor (may have triggered a phone call but is captured as a form)</td>\n</tr>\n</tbody>\n</table>\n</div><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>start_date</td>\n<td>yes</td>\n<td>the starting date inclusive e.g. 2015-01-01 formatted date string - time is based on the accounts configured timezone</td>\n</tr>\n<tr>\n<td>end_date</td>\n<td>yes</td>\n<td>the ending date inclusive e.g. 2015-01-01 formatted date string - time is based on the accounts configured timezone</td>\n</tr>\n<tr>\n<td>with_time</td>\n<td>yes</td>\n<td>the value should always be sent with a value of 1</td>\n</tr>\n<tr>\n<td>by</td>\n<td>yes</td>\n<td>the dimension of data to aggregate on.  See dimensions section below.</td>\n</tr>\n<tr>\n<td>direction</td>\n<td>no</td>\n<td>describes the set of activity types being aggregated. e.g. form, inbound, outbound, msg_inbound, msg_outbound</td>\n</tr>\n<tr>\n<td>multi_receiving_numbers_operator</td>\n<td>no</td>\n<td>includes,excludes on the multi_receiving_numbers filter option</td>\n</tr>\n<tr>\n<td>multi_receiving_numbers</td>\n<td>no</td>\n<td>receiving number IDs to include or exclude from the filter see receiving number API and filter_id</td>\n</tr>\n<tr>\n<td>multi_tracking_numbers_operator</td>\n<td>no</td>\n<td>includes or excludes multi_tracking_numbers</td>\n</tr>\n<tr>\n<td>multi_tracking_numbers</td>\n<td>no</td>\n<td>tracking numbers IDs to include or exclude from the filter see tracking number API and filter_id</td>\n</tr>\n<tr>\n<td>ring_time_operator</td>\n<td>no</td>\n<td>ring_time criteria operator e.g. less_than, less_than_equal, greater_than, greater_than_equal, or equal</td>\n</tr>\n<tr>\n<td>ring_time</td>\n<td>no</td>\n<td>ring_time value to match calls ring time</td>\n</tr>\n<tr>\n<td>talk_time_operator</td>\n<td>no</td>\n<td>talk_time criteria operator e.g. less_than, less_than_equal, greater_than, greater_than_equal, or equal</td>\n</tr>\n<tr>\n<td>talk_time</td>\n<td>no</td>\n<td>talk_time value to match calls talk time</td>\n</tr>\n<tr>\n<td>duration_operator</td>\n<td>no</td>\n<td>duration criteria operator e.g. less_than, less_than_equal, greater_than, greater_than_equal, or equal</td>\n</tr>\n<tr>\n<td>duration</td>\n<td>no</td>\n<td>duration value to match calls total time</td>\n</tr>\n<tr>\n<td>multi_tags_operator</td>\n<td>no</td>\n<td>includes or excludes for the multi_tags filter</td>\n</tr>\n<tr>\n<td>multi_tags</td>\n<td>no</td>\n<td>multi_tags filter by tag name URL encoded</td>\n</tr>\n</tbody>\n</table>\n</div><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>dimensions</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>source</td>\n<td>tracking source</td>\n</tr>\n<tr>\n<td>medium</td>\n<td>web medium</td>\n</tr>\n<tr>\n<td>status</td>\n<td>activity status e.g. call status or text message delivery status.  For forms this is the associated call status or completed</td>\n</tr>\n<tr>\n<td>tracking_number</td>\n<td>the dialed tracking number or messaged number for inbound calls and texts or the outbound caller ID used for sending a message or making a phone call.</td>\n</tr>\n<tr>\n<td>receiving_number</td>\n<td>the number we dialed for an associated phone call.</td>\n</tr>\n<tr>\n<td>agent</td>\n<td>the agent who was dialed or texted or who made an outbound call or text.</td>\n</tr>\n<tr>\n<td>tag</td>\n<td>the tag assigned to the activity record</td>\n</tr>\n<tr>\n<td>report_tag</td>\n<td>the reporting conversion tag assigned to the activity record</td>\n</tr>\n<tr>\n<td>landing_host</td>\n<td>the web page hostname associated to the activity record</td>\n</tr>\n<tr>\n<td>landing_path</td>\n<td>the web page landing path associated to the activity record</td>\n</tr>\n<tr>\n<td>referring_host</td>\n<td>the referring web page hostname associated to the activity record</td>\n</tr>\n<tr>\n<td>referrer_path</td>\n<td>the referring web page landing path associated to the activity record</td>\n</tr>\n<tr>\n<td>search</td>\n<td>the search query string if available for the associated activity record</td>\n</tr>\n<tr>\n<td>device</td>\n<td>the device type if available for the associated activity record</td>\n</tr>\n<tr>\n<td>browser</td>\n<td>the browser type if available for the associated activity record</td>\n</tr>\n<tr>\n<td>gender</td>\n<td>the detected gender of the incoming caller or messager. requires enhanced caller id</td>\n</tr>\n<tr>\n<td>phone_type</td>\n<td>the type of phone number dialing requires enhanced caller id</td>\n</tr>\n<tr>\n<td>carrier</td>\n<td>type of phone number dialing requires enhanced caller id or spam detective</td>\n</tr>\n<tr>\n<td>mobile</td>\n<td>whether it is a mobile phone or not - requires enhanced caller id</td>\n</tr>\n<tr>\n<td>experiments</td>\n<td>optimizely integration experiements associated to the actvity record</td>\n</tr>\n<tr>\n<td>variants</td>\n<td>optimizely integration variants associated to the actvity record</td>\n</tr>\n<tr>\n<td>accounts</td>\n<td>activity records grouped by CallTrackingMetrics sub-account (requires agency API key)</td>\n</tr>\n<tr>\n<td>adcampaign</td>\n<td>paid advertising campaign associated to the activity</td>\n</tr>\n<tr>\n<td>adgroup</td>\n<td>paid advertising adgroup associated to the activity</td>\n</tr>\n<tr>\n<td>adcreative</td>\n<td>paid advertising ad creative associated to the activity</td>\n</tr>\n<tr>\n<td>adkeyword</td>\n<td>paid advertising ad keyword associated to the activity</td>\n</tr>\n<tr>\n<td>adnetwork</td>\n<td>paid advertising ad network associated to the activity</td>\n</tr>\n<tr>\n<td>adposition</td>\n<td>paid advertising ad position associated to the activity</td>\n</tr>\n<tr>\n<td>adformat</td>\n<td>paid advertising ad format associated to the activity</td>\n</tr>\n<tr>\n<td>hour</td>\n<td>hour of the day</td>\n</tr>\n<tr>\n<td>day</td>\n<td>day of the week</td>\n</tr>\n<tr>\n<td>education</td>\n<td>education of the caller requires enhanced callerid</td>\n</tr>\n<tr>\n<td>language</td>\n<td>language of the caller requires enhanced callerid</td>\n</tr>\n<tr>\n<td>occupation</td>\n<td>occupation of the caller requires enhanced callerid</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","reports","series.json"],"host":["{{host}}"],"query":[{"key":"start_date","value":""},{"key":"end_date","value":""},{"key":"with_time","value":"1"},{"key":"by","value":"{{dimension}}"}],"variable":[]}},"response":[],"_postman_id":"cbb29669-6d44-438e-8300-0b24696ce501"},{"name":"Usage Logs","id":"c9422d27-00ab-48f0-a01a-e5393f6f0628","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/reports/usage_logs.json?start_date=&end_date=&group=number&page=1&per_page=10","description":"<p>The usage logs allow you to pull detailed usage information by tracking number or by account.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>start_date</td>\n<td>yes</td>\n<td>the starting date inclusive e.g. 2015-01-01 formatted date string - time UTC</td>\n</tr>\n<tr>\n<td>end_date</td>\n<td>yes</td>\n<td>the ending date inclusive e.g. 2015-01-01 formatted date string - time is UTC</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>no</td>\n<td>a filter to filter the results by a matching field. the searchable text includes the account name, the tracking number label and the tracking source name. Additionally, you can filter by tracking number by using the fullly qualified E.164 phone number e.g. +1.., +44.., etc..</td>\n</tr>\n<tr>\n<td>page</td>\n<td>no</td>\n<td>the page of results to view starting at 1</td>\n</tr>\n<tr>\n<td>per_page</td>\n<td>no</td>\n<td>max per page values is 100 per page.</td>\n</tr>\n<tr>\n<td>account</td>\n<td>no</td>\n<td>set to 1 when fetching a single account with an API key with only single account access level</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","reports","usage_logs.json"],"host":["{{host}}"],"query":[{"key":"start_date","value":""},{"key":"end_date","value":""},{"key":"group","value":"number"},{"key":"page","value":"1"},{"key":"per_page","value":"10"}],"variable":[]}},"response":[],"_postman_id":"c9422d27-00ab-48f0-a01a-e5393f6f0628"}],"id":"b05b3b5a-d0b3-4717-ab3e-6965b342471c","description":"<p>The Reporting API provides high level aggregations to make it easier to pull trends and aggregate level data from CallTrackingMetrics.</p>\n","_postman_id":"b05b3b5a-d0b3-4717-ab3e-6965b342471c","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"SMS","item":[{"name":"list of SMS messages","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"messages is an array\"] = Array.isArray(jsonData.messages);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"]}}],"id":"87d04a5d-b44e-464a-b29b-dd604daccc0a","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/sms","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>no</td>\n<td>search string to look for messages with specific callerid, caller_number, called_number, source name, etc.</td>\n</tr>\n<tr>\n<td>start_time</td>\n<td>no</td>\n<td>start datetime for the search</td>\n</tr>\n<tr>\n<td>end_time</td>\n<td>no</td>\n<td>end datetime for the search</td>\n</tr>\n<tr>\n<td>direction</td>\n<td>no</td>\n<td>message direction (inbound/outbound)</td>\n</tr>\n<tr>\n<td>page</td>\n<td>no</td>\n<td>the page number</td>\n</tr>\n<tr>\n<td>per_page</td>\n<td>no</td>\n<td>the number of items per page, defaults to 10</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","sms"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"87d04a5d-b44e-464a-b29b-dd604daccc0a"},{"name":"SMS message details","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"id looks reasonable\"] = jsonData.id.match(/^MSG[0-9A-Fa-f]+$/);","tests[\"number_id looks reasonable\"] = jsonData.number_id.match(/^TPN[0-9A-Fa-f]+$/);","tests[\"to_number looks reasonable\"] = jsonData.to_number.match(/^\\+\\d+$/);","tests[\"account_id is integer\"] = Number.isInteger(parseInt(jsonData.account_id));"]}}],"id":"45038208-fc3e-41e5-8847-fcfb3003abf6","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/sms/{{sms_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>sms_id</td>\n<td>yes</td>\n<td>the MSG id from the SMS record</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","sms","{{sms_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"45038208-fc3e-41e5-8847-fcfb3003abf6"},{"name":"send SMS message","event":[{"listen":"test","script":{"id":"8f001baa-f5d9-4dc8-9d32-987f46383c34","exec":["tests[\"Status code is acceptable\"] = responseCode.code === 202;  // returns accepted instead of OK","","var jsonData         = JSON.parse(responseBody);","tests[\"status is processing\"] = jsonData.status === \"processing\";","tests[\"id looks reasonable\"] = jsonData.id.match(/^MSG[0-9A-Fa-f]+$/);"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"41e91eff-a6de-49d1-92ab-379aa3a3c4cc","exec":[""],"type":"text/javascript"}}],"id":"2bfbc94d-218c-49d7-a251-b1a5ffaf55fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"from","value":"{{tracking_number_id}}","type":"text"},{"key":"to","value":"{{to_number}}","type":"text"},{"key":"msg","value":"{{message}}","type":"text"},{"key":"message_media","type":"file","src":"/Users/bgraw3/Dropbox/Bob/Avatars/spongebob.jpg"}]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/sms","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>from</td>\n<td>yes</td>\n<td>the TPN id (tracking number) from which to send the message</td>\n</tr>\n<tr>\n<td>to</td>\n<td>yes</td>\n<td>the phone number (in E.164 format) to which to send the message (+1dddddddddd)</td>\n</tr>\n<tr>\n<td>msg</td>\n<td>yes</td>\n<td>the message, maximum of 160 characters</td>\n</tr>\n<tr>\n<td>status</td>\n<td>no</td>\n<td>callback URL for updates on delivery status</td>\n</tr>\n<tr>\n<td>message_media</td>\n<td>no</td>\n<td>provide a file of one of these types: \"image/jpeg\", \"image/png\", \"image/jpg\", \"image/gif\", \"text/x-vcard\", \"text/vcard\", \"text/directory\"; size up to 8mb</td>\n</tr>\n<tr>\n<td>allow_create</td>\n<td>no</td>\n<td>set to 1 to allow a new contact record to be created by this API call; without it, the default behavior is to save contact details only if the contact already exists</td>\n</tr>\n<tr>\n<td>fields</td>\n<td>no</td>\n<td>set custom fields or other fields on the contact record before sending the message. e.g. fields[name] = \"The name of the contact\"  <br />fields[custom_field] = \"value of your custom field\"</td>\n</tr>\n<tr>\n<td>agent_id</td>\n<td>no</td>\n<td>the ID of the agent you want to automatically assign to the text message</td>\n</tr>\n<tr>\n<td>validity_period</td>\n<td>no</td>\n<td>Validity Period refers to the number of seconds that messages you send will remain in the platform. This value must be an integer between 10 and 36,000</td>\n</tr>\n</tbody>\n</table>\n</div><p>To send media, you'll need to submit the request as multipart/form-data.</p>\n","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","sms"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2bfbc94d-218c-49d7-a251-b1a5ffaf55fd"},{"name":"list opt out text/sms","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"messages is an array\"] = Array.isArray(jsonData.messages);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"]}}],"id":"3d0b11e0-f352-49fd-9ccb-2501fe9dc21f","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/opt_out_texts","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>no</td>\n<td>search string to look for messages with specific callerid, caller_number, called_number, source name, etc.</td>\n</tr>\n<tr>\n<td>agency</td>\n<td>no</td>\n<td>if 1 list agency opt out text/sms numbers, not just the account</td>\n</tr>\n<tr>\n<td>page</td>\n<td>no</td>\n<td>the page number</td>\n</tr>\n<tr>\n<td>per_page</td>\n<td>no</td>\n<td>the number of items per page, defaults to 10</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","opt_out_texts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d0b11e0-f352-49fd-9ccb-2501fe9dc21f"},{"name":"opt out text/sms details","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"messages is an array\"] = Array.isArray(jsonData.messages);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"]}}],"id":"a891877e-f3fd-4db1-833a-de99e4cee288","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/opt_out_texts/{{message_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>message_id</td>\n<td>yes</td>\n<td>the sms/text/message id</td>\n</tr>\n<tr>\n<td>page</td>\n<td>no</td>\n<td>the page number</td>\n</tr>\n<tr>\n<td>per_page</td>\n<td>no</td>\n<td>the number of items per page, defaults to 10</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","opt_out_texts","{{message_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a891877e-f3fd-4db1-833a-de99e4cee288"},{"name":"add opt out text/sms","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"messages is an array\"] = Array.isArray(jsonData.messages);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"]}}],"id":"87365559-fd69-4ab4-9771-17e0bcd0c3ca","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"number\": \"+14107023400\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/opt_out_texts","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>message_id</td>\n<td>yes</td>\n<td>the sms/text/message id</td>\n</tr>\n<tr>\n<td>number</td>\n<td>yes</td>\n<td>the number to add to the do not text/sms list in e.164 format (i.e +18885551212)</td>\n</tr>\n<tr>\n<td>agency</td>\n<td>no</td>\n<td>if 1 add to agency list instead of account list</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","opt_out_texts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"87365559-fd69-4ab4-9771-17e0bcd0c3ca"},{"name":"remove opt out text/sms","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"messages is an array\"] = Array.isArray(jsonData.messages);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"]}}],"id":"8765f54d-b1c1-429e-8785-7e607da4eb5b","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/opt_out_texts/{{number}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>number</td>\n<td>yes</td>\n<td>the phone number to remove in e.164 format</td>\n</tr>\n<tr>\n<td>agency</td>\n<td>no</td>\n<td>if 1 remove number from agency opt out text/sms list, not account</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","opt_out_texts","{{number}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8765f54d-b1c1-429e-8785-7e607da4eb5b"}],"id":"24ab4dd9-9b58-4b13-bc90-d15f99721020","_postman_id":"24ab4dd9-9b58-4b13-bc90-d15f99721020","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Schedules","item":[{"name":"list of schedules","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"schedules is an array\"] = Array.isArray(jsonData.schedules);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"]}}],"id":"5fa8a1dc-d3ca-4a39-af54-73d89ca0140f","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/schedules","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account_id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","schedules"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5fa8a1dc-d3ca-4a39-af54-73d89ca0140f"},{"name":"retrieve schedule detail","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"id looks reasonable\"] = jsonData.schedule.id.match(/^SCH[0-9A-Fa-f]+$/);","tests[\"schedule times is an array\"] = Array.isArray(jsonData.schedule.times);","tests[\"name is non-empty string\"] = (typeof jsonData.schedule.name === \"string\") && (jsonData.schedule.name.length > 0);"]}}],"id":"6ec630e0-4403-4309-bf8c-4d62479ae74d","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/schedules/{{schedule_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account_id</td>\n</tr>\n<tr>\n<td>schedule_id</td>\n<td>yes</td>\n<td>the schedule SCH ID</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","schedules","{{schedule_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ec630e0-4403-4309-bf8c-4d62479ae74d"},{"name":"create a schedule","id":"afeeb545-0001-45fb-941f-3e7549d77323","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"schedule\": {\n    \"name\": \"new test 99\",\n    \"timezone\": \"Eastern Time (US & Canada)\",\n    \"times\": [\n        {\n            \"start_time\":\"550\",\n            \"days\": {\n                \"sun\":false,\n                \"mon\":true,\n                \"tue\":true,\n                \"wed\":true,\n                \"thu\":true,\n                \"fri\":true,\n                \"sat\":false\n            },\n            \"end_time\":\"1080\",\n            \"position\":\"0\"\n        }\n        ]\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/schedules","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account_id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","schedules"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"afeeb545-0001-45fb-941f-3e7549d77323"},{"name":"delete a schedule","id":"6db7306b-5d3f-4cb3-99c7-3d3013d9eb0f","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/schedules/{{schedule_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account_id</td>\n</tr>\n<tr>\n<td>schedule_id</td>\n<td>yes</td>\n<td>the schedule SCH ID</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","schedules","{{schedule_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6db7306b-5d3f-4cb3-99c7-3d3013d9eb0f"}],"id":"e6019047-1314-4a2b-a7e3-1d87cc39e1e0","_postman_id":"e6019047-1314-4a2b-a7e3-1d87cc39e1e0","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Smart Router","item":[{"name":"list of all smart routers","id":"81cb26e9-4115-4d32-b453-c3e9b75c5b4a","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/conditional_routers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","conditional_routers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"81cb26e9-4115-4d32-b453-c3e9b75c5b4a"},{"name":"smart router details","id":"1f614675-90be-4f9b-ae30-960537c26df7","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/conditional_routers/{{conditional_router_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>conditional_router_id</td>\n<td>yes</td>\n<td>the COR ID for the smart/conditional router</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","conditional_routers","{{conditional_router_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f614675-90be-4f9b-ae30-960537c26df7"},{"name":"create smart router","id":"fbd881ac-f65d-4d6e-830e-a43106b95f04","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"conditional_router\": {\n    \"name\": \"test\",\n    \"play_message\": \"say:man:en:\",\n    \"router_default_type\": \"\",\n    \"router_default_id\": \"\",\n    \"tag_list\": \"\"\n  },\n  \"voice\": \"man\",\n  \"lang\": \"en\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/conditional_routers","description":"<p>Create a Smart Router</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>conditional_router[name]</td>\n<td>yes</td>\n<td>the name of the smart router</td>\n</tr>\n<tr>\n<td>conditional_router[play_message]</td>\n<td>no</td>\n<td>message string; this has a specific encoding prefixed with either say: or play:.</td>\n</tr>\n<tr>\n<td>conditional_router[router_default_type]</td>\n<td>no</td>\n<td>default route type</td>\n</tr>\n<tr>\n<td>conditional_router[router_default_id]</td>\n<td>no</td>\n<td>default route id</td>\n</tr>\n<tr>\n<td>conditional_router[tag_list]</td>\n<td>no</td>\n<td>comma separated list of tags associated with the smart router; limit 3</td>\n</tr>\n<tr>\n<td>voice</td>\n<td>no</td>\n<td></td>\n</tr>\n<tr>\n<td>lang</td>\n<td>no</td>\n<td></td>\n</tr>\n<tr>\n<td>virtual_phone_number_ids</td>\n<td>no</td>\n<td>array of virtual phone number IDs to associate with this router</td>\n</tr>\n</tbody>\n</table>\n</div><p>JSON body example</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"conditional_router\": {\n    \"name\": \"test\",\n    \"play_message\": \"say:man:en:\",\n    \"router_default_type\": \"\",\n    \"router_default_id\": \"\",\n    \"tag_list\": \"\"\n  },\n  \"voice\": \"man\",\n  \"lang\": \"en\"\n}\n</code></pre>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","conditional_routers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fbd881ac-f65d-4d6e-830e-a43106b95f04"},{"name":"update smart router","id":"27138da0-cb06-4867-80dd-52cb234ee2fd","request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"conditional_router\": {\n    \"name\": \"test\",\n    \"play_message\": \"say:man:en:\",\n    \"router_default_type\": \"\",\n    \"router_default_id\": \"\",\n    \"tag_list\": \"\"\n  },\n  \"voice\": \"man\",\n  \"lang\": \"en\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/conditional_routers/{{conditional_router_id}}","description":"<p>Update a Smart Router</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>conditional_router_id</td>\n<td>yes</td>\n<td>the COR ID for the smart/conditional router</td>\n</tr>\n<tr>\n<td>conditional_router[name]</td>\n<td>yes</td>\n<td>the name of the smart router</td>\n</tr>\n<tr>\n<td>conditional_router[play_message]</td>\n<td>no</td>\n<td>message string; this has a specific encoding prefixed with either say: or play:.</td>\n</tr>\n<tr>\n<td>conditional_router[router_default_type]</td>\n<td>no</td>\n<td>default route type</td>\n</tr>\n<tr>\n<td>conditional_router[router_default_id]</td>\n<td>no</td>\n<td>default route id</td>\n</tr>\n<tr>\n<td>conditional_router[tag_list]</td>\n<td>no</td>\n<td>comma separated list of tags associated with the smart router; limit 3</td>\n</tr>\n<tr>\n<td>voice</td>\n<td>no</td>\n<td></td>\n</tr>\n<tr>\n<td>lang</td>\n<td>no</td>\n<td></td>\n</tr>\n<tr>\n<td>virtual_phone_number_ids</td>\n<td>no</td>\n<td>array of virtual phone number IDs to associate with this router</td>\n</tr>\n</tbody>\n</table>\n</div><p>JSON body example</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"conditional_router\": {\n    \"name\": \"test\",\n    \"play_message\": \"say:man:en:\",\n    \"router_default_type\": \"\",\n    \"router_default_id\": \"\",\n    \"tag_list\": \"\",\n    \"routing_rules\": [\n       {\n           \"conditions\": [\n              {\n                \"position\": 0,\n                \"field_name\": \"tag\",\n                \"match_value\": \"your tag\",\n                \"match_join\": \"or\"\n              },\n              ...\n           ],\n           \"play_message\": \"say:woman:en:My option\",\n           \"route_dest_type\": \"VoiceMenu\",\n           \"route_dest_id\": \"VOM93...\",\n           \"actions\": [\n              {\n                 \"custom\": [\n                    {\n                       \"type\": \"language\",\n                       \"value\": \"English\"\n                    }\n                 ]\n              }\n           ]\n       }\n    ]\n  }\n}\n</code></pre>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","conditional_routers","{{conditional_router_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"27138da0-cb06-4867-80dd-52cb234ee2fd"},{"name":"delete smart router","id":"2c1d0240-7405-40a0-b6da-5c874c406d45","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/conditional_routers/{{conditional_router_id}}","description":"<p>Delete a Smart Router</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>conditional_router_id</td>\n<td>yes</td>\n<td>the COR ID for the smart/conditional router</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","conditional_routers","{{conditional_router_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c1d0240-7405-40a0-b6da-5c874c406d45"}],"id":"96300aca-da25-422f-8510-f03e0fd824fc","_postman_id":"96300aca-da25-422f-8510-f03e0fd824fc","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Tracking Sources","item":[{"name":"list of tracking sources","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"sources is an array\"] = Array.isArray(jsonData.sources);","tests.page           = Number.isInteger(jsonData.page);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"]}}],"id":"e7b062af-2aa1-4ec7-b53b-bf43e00cf00a","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/sources","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>search for a tracking source like name</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","sources"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e7b062af-2aa1-4ec7-b53b-bf43e00cf00a"},{"name":"tracking source details","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"id looks reasonable\"] = jsonData.id.match(/^TSO[0-9A-Fa-f]+$/);","tests[\"account_id is integer\"] = Number.isInteger(jsonData.account_id);","tests[\"url looks reasonable\"] = jsonData.url.match(/^https:\\/\\/api\\..*api\\/v1\\/accounts\\/\\d+\\/sources\\//);"]}}],"id":"c3ef5d96-7a42-4b5e-97f5-1593a054977b","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/sources/{{tracking_source_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_source_id</td>\n<td>yes</td>\n<td>the tracking source id (numeric)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","sources","{{tracking_source_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3ef5d96-7a42-4b5e-97f5-1593a054977b"},{"name":"create a tracking source","id":"bb7bbfa0-3bde-410b-99a0-609658fa2c19","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Google Adwords\",\n  \"online\": \"1\",\n  \"referring_url\": \"\",\n  \"landing_url\": \"gclid=.+\",\n  \"position\": \"1\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/sources","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>the name of the tracking source</td>\n</tr>\n<tr>\n<td>referring_url</td>\n<td>no</td>\n<td></td>\n</tr>\n<tr>\n<td>landing_url</td>\n<td>no</td>\n<td></td>\n</tr>\n<tr>\n<td>position</td>\n<td>no</td>\n<td></td>\n</tr>\n<tr>\n<td>online</td>\n<td>no</td>\n<td></td>\n</tr>\n<tr>\n<td>crm_tag</td>\n<td>no</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","sources"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bb7bbfa0-3bde-410b-99a0-609658fa2c19"},{"name":"update a tracking source","id":"ed261ddf-2e6d-4b00-9e51-fe9afcb1e89f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Google Adwords\",\n  \"online\": \"1\",\n  \"referring_url\": \"\",\n  \"landing_url\": \"gclid=.+\",\n  \"position\": \"1\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/sources/{{id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>the name of the tracking source</td>\n</tr>\n<tr>\n<td>referring_url</td>\n<td>no</td>\n<td></td>\n</tr>\n<tr>\n<td>landing_url</td>\n<td>no</td>\n<td></td>\n</tr>\n<tr>\n<td>position</td>\n<td>no</td>\n<td></td>\n</tr>\n<tr>\n<td>online</td>\n<td>no</td>\n<td></td>\n</tr>\n<tr>\n<td>crm_tag</td>\n<td>no</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","sources","{{id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"bf02bbf9-8a16-4a10-8cf9-d3d84c25eac2","name":"update a tracking source","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Google Adwords\",\n  \"online\": \"1\",\n  \"referring_url\": \"\",\n  \"landing_url\": \"gclid=.+\",\n  \"position\": \"1\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/sources/{{id}}"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"ed261ddf-2e6d-4b00-9e51-fe9afcb1e89f"},{"name":"delete a tracking source","id":"eed1a584-4ef7-4bec-85bb-74212229e462","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/sources/{{tracking_source_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_source_id</td>\n<td>yes</td>\n<td>the tracking source id (numeric)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","sources","{{tracking_source_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eed1a584-4ef7-4bec-85bb-74212229e462"},{"name":"pause a tracking source","id":"d20e3faa-8f35-4e6d-b14e-05b5db581a2a","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/sources/{{tracking_source_id}}/pause","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_source_id</td>\n<td>yes</td>\n<td>the TSO id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","sources","{{tracking_source_id}}","pause"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d20e3faa-8f35-4e6d-b14e-05b5db581a2a"},{"name":"unpause a tracking source","id":"cd57393d-60d5-40bf-aee0-1ee8bb7b585d","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/sources/{{tracking_source_id}}/unpause","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_source_id</td>\n<td>yes</td>\n<td>the TSO id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","sources","{{tracking_source_id}}","unpause"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd57393d-60d5-40bf-aee0-1ee8bb7b585d"},{"name":"add a tracking number to a tracking source","id":"2989e69d-74cb-4c5f-896e-fd3ab25d676b","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/sources/{{tracking_source_id}}/numbers/{{tracking_number_id}}/add","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>tracking_source_id</td>\n<td>yes</td>\n<td>the tracking source id (numeric)</td>\n</tr>\n<tr>\n<td>tracking_number_id</td>\n<td>yes</td>\n<td>the tracking number TPN id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","sources","{{tracking_source_id}}","numbers","{{tracking_number_id}}","add"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2989e69d-74cb-4c5f-896e-fd3ab25d676b"},{"name":"remove a tracking number from a tracking source","id":"46056af2-2135-4a19-9a67-54f280cf21f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/sources/{{tracking_source_id}}/numbers/{{tracking_number_id}}/remove","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","sources","{{tracking_source_id}}","numbers","{{tracking_number_id}}","remove"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"46056af2-2135-4a19-9a67-54f280cf21f1"}],"id":"0cdd4b26-7a74-4e6d-a136-6b765141a7c5","_postman_id":"0cdd4b26-7a74-4e6d-a136-6b765141a7c5","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Triggers","item":[{"name":"list of triggers","id":"22c63de9-a0ab-4897-952a-52b0fc512bf0","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/triggers","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","triggers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"22c63de9-a0ab-4897-952a-52b0fc512bf0"},{"name":"trigger detail","id":"b6d754dd-7ba5-416e-b457-bb7a55532de3","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/triggers/{{trigger_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","triggers","{{trigger_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b6d754dd-7ba5-416e-b457-bb7a55532de3"},{"name":"create trigger","id":"04277b1a-09fc-418b-a13f-2df34b98dfb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"automator\": {\n        \"name\": \"{{trigger_name}}\",\n        \"position\": \"start\",\n        \"routing_rules\": [\n            {\n                \"actions\": [\n                    {\n                        \"type\": \"ga_event\",\n                        \"category_name\": \"Calls\",\n                        \"action_name\": \"{{source}}\",\n                        \"event_value\": \"{{talk_time}}\",\n                        \"web_property\": \"UA-12345-98\"\n                    }\n                ]\n            }\n        ]\n    }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/triggers","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>The name of the trigger</td>\n</tr>\n<tr>\n<td>description</td>\n<td>no</td>\n<td>A longer description of the trigger</td>\n</tr>\n<tr>\n<td>position</td>\n<td>yes</td>\n<td>One of <code>start</code>, <code>answered</code>, <code>session</code>, <code>hangup</code>, <code>manual_update</code>, <code>end</code>, <code>end_delayed</code>, <code>sale</code>, <code>form</code>, <code>paid</code>, <code>geokey</code>, or <code>keyword</code> which determines when the trigger will fire. See below for more information.</td>\n</tr>\n<tr>\n<td>always_run</td>\n<td>no</td>\n<td><code>true</code> or <code>false</code> trigger for all calls</td>\n</tr>\n<tr>\n<td>routing_rules</td>\n<td>no</td>\n<td>See below for information about this object</td>\n</tr>\n</tbody>\n</table>\n</div><p>routing_rules is an array of rules and actions</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"automator\": {\n        \"name\": \"{{trigger_name}}\",\n        \"position\": \"start\",\n        \"routing_rules\": [\n            {\n                \"actions\": [\n                    {\n                        \"type\": \"ga_event\",\n                        \"category_name\": \"Calls\",\n                        \"action_name\": \"{{source}}\",\n                        \"event_value\": \"{{talk_time}}\",\n                        \"web_property\": \"UA-12345-98\"\n                    }\n                ]\n            }\n        ]\n    }\n}\n</code></pre><h1 id=\"notes-on-position\">Notes on Position</h1>\n<ul>\n<li><strong>answered</strong>: When an agent answers a call within a call queue</li>\n<li><strong>session</strong>: When a website session is associated to the call record</li>\n<li><strong>hangup</strong>: When the caller hangs up the call early</li>\n<li><strong>manual_update</strong>: Trigger when call data is manually updated</li>\n<li><strong>end</strong>: Once all information about the call is captured</li>\n<li><strong>end_delayed</strong>: 1 hour after call data is captured (for Google Analytics)</li>\n<li><strong>sale</strong>: Whenever sale data is updated for any call</li>\n<li><strong>form</strong>: When a FormReactor call is created</li>\n<li><strong>paid</strong>: When PPC data is retrieved for a call</li>\n<li><strong>geokey</strong>: When a caller inputs their zip code or area code for a Geo Router</li>\n<li><strong>keyword</strong>: When a keyword is spotted within a call</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","triggers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"04277b1a-09fc-418b-a13f-2df34b98dfb3"},{"name":"update trigger","id":"62e0f68d-d721-4da8-9439-4f459f5afdb7","request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/triggers/{{trigger_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","triggers","{{trigger_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"62e0f68d-d721-4da8-9439-4f459f5afdb7"},{"name":"delete trigger","id":"df2defa8-b46f-4b36-8b84-96b5ed48a77a","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/triggers/{{trigger_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","triggers","{{trigger_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"df2defa8-b46f-4b36-8b84-96b5ed48a77a"}],"id":"2c3d9865-5c61-4857-9727-adff100d6d98","_postman_id":"2c3d9865-5c61-4857-9727-adff100d6d98","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Users","item":[{"name":"list of users","event":[{"listen":"test","script":{"id":"4a666b26-73d0-4269-a94b-725285f5f0ea","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData        = JSON.parse(responseBody);","tests.users         = Array.isArray(jsonData.users);","tests.page          = Number.isInteger(jsonData.page);","tests.total_pages   = Number.isInteger(jsonData.total_pages);","tests.total_entries = Number.isInteger(jsonData.total_entries);","tests.per_page      = Number.isInteger(jsonData.per_page);"],"type":"text/javascript"}}],"id":"a511efd9-74dd-42c8-a22f-54cd83d28e99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users","description":"<p>Get a list of users for the specified account</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>email</td>\n<td>no</td>\n<td>find user with email address</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>no</td>\n<td>find users that match the filter (i.e. name)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","users"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3d4f2791-2873-448a-a989-e6cc9641510d","name":"list of users","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.15.8.2","enabled":true},{"key":"Date","value":"Fri, 01 May 2020 19:29:12 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"ETag","value":"W/\"79ce86d9284a3294275073c13fd60509\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=azNBYlViQlNaeUZoMGR4R20vR2xHblFadCtabzBBRHEyUmx6SzdvbUtLNkxOa1hzZ25LekxvaXBWdkIyL2srNzFMMVo1NkM2UFplUmo2SWJGRmZWNnJHbE04ZjFNaHFBb0ZWWFFIci9VQjJvR1V6YWFKUllhT3lUQytwUHFqaUItLXlSbU9QTHhTVHZxdnpxemFsbTIwM2c9PQ%3D%3D--457108ee053b206ea21a650a41624100a21c261a; domain=.ctmdev.us; path=/; expires=Sat, 02 May 2020 11:29:12 -0000; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Meta-Request-Version","value":"0.7.2","enabled":true},{"key":"X-Request-Id","value":"5c9f0012-9dc8-4f2f-bf7b-f2ebf506d017","enabled":true},{"key":"X-Runtime","value":"0.349612","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"page\": 1,\n    \"per_page\": 10,\n    \"total_entries\": 29,\n    \"total_pages\": 3,\n    \"next_page\": \"/api/v1/accounts/18600/users?page=2\",\n    \"previous_page\": null,\n    \"users\": [\n        {\n            \"id\": \"USR043E46722529BCB5FB8E05B45DB4FA9E\",\n            \"uid\": 19197,\n            \"first_name\": \"Admin\",\n            \"last_name\": \"Enterprise\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"admin@enterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"admin\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5FB8E05B45DB4FA9E.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5F95A293CAE011614\",\n            \"uid\": 19199,\n            \"first_name\": \"Bob\",\n            \"last_name\": \"Enterprise\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"bob@enterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"call_manager\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5F95A293CAE011614.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5A3B577DD64866018\",\n            \"uid\": 19200,\n            \"first_name\": \"Call\",\n            \"last_name\": \"Manager\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"callmanager@enterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"call_manager\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5A3B577DD64866018.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5E348BF3E762179F0\",\n            \"uid\": 19201,\n            \"first_name\": \"Report\",\n            \"last_name\": \"Manager\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"reportmanager@enterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"report_manager\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5E348BF3E762179F0.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5578CA52BB780A1D2\",\n            \"uid\": 19206,\n            \"first_name\": \"the\",\n            \"last_name\": \"agent\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"agent@enterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"agent\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5578CA52BB780A1D2.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5932225839967BF8A\",\n            \"uid\": 19231,\n            \"first_name\": \"agent1\",\n            \"last_name\": \"ent1\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"agent1@ent.com\",\n            \"pic_url\": null,\n            \"role\": \"agent\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5932225839967BF8A.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5268EC39CF8BEEA8E\",\n            \"uid\": 19239,\n            \"first_name\": \"just\",\n            \"last_name\": \"admin\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"justadmin@zzzenterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"admin\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5268EC39CF8BEEA8E.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB50B581EE227B4A280\",\n            \"uid\": 19248,\n            \"first_name\": \"another\",\n            \"last_name\": \"agencyAdmin\",\n            \"account_id\": 18632,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"anotheraa@zzz.com\",\n            \"pic_url\": null,\n            \"role\": \"admin\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18632/users/USR043E46722529BCB50B581EE227B4A280.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB529F0BAA34A22EE6E\",\n            \"uid\": 19257,\n            \"first_name\": \"Agency\",\n            \"last_name\": \"Admin ZZZ\",\n            \"account_id\": 18632,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"aa@enterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"admin\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18632/users/USR043E46722529BCB529F0BAA34A22EE6E.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": \"sip:cce03d1t4ea333m.sip.us1.twilio.com\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5B49425FB5DC45EAF\",\n            \"uid\": 19277,\n            \"first_name\": \"november\",\n            \"last_name\": \"november\",\n            \"account_id\": 18600,\n            \"inbound_number\": \"+14107033455\",\n            \"status\": \"offline\",\n            \"email\": \"nnn@example.com\",\n            \"pic_url\": null,\n            \"role\": \"agent\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5B49425FB5DC45EAF.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        }\n    ]\n}"}],"_postman_id":"a511efd9-74dd-42c8-a22f-54cd83d28e99"},{"name":"Agent Utilization","event":[{"listen":"test","script":{"id":"3997224b-97ba-480b-94d5-c22c13b72f69","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData        = JSON.parse(responseBody);","tests.users         = Array.isArray(jsonData.users);","tests.page          = Number.isInteger(jsonData.page);","tests.total_pages   = Number.isInteger(jsonData.total_pages);","tests.total_entries = Number.isInteger(jsonData.total_entries);","tests.per_page      = Number.isInteger(jsonData.per_page);"],"type":"text/javascript"}}],"id":"624cf17a-4740-4964-80bc-bbcac82f0cfe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/agents/utilization.json","description":"<p>Get aggregated status details for all agents in your account</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>start_time</td>\n<td>yes</td>\n<td>starting time in seconds since the epoch</td>\n</tr>\n<tr>\n<td>end_time</td>\n<td>yes</td>\n<td>ending time in seconds since the epoch</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","agents","utilization.json"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"be64aecb-f1b4-4507-bb53-be4ef1f3cdec","name":"Agent Utilization","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/agents/utilization.json"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"excluded_users\": [],\n    \"included_users\": [\n        325713,\n        334551,\n        352437,\n        365715,\n        377018,\n        382907\n    ],\n    \"start_time\": 1592752204,\n    \"end_time\": 1592838604,\n    \"events\": [\n        {\n            \"event\": \"Lunch_and_Coffee_Break\",\n            \"user_id\": 325713,\n            \"count\": 1,\n            \"average\": 243,\n            \"total\": 243,\n            \"last_time\": 1592829676\n        },\n        {\n            \"event\": \"Number_Management\",\n            \"user_id\": 325713,\n            \"count\": 1,\n            \"average\": 721,\n            \"total\": 721,\n            \"last_time\": 1592824378\n        },\n        {\n            \"event\": \"Ticket_Time\",\n            \"user_id\": 334551,\n            \"count\": 2,\n            \"average\": 1196.5,\n            \"total\": 2393,\n            \"last_time\": 1592832890\n        },\n        {\n            \"event\": \"wrapup\",\n            \"user_id\": 334551,\n            \"count\": 4,\n            \"average\": 28.25,\n            \"total\": 113,\n            \"last_time\": 1592827694\n        },\n        {\n            \"event\": \"wrapup\",\n            \"user_id\": 377018,\n            \"count\": 1,\n            \"average\": null,\n            \"total\": 759,\n            \"last_time\": 1592837852\n        },\n        {\n            \"event\": \"talk_time\",\n            \"user_id\": 377018,\n            \"total\": 67\n        },\n        {\n            \"event\": \"ring_time\",\n            \"user_id\": 334551,\n            \"total\": 28\n        },\n        {\n            \"event\": \"ring_time\",\n            \"user_id\": 377018,\n            \"total\": null\n        },\n        {\n            \"event\": \"online\",\n            \"user_id\": 325713,\n            \"total\": 13153,\n            \"active_total\": 8693,\n            \"average\": 2230,\n            \"count\": 9,\n            \"last_time\": 1592823888\n        },\n        {\n            \"event\": \"online\",\n            \"user_id\": 334551,\n            \"total\": 6314,\n            \"active_total\": 66,\n            \"average\": 1249.6,\n            \"count\": 54,\n            \"last_time\": 1592825467\n        },\n        {\n            \"event\": \"online\",\n            \"user_id\": 365715,\n            \"total\": 1479,\n            \"active_total\": 752,\n            \"average\": 727,\n            \"count\": 4,\n            \"last_time\": 1592832118\n        },\n        {\n            \"event\": \"online\",\n            \"user_id\": 377018,\n            \"total\": 0,\n            \"active_total\": null,\n            \"average\": null,\n            \"count\": 1,\n            \"last_time\": 1592837779\n        },\n        {\n            \"event\": \"online\",\n            \"user_id\": 382907,\n            \"total\": 6797,\n            \"active_total\": 6797,\n            \"average\": null,\n            \"count\": 3,\n            \"last_time\": 1592830677\n        }\n    ],\n    \"users\": {\n        \"325713\": {\n            \"name\": \"Jean Edwards\",\n            \"email\": \"jean.edwards@calltrackingmetrics.com\",\n            \"pic_url\": null,\n            \"initials\": \"JE\"\n        },\n        \"334551\": {\n            \"name\": \"Chris Nalley\",\n            \"email\": \"chris.nalley@calltrackingmetrics.com\",\n            \"pic_url\": \"https://s3.amazonaws.com/ct0/agents/logo/334551/9d1e658254640fb81ba8b30b1767caff55722c85?1573831399\",\n            \"initials\": \"CN\"\n        },\n        \"365715\": {\n            \"name\": \"Anthony Glass\",\n            \"email\": \"anthony.glass@calltrackingmetrics.com\",\n            \"pic_url\": \"https://s3.amazonaws.com/ct0/agents/logo/365715/90a7a0e6ac9505e25dabf280172c58bd98597a90?1580420632\",\n            \"initials\": \"AG\"\n        },\n        \"377018\": {\n            \"name\": \"Tyler Semanski\",\n            \"email\": \"tyler.semanski@calltrackingmetrics.com\",\n            \"pic_url\": null,\n            \"initials\": \"TS\"\n        },\n        \"382907\": {\n            \"name\": \"Garry McWatters\",\n            \"email\": \"garry.mcwatters@calltrackingmetrics.com\",\n            \"pic_url\": \"https://s3.amazonaws.com/ct0/agents/logo/382907/36caffd688bf3d54a47fe0a50398bd502854d103?1585058670\",\n            \"initials\": \"GM\"\n        }\n    },\n    \"metrics\": {\n        \"inbound_calls\": [\n            {\n                \"user_id\": 334551,\n                \"total\": 4\n            },\n            {\n                \"user_id\": 377018,\n                \"total\": 1\n            }\n        ],\n        \"outbound_calls\": [\n            {\n                \"user_id\": 377018,\n                \"total\": 1\n            }\n        ],\n        \"chats\": [\n            {\n                \"user_id\": 334551,\n                \"total\": 2\n            }\n        ],\n        \"time_to_connect\": [\n            {\n                \"time\": 2,\n                \"user_id\": 377018,\n                \"total\": 2\n            }\n        ],\n        \"time_to_answer\": [\n            {\n                \"time\": 7.25,\n                \"user_id\": 334551,\n                \"total\": 29\n            }\n        ],\n        \"talk_time\": [\n            {\n                \"time\": 67,\n                \"user_id\": 377018,\n                \"total\": 67\n            }\n        ],\n        \"chat_time\": [\n            {\n                \"time\": 508,\n                \"user_id\": 334551,\n                \"total\": 1016\n            }\n        ],\n        \"wrapup_time\": [],\n        \"handle_time\": [\n            {\n                \"time\": 745.5,\n                \"user_id\": 334551,\n                \"total\": 2982\n            }\n        ]\n    }\n}"}],"_postman_id":"624cf17a-4740-4964-80bc-bbcac82f0cfe"},{"name":"Agent Events","event":[{"listen":"test","script":{"id":"8bb5105b-f2c1-44fc-975e-532370d1a0bf","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData        = JSON.parse(responseBody);","tests.users         = Array.isArray(jsonData.users);","tests.page          = Number.isInteger(jsonData.page);","tests.total_pages   = Number.isInteger(jsonData.total_pages);","tests.total_entries = Number.isInteger(jsonData.total_entries);","tests.per_page      = Number.isInteger(jsonData.per_page);"],"type":"text/javascript"}}],"id":"5a273735-fe07-4307-8652-0ec0b591b62d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/agents/events.json","description":"<p>Get a stream of events from the agent</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user_id</td>\n<td>yes</td>\n<td>the internal user id for the agent</td>\n</tr>\n<tr>\n<td>start_time</td>\n<td>yes</td>\n<td>starting time in seconds since the epoch</td>\n</tr>\n<tr>\n<td>end_time</td>\n<td>yes</td>\n<td>ending time in seconds since the epoch</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","agents","events.json"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a05fed43-f1cf-4c8d-9cd2-29bdaeb06370","name":"Agent Events","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/agents/events.json"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\"start_time\":1592798400,\"result_end_time\":1592836928,\"end_time\":1592884740,\"events\": [{\"event\":\"accept_calls\",\"time\":1592826319,\"what_id\":null,\"what_type\":null,\"user_id\":\"USREB077D06AC239BB5\",\"data\":{\"ip\":\"100.16.62.89\"},\"class\":\"accept_calls\",\"icon\":\"font-phone-incoming\"},{\"event\":\"online\",\"time\":1592826319,\"what_id\":null,\"what_type\":null,\"user_id\":\"USREB077D06AC239BB5\",\"data\":null,\"class\":\"online\",\"icon\":\"font-phone\"},{\"event\":\"wrapup_end\",\"time\":1592826319,\"what_id\":906107238,\"what_type\":\"Call\",\"user_id\":\"USREB077D06AC239BB5\",\"data\":{\"ip\":\"100.16.62.89\"},\"class\":\"wrapup_end\",\"icon\":\"font-bubbles-2\"},{\"event\":\"outbound_end\",\"time\":1592826317,\"what_id\":906107238,\"what_type\":\"Call\",\"user_id\":\"USREB077D06AC239BB5\",\"data\":null,\"class\":\"outbound_end\",\"icon\":\"font-bubbles-2\"},{\"event\":\"wrapup\",\"time\":1592826316,\"what_id\":null,\"what_type\":null,\"user_id\":\"USREB077D06AC239BB5\",\"data\":{\"ip\":\"100.16.62.89\"},\"class\":\"wrapup\",\"icon\":\"font-bubbles-2\"},{\"event\":\"disconnect\",\"time\":1592826316,\"what_id\":906107238,\"what_type\":\"Call\",\"user_id\":\"USREB077D06AC239BB5\",\"data\":{\"ip\":\"100.16.62.89\"},\"class\":\"disconnect\",\"icon\":\"font-bubbles-2\"},{\"event\":\"caller_disconnect\",\"time\":1592826315,\"what_id\":906107238,\"what_type\":\"Call\",\"user_id\":\"USREB077D06AC239BB5\",\"data\":null,\"class\":\"caller_disconnect\",\"icon\":\"font-bubbles-2\"},{\"event\":\"push_answered\",\"time\":1592826306,\"what_id\":906107238,\"what_type\":\"Call\",\"user_id\":\"USREB077D06AC239BB5\",\"data\":null,\"class\":\"push_answered\",\"icon\":\"font-bubbles-2\"},{\"event\":\"push_answered\",\"time\":1592826306,\"what_id\":906107238,\"what_type\":\"Call\",\"user_id\":\"USREB077D06AC239BB5\",\"data\":null,\"class\":\"push_answered\",\"icon\":\"font-bubbles-2\"},{\"event\":\"answered\",\"time\":1592826306,\"what_id\":906107238,\"what_type\":\"Call\",\"user_id\":\"USREB077D06AC239BB5\",\"data\":null,\"class\":\"answered\",\"icon\":\"font-bubbles-2\"},{\"event\":\"outbound\",\"time\":1592826301,\"what_id\":906107238,\"what_type\":\"Call\",\"user_id\":\"USREB077D06AC239BB5\",\"data\":null,\"class\":\"outbound\",\"icon\":\"font-bubbles-2\"},{\"event\":\"offline\",\"time\":1592826295,\"what_id\":null,\"what_type\":null,\"user_id\":\"USREB077D06AC239BB5\",\"data\":null,\"class\":\"offline\",\"icon\":\"font-phone-hang-up\"},{\"event\":\"account\",\"time\":1592826291,\"what_id\":null,\"what_type\":null,\"user_id\":\"USREB077D06AC239BB5\",\"data\":{\"ip\":\"100.16.62.89\"},\"class\":\"account\",\"icon\":\"font-signin\"}]}"}],"_postman_id":"5a273735-fe07-4307-8652-0ec0b591b62d"},{"name":"user details","event":[{"listen":"test","script":{"id":"4a666b26-73d0-4269-a94b-725285f5f0ea","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData        = JSON.parse(responseBody);","tests.users         = Array.isArray(jsonData.users);","tests.page          = Number.isInteger(jsonData.page);","tests.total_pages   = Number.isInteger(jsonData.total_pages);","tests.total_entries = Number.isInteger(jsonData.total_entries);","tests.per_page      = Number.isInteger(jsonData.per_page);"],"type":"text/javascript"}}],"id":"2941317c-0c86-442b-abb6-80dda5761bfa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users/{{user_id}}","description":"<p>Get a list of users for the specified account</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>user_id</td>\n<td>yes</td>\n<td>the USR id</td>\n</tr>\n<tr>\n<td>email</td>\n<td>no</td>\n<td>find user with email address</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>no</td>\n<td>find users that match the filter (i.e. name)</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","users","{{user_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"c251ebd8-1eb8-41d7-a840-737ad8748979","name":"user details","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users/{{user_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.15.8.2","enabled":true},{"key":"Date","value":"Fri, 01 May 2020 19:31:25 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"ETag","value":"W/\"aae4795b8778b164b3f4a729fd7836f2\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=WGgzSHR6WVdUZCtBa1hqcXo2UEtZdVFIYWxJcDl3K0luQXJoSGJqRFBtam5XRDZOR1pZQjY4Q3ZONG1ORnFDQWpLd3VpbU5JSFl2bHM0TnZVNEUxQXpqRm5iR1NNaWp3clhHWmxqbTFsQ0FkVzI2OXQ1ek11Y3lYK0dzdHI0cWktLVZydUFoK0xzS0pyYU43VlI2WHB3Vmc9PQ%3D%3D--2fe6b70b99cf5db0fb4ce007fc436e9fe1dc3c57; domain=.ctmdev.us; path=/; expires=Sat, 02 May 2020 11:31:25 -0000; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Meta-Request-Version","value":"0.7.2","enabled":true},{"key":"X-Request-Id","value":"231d624a-fb81-4fb6-923f-fbf61e08f341","enabled":true},{"key":"X-Runtime","value":"0.128708","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"USR043E46722529BCB5FE87E1200DC64BF9\",\n    \"uid\": 19281,\n    \"first_name\": \"romeo\",\n    \"last_name\": \"romeo\",\n    \"account_id\": 18600,\n    \"inbound_number\": null,\n    \"status\": \"offline\",\n    \"email\": \"rrr@example.com\",\n    \"pic_url\": null,\n    \"role\": \"agent\",\n    \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5FE87E1200DC64BF9.json\",\n    \"live_calls\": [],\n    \"language\": \"en\",\n    \"desk_mode_default\": false,\n    \"sip_phone\": {\n        \"uri\": null\n    },\n    \"outbound_number\": {\n        \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n        \"country_code\": \"1\",\n        \"base_number\": \"4242752255\"\n    }\n}"}],"_postman_id":"2941317c-0c86-442b-abb6-80dda5761bfa"},{"name":"create user","event":[{"listen":"test","script":{"id":"ab7113d4-ae33-4ede-85d5-80171aa9c84c","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData        = JSON.parse(responseBody);","tests.status        = jsonData.status === \"success\";","tests[\"id looks reasonable\"] = jsonData.user.id.match(/^USR[0-9A-Fa-f]+$/);"],"type":"text/javascript"}}],"id":"902fb322-a067-48c5-9bf1-4da589bd09af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"Barney\",\n  \"last_name\": \"Rubble\",\n  \"number\": \"+14105551212\",\n  \"country_code\": \"1\",\n  \"email\": \"brubble@example.com\",\n  \"role\": \"admin\",\n  \"send_instructions\": \"1\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users","description":"<p>Create a user and set their role in your account.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>yes</td>\n<td>the user's first name</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>yes</td>\n<td>the user's last name (surname)</td>\n</tr>\n<tr>\n<td>email</td>\n<td>yes</td>\n<td>the user's email address</td>\n</tr>\n<tr>\n<td>role</td>\n<td>no</td>\n<td>one of <code>admin</code>, <code>report_manager</code>, <code>call_manager</code>, <code>agent</code>, or <code>billing</code> -- if left unset, uses <code>admin</code></td>\n</tr>\n<tr>\n<td>number</td>\n<td>no</td>\n<td>the E.164 receiving number for this user, including + and country code; must not be a tracking number</td>\n</tr>\n<tr>\n<td>country_code</td>\n<td>no</td>\n<td>the numeric country code (use 1 for US) - required if number is set</td>\n</tr>\n<tr>\n<td>send_instructions</td>\n<td>no</td>\n<td>set to 1 to email login instructions to the new account</td>\n</tr>\n<tr>\n<td>password</td>\n<td>no</td>\n<td>the password for the new account</td>\n</tr>\n</tbody>\n</table>\n</div><p>It is recommended and more secure to use send_instructions and allow the new user to set their own password.</p>\n","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","users"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"4587391f-bc83-4fdb-9a37-976966111df0","name":"create user","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"Barney\",\n  \"last_name\": \"Rubble\",\n  \"number\": \"+14105551212\",\n  \"country_code\": \"1\",\n  \"email\": \"brubble@example.com\",\n  \"role\": \"admin\",\n  \"send_instructions\": \"1\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.15.8.2","enabled":true},{"key":"Date","value":"Fri, 01 May 2020 19:34:26 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"ETag","value":"W/\"263e11f2eff652ea228d9259d5ccb888\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=U2ZqbmF1cThpeC8yc2RHbFlnMVJQSHVjTUR0a1hBaERjVlBmY29aeUpSRVBlQzVQc1NuS216TVdvL2JuS3lmSXZsOGwvYXgwK25BS0h3Q3pmajNGRXhCZHhhZ283TDJUR3ZBZk5GV2ZMSXMxL0hqQmIrYmJLL0htZ292R204NHAtLUx3ckdLUG9jY3lBQ0NSZlVyK3RLR0E9PQ%3D%3D--2db2ff6382fe068c3e69a5bc898a204b8fb9ef40; domain=.ctmdev.us; path=/; expires=Sat, 02 May 2020 11:34:26 -0000; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Meta-Request-Version","value":"0.7.2","enabled":true},{"key":"X-Request-Id","value":"d172e1e4-757b-4dec-90f6-9ca23bf181ea","enabled":true},{"key":"X-Runtime","value":"0.506491","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"user\": {\n        \"id\": \"USR043E46722529BCB55A2F4660A0E02B73\",\n        \"uid\": 19414,\n        \"first_name\": \"Barney\",\n        \"last_name\": \"Rubble\",\n        \"account_id\": 18600,\n        \"inbound_number\": \"+14105551212\",\n        \"status\": \"offline\",\n        \"email\": \"brubble@example.com\",\n        \"pic_url\": null,\n        \"role\": \"admin\",\n        \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB55A2F4660A0E02B73.json\",\n        \"live_calls\": [],\n        \"language\": \"en\",\n        \"desk_mode_default\": false,\n        \"sip_phone\": {\n            \"uri\": null\n        },\n        \"outbound_number\": {\n            \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n            \"country_code\": \"1\",\n            \"base_number\": \"4242752255\"\n        }\n    }\n}"}],"_postman_id":"902fb322-a067-48c5-9bf1-4da589bd09af"},{"name":"add or modify user role","event":[{"listen":"test","script":{"id":"8e454613-6204-43f1-8b0b-ee7893b899d6","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData        = JSON.parse(responseBody);","tests[\"id looks reasonable\"] = jsonData.id.match(/^USR[0-9A-Fa-f]+$/);"],"type":"text/javascript"}}],"id":"a5b182e5-5baf-4d42-aeec-f6a9c795e923","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"role\": \"agent\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users/{{user_id}}/add_role","description":"<p>Users can have different roles in different accounts. You can add or change a user's role in an account using this endpoint.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>user_id</td>\n<td>yes</td>\n<td>the user id</td>\n</tr>\n<tr>\n<td>role</td>\n<td>yes</td>\n<td>one of <code>admin</code>, <code>report_manager</code>, <code>call_manager</code>, <code>agent</code>, or <code>billing</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","users","{{user_id}}","add_role"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3799521a-f7ec-455d-a0d2-4d2710b32e9e","name":"add or modify user role","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"role\": \"agent\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users/{{user_id}}/add_role"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.15.8.2","enabled":true},{"key":"Date","value":"Fri, 01 May 2020 19:36:48 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"ETag","value":"W/\"2b50e12af5e7a3ebe019f72a7a558556\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=clA0R0hSMjhvMEpDZFg4dFRQMTlHUVQrZ2pVSHZnOGRzWTgrQ2ljeDFHRi8wZGRtdGJjNXZqVkJlRU96bFU2M1BLY0lZYTJFdmkrYW1lTlVDbVRnZVROZ2kwRFMxZzlmWCtVb0hkckFlVmUwVzJ2eXVxYTBoeTQrSWVjMDREeFotLTgzK0wyajdpYTBRNm5XVEpSVS9YUXc9PQ%3D%3D--0e2e05b835e78c9d646185a7a75b4de7360a3622; domain=.ctmdev.us; path=/; expires=Sat, 02 May 2020 11:36:48 -0000; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Meta-Request-Version","value":"0.7.2","enabled":true},{"key":"X-Request-Id","value":"904b4470-00cd-477e-8a18-7899d674a02e","enabled":true},{"key":"X-Runtime","value":"0.252694","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"USR043E46722529BCB55A2F4660A0E02B73\",\n    \"uid\": 19414,\n    \"first_name\": \"Barney\",\n    \"last_name\": \"Rubble\",\n    \"account_id\": 18600,\n    \"inbound_number\": \"+14105551212\",\n    \"status\": \"offline\",\n    \"email\": \"brubble@example.com\",\n    \"pic_url\": null,\n    \"role\": \"agent\",\n    \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB55A2F4660A0E02B73.json\",\n    \"live_calls\": [],\n    \"language\": \"en\",\n    \"desk_mode_default\": false,\n    \"sip_phone\": {\n        \"uri\": null\n    },\n    \"outbound_number\": {\n        \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n        \"country_code\": \"1\",\n        \"base_number\": \"4242752255\"\n    }\n}"}],"_postman_id":"a5b182e5-5baf-4d42-aeec-f6a9c795e923"},{"name":"update outbound number","event":[{"listen":"test","script":{"id":"2a6cdfe1-dc8a-49f5-b942-831c5d8b3211","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData        = JSON.parse(responseBody);","tests.status        = jsonData.status === \"success\";"],"type":"text/javascript"}}],"id":"9851b3a5-c99f-407f-b6ac-4c9108b268a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"vid\": \"{{tracking_number_id}}\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users/{{user_id}}/outbound_number","description":"<p>Change a user's outbound number</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>user_id</td>\n<td>yes</td>\n<td>the USR id for the user</td>\n</tr>\n<tr>\n<td>vid</td>\n<td>no</td>\n<td>the TPN ID for the tracking number</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","users","{{user_id}}","outbound_number"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"01213153-7242-4bc3-b4d3-6881a2ece458","name":"update outbound number","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"vid\": \"{{tracking_number_id}}\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users/{{user_id}}/outbound_number"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.15.8.2","enabled":true},{"key":"Date","value":"Fri, 01 May 2020 19:39:00 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"ETag","value":"W/\"71bbbc69e121444382eb857c7c01c2c2\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=dzNTMEVuZldwYkxENzVBams5dmxxL3o1czBtN0hPNXVSWjNmWS9uRUQ0di94Q05QaElFaVBzMFpYUFdGcDhXTUlOeGNBRVc1dW00QldiRkFhcmttV1ZkaUZBKzVKbWdIQjdQY0VOalZob2JuaC9GcC9WUTBBK04xZVlHQ0grb3otLWJVdGpwbFF4b2dscStCV2ZWdFZPdWc9PQ%3D%3D--95a8c645d2c29df644727d858a2d42eede201651; domain=.ctmdev.us; path=/; expires=Sat, 02 May 2020 11:39:00 -0000; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Meta-Request-Version","value":"0.7.2","enabled":true},{"key":"X-Request-Id","value":"8ae90a70-610d-4411-a9fa-a24efc6a5091","enabled":true},{"key":"X-Runtime","value":"0.209214","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"number\": \"(435) 268-3220\"\n}"}],"_postman_id":"9851b3a5-c99f-407f-b6ac-4c9108b268a3"},{"name":"update receiving number","event":[{"listen":"test","script":{"id":"cf85274b-192d-40ae-ba67-2dbe90c4fa52","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData        = JSON.parse(responseBody);","tests.status        = jsonData.status === \"success\";"],"type":"text/javascript"}}],"id":"37959e39-cf75-462d-8485-2842b5a27c0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"number\": \"+18885550001\"\n}"},"url":"https://{{host}}/{{base_path}}/users/{{user_id}}/number","description":"<p>Change a user's receiving number</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>number</td>\n<td>yes</td>\n<td>the receiving number in +E.164 format (i.e. +18885550001)</td>\n</tr>\n<tr>\n<td>user_id</td>\n<td>yes</td>\n<td>the USR id for the user</td>\n</tr>\n<tr>\n<td>dial_sequence</td>\n<td>yes</td>\n<td>if the user is on a softphone shoudl we dial that first or dial both the soft phone and the receiving number</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["{{base_path}}","users","{{user_id}}","number"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"6da79477-afe9-4f86-82db-25512606aa9b","name":"update receiving number","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"number\": \"+18885550001\"\n}"},"url":"https://{{host}}/{{base_path}}/users/{{user_id}}/number"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.15.8.2","enabled":true},{"key":"Date","value":"Wed, 01 Apr 2020 17:54:57 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"ETag","value":"W/\"d81f7e4159c467d0f3de7605d49cfa73\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=a3hOeGM3MmdJbnpUaFFaVTN1bnBuQkRhcjFxUVgrUHpnWFBYRCtKZmc2TmVrNVowa3RnKzBRRVE4UHFCNTJDNU9XU0dmdkxjTll4M2pEYTIxalZ0TDViTDNaNnZsOXRXNHlGZWZQL1lxTWw4RHprbnM5bVVXK2dIMURZUDZQRjUvRmplYWM0K1F2bkNRdDBua0IvVGlTbVA3UkQzMnVXUDhNTnk4MG11U0tnPS0tWDlvZjB0VVptM0l6NzU5OEdLZ3lkZz09--5ca058fbb0a9466be04848ce849cd6ff252ce25c; domain=.ctmdev.us; path=/; expires=Thu, 02 Apr 2020 09:54:57 -0000; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Request-Id","value":"f22b604e-23a1-4433-a00b-bbc62086fb90","enabled":true},{"key":"X-Runtime","value":"0.096794","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"number\": \"+18885550001\"\n}"},{"id":"bb4adbb1-b248-4abf-94b4-1c2009cfe5e4","name":"update receiving number","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"number\": \"+18885550001\"\n}"},"url":"https://{{host}}/{{base_path}}/users/{{user_id}}/number"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.15.8.2","enabled":true},{"key":"Date","value":"Fri, 01 May 2020 19:40:09 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"ETag","value":"W/\"d81f7e4159c467d0f3de7605d49cfa73\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=WXA4cGhqSzNLOGcxakFoV3pMQmNzRU1JOE14eGRBZFZxdUIybWM4bGVhWDJrOWw0ckwrNFgwVzBMQWVzTmE2SytXRHZCZGkzZm5mSEJqNThFYXZVN0hhT3hKVlBGZDAwaWdmMFRPMlVxMW0yeEczVWc4aWJGMTVKTVVnUVBxNXItLXgrNTYwR0MyT3ZXN1dvTmNSMXRDWmc9PQ%3D%3D--e68ecb4e6b6f50fed3902974e84d2002b8a0b1bc; domain=.ctmdev.us; path=/; expires=Sat, 02 May 2020 11:40:09 -0000; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Meta-Request-Version","value":"0.7.2","enabled":true},{"key":"X-Request-Id","value":"2dddd5a0-a2c7-4e06-a76e-28f799af9290","enabled":true},{"key":"X-Runtime","value":"0.176533","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"number\": \"+18885550001\"\n}"}],"_postman_id":"37959e39-cf75-462d-8485-2842b5a27c0d"},{"name":"remove user from account","id":"b73098f6-930e-4511-aab5-ad109b774a09","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users/{{user_id}}/remove_user","description":"<p>Remove a user from an account. This does not remove a user from the platform.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>user_id</td>\n<td>yes</td>\n<td>the user id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","users","{{user_id}}","remove_user"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"c77b1b12-5151-425e-862a-e6a2178eb2bd","name":"remove user from account","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users/{{user_id}}/remove_user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.15.8.2","enabled":true},{"key":"Date","value":"Fri, 01 May 2020 19:40:45 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"X-Frame-Options","value":"ALLOWALL","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"ETag","value":"W/\"09f5273e58fb240d3958d084c4910d4c\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"_ctm2=cDYyc1Q5TTJsRDBQelF2RDdZR29BUGFZR3RpNzh3T29wRzh6RmZ3bEE2N3VwNXdqWWhabEh3RTZremFrd29UQ2VLYW9RZmxuTXVwMWVpeSs0NGtqd2d4NmFzZmcvdmRHa0RYcFR3Tk1aRFcyb3VhRnYxcTBsOE1XZm5CUVo4ZVgtLUl1ak9EZkxpS09FUlJ4cUxkejcyVkE9PQ%3D%3D--48c01f47a0c110549580cfb74846f43de942327f; domain=.ctmdev.us; path=/; expires=Sat, 02 May 2020 11:40:45 -0000; secure; HttpOnly; SameSite=None","enabled":true},{"key":"X-Meta-Request-Version","value":"0.7.2","enabled":true},{"key":"X-Request-Id","value":"77ff6cc3-deed-4315-a80e-7e01a5fdac75","enabled":true},{"key":"X-Runtime","value":"0.111890","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"USR043E46722529BCB55A2F4660A0E02B73\",\n    \"uid\": 19414,\n    \"first_name\": \"Barney\",\n    \"last_name\": \"Rubble\",\n    \"account_id\": null,\n    \"inbound_number\": \"+18885550001\",\n    \"status\": \"offline\",\n    \"email\": \"brubble@example.com\",\n    \"pic_url\": null,\n    \"role\": \"\",\n    \"url\": \"\",\n    \"live_calls\": [],\n    \"language\": \"en\",\n    \"desk_mode_default\": false,\n    \"sip_phone\": {\n        \"uri\": null\n    }\n}"}],"_postman_id":"b73098f6-930e-4511-aab5-ad109b774a09"},{"name":"update user","event":[{"listen":"test","script":{"id":"4a666b26-73d0-4269-a94b-725285f5f0ea","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData        = JSON.parse(responseBody);","tests.users         = Array.isArray(jsonData.users);","tests.page          = Number.isInteger(jsonData.page);","tests.total_pages   = Number.isInteger(jsonData.total_pages);","tests.total_entries = Number.isInteger(jsonData.total_entries);","tests.per_page      = Number.isInteger(jsonData.per_page);"],"type":"text/javascript","packages":{}}}],"id":"94aba024-8ff6-486e-a876-f6407b4ec129","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users/USRF9D7CB81BAB6B276","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","users","USRF9D7CB81BAB6B276"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"dc29399f-51c0-4bd0-968f-ea82f260f88b","name":"list of users","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/users/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.15.8.2"},{"key":"Date","value":"Fri, 01 May 2020 19:29:12 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"ALLOWALL"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"79ce86d9284a3294275073c13fd60509\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Set-Cookie","value":"_ctm2=azNBYlViQlNaeUZoMGR4R20vR2xHblFadCtabzBBRHEyUmx6SzdvbUtLNkxOa1hzZ25LekxvaXBWdkIyL2srNzFMMVo1NkM2UFplUmo2SWJGRmZWNnJHbE04ZjFNaHFBb0ZWWFFIci9VQjJvR1V6YWFKUllhT3lUQytwUHFqaUItLXlSbU9QTHhTVHZxdnpxemFsbTIwM2c9PQ%3D%3D--457108ee053b206ea21a650a41624100a21c261a; domain=.ctmdev.us; path=/; expires=Sat, 02 May 2020 11:29:12 -0000; secure; HttpOnly; SameSite=None"},{"key":"X-Meta-Request-Version","value":"0.7.2"},{"key":"X-Request-Id","value":"5c9f0012-9dc8-4f2f-bf7b-f2ebf506d017"},{"key":"X-Runtime","value":"0.349612"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"page\": 1,\n    \"per_page\": 10,\n    \"total_entries\": 29,\n    \"total_pages\": 3,\n    \"next_page\": \"/api/v1/accounts/18600/users?page=2\",\n    \"previous_page\": null,\n    \"users\": [\n        {\n            \"id\": \"USR043E46722529BCB5FB8E05B45DB4FA9E\",\n            \"uid\": 19197,\n            \"first_name\": \"Admin\",\n            \"last_name\": \"Enterprise\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"admin@enterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"admin\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5FB8E05B45DB4FA9E.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5F95A293CAE011614\",\n            \"uid\": 19199,\n            \"first_name\": \"Bob\",\n            \"last_name\": \"Enterprise\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"bob@enterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"call_manager\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5F95A293CAE011614.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5A3B577DD64866018\",\n            \"uid\": 19200,\n            \"first_name\": \"Call\",\n            \"last_name\": \"Manager\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"callmanager@enterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"call_manager\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5A3B577DD64866018.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5E348BF3E762179F0\",\n            \"uid\": 19201,\n            \"first_name\": \"Report\",\n            \"last_name\": \"Manager\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"reportmanager@enterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"report_manager\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5E348BF3E762179F0.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5578CA52BB780A1D2\",\n            \"uid\": 19206,\n            \"first_name\": \"the\",\n            \"last_name\": \"agent\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"agent@enterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"agent\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5578CA52BB780A1D2.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5932225839967BF8A\",\n            \"uid\": 19231,\n            \"first_name\": \"agent1\",\n            \"last_name\": \"ent1\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"agent1@ent.com\",\n            \"pic_url\": null,\n            \"role\": \"agent\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5932225839967BF8A.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5268EC39CF8BEEA8E\",\n            \"uid\": 19239,\n            \"first_name\": \"just\",\n            \"last_name\": \"admin\",\n            \"account_id\": 18600,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"justadmin@zzzenterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"admin\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5268EC39CF8BEEA8E.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB50B581EE227B4A280\",\n            \"uid\": 19248,\n            \"first_name\": \"another\",\n            \"last_name\": \"agencyAdmin\",\n            \"account_id\": 18632,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"anotheraa@zzz.com\",\n            \"pic_url\": null,\n            \"role\": \"admin\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18632/users/USR043E46722529BCB50B581EE227B4A280.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB529F0BAA34A22EE6E\",\n            \"uid\": 19257,\n            \"first_name\": \"Agency\",\n            \"last_name\": \"Admin ZZZ\",\n            \"account_id\": 18632,\n            \"inbound_number\": null,\n            \"status\": \"offline\",\n            \"email\": \"aa@enterprise.com\",\n            \"pic_url\": null,\n            \"role\": \"admin\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18632/users/USR043E46722529BCB529F0BAA34A22EE6E.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": \"sip:cce03d1t4ea333m.sip.us1.twilio.com\"\n            }\n        },\n        {\n            \"id\": \"USR043E46722529BCB5B49425FB5DC45EAF\",\n            \"uid\": 19277,\n            \"first_name\": \"november\",\n            \"last_name\": \"november\",\n            \"account_id\": 18600,\n            \"inbound_number\": \"+14107033455\",\n            \"status\": \"offline\",\n            \"email\": \"nnn@example.com\",\n            \"pic_url\": null,\n            \"role\": \"agent\",\n            \"url\": \"https://api.ctmdev.us/api/v1/accounts/18600/users/USR043E46722529BCB5B49425FB5DC45EAF.json\",\n            \"live_calls\": [],\n            \"language\": \"en\",\n            \"desk_mode_default\": false,\n            \"sip_phone\": {\n                \"uri\": null\n            },\n            \"outbound_number\": {\n                \"id\": \"TPNC3C4B23C348AEC2EE54EFD301979CD2EFB6E4F483E702C7FC91E0D0496768A56\",\n                \"country_code\": \"1\",\n                \"base_number\": \"4242752255\"\n            }\n        }\n    ]\n}"}],"_postman_id":"94aba024-8ff6-486e-a876-f6407b4ec129"}],"id":"7fb678c2-ba6b-4f0a-a606-746ff8285600","_postman_id":"7fb678c2-ba6b-4f0a-a606-746ff8285600","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"User Groups","item":[{"name":"list of user groups","event":[{"listen":"test","script":{"id":"4a666b26-73d0-4269-a94b-725285f5f0ea","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData        = JSON.parse(responseBody);","tests.users         = Array.isArray(jsonData.user_groups);","tests.page          = Number.isInteger(jsonData.page);","tests.total_pages   = Number.isInteger(jsonData.total_pages);","tests.total_entries = Number.isInteger(jsonData.total_entries);","tests.per_page      = Number.isInteger(jsonData.per_page);"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"f7be2244-7bf8-4d26-83ae-2d38596137cb","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"7df65c19-54c8-44d6-bd73-e2f6e9e96d69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/user_groups","description":"<p>Get a list of user groups for the specified account</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","user_groups"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"63ed7d3a-3c56-4cf0-a616-0b40a5121edc","name":"list of user groups","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/user_groups"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"openresty/1.27.1.2"},{"key":"Date","value":"Fri, 23 Jan 2026 15:25:22 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-frame-options","value":"ALLOWALL"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-methods","value":"GET, OPTIONS"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"Origin, Content-Type, Accept, Authentication, Authorization, x-ctm-client"},{"key":"vary","value":"Accept"},{"key":"etag","value":"W/\"e2af055b3c7f776233296acbd81c4218\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"set-cookie","value":"_ctm3=0d70631c71c32fc9a011c98df41fbfc9; domain=ctmdev.us; path=/; expires=Sat, 24 Jan 2026 07:25:22 GMT; secure; httponly; SameSite=None"},{"key":"x-request-id","value":"549ff10b-e5cc-4f53-84c1-e4fd3d5b74b2"},{"key":"x-runtime","value":"0.144090"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=23.41, instantiation.active_record;dur=2.47, cache_read.active_support;dur=9.03, cache_fetch_hit.active_support;dur=0.00, process_action.action_controller;dur=116.64"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"page\": 1,\n    \"per_page\": 10,\n    \"total_entries\": 2,\n    \"total_pages\": 1,\n    \"next_page\": null,\n    \"previous_page\": null,\n    \"user_groups\": [\n        {\n            \"id\": 3,\n            \"account_id\": 17,\n            \"name\": \"testing 123\",\n            \"user_ids\": [\n                30,\n                43\n            ],\n            \"created_at\": \"2026-01-23T15:25:17Z\",\n            \"updated_at\": \"2026-01-23T15:25:17Z\"\n        },\n        {\n            \"id\": 1,\n            \"account_id\": 17,\n            \"name\": \"first\",\n            \"user_ids\": [\n                30,\n                43\n            ],\n            \"created_at\": \"2026-01-19T17:17:06Z\",\n            \"updated_at\": \"2026-01-19T17:17:06Z\"\n        }\n    ]\n}"}],"_postman_id":"7df65c19-54c8-44d6-bd73-e2f6e9e96d69"},{"name":"user group details","event":[{"listen":"test","script":{"id":"4a666b26-73d0-4269-a94b-725285f5f0ea","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData        = JSON.parse(responseBody);","tests.users         = Array.isArray(jsonData.user_groups);","tests.page          = Number.isInteger(jsonData.page);","tests.total_pages   = Number.isInteger(jsonData.total_pages);","tests.total_entries = Number.isInteger(jsonData.total_entries);","tests.per_page      = Number.isInteger(jsonData.per_page);"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"f7be2244-7bf8-4d26-83ae-2d38596137cb","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"9c125d23-a687-4df7-b2f1-3b6ef719f587","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/user_groups","description":"<p>Get a list of user groups for the specified account</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","user_groups"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0deb0421-d711-43ce-b14d-ca668957242d","name":"user group details","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/user_groups/{{user_group_id}}"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"openresty/1.27.1.2"},{"key":"Date","value":"Fri, 23 Jan 2026 15:27:58 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-frame-options","value":"ALLOWALL"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-methods","value":"GET, OPTIONS"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"Origin, Content-Type, Accept, Authentication, Authorization, x-ctm-client"},{"key":"vary","value":"Accept"},{"key":"etag","value":"W/\"8fdc7b802ee19f125bfab9131b77987e\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"set-cookie","value":"_ctm3=0d70631c71c32fc9a011c98df41fbfc9; domain=ctmdev.us; path=/; expires=Sat, 24 Jan 2026 07:27:58 GMT; secure; httponly; SameSite=None"},{"key":"x-request-id","value":"a8f2f492-099c-42dd-a9e6-ec50808d855e"},{"key":"x-runtime","value":"1.560835"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.06, sql.active_record;dur=117.89, instantiation.active_record;dur=111.31, cache_read.active_support;dur=31.85, cache_fetch_hit.active_support;dur=0.14, cache_generate.active_support;dur=14.09, cache_write.active_support;dur=2.65, process_action.action_controller;dur=1342.81"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"account_id\": 17,\n    \"name\": \"first\",\n    \"user_ids\": [\n        30,\n        43\n    ],\n    \"created_at\": \"2026-01-19T17:17:06Z\",\n    \"updated_at\": \"2026-01-19T17:17:06Z\"\n}"}],"_postman_id":"9c125d23-a687-4df7-b2f1-3b6ef719f587"},{"name":"create user group","event":[{"listen":"test","script":{"id":"ab7113d4-ae33-4ede-85d5-80171aa9c84c","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData        = JSON.parse(responseBody);","tests.status        = jsonData.status === \"success\";","// tests[\"id looks reasonable\"] = jsonData.user_groups.id.match(/^USR[0-9A-Fa-f]+$/);"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"d33d6dbc-34a5-4641-a0f6-bc19ce403aa0","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"5b34697b-2801-4d38-9645-6e87f2876404","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\":\"testing 123\",\n  \"user_ids\": [ 30, 43 ]\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/user_groups","description":"<p>Create a user and set their role in your account.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>the name of the user group</td>\n</tr>\n<tr>\n<td>user_ids</td>\n<td>yes</td>\n<td>array of user ids</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","user_groups"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"2564fc52-683e-4aa6-84ec-055d5f39c8ef","name":"create user group","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\":\"testing 123\",\n  \"user_ids\": [ 30, 43 ]\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/user_groups"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"openresty/1.27.1.2"},{"key":"Date","value":"Fri, 23 Jan 2026 15:25:18 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"237"},{"key":"Connection","value":"keep-alive"},{"key":"x-frame-options","value":"ALLOWALL"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-methods","value":"GET, OPTIONS"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"Origin, Content-Type, Accept, Authentication, Authorization, x-ctm-client"},{"key":"vary","value":"Accept"},{"key":"etag","value":"W/\"774cff660c094a378765bce2352a9e17\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"set-cookie","value":"_ctm3=0d70631c71c32fc9a011c98df41fbfc9; domain=ctmdev.us; path=/; expires=Sat, 24 Jan 2026 07:25:18 GMT; secure; httponly; SameSite=None"},{"key":"x-request-id","value":"9563382b-9c49-4651-a291-c33a5cca8486"},{"key":"x-runtime","value":"1.466134"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.02, sql.active_record;dur=125.82, instantiation.active_record;dur=109.31, cache_read.active_support;dur=7.75, cache_fetch_hit.active_support;dur=0.04, unpermitted_parameters.action_controller;dur=0.04, start_transaction.active_record;dur=0.01, transaction.active_record;dur=25.47, enqueue_at.active_job;dur=2.98, process_action.action_controller;dur=1334.10"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"user_group\": {\n        \"id\": 3,\n        \"account_id\": 17,\n        \"name\": \"testing 123\",\n        \"user_ids\": [\n            30,\n            43\n        ],\n        \"created_at\": \"2026-01-23T15:25:17Z\",\n        \"updated_at\": \"2026-01-23T15:25:17Z\"\n    }\n}"}],"_postman_id":"5b34697b-2801-4d38-9645-6e87f2876404"},{"name":"update user group","event":[{"listen":"test","script":{"id":"4a666b26-73d0-4269-a94b-725285f5f0ea","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData        = JSON.parse(responseBody);","tests.users         = Array.isArray(jsonData.user_groups);","tests.page          = Number.isInteger(jsonData.page);","tests.total_pages   = Number.isInteger(jsonData.total_pages);","tests.total_entries = Number.isInteger(jsonData.total_entries);","tests.per_page      = Number.isInteger(jsonData.per_page);"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"packages":{},"type":"text/javascript"}}],"id":"6eb6c0c8-4328-4193-98b4-10cbf5f7578a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\":\"tested 124\",\n  \"user_ids\": [ 43 ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/user_groups/{{user_group_id}}","description":"<p>Update a user group</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>user_group_id</td>\n<td>yes</td>\n<td>the user group id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>the name of the user group</td>\n</tr>\n<tr>\n<td>user_ids</td>\n<td>no</td>\n<td>list of user ids</td>\n</tr>\n</tbody>\n</table>\n</div><p>You have to provide all of the user ids. This is not additive.</p>\n","urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","user_groups","{{user_group_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"74cb85e1-6a92-4dcb-83d7-5903ad7b91a4","name":"update user group","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\":\"tested 124\",\n  \"user_ids\": [ 43 ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/user_groups/{{user_group_id}}"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"openresty/1.27.1.2"},{"key":"Date","value":"Mon, 19 Jan 2026 17:37:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-frame-options","value":"ALLOWALL"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-methods","value":"GET, OPTIONS"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"Origin, Content-Type, Accept, Authentication, Authorization, x-ctm-client"},{"key":"vary","value":"Accept"},{"key":"etag","value":"W/\"cac4e1ca91db6a29d6f1cfeb240da751\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"set-cookie","value":"_ctm3=02a20a4d9486f1f6b478eaa4920ab402; domain=ctmdev.us; path=/; expires=Tue, 20 Jan 2026 09:37:07 GMT; secure; httponly; SameSite=None"},{"key":"x-request-id","value":"b3e194ad-39d9-4b4b-9619-1f4fd1d924a5"},{"key":"x-runtime","value":"0.476882"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=69.17, instantiation.active_record;dur=6.88, cache_read.active_support;dur=33.89, cache_fetch_hit.active_support;dur=0.23, cache_generate.active_support;dur=16.86, cache_write.active_support;dur=2.71, unpermitted_parameters.action_controller;dur=0.00, start_transaction.active_record;dur=0.01, transaction.active_record;dur=14.79, enqueue_at.active_job;dur=2.85, process_action.action_controller;dur=470.88"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"user_group\": {\n        \"id\": 2,\n        \"account_id\": 17,\n        \"name\": \"tested 124\",\n        \"user_ids\": [\n            43\n        ],\n        \"created_at\": \"2026-01-19T17:27:20Z\",\n        \"updated_at\": \"2026-01-19T17:37:07Z\"\n    }\n}"}],"_postman_id":"6eb6c0c8-4328-4193-98b4-10cbf5f7578a"},{"name":"remove user group","id":"9f30d40b-af82-4713-962d-0b601247da74","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/user_groups/{{user_group_id}}","description":"<p>Remove a user from an account. This does not remove a user from the platform.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>user_group_id</td>\n<td>yes</td>\n<td>the user group id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","user_groups","{{user_group_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f30d40b-af82-4713-962d-0b601247da74"}],"id":"11ab94f1-0be3-498a-84b6-513c8fbab659","_postman_id":"11ab94f1-0be3-498a-84b6-513c8fbab659","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Voice Menu","item":[{"name":"list of voice menus","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests.menus          = Array.isArray(jsonData.menus);","tests.page           = Number.isInteger(jsonData.page);","tests.total_pages    = Number.isInteger(jsonData.page);","tests.total_entries  = Number.isInteger(jsonData.page);","tests.per_page       = Number.isInteger(jsonData.page);"]}}],"id":"aceef771-176b-414a-8781-b009e8edea7f","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/voice_menus","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>page</td>\n<td>no</td>\n<td>the page number</td>\n</tr>\n<tr>\n<td>per_page</td>\n<td>no</td>\n<td>the number of items per page</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","voice_menus"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aceef771-176b-414a-8781-b009e8edea7f"},{"name":"voice menu details","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests.items  = Array.isArray(jsonData.items);","","tests.url    = jsonData.url.match(/https:\\/\\/api\\..*api\\/v1\\/accounts\\/\\d+\\/voice_menus\\/VOM[0-9A-Fa-f]+/);","tests.id     = jsonData.id.match(/^VOM[0-9A-Fa-f]+$/);"]}}],"id":"8e71f2c6-d977-4c84-891f-873cd112a043","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/voice_menus/{{voice_menu_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>voice_menu_id</td>\n<td>yes</td>\n<td>the VOM id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","voice_menus","{{voice_menu_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e71f2c6-d977-4c84-891f-873cd112a043"},{"name":"create voice menu","id":"88592c28-fb5c-4cdb-8977-f7e204c7001f","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"voice_menu\": {\n    \"name\": \"Voice Mail Box\",\n    \"play_message\": \"say:man:en:\",\n    \"default_number_id\": \"\",\n    \"input_maxkeys\": \"1\",\n    \"input_timeout\": \"1\",\n    \"prompt_retries\": \"0\",\n    \"schedule_id\": \"\",\n    \"after_hours_action_label\": \"\",\n    \"after_hours_action_id\": \"\",\n    \"after_hours_action_type\": \"\",\n    \"tracking_numbers\": [\n      \"{{tracking_number_id}}\"\n    ],\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"keypress\": \"1\",\n        \"voice_action_type\": \"message\",\n        \"default_action\": \"1\",\n        \"play_message\": \"say:alice:en-US:Please leave a message after the beep\",\n        \"play_beep\": \"1\",\n        \"recording\": \"1\",\n        \"timer\": \"120\",\n        \"transcribe\": \"0\",\n        \"tag_id\": \"voicemail\",\n        \"assign_agent_id\": \"\"\n      }\n    ]\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/voice_menus","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>voice_menu_id</td>\n<td>yes</td>\n<td>the VOM id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>the name of the voice menu</td>\n</tr>\n<tr>\n<td>play_message</td>\n<td>no</td>\n<td>a <code>say</code> or <code>play</code> message</td>\n</tr>\n<tr>\n<td>schedule_id</td>\n<td>no</td>\n<td>a schedule SCH id</td>\n</tr>\n<tr>\n<td>default_number_id</td>\n<td>no</td>\n<td>if <code>null</code> and there is no default voice menu item, hangup; if <code>null</code> and there is a default voice menu item, execute that item; if receiving number RPN id, then call that number</td>\n</tr>\n<tr>\n<td>tracking_numbers</td>\n<td>no</td>\n<td>array of VPN tracking number IDs to assign to this voice menu</td>\n</tr>\n<tr>\n<td>after_hours_action_type</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>after_hours_action_id</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>after_hours_action_label</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>prompt_retries</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>input_maxkeys</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>input_timeout</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","voice_menus"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"88592c28-fb5c-4cdb-8977-f7e204c7001f"},{"name":"delete voice menu","id":"e9890999-3690-4f58-8b0b-2990192d0184","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/voice_menus/{{voice_menu_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>voice_menu_id</td>\n<td>yes</td>\n<td>the VOM id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","voice_menus","{{voice_menu_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9890999-3690-4f58-8b0b-2990192d0184"},{"name":"update voice menu","id":"fb993346-406f-4192-9736-96857c23f4fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n  \"voice_menu\": {\n    \"name\": \"Voice Mail Box\",\n    \"play_message\": \"say:man:en:\",\n    \"default_number_id\": \"\",\n    \"input_maxkeys\": \"1\",\n    \"input_timeout\": \"1\",\n    \"prompt_retries\": \"0\",\n    \"schedule_id\": \"\",\n    \"after_hours_action_label\": \"\",\n    \"after_hours_action_id\": \"\",\n    \"after_hours_action_type\": \"\",\n    \"tracking_numbers\": [\n      \"{{tracking_number_id}}\"\n    ],\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"keypress\": \"1\",\n        \"voice_action_type\": \"message\",\n        \"default_action\": \"1\",\n        \"play_message\": \"say:alice:en-US:Please leave a message after the beep\",\n        \"play_beep\": \"1\",\n        \"recording\": \"1\",\n        \"timer\": \"120\",\n        \"transcribe\": \"0\",\n        \"tag_id\": \"voicemail\",\n        \"assign_agent_id\": \"\"\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/voice_menus/{{voice_menu_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","voice_menus","{{voice_menu_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb993346-406f-4192-9736-96857c23f4fb"}],"id":"9ea28984-faff-4e16-97d3-01931447d855","description":"<p>Also known as Interactive Voice Response (IVR)</p>\n","_postman_id":"9ea28984-faff-4e16-97d3-01931447d855","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Voice Menu Items","item":[{"name":"list of voice menu items","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"menu.id is reasonable\"] = jsonData.menu.id.match(/^VOM[0-9A-Fa-f]+$/);","tests[\"items is an array\"] = Array.isArray(jsonData.items);"]}}],"id":"42f4c6fb-178e-4bfc-9373-2d489e966656","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/voice_menus/{{voice_menu_id}}/voice_menu_items","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>voice_menu_id</td>\n<td>yes</td>\n<td>the VOM id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","voice_menus","{{voice_menu_id}}","voice_menu_items"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"42f4c6fb-178e-4bfc-9373-2d489e966656"},{"name":"voice menu item details","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"item.id is reasonable\"] = jsonData.item.id.match(/^VMI[0-9A-Fa-f]+$/);","tests[\"item.url is reasonable\"] = jsonData.item.url.match(/https:\\/\\/api\\..*api\\/v1\\/accounts\\/\\d+\\/voice_menus\\/VOM[0-9A-Fa-f]+\\/voice_menu_items\\/VMI[0-9A-Fa-f]+/);"]}}],"id":"4b79da72-1a43-4399-b417-467d0f0f3e08","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"keypress\": \"5\",\n    \"default_action\": \"1\",\n    \"voice_action_type\": \"dial\",\n    \"physical_phone_number_id\": \"40109\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/voice_menus/{{voice_menu_id}}/voice_menu_items/{{voice_menu_item_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>voice_menu_id</td>\n<td>yes</td>\n<td>the VOM id</td>\n</tr>\n<tr>\n<td>voice_menu_item_id</td>\n<td>yes</td>\n<td>the VMI id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","voice_menus","{{voice_menu_id}}","voice_menu_items","{{voice_menu_item_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b79da72-1a43-4399-b417-467d0f0f3e08"},{"name":"create voice menu item","id":"6180d7f9-d25c-49ee-b6de-f1f910890f2b","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/voice_menus/{{voice_menu_id}}/voice_menu_items","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>voice_menu_id</td>\n<td>yes</td>\n<td>the VOM id</td>\n</tr>\n<tr>\n<td>keypress</td>\n<td>no</td>\n<td>the keypress of the item; needs to be unique</td>\n</tr>\n<tr>\n<td>default_action</td>\n<td>no</td>\n<td>true/false; there can only be one keypress marked as default</td>\n</tr>\n<tr>\n<td>voice_action_type</td>\n<td>no</td>\n<td>one of: call_agent, dial, call_queue, conditional_router, dialer, geo, menu, message, sms, collect_input, fire_pixel, hangup, configured, conference, do_not_call</td>\n</tr>\n<tr>\n<td>play_message</td>\n<td>no</td>\n<td>a say/play style message to play to the caller, used with voice_action_type of call_agent, dial, call_queue, conditional_router, dialer, geo, message, collect_input, fire_pixel, hangup, configured, conference, do_not_call</td>\n</tr>\n<tr>\n<td>whisper_message</td>\n<td>no</td>\n<td>a say/play style message to play to the agent, used with voice_action_type of call_agent, dial, call_queue, conditional_router, dialer, geo, menu, sms, fire_pixel, configured, conference</td>\n</tr>\n<tr>\n<td>call_agent_id</td>\n<td>no</td>\n<td>required when voice_action_type is call_agent, the USR id of the agent to call</td>\n</tr>\n<tr>\n<td>dial_number_id</td>\n<td>no</td>\n<td>required when voice_action_type is dial_number, the RPN id of the number to dial</td>\n</tr>\n<tr>\n<td>call_queue_id</td>\n<td>no</td>\n<td>required when voice_action_type is call_queue, the CQU id of the queue to call</td>\n</tr>\n<tr>\n<td>dialer_id</td>\n<td>no</td>\n<td>required when voice_action_type is dialer, the DIL id of the dialer</td>\n</tr>\n<tr>\n<td>geo_config_id</td>\n<td>no</td>\n<td>required when voice_action_type is geo, the GEO id of the geo router</td>\n</tr>\n<tr>\n<td>next_voice_menu_id</td>\n<td>no</td>\n<td>required when voice_action_type is menu, the VMI id of the next menu item</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","voice_menus","{{voice_menu_id}}","voice_menu_items"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6180d7f9-d25c-49ee-b6de-f1f910890f2b"},{"name":"update voice menu item","id":"0c6f103a-68d3-448f-b36c-d94f589f5b1b","request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"keypress\": \"5\",\n    \"default_action\": \"1\",\n    \"voice_action_type\": \"dial\",\n    \"physical_phone_number_id\": \"40109\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/voice_menus/{{voice_menu_id}}/voice_menu_items/{{voice_menu_item_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>voice_menu_id</td>\n<td>yes</td>\n<td>the VOM id</td>\n</tr>\n<tr>\n<td>voice_menu_item_id</td>\n<td>yes</td>\n<td>the VMI id</td>\n</tr>\n<tr>\n<td>keypress</td>\n<td>no</td>\n<td>the keypress of the item; needs to be unique</td>\n</tr>\n<tr>\n<td>default_action</td>\n<td>no</td>\n<td>true/false; there can only be on keypress marked as default</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","voice_menus","{{voice_menu_id}}","voice_menu_items","{{voice_menu_item_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0c6f103a-68d3-448f-b36c-d94f589f5b1b"},{"name":"delete voice menu item","id":"352caf9d-cb6e-4fb1-9a40-7308f0052fc6","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/voice_menus/{{voice_menu_id}}/voice_menu_items/{{voice_menu_item_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>voice_menu_id</td>\n<td>yes</td>\n<td>the VOM id</td>\n</tr>\n<tr>\n<td>voice_menu_item_id</td>\n<td>yes</td>\n<td>the VMI id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","voice_menus","{{voice_menu_id}}","voice_menu_items","{{voice_menu_item_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"352caf9d-cb6e-4fb1-9a40-7308f0052fc6"}],"id":"e031ed57-eaf4-46cd-b44f-b44f2c0f32c0","_postman_id":"e031ed57-eaf4-46cd-b44f-b44f2c0f32c0","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Webhooks","item":[{"name":"list of webhooks","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"sources is an array\"] = Array.isArray(jsonData.webhooks);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"]}}],"id":"77d2187e-430e-48fa-8694-b4bfb571158a","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/webhooks","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>page</td>\n<td>no</td>\n<td>the page number</td>\n</tr>\n<tr>\n<td>per_page</td>\n<td>no</td>\n<td>the number of items per page</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","webhooks"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"77d2187e-430e-48fa-8694-b4bfb571158a"},{"name":"webhook details","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData                   = JSON.parse(responseBody);","tests[\"id looks reasonable\"]   = Number.isInteger(parseInt(jsonData.id));","tests[\"account_id is integer\"] = Number.isInteger(parseInt(jsonData.account_id));","tests[\"weburl is present\"]     = typeof jsonData.weburl   === 'string';","tests[\"position is present\"]   = typeof jsonData.position === 'string';","tests[\"username is present\"]   = typeof jsonData.username === 'string';","tests[\"password is present\"]   = typeof jsonData.password === 'string';"]}}],"id":"25ddae91-7554-42b7-bd64-2b345735d00d","request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"item\": {\n    \"id\": \"\",\n    \"keypress\": \"3\",\n    \"voice_action_type\": \"dial\",\n    \"default_action\": \"1\",\n    \"physical_phone_number_id\": \"40109\",\n    \"play_message\": \"say:alice:da-DK:play message before action\",\n    \"whisper_message\": \"say:alice:de-DE:whisper message\",\n    \"tag_id\": \"tagme\",\n    \"assign_agent_id\": \"USR043E46722529BCB5578CA52BB780A1D2\"\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/webhooks/{{webhook_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>webhook_id</td>\n<td>yes</td>\n<td>the webhook id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","webhooks","{{webhook_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"25ddae91-7554-42b7-bd64-2b345735d00d"},{"name":"create webhook","id":"5aaf2c34-3ce8-4ef3-a14d-2f5710db48da","request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"testing 123\",\n    \"description\": \"new test webhook\",\n    \"trigger\": \"end\",\n    \"weburl\": \"https://test.example.com/hooks/\",\n    \"username\": \"user123\",\n    \"password\": \"pass123\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/webhooks","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>weburl</td>\n<td>yes</td>\n<td>fully qualified URL used for callback</td>\n</tr>\n<tr>\n<td>position</td>\n<td>no</td>\n<td>defines when the webhook will fire (choices are: start, answered, hangup, end, end_delayed, update, sale, form, paid, geokey, inbound_text, outbound_text), defaults to end</td>\n</tr>\n<tr>\n<td>name</td>\n<td>no</td>\n<td>the name of the webhook</td>\n</tr>\n<tr>\n<td>hooktype</td>\n<td>no</td>\n<td>the type of webhook request to be sent can be one of the following 3 values: call, ref, pixel - call would be the full state of the record at that point of time. ref would be a link to the call to fetch later. Pixel is ideal for pinging a pixel endpoint.</td>\n</tr>\n<tr>\n<td>username</td>\n<td>no</td>\n<td>Optional username for basic auth headers</td>\n</tr>\n<tr>\n<td>password</td>\n<td>no</td>\n<td>Optional password for basic auth headers</td>\n</tr>\n</tbody>\n</table>\n</div><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>event</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>start</td>\n<td>start of an inbound phone call/activity</td>\n</tr>\n<tr>\n<td>start_outbound</td>\n<td>triggers on start of an outbound call/activity</td>\n</tr>\n<tr>\n<td>answered</td>\n<td>when an agent answers the phone</td>\n</tr>\n<tr>\n<td>hangup</td>\n<td>when the call is hungup</td>\n</tr>\n<tr>\n<td>session</td>\n<td>when session data is associated to the activity record</td>\n</tr>\n<tr>\n<td>end_immediate</td>\n<td>immediately when the caller leg disconnects.</td>\n</tr>\n<tr>\n<td>end</td>\n<td>when the call ends</td>\n</tr>\n<tr>\n<td>end_delayed</td>\n<td>1 hour after the call ends</td>\n</tr>\n<tr>\n<td>update</td>\n<td>if data is updated in the call (frequently triggers)</td>\n</tr>\n<tr>\n<td>sale</td>\n<td>if a sale is made during or after the phone call</td>\n</tr>\n<tr>\n<td>form</td>\n<td>if a web form is posted to CTM</td>\n</tr>\n<tr>\n<td>paid</td>\n<td>once paid attribution data is made available</td>\n</tr>\n<tr>\n<td>inbound_text</td>\n<td>when receiving an inbound text message</td>\n</tr>\n<tr>\n<td>outbound_text</td>\n<td>when an outbound text message is sent</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","webhooks"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"72da9f98-40be-4fdf-b693-a214ed478262","name":"create webhook","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"testing 123\",\n    \"description\": \"new test webhook\",\n    \"trigger\": \"end\",\n    \"weburl\": \"https://test.example.com/hooks/\",\n    \"username\": \"user123\",\n    \"password\": \"pass123\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/webhooks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty/1.27.1.1"},{"key":"Date","value":"Wed, 12 Feb 2025 20:39:53 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-frame-options","value":"ALLOWALL"},{"key":"access-control-allow-origin","value":"*"},{"key":"vary","value":"Accept"},{"key":"etag","value":"W/\"696f3f91f8f2c78416a1b2af8e457a14\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"set-cookie","value":"_ctm3=85d76ae8bf2f9c51488cdf1277e16ef1; domain=ctmdev.us; path=/; expires=Thu, 13 Feb 2025 12:39:53 GMT; secure; httponly; SameSite=None"},{"key":"x-request-id","value":"f0298ddc-ec8e-48bd-937c-dbfee5da13cb"},{"key":"x-runtime","value":"0.217263"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.00, sql.active_record;dur=25.12, instantiation.active_record;dur=1.57, cache_read.active_support;dur=1.00, transaction.active_record;dur=60.06, process_action.action_controller;dur=165.06"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"true\",\n    \"webhook\": {\n        \"id\": 7,\n        \"name\": \"testing 123\",\n        \"description\": \"how do you create a new webhook\",\n        \"weburl\": \"https://test.example.com/hooks/\",\n        \"with_resource_url\": false,\n        \"position\": \"end\",\n        \"username\": \"user123\",\n        \"password\": \"pass123\",\n        \"client_type\": \"Account\",\n        \"client_id\": 1,\n        \"webhook_conditions\": [],\n        \"account_id\": 1\n    },\n    \"warnings\": {}\n}"}],"_postman_id":"5aaf2c34-3ce8-4ef3-a14d-2f5710db48da"},{"name":"update webhook","id":"ef110bde-a1dc-42e2-8b31-c84d13f8a0da","request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"weburl\": \"http://example.com/foo/bar/\"\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/webhooks/{{webhook_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>webhook_id</td>\n<td>yes</td>\n<td>the webhook id</td>\n</tr>\n<tr>\n<td>weburl</td>\n<td>yes</td>\n<td>fully qualified URL used for callback</td>\n</tr>\n<tr>\n<td>position</td>\n<td>no</td>\n<td>defines when the webhook will fire (choices are: start, answered, hangup, end, end_delayed, update, sale, form, paid, geokey), defaults to end</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","webhooks","{{webhook_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef110bde-a1dc-42e2-8b31-c84d13f8a0da"},{"name":"delete webhook","id":"3fb6f2ad-aacb-4465-94a9-11ec9bdce1d3","request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/webhooks/{{webhook_id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>webhook_id</td>\n<td>yes</td>\n<td>the webhook id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","webhooks","{{webhook_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3fb6f2ad-aacb-4465-94a9-11ec9bdce1d3"}],"id":"e70e5a07-f50e-4a5c-ad2f-042a23b71f49","_postman_id":"e70e5a07-f50e-4a5c-ad2f-042a23b71f49","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Change Notifications","item":[{"name":"list of change notifications","event":[{"listen":"test","script":{"id":"2e66b0db-5e72-41a9-8325-6bb81137440b","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData         = JSON.parse(responseBody);","tests[\"sources is an array\"] = Array.isArray(jsonData.webhooks);","tests.total_pages    = Number.isInteger(jsonData.total_pages);","tests.total_entries  = Number.isInteger(jsonData.total_entries);"],"type":"text/javascript"}}],"id":"fdbd5ecf-aac1-4fae-8ef1-2e9e97b1443d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/change_notifications","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>page</td>\n<td>no</td>\n<td>the page number</td>\n</tr>\n<tr>\n<td>per_page</td>\n<td>no</td>\n<td>the number of items per page</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","change_notifications"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3268ec05-c64a-4573-b5c2-17b6631224d4","name":"list of notifications","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/change_notifications"},"_postman_previewlanguage":"json","header":[{"key":"","value":"","description":"","type":"text","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 2,\n    \"page\": 1,\n    \"per_page\": 10,\n    \"change_notifications\": [\n        {\n            \"name\": \"test1\",\n            \"account_id\": 100527,\n            \"deliver_to\": \"https://example.com/hello\",\n            \"included_data\": [\n                \"PhysicalPhoneNumber\"\n            ],\n            \"created_at\": 1586971969,\n            \"updated_at\": 1586971969\n        }\n    ]\n}"}],"_postman_id":"fdbd5ecf-aac1-4fae-8ef1-2e9e97b1443d"},{"name":"create change notification","id":"d67bd7b7-d240-4da2-909b-0a5e301a2295","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"change_notification\": {\n    \"name\": \"test1\",\n    \"delivery_type\": \"webhook\",\n    \"deliver_to\": \"https://example.com/hello-changes\",\n    \"included_data\": [\n      \"PhysicalPhoneNumber\"\n    ]\n  }\n}"},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/change_notifications","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>deliver_to</td>\n<td>yes</td>\n<td>fully qualified URL used for callback</td>\n</tr>\n<tr>\n<td>delivery_type</td>\n<td>yes</td>\n<td>must be set to webhook</td>\n</tr>\n<tr>\n<td>name</td>\n<td>yes</td>\n<td>the name of the webhook</td>\n</tr>\n<tr>\n<td>included_data</td>\n<td>yes</td>\n<td>an Array of one or more object types.  e.g. VirtualPhoneNumber or PhysicalPhoneNumber or CustomField.  These represent tracking number, receiving number and custom field.  More types are available.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","change_notifications"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"c2ae6d0f-d547-48bf-9aba-87a1d4598954","name":"create change notification","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"change_notification\": {\n        \"name\": \"test1\",\n        \"delivery_type\": \"webhook\",\n        \"deliver_to\": \"https://example.com/hello\",\n        \"included_data\": [\n            \"PhysicalPhoneNumber\"\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/change_notifications"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n  \"action\": \"updated\",\n  \"id\": 5,\n  \"status\": \"success\",\n  \"message\": \"Change Notification Saved\"\n}"}],"_postman_id":"d67bd7b7-d240-4da2-909b-0a5e301a2295"},{"name":"delete change notification","id":"0ed46e5f-2543-4b22-b5ac-fdc7c4a968c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/change_notifications/{{id}}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameters</th>\n<th>required</th>\n<th>comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>yes</td>\n<td>the account id</td>\n</tr>\n<tr>\n<td>change_notification_id</td>\n<td>yes</td>\n<td>the change notification id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","change_notifications","{{id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"4ab1a1eb-415f-4fcb-a7df-aa86a8ccf2c6","name":"delete change notification","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/change_notifications/{{id}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"action\": \"destroyed\",\n    \"id\": \"CHN569DC68262EBC6ACA5A3EE25769F7B7F4C97A79688D9A5F21A4585C0C1EAA557\",\n    \"status\": \"success\"\n}"}],"_postman_id":"0ed46e5f-2543-4b22-b5ac-fdc7c4a968c7"}],"id":"1aace7a8-54cb-4c5c-a53f-c045102ea33c","description":"<p>Get notifications about changes made in the account via a webhook</p>\n","event":[{"listen":"prerequest","script":{"id":"95e9eefc-96fc-4302-b1d0-78f25c3b0840","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"84043aad-a75a-4df2-8497-082a83b744d7","type":"text/javascript","exec":[""]}}],"_postman_id":"1aace7a8-54cb-4c5c-a53f-c045102ea33c","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Lambda","item":[],"id":"f27f2b33-079d-49ed-a64b-68855c803690","description":"<p>CallTrackingMetrics support for authoring your triggers, routing logic and custom UI is powered by Lambda functions.   These are functions that can perform actions on activities e.g. (triggers), how to route phone calls (routes), or display and collect data from your agents (custom UI) in the form of agent scripts.</p>\n<p>We support node.js as the primary language for each function.   We provide both a basic library for interfacing with some builtin data structures as well as access to a number of packages available via npm that you can request to build within the application UI while editing your lambda function.  You can also associate environment variables to your function e.g. process.env.</p>\n<p>Each lambda function starts with a default handler function.   Much of our lambda code is inspired by Amazon Lambda so you may find it familiar.   </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">exports.handler = async (event, context) =&gt; {\n    console.log(event.activity); // access the CTM call, text, chat, fax, video etc... \n   // context.ctm can be used to access CTM specific functions for http requests and api requests.\n};\n</code></pre>\n<p>CTM lambda functions can be used to access all endpoints via the context.ctm which exposes the following methods:</p>\n<p>In the following methods path is everything after /api/v1/accounts/{ self.account_id }/\nawait api_post(\"/calls.json\", {filter: \"cats\"}); // will return results that match cats.\nasync api_post(path, data)\nasync api_get(path)\nasync api_patch(path, data)\nasync api_delete(path, data)\nasync api_put(path, data</p>\n<p>The main arguments to the handler function are:</p>\n<ul>\n<li>event</li>\n<li>context</li>\n</ul>\n<p>We add some additional properties to event and context to make working with CTM easier.</p>\n<h1 id=\"event-object\">event object</h1>\n<ul>\n<li>event.activity - this is the core object your function is operating e.g. it is the phone call, text message, web form or chat activity.</li>\n<li>event.cap_token - a capability token allowing you access to CTM API, mostly for internal use.</li>\n<li>event.id - this is the lambda function id itself.</li>\n<li>event.options - when a lambda function is called from a custom action or voice menu the options or user input would be included in this additional event property.</li>\n</ul>\n<h1 id=\"context-object\">context object</h1>\n<p>We attach a ctm object that allows you direct access to the CTM API with the current account and credentials built-in.  We also expose a simple HTTP interface for making API requests to external APIs.</p>\n<h2 id=\"contexthttp_\">context.http_*</h2>\n<p>These methods can be used to access remote APIs without needing to import any other external HTTP libraries.</p>\n<p>context.http_post  - send an HTTP POST request\ncontext.http_get   - send an HTTP GET request\ncontext.http_patch - send an HTTP PATCH request\ncontext.http_put   - send an HTTP PUT request\ncontext.http_delete - send an HTTP DELETE request</p>\n<p>each http_* method has an interface that returns a promise.  </p>\n<p>Example of sending a POST request</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">context.http_post(\"https://your-service.com/endpoint\", JSON.stringify({your:\"json data\"}), {'Content-Type':'application/json'}).then(function(response) {\n  // response.responseBody\n  JSON.parse(response.responseBody);\n  \n  // response.request\n  // response.response\n});\n\n</code></pre>\n<p>As you can see from the example above we make no assumptions about the type of data you are posting or response body you are receiving but it is easy to interface with JSON API's that would expect a content-type header and JSON encoded request body.</p>\n<h2 id=\"contextctm\">context.ctm</h2>\n<p>As part of the context the ctm object exposes a wrapper around the CTM API.   You will need to refer to the CTM API for all possible options but the wrapper API works by exposing the following methods:</p>\n<ul>\n<li>context.ctm.api_get</li>\n<li>context.ctm.api_post</li>\n<li>context.ctm.api_patch</li>\n<li>context.ctm.api_put</li>\n<li>context.ctm.api_delete</li>\n</ul>\n<p>These are helpers around the HTTP methods described above.   Instead of having to call the http_get method for example to get call data with <a href=\"https://api.calltrackingmetrics.com/api/v1/accounts/%7B%7Binsert-your-account-id%7D%7D/calls.json\">https://api.calltrackingmetrics.com/api/v1/accounts/{{insert-your-account-id}}/calls.json</a>.  You can use context.ctm.api_get as</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">context.ctm.api_get(\"calls.json\").then((response) =&gt; {\n});\n</code></pre>\n<p>Or for more complex queries use a POST request with a filter object</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">context.ctm.api_post(\"calls.json\", {tag_list: \"my tag\", limit_fields: ['id', 'tag_list']}).then((response) =&gt; {\n   console.log(JSON.parse(response.responseBody));\n});\n</code></pre>\n<p>Additionally, you can update the contact panel with:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">  await context.ctm.update({name: 'Hello World', email: 'leads@example.com', custom_fields: {fieldA: 'Super'}});\n\n</code></pre>\n<p>Or score a call with:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">  await context.ctm.score('reportTag', 5, 400, true, new Date(), {fieldA: 'Super'});\n</code></pre>\n<p>AskAI is also available to lambda functions:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">   const answer = await context.ctm.ask(\"What was the appointment date and time provided in the phone conversation?\");\n</code></pre>\n<h1 id=\"integrations\">Integrations</h1>\n<p>In addition to builtin API authentication we also pass access credentials to the lambda context allowing access to connected integrations.  For example, when Salesforce is integrated lambda functions will receive access token credentials allowing you to use for example the jsforce npm package to further extend how CTM integrates with \nSalesforce.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>const jsforce = require('jsforce');\nexports.handler = function(event, context, callback) {\n  const conn = new jsforce.Connection({\n    instanceUrl : event.salesforce.instanceUrl,\n    accessToken : event.salesforce.token\n  });\n  // now you can use the jsforce library to interact with salesforce api\n});\n</code></pre><p>Looking up a Lead from phone number with lambda and jsforce.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">const jsforce = require('jsforce');\n\n// parse the phone number into a searchable number format for salesforce US numbers\nfunction PreparePhoneNumberForSearch(phone_number) {\n  let number = phone_number;\n  let digits = number.replace(/\\D/g,'').split(\"\");\n  let country_code = digits.shift();\n  let npa = [];\n  npa.push(digits.shift());\n  npa.push(digits.shift());\n  npa.push(digits.shift());\n  npa = npa.join(\"\");\n  let nxx = [];\n  nxx.push(digits.shift());\n  nxx.push(digits.shift());\n  nxx.push(digits.shift());\n  nxx = nxx.join(\"\");\n  let lnumber = digits.join(\"\");\n//  console.log(\"npa: \" + npa + \", nxx:\" + nxx + \", lnum:\" + lnumber);\n  let search_number = [npa, nxx, lnumber].join(\"*\");\n\n  return search_number;\n}\n\n// build a sosl query to search for leads with the given phone number.\nfunction Search(context, conn, search_number, callback) {\n  let sosl = `FIND {${search_number}} IN PHONE FIELDS RETURNING Lead (Id, Name, Email)`;\n\n  conn.search(sosl,\n    function(err, res) {\n      if (err) { console.log(\"error:\", err); callback(); return; }\n      let results = res.searchRecords.map(function(rec) {\n        return {type: rec.attributes.type,\n                id: rec.Id,\n                name: rec.Name,\n                email: rec.Email};\n      });\n      let contact = results &amp;&amp; results.length ? results[0] : {};\n      callback(contact);\n    }\n  );\n}\nexports.handler = function(event, context) {\n\n  let conn = new jsforce.Connection({\n    instanceUrl : event.salesforce.instanceUrl,\n    accessToken : event.salesforce.token\n  });\n  let activity = event.activity;\n  \n  let search_number = PreparePhoneNumberForSearch(activity.caller_number);\n\n  \n  Search(context, conn, search_number, function(lead){\n    console.log(lead);\n    context.done();\n  });\n</code></pre>\n<p>Notice for Salesforce connected accounts we pass into the Lambda handler function an event object with an additional \"salesforce\" property.  This includes two additional values the </p>\n<p>instanceUrl and the token.    You can pass these into jsforce.Connection - to get an authorized client to your Salesforce account.</p>\n<p>###HubSpot</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>const hubspot = require('@hubspot/api-client');\nexports.handler = async function(event, context, callback) {\n  // now you can use the hubspot library to interact with hubspot api\n  const client = new hubspot.Client({ accessToken: event.hubspot.token });\n\n  const filter = { propertyName: 'createdate', operator: 'GTE', value: Date.now() - 30 * 60000 }\n  const filterGroup = { filters: [filter] }\n  const sort = JSON.stringify({ propertyName: 'createdate', direction: 'DESCENDING' })\n  const query = event.activity.contact_number;\n  const properties = ['createdate', 'firstname', 'lastname']\n  const limit = 100\n  const after = 0\n\n  console.log(\"query hubspot for:\", query);\n\n  const publicObjectSearchRequest = {\n    filterGroups: [filterGroup],\n    sorts: [sort],\n    query,\n    properties,\n    limit,\n    after,\n  }\n\n  const res = await client.crm.contacts.searchApi.doSearch(publicObjectSearchRequest)\n  const result = res.body;\n  const total  = result.total;\n  const results = result.results;\n  console.log(results);\n}\n</code></pre><p>###Zoho Integration</p>\n<p>```\nclass Zoho {\n  constructor(event, context) {\n    this.context = context;\n    this.event = event;\n  }\n  get(path) {\n    const url = <code>${this.event.zoho.api_domain}${path}</code>;\n    return this.context.http_get(url, this.headers());\n  }\n  headers() {\n    return { \"Authorization\": <code>Zoho-oauthtoken ${this.event.zoho.token}</code>, \"Content-Type\": \"application/json\" };\n  }\n}\nexports.handler = function(event, context, callback) {\n  const client = new Zoho(event, context);</p>\n<p>  client.get(\"/crm/v2/settings/modules\").then( (request) =&gt; {\n    console.log(JSON.parse(request.responseBody)['modules'].map( (module) =&gt; {\n      return module.api_name;\n    }));\n  })\n}```</p>\n","event":[{"listen":"prerequest","script":{"id":"79a5a2e5-3e1f-4fc8-ba0d-fce9ee7a1d09","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1e399d52-005a-45bd-94da-5ad88d6261d4","type":"text/javascript","exec":[""]}}],"_postman_id":"f27f2b33-079d-49ed-a64b-68855c803690","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Embedding Softphone","item":[],"id":"9a1422b8-9086-4ed8-951b-fcdceac4fed3","description":"<p>CallTrackingMetrics allows you to easily embed our Softphone into your own web application or CRM.   The way this is works is by exposing our phone as a Web Component.</p>\n<p>We have an example explaining how you can embed our phone into your CRM or application here:  <a href=\"https://github.com/calltracking/web-components/blob/master/example.html\">https://github.com/calltracking/web-components/blob/master/example.html</a></p>\n<p>Additional documentation is here: <a href=\"https://www.calltrackingmetrics.com/web-component-embedded-softphone/\">https://www.calltrackingmetrics.com/web-component-embedded-softphone/</a></p>\n","event":[{"listen":"prerequest","script":{"id":"79a5a2e5-3e1f-4fc8-ba0d-fce9ee7a1d09","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1e399d52-005a-45bd-94da-5ad88d6261d4","type":"text/javascript","exec":[""]}}],"_postman_id":"9a1422b8-9086-4ed8-951b-fcdceac4fed3","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"Trust Center","item":[{"name":"list trust centers","id":"cd99be13-70ff-4bca-913d-db9febe55ff0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/trust_center","description":"<p>Retrieve all the trust centers within your account</p>\n<p>If you want to retreive all of the trust centers within the account's agency, pass in '?all=1' to the request</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","trust_center"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd99be13-70ff-4bca-913d-db9febe55ff0"},{"name":"list a2p campaigns","id":"add717ec-be87-4421-9ec7-cbc7c0a1ecd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/trust_center/a2p_campaigns","description":"<p>Retrieve all the A2P Campaigns within your account</p>\n<p>If you want to retreive all of the Campaigns within the account's agency, pass in '?all=1' to the request</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","trust_center","a2p_campaigns"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"add717ec-be87-4421-9ec7-cbc7c0a1ecd7"},{"name":"list a2p campaigns of a specific trust center","id":"1f258376-fcd8-43b2-b0e4-7b3f8f363ba9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/trust_center/{{trust_center_id}}/a2p_campaigns","description":"<p>Retrieve all the A2P Campaigns associated with a specific trust center</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","trust_center","{{trust_center_id}}","a2p_campaigns"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f258376-fcd8-43b2-b0e4-7b3f8f363ba9"},{"name":"list toll free registrations","id":"0b0b5f9c-65c2-46b6-a6bd-19fc20d5983a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Basic Auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/trust_center/toll_frees","description":"<p>Retrieve all the Toll Free Registrations in the given account</p>\n<p>If you want to retrieve all of the Toll Free Registrations within an Agency, pass in '?all=1' in the url params</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","trust_center","toll_frees"],"host":["{{host}}"],"query":[{"disabled":true,"description":{"content":"<p>Pass this param into view all Toll Free Registrations within an Agency</p>\n","type":"text/plain"},"key":"all","value":"1"}],"variable":[]}},"response":[],"_postman_id":"0b0b5f9c-65c2-46b6-a6bd-19fc20d5983a"}],"id":"d0a13993-7ecd-47c2-af19-809b3a8b3f84","_postman_id":"d0a13993-7ecd-47c2-af19-809b3a8b3f84","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}},{"name":"LeadReactor","item":[{"name":"create","id":"71a36529-9c3c-4f8b-ae02-24a2198d08c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"default_route_id\": \"CQ...\",\n    \"name\": \"the name\",\n    \"description\": \"describe the lead reactor use case\",\n    \"source_lambda_id\": \"LDA...\",\n    \"outbound_voicemail_message\": \"say:en-US-Neural2.female:en-US:Thank you for contacting us about your new xyz.  Sorry we missed you today if you'd like connect please feel free to call us back at xyz.\",\n    \"amd_timeout\": 30,\n    \"amd_speech_threshold\": 2400,\n    \"amd_speech_end_threshold\": 1200,\n    \"amd_silence_timeout\": 5000,\n    \"virtual_phone_number_id\": \"TPN...\",\n    \"max_dials\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lead_reactors","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lead_reactors"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"71a36529-9c3c-4f8b-ae02-24a2198d08c2"},{"name":"update","id":"eb8af7aa-b487-4209-b38d-0af84530cdcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lead_reactors/{{lead_reactor_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lead_reactors","{{lead_reactor_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb8af7aa-b487-4209-b38d-0af84530cdcf"},{"name":"delete","id":"36b3b1f0-5b13-4eed-b14e-4cf10965cb25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lead_reactors/{{lead_reactor_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lead_reactors","{{lead_reactor_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"36b3b1f0-5b13-4eed-b14e-4cf10965cb25"},{"name":"add_task","id":"f624b786-8bd8-4241-b4c2-5ce428ca4714","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"contact_id\": \"optional contact id\",\n    \"phone_number\": \"required phone number to contact\",\n    \"name\": \"name of task can be name of contact or goal of task\",\n    \"reason\": \"optional reason for call\",\n    \"position\": 5,\n    \"status\": \"pending\",\n    \"fields\": {\"your_custom_field\": \"value\"},\n\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lead_reactors/{{lead_reactor_id}}/tasks","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lead_reactors","{{lead_reactor_id}}","tasks"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f624b786-8bd8-4241-b4c2-5ce428ca4714"},{"name":"update_task","id":"976f0cfa-8660-4d81-bcd5-348abe23f3ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lead_reactors/{{lead_reactor_id}}/tasks/{{task_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lead_reactors","{{lead_reactor_id}}","tasks","{{task_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"976f0cfa-8660-4d81-bcd5-348abe23f3ea"},{"name":"delete_task","id":"a7f53202-33ec-417a-bd84-fc99045ba5f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lead_reactors/{{lead_reactor_id}}/tasks/{{task_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lead_reactors","{{lead_reactor_id}}","tasks","{{task_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7f53202-33ec-417a-bd84-fc99045ba5f8"},{"name":"Bulk Import","id":"08e98c97-1712-4be0-b662-1eeb1b422824","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\n    \"tasks\": [\n\n        {\"name\": \"Task Name\",\"phone\": \"+1....task phone number\", \"fields\": {\"key1\":\"value1\", \"key2\":\"value2\"}},\n        {\"name\": \"Task Name\",\"phone\": \"+1....task phone number\", \"fields\": {\"key1\":\"value1\", \"key2\":\"value2\"}},\n       \n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/{{base_path}}/accounts/{{account_id}}/lead_reactors?=&noupdate=1","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}},"urlObject":{"protocol":"https","path":["{{base_path}}","accounts","{{account_id}}","lead_reactors"],"host":["{{host}}"],"query":[{"key":"","value":""},{"description":{"content":"<p>avoid updating any existing tasks</p>\n","type":"text/plain"},"key":"noupdate","value":"1"}],"variable":[]}},"response":[],"_postman_id":"08e98c97-1712-4be0-b662-1eeb1b422824"}],"id":"aba21df9-eda2-49ae-a991-87eb5cc3354e","description":"<p><strong>LeadReactor</strong> allow you to automate the task of following up with a lead. LeadReactor relies on voice technology to dial and detect a human is present on the line and then immediately connecting your agents. If a voicemail box is detected a customized voicemail can be left.</p>\n","_postman_id":"aba21df9-eda2-49ae-a991-87eb5cc3354e","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]},"isInherited":true,"source":{"_postman_id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","id":"ae3e0dcf-973f-42aa-a1ed-7aa80a35ff97","name":"CTM API","type":"collection"}}}],"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{access_key}}"},{"key":"password","value":"{{secret_key}}"}]}},"event":[{"listen":"prerequest","script":{"id":"db278330-8f14-4112-ba93-5d6cf12000ae","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c721d537-4ef2-42ab-ad98-c98634378a53","type":"text/javascript","exec":[""]}}]}