{"info":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","description":"<html><head></head><body><p>VitalPBX is a free phone system based on the solid Linux and Asterisk platforms, offering a whole new level of user experience.</p>\n<p> This API is under construction, we are working to make this API available ASAP. If you have any question or request, please send an email to <a href=\"mailto:support@vitalpbx.com\">support@vitalpbx.com</a></p>\n<p>Almost all the API requests should provide the tenant, if no tenant is provided, the default tenant will be used to answer the requests.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5481262","collectionId":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","publishedId":"S17rvTgc","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-03-22T15:41:20.000Z"},"item":[{"name":"Tenants","item":[{"name":"/tenants","id":"00a333fc-3d79-438a-93a5-4a54e0627853","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"}],"url":"http://{{host}}/api/v2/tenants","description":"<p>Get all created tenants</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","tenants"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"07d3a724-dab5-474c-8f87-d3a28deb94e1","name":"200 - All Tenants","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text","disabled":true}],"url":"http://{{host}}/api/v2/tenants"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 May 2022 20:29:20 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34"},{"key":"X-Powered-By","value":"PHP/7.2.34"},{"key":"Content-Length","value":"1949"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"tenant_id\": \"1\",\n            \"name\": \"vitalpbx\",\n            \"description\": \"VitalPBX\",\n            \"default\": true,\n            \"path\": \"713b0732d7b683af\",\n            \"prefix\": null,\n            \"enabled\": true,\n            \"settings\": {},\n            \"maintenance\": {\n                \"id\": \"1\",\n                \"cdr_preservation\": null,\n                \"recordings_preservation\": \"180\",\n                \"voicemail_preservation\": \"30\",\n                \"recordings_clear_less_nseconds\": \"1\",\n                \"convert_recordings\": \"yes\",\n                \"conversion_quality\": \"24\",\n                \"maintenance_cron\": \"1\",\n                \"enabled\": \"yes\",\n                \"default\": \"yes\",\n                \"tenant_id\": \"1\"\n            }\n        },\n        {\n            \"tenant_id\": \"48\",\n            \"name\": \"abc_company\",\n            \"description\": \"ABC Company\",\n            \"default\": false,\n            \"path\": \"587d5186026e2020\",\n            \"prefix\": \"ABC_\",\n            \"enabled\": true,\n            \"settings\": {\n                \"addons\": \"\",\n                \"allow_recordings\": \"no\",\n                \"allowed_outbound_routes\": \"\",\n                \"allowed_tenant_trunks\": \"\",\n                \"calls_limit\": \"\",\n                \"cid_name\": \"\",\n                \"cid_number\": \"\",\n                \"conferences\": \"\",\n                \"emergency_trunks\": \"\",\n                \"extensions\": \"\",\n                \"ivrs\": \"\",\n                \"outbound_profiles\": \"5\",\n                \"parking_lots\": \"\",\n                \"queues\": \"\",\n                \"restricted_cid\": \"disabled\",\n                \"timezone\": \"system\",\n                \"trunks\": \"\"\n            },\n            \"maintenance\": {\n                \"id\": \"41\",\n                \"cdr_preservation\": \"60\",\n                \"recordings_preservation\": \"60\",\n                \"voicemail_preservation\": \"30\",\n                \"recordings_clear_less_nseconds\": \"5\",\n                \"convert_recordings\": \"no\",\n                \"conversion_quality\": \"16\",\n                \"maintenance_cron\": null,\n                \"enabled\": \"yes\",\n                \"default\": \"no\",\n                \"tenant_id\": \"48\"\n            }\n        },\n        {\n            \"tenant_id\": \"49\",\n            \"name\": \"xyz_company\",\n            \"description\": \"XYZ Company\",\n            \"default\": false,\n            \"path\": \"abf0e1d8c8d43ee4\",\n            \"prefix\": \"XYZ_\",\n            \"enabled\": true,\n            \"settings\": {\n                \"addons\": \"\",\n                \"allow_recordings\": \"no\",\n                \"allowed_outbound_routes\": \"\",\n                \"allowed_tenant_trunks\": \"\",\n                \"calls_limit\": \"\",\n                \"cid_name\": \"\",\n                \"cid_number\": \"\",\n                \"conferences\": \"\",\n                \"emergency_trunks\": \"\",\n                \"extensions\": \"\",\n                \"ivrs\": \"\",\n                \"outbound_profiles\": \"\",\n                \"parking_lots\": \"\",\n                \"queues\": \"\",\n                \"restricted_cid\": \"disabled\",\n                \"timezone\": \"system\",\n                \"trunks\": \"\"\n            },\n            \"maintenance\": {\n                \"id\": \"42\",\n                \"cdr_preservation\": \"60\",\n                \"recordings_preservation\": \"60\",\n                \"voicemail_preservation\": \"30\",\n                \"recordings_clear_less_nseconds\": \"5\",\n                \"convert_recordings\": \"no\",\n                \"conversion_quality\": \"16\",\n                \"maintenance_cron\": null,\n                \"enabled\": \"yes\",\n                \"default\": \"no\",\n                \"tenant_id\": \"49\"\n            }\n        }\n    ]\n}"}],"_postman_id":"00a333fc-3d79-438a-93a5-4a54e0627853"},{"name":"/tenant/{id}","id":"2813512f-22b8-46db-9c46-a50760256028","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"}],"url":"http://{{host}}/api/v2/tenants/1","description":"<p>Get data from an specific tenant</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","tenants","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"2c2e8414-33be-4bdb-8e54-8ab6c112c988","name":"/tenant/{id}","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/tenants/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 29 Oct 2019 00:01:43 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"154"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"tenant_id\": 1,\n        \"name\": \"vitalpbx\",\n        \"description\": \"My PBX\",\n        \"default\": true,\n        \"path\": \"43b4298b09648469\",\n        \"prefix\": null,\n        \"enabled\": true\n    }\n}"},{"id":"781ba2b1-cd86-42bd-b973-d93f2451e503","name":"404 - Tenant not found","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/tenants/4"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 20:26:51 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"80"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested tenant doesn't exists\",\n    \"data\": []\n}"},{"id":"c97cdd5b-9d51-4eb6-8cd5-e073af9d5a7c","name":"200 - Retrieve single tenant","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/tenants/17"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 20:26:19 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"406"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"tenant_id\": 17,\n        \"name\": \"abc_company\",\n        \"description\": \"ABC Company\",\n        \"default\": false,\n        \"path\": \"f24ca0f1f4780615\",\n        \"prefix\": \"ABC_LLC\",\n        \"enabled\": true,\n        \"settings\": {\n            \"allowed_outbound_routes\": \"\",\n            \"allowed_tenant_trunks\": \"\",\n            \"allow_recordings\": \"no\",\n            \"conferences\": \"\",\n            \"extensions\": \"\",\n            \"inbound_numbers\": \"\",\n            \"ivrs\": \"\",\n            \"outbound_profiles\": \"\",\n            \"parking_lots\": \"\",\n            \"queues\": \"\",\n            \"trunks\": \"\"\n        }\n    }\n}"}],"_postman_id":"2813512f-22b8-46db-9c46-a50760256028"},{"name":"/tenants/{id}/{state}","id":"f0d26137-3228-41f4-8183-38d104d8e9d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"http://{{host}}/api/v2/tenants/{id}/{state}","description":"<p>It allows you to change the current state of any tenant. the available states are \"enable\", and \"disable\".</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","tenants","{id}","{state}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"6c9dc577-968a-46d3-870c-51f8e9018884","name":"/tenants/{id}/enable","originalRequest":{"method":"PATCH","header":[],"url":"http://{{host}}/api/v2/tenants/3/enable"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Oct 2020 20:53:55 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"173"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"tenant_id\": 3,\n        \"name\": \"telesoft\",\n        \"description\": \"Telesoft\",\n        \"default\": false,\n        \"path\": \"465e9b543d8f06a4\",\n        \"prefix\": \"TLS\",\n        \"enabled\": true\n    }\n}"},{"id":"753db7e9-2f15-43f6-bab1-5d165187635d","name":"/tenants/{id}/disable","originalRequest":{"method":"PATCH","header":[],"url":"http://{{host}}/api/v2/tenants/3/disable"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Oct 2020 04:36:15 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"174"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"tenant_id\": 3,\n        \"name\": \"telesoft\",\n        \"description\": \"Telesoft\",\n        \"default\": false,\n        \"path\": \"465e9b543d8f06a4\",\n        \"prefix\": \"TLS\",\n        \"enabled\": false\n    }\n}"},{"id":"e91f261b-df98-40f2-bb3b-2c1e00e4f392","name":"No Privileges","originalRequest":{"method":"PATCH","header":[],"url":"http://{{host}}/api/v2/tenants/1/disable"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Oct 2020 20:54:50 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"83"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": null,\n    \"data\": [\n        \"You cannot modify the requested tenant\"\n    ]\n}"}],"_postman_id":"f0d26137-3228-41f4-8183-38d104d8e9d1"},{"name":"/tenants/{id}/apply_changes","id":"50107c9e-a626-477f-87af-7d80065e74d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"UPDATE","header":[],"url":"http://{{host}}/api/v2/tenants/1/apply_changes","description":"<p>It allows you to apply all the changes made on VitalPBX's GUI into Asterisk. This will perform also a full core reload after dumping all the configurations.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","tenants","1","apply_changes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a666a62a-9f37-44fd-a451-fe276da2d8b9","name":"Access Forbidden","originalRequest":{"method":"UPDATE","header":[],"url":"http://{{host}}/api/v2/tenants/1/apply_changes"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 03 Oct 2020 07:39:55 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"83"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": null,\n    \"data\": [\n        \"You cannot modify the requested tenant\"\n    ]\n}"},{"id":"ba3f917a-5b30-4c09-bf1d-bef2c0d89e3e","name":"Changes Applied","originalRequest":{"method":"UPDATE","header":[],"url":"http://{{host}}/api/v2/tenants/{id}/apply_changes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 03 Oct 2020 07:36:37 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"107"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"All the changes has been successfully applied on tenant telesoft\",\n    \"data\": []\n}"}],"_postman_id":"50107c9e-a626-477f-87af-7d80065e74d7"},{"name":"/tenants","id":"c19d8360-6d0e-4bbb-8b47-1ce3dc5d3f1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"abc_company\",\r\n    \"description\": \"ABC Company\",\r\n    \"prefix\": \"ABC\",\r\n    \"send_welcome_email\": \"yes\",\r\n    \"user\": {\r\n        \"full_name\": \"Jane Doe\",\r\n        \"user_password\": \"SuperPassword@2021!!\",\r\n        \"user_email\": \"pbx@abc_company.com\",\r\n        \"startapp\": \"dashboard\",\r\n        \"role_id\": 4\r\n    },\r\n    \"settings\": {\r\n        \"addons\": \"sonata-stats,sonata-switchboard,vitxi\",\r\n        \"allow_recordings\": \"yes\",\r\n        \"allowed_outbound_routes\": \"\",\r\n        \"allowed_tenant_trunks\": \"\",\r\n        \"calls_limit\": 10,\r\n        \"cid_name\": \"\",\r\n        \"cid_number\": \"\",\r\n        \"conferences\": \"\",\r\n        \"emergency_trunks\": \"13\",\r\n        \"extensions\": \"\",\r\n        \"inbound_numbers\": \"16575550143,16575550119\",\r\n        \"ivrs\": \"\",\r\n        \"outbound_profiles\": \"5,4\",\r\n        \"parking_lots\": \"\",\r\n        \"queues\": \"\",\r\n        \"restricted_cid\": \"disabled\",\r\n        \"timezone\": \"America/New_York\",\r\n        \"trunks\": \"\"\r\n    },\r\n    \"maintenance\": {\r\n        \"cdr_preservation\": 190,\r\n        \"recordings_preservation\": 190,\r\n        \"voicemail_preservation\": 30,\r\n        \"recordings_clear_less_nseconds\": 1,\r\n        \"convert_recordings\": \"yes\",\r\n        \"conversion_quality\": 16,\r\n        \"maintenance_cron\": 1\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/tenants","description":"<p>Endpoint to create a new tenant with all the required settings. This endpoint might take some time because it applies changes after the new tenant is created.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","tenants"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"1edbc4cf-5050-401b-90cc-293886149cfa","name":"200 - Tenant Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"abc_company\",\r\n    \"description\": \"ABC Company\",\r\n    \"prefix\": \"ABC\",\r\n    \"send_welcome_email\": \"yes\",\r\n    \"user\": {\r\n        \"full_name\": \"Jane Doe\",\r\n        \"user_password\": \"SuperPassword@2021!!\",\r\n        \"user_email\": \"pbx@abc_company.com\",\r\n        \"startapp\": \"dashboard\",\r\n        \"role_id\": 4\r\n    },\r\n    \"settings\": {\r\n        \"addons\": \"sonata-stats,sonata-switchboard,vitxi\",\r\n        \"allow_recordings\": \"yes\",\r\n        \"allowed_outbound_routes\": \"\",\r\n        \"allowed_tenant_trunks\": \"\",\r\n        \"calls_limit\": 10,\r\n        \"cid_name\": \"\",\r\n        \"cid_number\": \"\",\r\n        \"conferences\": \"\",\r\n        \"emergency_trunks\": \"13\",\r\n        \"extensions\": \"\",\r\n        \"inbound_numbers\": \"16575550143,16575550119\",\r\n        \"ivrs\": \"\",\r\n        \"outbound_profiles\": \"5,4\",\r\n        \"parking_lots\": \"\",\r\n        \"queues\": \"\",\r\n        \"restricted_cid\": \"disabled\",\r\n        \"timezone\": \"America/New_York\",\r\n        \"trunks\": \"\"\r\n    },\r\n    \"maintenance\": {\r\n        \"cdr_preservation\": 190,\r\n        \"recordings_preservation\": 190,\r\n        \"voicemail_preservation\": 30,\r\n        \"recordings_clear_less_nseconds\": 1,\r\n        \"convert_recordings\": \"yes\",\r\n        \"conversion_quality\": 16,\r\n        \"maintenance_cron\": 1\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/tenants"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 03:19:48 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"943"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The tenant has been created\",\n    \"data\": {\n        \"tenant_id\": 45,\n        \"name\": \"abc_company\",\n        \"description\": \"ABC Company\",\n        \"default\": false,\n        \"path\": \"6a733384562d2835\",\n        \"prefix\": \"ABC\",\n        \"enabled\": true,\n        \"settings\": {\n            \"addons\": \"sonata-stats,sonata-switchboard,vitxi\",\n            \"allow_recordings\": \"yes\",\n            \"allowed_outbound_routes\": \"\",\n            \"allowed_tenant_trunks\": \"\",\n            \"calls_limit\": \"10\",\n            \"cid_name\": \"\",\n            \"cid_number\": \"\",\n            \"conferences\": null,\n            \"emergency_trunks\": \"13\",\n            \"extensions\": null,\n            \"inbound_numbers\": \"16575550143,16575550119\",\n            \"ivrs\": null,\n            \"outbound_profiles\": \"5,4\",\n            \"parking_lots\": null,\n            \"queues\": null,\n            \"restricted_cid\": \"disabled\",\n            \"timezone\": \"America/New_York\",\n            \"trunks\": null\n        },\n        \"maintenance\": {\n            \"id\": \"38\",\n            \"cdr_preservation\": \"190\",\n            \"recordings_preservation\": \"190\",\n            \"voicemail_preservation\": \"30\",\n            \"recordings_clear_less_nseconds\": \"5\",\n            \"convert_recordings\": \"yes\",\n            \"conversion_quality\": \"16\",\n            \"maintenance_cron\": \"1\",\n            \"enabled\": \"yes\",\n            \"default\": \"no\",\n            \"tenant_id\": \"45\"\n        }\n    }\n}"},{"id":"16bef723-2ac6-4fa5-8735-9f54b4ac9898","name":"403 - Addon not installed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"telesoft\",\r\n    \"description\": \"Telesoft\",\r\n    \"prefix\": \"TLS\",\r\n    \"send_welcome_email\": \"yes\",\r\n    \"user\": {\r\n        \"full_name\": \"Jhon Doe\",\r\n        \"user_password\": \"SuperPassword@2021!!\",\r\n        \"user_email\": \"miguel@vitalpbx.com\",\r\n        \"startapp\": \"dashboard\",\r\n        \"role_id\": 4\r\n    },\r\n    \"settings\": {\r\n        \"addons\": \"sonata-stats,sonata-switchboard,vitxi\",\r\n        \"allow_recordings\": \"yes\",\r\n        \"allowed_outbound_routes\": \"\",\r\n        \"allowed_tenant_trunks\": \"\",\r\n        \"calls_limit\": 10,\r\n        \"cid_name\": \"\",\r\n        \"cid_number\": \"\",\r\n        \"conferences\": \"\",\r\n        \"emergency_trunks\": \"13\",\r\n        \"extensions\": \"\",\r\n        \"inbound_numbers\": \"13055605776,17863643150\",\r\n        \"ivrs\": \"\",\r\n        \"outbound_profiles\": \"5,4\",\r\n        \"parking_lots\": \"\",\r\n        \"queues\": \"\",\r\n        \"restricted_cid\": \"disabled\",\r\n        \"timezone\": \"America/Chicago\",\r\n        \"trunks\": \"\"\r\n    },\r\n    \"maintenance\": {\r\n        \"cdr_preservation\": 190,\r\n        \"recordings_preservation\": 190,\r\n        \"voicemail_preservation\": 30,\r\n        \"recordings_clear_less_nseconds\": 1,\r\n        \"convert_recordings\": \"no\",\r\n        \"conversion_quality\": 16,\r\n        \"maintenance_cron\": null\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/tenants"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 01:50:00 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"82"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"The multi-tenant add-on is not installed.\",\n    \"data\": []\n}"},{"id":"9e3aad59-79d3-4b89-a454-0b1f1ce04b5a","name":"200 - Tenant created and assigned to an existing user","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"evil_corp\",\r\n    \"description\": \"Evil Corp\",\r\n    \"prefix\": \"EVC\",\r\n    \"send_welcome_email\": \"yes\",\r\n    \"user\": {\r\n        \"user_id\": 48\r\n    },\r\n    \"settings\": {\r\n        \"addons\": \"sonata-stats,sonata-switchboard,vitxi\",\r\n        \"allow_recordings\": \"yes\",\r\n        \"allowed_outbound_routes\": \"\",\r\n        \"allowed_tenant_trunks\": \"\",\r\n        \"calls_limit\": 10,\r\n        \"cid_name\": \"\",\r\n        \"cid_number\": \"\",\r\n        \"conferences\": \"\",\r\n        \"emergency_trunks\": \"13\",\r\n        \"extensions\": \"\",\r\n        \"inbound_numbers\": \"17755550165,17755550109\",\r\n        \"ivrs\": \"\",\r\n        \"outbound_profiles\": \"5,4\",\r\n        \"parking_lots\": \"\",\r\n        \"queues\": \"\",\r\n        \"restricted_cid\": \"disabled\",\r\n        \"timezone\": \"America/New_York\",\r\n        \"trunks\": \"\"\r\n    },\r\n    \"maintenance\": {\r\n        \"cdr_preservation\": 190,\r\n        \"recordings_preservation\": 190,\r\n        \"voicemail_preservation\": 30,\r\n        \"recordings_clear_less_nseconds\": 1,\r\n        \"convert_recordings\": \"yes\",\r\n        \"conversion_quality\": 16,\r\n        \"maintenance_cron\": 1\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/tenants"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Aug 2021 17:54:31 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"917"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The tenant has been created\",\n    \"data\": {\n        \"tenant_id\": 47,\n        \"name\": \"evil_corp\",\n        \"description\": \"Evil Corp\",\n        \"default\": false,\n        \"path\": \"bca4545e5524cc10\",\n        \"prefix\": \"EVC\",\n        \"enabled\": true,\n        \"settings\": {\n            \"addons\": \"sonata-stats,sonata-switchboard,vitxi\",\n            \"allow_recordings\": \"yes\",\n            \"allowed_outbound_routes\": \"\",\n            \"allowed_tenant_trunks\": \"\",\n            \"calls_limit\": \"10\",\n            \"cid_name\": \"\",\n            \"cid_number\": \"\",\n            \"conferences\": null,\n            \"emergency_trunks\": \"13\",\n            \"extensions\": null,\n            \"inbound_numbers\": \"17755550165,17755550109\",\n            \"ivrs\": null,\n            \"outbound_profiles\": \"5,4\",\n            \"parking_lots\": null,\n            \"queues\": null,\n            \"restricted_cid\": \"disabled\",\n            \"timezone\": \"America/New_York\",\n            \"trunks\": null\n        },\n        \"maintenance\": {\n            \"id\": \"40\",\n            \"cdr_preservation\": \"190\",\n            \"recordings_preservation\": \"190\",\n            \"voicemail_preservation\": \"30\",\n            \"recordings_clear_less_nseconds\": \"5\",\n            \"convert_recordings\": \"yes\",\n            \"conversion_quality\": \"16\",\n            \"maintenance_cron\": \"1\",\n            \"enabled\": \"yes\",\n            \"default\": \"no\",\n            \"tenant_id\": \"47\"\n        }\n    }\n}"}],"_postman_id":"c19d8360-6d0e-4bbb-8b47-1ce3dc5d3f1b"},{"name":"/tenants/{id}","id":"48cc531a-4048-4713-9a04-a4b2bf64b168","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"ABC Corporation\",\r\n    \"prefix\": \"ABC\",\r\n    \"settings\": {\r\n        \"addons\": \"sonata-stats,vitxi\",\r\n        \"allow_recordings\": \"yes\",\r\n        \"allowed_outbound_routes\": \"\",\r\n        \"allowed_tenant_trunks\": \"\",\r\n        \"calls_limit\": 20,\r\n        \"cid_name\": \"\",\r\n        \"cid_number\": \"\",\r\n        \"conferences\": \"\",\r\n        \"emergency_trunks\": \"13\",\r\n        \"extensions\": \"\",\r\n        \"inbound_numbers\": \"12185449807,13212451322\",\r\n        \"ivrs\": \"\",\r\n        \"outbound_profiles\": \"5\",\r\n        \"parking_lots\": \"\",\r\n        \"queues\": \"\",\r\n        \"restricted_cid\": \"disabled\",\r\n        \"timezone\": \"America/New_York\",\r\n        \"trunks\": \"\"\r\n    },\r\n    \"maintenance\": {\r\n        \"cdr_preservation\": 60,\r\n        \"recordings_preservation\": 60,\r\n        \"voicemail_preservation\": 30,\r\n        \"recordings_clear_less_nseconds\": 1,\r\n        \"convert_recordings\": \"yes\",\r\n        \"conversion_quality\": 16,\r\n        \"maintenance_cron\": 1\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/tenants/{{tenant_id}}","description":"<p>Endpoint to update an existing tenant. This endpoint might take some time because it applies changes after updating the tenant.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","tenants","{{tenant_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"e9a046b0-90f6-4f12-b10a-8fad837e3547","name":"200 - Tenant Updated","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"ABC Corporation\",\r\n    \"prefix\": \"ABC\",\r\n    \"settings\": {\r\n        \"addons\": \"sonata-stats,vitxi\",\r\n        \"allow_recordings\": \"yes\",\r\n        \"allowed_outbound_routes\": \"\",\r\n        \"allowed_tenant_trunks\": \"\",\r\n        \"calls_limit\": 20,\r\n        \"cid_name\": \"\",\r\n        \"cid_number\": \"\",\r\n        \"conferences\": \"\",\r\n        \"emergency_trunks\": \"13\",\r\n        \"extensions\": \"\",\r\n        \"inbound_numbers\": \"12185449807,13212451322\",\r\n        \"ivrs\": \"\",\r\n        \"outbound_profiles\": \"5\",\r\n        \"parking_lots\": \"\",\r\n        \"queues\": \"\",\r\n        \"restricted_cid\": \"disabled\",\r\n        \"timezone\": \"America/New_York\",\r\n        \"trunks\": \"\"\r\n    },\r\n    \"maintenance\": {\r\n        \"cdr_preservation\": 60,\r\n        \"recordings_preservation\": 60,\r\n        \"voicemail_preservation\": 30,\r\n        \"recordings_clear_less_nseconds\": 1,\r\n        \"convert_recordings\": \"yes\",\r\n        \"conversion_quality\": 16,\r\n        \"maintenance_cron\": 1\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/tenants/44"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 03:40:52 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"902"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The tenant has been updated\",\n    \"data\": {\n        \"tenant_id\": 44,\n        \"name\": \"abc_company\",\n        \"description\": \"ABC Corporation\",\n        \"default\": false,\n        \"path\": \"aa9ce261ae30378e\",\n        \"prefix\": \"ABC\",\n        \"enabled\": true,\n        \"settings\": {\n            \"addons\": \"sonata-stats,vitxi\",\n            \"allow_recordings\": \"yes\",\n            \"allowed_outbound_routes\": \"\",\n            \"allowed_tenant_trunks\": \"\",\n            \"calls_limit\": \"20\",\n            \"cid_name\": \"\",\n            \"cid_number\": \"\",\n            \"conferences\": null,\n            \"emergency_trunks\": \"13\",\n            \"extensions\": null,\n            \"inbound_numbers\": \"12185449807,13212451322\",\n            \"ivrs\": null,\n            \"outbound_profiles\": \"5\",\n            \"parking_lots\": null,\n            \"queues\": null,\n            \"restricted_cid\": \"disabled\",\n            \"timezone\": \"America/New_York\",\n            \"trunks\": null\n        },\n        \"maintenance\": {\n            \"id\": \"37\",\n            \"cdr_preservation\": \"60\",\n            \"recordings_preservation\": \"60\",\n            \"voicemail_preservation\": \"30\",\n            \"recordings_clear_less_nseconds\": \"1\",\n            \"convert_recordings\": \"yes\",\n            \"conversion_quality\": \"16\",\n            \"maintenance_cron\": \"1\",\n            \"enabled\": \"yes\",\n            \"default\": \"no\",\n            \"tenant_id\": \"44\"\n        }\n    }\n}"}],"_postman_id":"48cc531a-4048-4713-9a04-a4b2bf64b168"},{"name":"/tenant/{id}","id":"040457b0-aa73-43b4-a76b-fc4a98572678","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"app-key","value":"{{api-key}}","type":"text"}],"url":"https://{{host}}/api/v2/tenants/{{tenant_id}}","description":"<p>It removes an existing tenant by ID. After removing the tenant, changes are applied. Consequently, this process can take some time.</p>\n<p>This action is irreversible, so be careful when using this endpoint.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","tenants","{{tenant_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3460fd7c-b3ec-4013-b21f-35a0b3fac8ee","name":"200 - Tenant removed","originalRequest":{"method":"DELETE","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text","disabled":true}],"url":"https://{{host}}/api/v2/tenants/{{tenant_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 04:06:59 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"71"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The tenant have been removed\",\n    \"data\": []\n}"}],"_postman_id":"040457b0-aa73-43b4-a76b-fc4a98572678"},{"name":"/tenants/{id}/inbound_numbers","id":"4daa201f-0914-42c7-9362-eac6057e8a70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"numbers\": \"12176311496,12176311497,12176311498\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/tenants/{{tenant_id}}/inbound_numbers","description":"<p>Endpoint to add DID/Inbound numbers to an existing tenant. You can provide a list of numbers separated by a comma.</p>\n<p>The request to this endpoint might take some time because it applies changes after saving the DIDs to make the inbound calls work as expected.</p>\n<p>The endpoint returns the list of the current tenant DIDs after saving the new numbers.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","tenants","{{tenant_id}}","inbound_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"8441c10b-f7a3-4cea-a269-d1dea6992dbe","name":"200 - DID Numbers Added","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"numbers\": \"12176311496,12176311497,12176311498\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/tenants/{{tenant_id}}/inbound_numbers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 03:25:55 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"149"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The numbers have been added\",\n    \"data\": {\n        \"inbound_numbers\": \"12176311494,12176311495,12176311496,12176311497,12176311498\"\n    }\n}"}],"_postman_id":"4daa201f-0914-42c7-9362-eac6057e8a70"},{"name":"/tenants/{id}/inbound_numbers","id":"fb7f78fe-489e-4ef1-97c1-4a0d1e8d28e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"numbers\": \"12176311496,12176311497\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/tenants/{{tenant_id}}/inbound_numbers","description":"<p>Endpoint to remove DID/Inbound numbers from an existing tenant. You can provide a list of numbers separated by a comma.</p>\n<p>The request to this endpoint might take some time because it applies changes after removing the DIDs.</p>\n<p>The endpoint returns the list of the current tenant DIDs after removing the given numbers.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","tenants","{{tenant_id}}","inbound_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a03167df-700a-47c7-a9c7-eb4e6ff34131","name":"200 - DID Numbers Removed","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"numbers\": \"12176311496,12176311497\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/tenants/{{tenant_id}}/inbound_numbers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 03:43:36 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"127"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The numbers have been removed\",\n    \"data\": {\n        \"inbound_numbers\": \"12176311494,12176311495,12176311498\"\n    }\n}"}],"_postman_id":"fb7f78fe-489e-4ef1-97c1-4a0d1e8d28e7"}],"id":"db46a122-9840-48d5-b415-1c9f6ffd6d62","description":"<p>Set of endpoints to manage tenants on VitalPBX. For deleting, creating, or updating tenants, you must use the main tenant or an API key with access to all the tenants.</p>\n","_postman_id":"db46a122-9840-48d5-b415-1c9f6ffd6d62","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Core","item":[{"name":"/core/current_plan","id":"cdf18c74-9b02-4ba0-a0cc-0bc829cd2d16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"}],"url":"https://{{host}}/api/v2/core/current_plan","description":"<p>Get current plan for VitalPBX, posible results are: community (free version), enterprise, and carrier</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","core","current_plan"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"92ecca2e-9a7a-4fca-9c8a-c517942ab95e","name":"/core/current_plan","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"https://{{host}}/api/v2/core/current_plan"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 Jun 2019 18:24:40 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"37"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": \"carrier\"\n}"}],"_postman_id":"cdf18c74-9b02-4ba0-a0cc-0bc829cd2d16"},{"name":"/core/click_to_call","id":"feb244c3-1d4d-4e89-bbc1-0c54f6df2561","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"caller\": 100,\r\n    \"callee\": 13055605776,\r\n    \"cos_id\": 1,\r\n    \"cid_name\": \"My PBX\",\r\n    \"cid_number\": 13055605776,\r\n    \"variables\": {\r\n        \"X-APP\": \"Postman\",\r\n        \"X-CAMPAIGN\": \"sales\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/core/click_to_call","description":"<p>This endpoint performs or originates a call with given numbers (caller and callee). If you want to use a specific class of service, you can use the Classes of Services endpoints to list the available CoS in a tenant.</p>\n<p>Bear in mind that when the API endpoint queues a call, it might fail due to an invalid caller or callee number. The API has no way to know if the Asterisk server placed the call or not.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Option Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Default Value</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>caller</strong></td>\n<td>String</td>\n<td></td>\n<td>It represents the number that originates the call. Usually, this parameter would contain an extension number. Nonetheless, you can provide a queue number, conference number, or even an external number. Bear in mind that if you don't supply an extension number, you must provide a valid class of service.</td>\n</tr>\n<tr>\n<td><strong>callee</strong></td>\n<td>String</td>\n<td></td>\n<td>It represents the number that receives the call. It can be an internal or external number. If you provide an external number, make sure the format fulfills the outbound routes patterns.</td>\n</tr>\n<tr>\n<td><strong>cos_id</strong></td>\n<td>Integer</td>\n<td></td>\n<td>A valid ID of a class of service to be utilized for routing the call. This parameter is optional if the caller is an extension number.</td>\n</tr>\n<tr>\n<td><strong>cid_name</strong></td>\n<td>String</td>\n<td>VitalPBX: Click to Call</td>\n<td>Optional parameter that allows you to customize the Caller ID name shown to the caller.</td>\n</tr>\n<tr>\n<td><strong>cid_number</strong></td>\n<td>String</td>\n<td>Callee Number</td>\n<td>Optional parameter that allows you to customize the Caller ID number shown to the caller.</td>\n</tr>\n<tr>\n<td><strong>variables</strong></td>\n<td>Object</td>\n<td></td>\n<td>List of variables to be part of the call channels. The reserved variable CONTEXT allows you to define a custom context to process your Click to Call calls.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","core","click_to_call"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"8d7f9206-c6dc-47f1-8b5c-04be8ee32d48","name":"200 - Call Queued","originalRequest":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"caller\": 100,\r\n    \"callee\": 13055605776,\r\n    \"cos_id\": 1,\r\n    \"cid_name\": \"My PBX\",\r\n    \"cid_number\": 13055605776,\r\n    \"variables\": {\r\n        \"X-APP\": \"Postman\",\r\n        \"X-CAMPAIGN\": \"sales\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/core/click_to_call"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 24 Nov 2021 22:12:55 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"224"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Call queued\",\n    \"data\": {\n        \"caller\": 100,\n        \"callee\": 13055605776,\n        \"cos_id\": 1,\n        \"cid_name\": \"My PBX\",\n        \"cid_number\": 13055605776,\n        \"variables\": {\n            \"X-APP\": \"Postman\",\n            \"X-CAMPAIGN\": \"sales\"\n        },\n        \"tenant\": \"713b0732d7b683af\"\n    }\n}"},{"id":"2405fbfb-7b5c-4fa0-acfd-f669b98b016e","name":"400 - Invalid Data","originalRequest":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"caller\": 100,\r\n    \"callee\": 13055605776,\r\n    \"cos_id\": 100,\r\n    \"cid_name\": \"My PBX\",\r\n    \"cid_number\": 13055605776,\r\n    \"variables\": {\r\n        \"X-APP\": \"Postman\",\r\n        \"X-CAMPAIGN\": \"sales\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/core/click_to_call"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 24 Nov 2021 22:18:28 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"95"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"You have not provided a valid class of service ID\",\n    \"data\": []\n}"}],"_postman_id":"feb244c3-1d4d-4e89-bbc1-0c54f6df2561"},{"name":"/core/external_addons","id":"587d56df-8d5f-4bfc-a7b2-37933a076682","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/core/external_addons","description":"<p>It returns the list of external add-ons installed on the PBX.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","core","external_addons"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b0e5e8a7-bf87-4e64-abc9-2b4111f793db","name":"200 - Addons Retrieved","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/core/external_addons"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 00:33:50 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"326"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"addon\": \"sonata-billing\",\n            \"description\": \"Sonata Billing\"\n        },\n        {\n            \"addon\": \"sonata-recordings\",\n            \"description\": \"Sonata Recordings\"\n        },\n        {\n            \"addon\": \"sonata-stats\",\n            \"description\": \"Sonata Stats\"\n        },\n        {\n            \"addon\": \"sonata-switchboard\",\n            \"description\": \"Sonata Switchboard\"\n        },\n        {\n            \"addon\": \"vitxi\",\n            \"description\": \"VitXi\"\n        }\n    ]\n}"}],"_postman_id":"587d56df-8d5f-4bfc-a7b2-37933a076682"}],"id":"739f4148-1f63-407d-a701-7ac3cb4a03fa","description":"<p>Core actions for VitalPBX</p>\n","_postman_id":"739f4148-1f63-407d-a701-7ac3cb4a03fa","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Classes of Services","item":[{"name":"/classes_of_services","id":"42d1758d-c72c-49d5-80f7-30a051a71dfc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/classes_of_services","description":"<p>Retrieve all the classes of services filtered by tenant.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","classes_of_services"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"78f9fa08-f799-453d-9ab9-e33ce63455b3","name":"200 - Retrieve All","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/classes_of_services"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 04 Dec 2019 22:47:12 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"1635"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"class_of_service_id\": 1,\n            \"cos\": \"all\",\n            \"description\": \"All Permissions\",\n            \"feature_code_category_id\": null,\n            \"ars_id\": null,\n            \"dialrule_id\": 4,\n            \"private\": false,\n            \"allowed_calls_by\": null,\n            \"billing_app_id\": null,\n            \"default\": true,\n            \"tenant_id\": 1\n        },\n        {\n            \"class_of_service_id\": 2,\n            \"cos\": \"internal-only\",\n            \"description\": \"Internal Calls Only\",\n            \"feature_code_category_id\": 1,\n            \"ars_id\": null,\n            \"dialrule_id\": 1,\n            \"private\": false,\n            \"allowed_calls_by\": null,\n            \"billing_app_id\": null,\n            \"default\": false,\n            \"tenant_id\": 1\n        },\n        {\n            \"class_of_service_id\": 3,\n            \"cos\": \"administration\",\n            \"description\": \"Administration\",\n            \"feature_code_category_id\": 2,\n            \"ars_id\": null,\n            \"dialrule_id\": null,\n            \"private\": true,\n            \"allowed_calls_by\": \"4,1\",\n            \"billing_app_id\": null,\n            \"default\": false,\n            \"tenant_id\": 1\n        },\n        {\n            \"class_of_service_id\": 4,\n            \"cos\": \"billing\",\n            \"description\": \"Billing Demo\",\n            \"feature_code_category_id\": null,\n            \"ars_id\": null,\n            \"dialrule_id\": null,\n            \"private\": false,\n            \"allowed_calls_by\": null,\n            \"billing_app_id\": 1,\n            \"default\": false,\n            \"tenant_id\": 1\n        },\n        {\n            \"class_of_service_id\": 5,\n            \"cos\": \"nemo\",\n            \"description\": \"nemo\",\n            \"feature_code_category_id\": null,\n            \"ars_id\": null,\n            \"dialrule_id\": null,\n            \"private\": false,\n            \"allowed_calls_by\": null,\n            \"billing_app_id\": null,\n            \"default\": false,\n            \"tenant_id\": 1\n        },\n        {\n            \"class_of_service_id\": 14,\n            \"cos\": \"Privado\",\n            \"description\": \"Privado\",\n            \"feature_code_category_id\": null,\n            \"ars_id\": null,\n            \"dialrule_id\": null,\n            \"private\": false,\n            \"allowed_calls_by\": null,\n            \"billing_app_id\": null,\n            \"default\": true,\n            \"tenant_id\": 1\n        },\n        {\n            \"class_of_service_id\": 17,\n            \"cos\": \"Internacional\",\n            \"description\": \"Internacional\",\n            \"feature_code_category_id\": null,\n            \"ars_id\": 10,\n            \"dialrule_id\": null,\n            \"private\": false,\n            \"allowed_calls_by\": null,\n            \"billing_app_id\": null,\n            \"default\": false,\n            \"tenant_id\": 1\n        }\n    ]\n}"}],"_postman_id":"42d1758d-c72c-49d5-80f7-30a051a71dfc"},{"name":"/classes_of_services/{id}","id":"3c8b7db0-28d5-4fdb-9d2d-f385d5b08dd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/classes_of_services/10","description":"<p>Retrieve all the classes of services filtered by tenant.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","classes_of_services","10"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"67c77501-7041-4b3b-a1ff-3326a7545ae3","name":"404 - CoS not found","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/classes_of_services/10"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 04 Dec 2019 22:49:47 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"90"},{"key":"Keep-Alive","value":"timeout=5, max=99"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested class of service doesn't exists\",\n    \"data\": []\n}"},{"id":"d56e7354-7dcf-4998-9644-965f070d967c","name":"200 - Retrieve Single CoS","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/classes_of_services/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 04 Dec 2019 22:48:31 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"265"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"class_of_service_id\": 1,\n        \"cos\": \"all\",\n        \"description\": \"All Permissions\",\n        \"feature_code_category_id\": null,\n        \"ars_id\": null,\n        \"dialrule_id\": 4,\n        \"private\": false,\n        \"allowed_calls_by\": null,\n        \"billing_app_id\": null,\n        \"default\": true,\n        \"tenant_id\": 1\n    }\n}"}],"_postman_id":"3c8b7db0-28d5-4fdb-9d2d-f385d5b08dd1"}],"id":"99753798-0d19-412c-8fe3-810510698c33","description":"<p>Contains all the actions/request that can be performed to the classes of services</p>\n","_postman_id":"99753798-0d19-412c-8fe3-810510698c33","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Extensions","item":[{"name":"/extensions","id":"b6ea5ad0-647b-947d-55fd-c0020ed3b019","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","description":"<p>Application key to authenticate requests</p>\n"},{"key":"tenant","value":"{{tenant}}","description":"<p>Filter by tenant</p>\n"}],"url":"http://{{host}}/api/v2/extensions","description":"<p>Get all extensions and its devices from the PBX filtered by tenant.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"d105b2e0-152c-89d3-584e-e41e142a491d","id":"d105b2e0-152c-89d3-584e-e41e142a491d","name":"Extensions","type":"folder"}},"urlObject":{"protocol":"http","path":["api","v2","extensions"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0010ea9c-3f9a-4daa-ae42-412bfc747339","name":"/extensions","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","description":"Application key to authenticate requests"},{"key":"tenant","value":"{{tenant}}","description":"Filter by tenant"}],"url":"http://{{host}}/api/v2/extensions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 28 May 2019 18:23:01 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"extension_id\": 1,\n            \"extension\": \"100\",\n            \"name\": \"Jhone Doe\",\n            \"language\": \"en\",\n            \"email\": null,\n            \"class_of_service_id\": 1,\n            \"dial_profile_id\": 1,\n            \"call_limit\": 0,\n            \"internal_cid\": \"\\\"Jhone Doe\\\" <100>\",\n            \"external_cid\": \"\\\"Jhone Doe\\\" <100>\",\n            \"emergency_cid\": \"\\\"Jhone Doe\\\" <100>\",\n            \"ringtime\": 0,\n            \"nospy\": false,\n            \"enabled_pa\": false,\n            \"answermode\": \"disable\",\n            \"mailbox\": \"100@vitalpbx-voicemail\",\n            \"accountcode\": null,\n            \"features_password\": \"*56437\",\n            \"sendcid\": false,\n            \"generate_hints\": false,\n            \"hot_desking\": false,\n            \"secretary\": null,\n            \"music_group_id\": 2,\n            \"rec_on_demand\": false,\n            \"internal_rec\": true,\n            \"outgoing_rec\": true,\n            \"incoming_rec\": true,\n            \"dictate_enable\": false,\n            \"dictate_format\": \"ogg\",\n            \"dictate_auto_send\": false,\n            \"fax_enabled\": false,\n            \"fax_auto_send\": false,\n            \"absent_secretary\": false,\n            \"lock\": false,\n            \"call_waiting\": false,\n            \"pinless\": false,\n            \"dynamic_routing\": false,\n            \"tenant_id\": 1,\n            \"context\": \"cos-all\",\n            \"has_analog_devices\": false,\n            \"devices\": [\n                {\n                    \"device_id\": \"3\",\n                    \"extension_id\": \"3\",\n                    \"profile_id\": \"1\",\n                    \"user\": \"100\",\n                    \"secret\": \"100\",\n                    \"description\": \"Jhone Doe\",\n                    \"ring_device\": \"yes\",\n                    \"technology\": \"sip\",\n                    \"assigned_exten\": \"100\",\n                    \"tenant_id\": \"1\",\n                    \"device_name\": \"100\"\n                }\n            ],\n            \"queues_info\": {\n                \"queues\": [\n                    1\n                ],\n                \"queues_name\": [\n                    \"Q500\"\n                ],\n                \"queues_penalty\": [\n                    \"0\"\n                ]\n            }\n        }\n    ]\n}"}],"_postman_id":"b6ea5ad0-647b-947d-55fd-c0020ed3b019"},{"name":"/extensions/{id}","id":"10ebea1d-4cd8-0e6a-a803-a6a3db80f2f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","description":"<p>Application key to authenticate requests</p>\n"},{"key":"tenant","value":"{{tenant}}","description":"<p>Filter request by tenant</p>\n","type":"text"}],"url":"http://{{host}}/api/v2/extensions/{{extension-id}}","description":"<p>Get specific extension from server filtered by extension id</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"d105b2e0-152c-89d3-584e-e41e142a491d","id":"d105b2e0-152c-89d3-584e-e41e142a491d","name":"Extensions","type":"folder"}},"urlObject":{"protocol":"http","path":["api","v2","extensions","{{extension-id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"224ab14f-ab02-4ef6-adee-906340b0fdeb","name":"/extensions/{id}","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","description":"Application key to authenticate requests"},{"key":"tenant","value":"{{tenant}}","description":"Filter request by tenant","type":"text"}],"url":"http://{{host}}/api/v2/extensions/{{extension-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Oct 2019 23:56:18 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"939"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"extension_id\": 63,\n        \"extension\": \"2000\",\n        \"name\": \"Jose Rivera\",\n        \"language\": \"en\",\n        \"email\": \"miguel@aplitel.com\",\n        \"class_of_service_id\": 1,\n        \"dial_profile_id\": 1,\n        \"ars_id\": null,\n        \"call_limit\": 0,\n        \"internal_cid\": \"\\\"Jose Rivera\\\" <2000>\",\n        \"external_cid\": \"\\\"Jose Rivera\\\" <87669536>\",\n        \"emergency_cid\": \"\\\"VitalPBX\\\" <809091>\",\n        \"ringtime\": 0,\n        \"nospy\": false,\n        \"enabled_pa\": false,\n        \"answermode\": \"disable\",\n        \"mailbox\": \"2000@vitalpbx-voicemail\",\n        \"accountcode\": \"5960859439\",\n        \"features_password\": \"12345\",\n        \"sendcid\": true,\n        \"generate_hints\": false,\n        \"hot_desking\": false,\n        \"secretary\": null,\n        \"music_group_id\": 3,\n        \"rec_on_demand\": false,\n        \"internal_rec\": true,\n        \"outgoing_rec\": true,\n        \"incoming_rec\": true,\n        \"dictate_enable\": false,\n        \"dictate_format\": \"ogg\",\n        \"dictate_auto_send\": false,\n        \"fax_enabled\": false,\n        \"fax_auto_send\": false,\n        \"absent_secretary\": false,\n        \"lock\": false,\n        \"call_waiting\": false,\n        \"cid_on_diversions\": \"caller\",\n        \"pinless\": true,\n        \"dynamic_routing\": true,\n        \"tenant_id\": 1,\n        \"context\": \"cos-all\"\n    }\n}"},{"id":"2c8df27b-96f2-49b4-afb2-7b964977a081","name":"200 - Extension retrieved","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","description":"Application key to authenticate requests"},{"key":"tenant","value":"{{tenant}}","description":"Filter request by tenant","type":"text"}],"url":"http://{{host}}/api/v2/extensions/{{extension-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Nov 2019 18:30:23 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"1247"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"extension_id\": 3,\n        \"extension\": \"7502\",\n        \"name\": \"X-Lite\",\n        \"language\": \"es_NI\",\n        \"email\": null,\n        \"class_of_service_id\": 1,\n        \"dial_profile_id\": 1,\n        \"ars_id\": null,\n        \"call_limit\": 0,\n        \"internal_cid\": \"\\\"X-Lite\\\" <7502>\",\n        \"external_cid\": \"\\\"X-Lite\\\" <7502>\",\n        \"emergency_cid\": \"\\\"Telesoft\\\" <22787050>\",\n        \"ringtime\": 0,\n        \"nospy\": false,\n        \"enabled_pa\": false,\n        \"answermode\": \"disable\",\n        \"mailbox\": \"7502@vitalpbx-voicemail\",\n        \"accountcode\": null,\n        \"features_password\": \"*56437\",\n        \"sendcid\": true,\n        \"generate_hints\": false,\n        \"hot_desking\": false,\n        \"secretary\": null,\n        \"music_group_id\": null,\n        \"rec_on_demand\": false,\n        \"internal_rec\": true,\n        \"outgoing_rec\": true,\n        \"incoming_rec\": true,\n        \"dictate_enable\": false,\n        \"dictate_format\": \"ogg\",\n        \"dictate_auto_send\": false,\n        \"fax_enabled\": false,\n        \"fax_auto_send\": false,\n        \"absent_secretary\": false,\n        \"lock\": false,\n        \"call_waiting\": false,\n        \"cid_on_diversions\": \"callee\",\n        \"pinless\": false,\n        \"dynamic_routing\": false,\n        \"tenant_id\": 1,\n        \"context\": \"cos-all\",\n        \"has_analog_devices\": false,\n        \"queues_info\": {\n            \"queues\": [],\n            \"queues_name\": [],\n            \"queues_penalty\": []\n        },\n        \"devices\": [\n            {\n                \"device_id\": \"3\",\n                \"extension_id\": \"3\",\n                \"profile_id\": \"1\",\n                \"user\": \"dev_7502\",\n                \"secret\": \"Letacl@2010\",\n                \"description\": \"X-Lite\",\n                \"ring_device\": \"yes\",\n                \"technology\": \"sip\",\n                \"assigned_exten\": \"7502\",\n                \"tenant_id\": \"1\",\n                \"device_name\": \"dev_7502\"\n            }\n        ]\n    }\n}"},{"id":"4fe09293-9c16-444f-acd3-0f331be08d50","name":"404 - Extension not found","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","description":"Application key to authenticate requests"},{"key":"tenant","value":"{{tenant}}","description":"Filter request by tenant","type":"text"}],"url":"http://{{host}}/api/v2/extensions/1000"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Nov 2019 19:06:27 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"83"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested extension doesn't exists\",\n    \"data\": []\n}"}],"_postman_id":"10ebea1d-4cd8-0e6a-a803-a6a3db80f2f5"},{"name":"/extensions/{id}/devices","id":"1672992e-f607-4d45-b38e-1bd73cbf8537","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","type":"text","value":"{{api-key}}"},{"key":"tenant","type":"text","value":"{{tenant}}"}],"url":"http://{{host}}/api/v2/extensions/{{extension-id}}/devices","description":"<p>Retrive all devices for a specific extension</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"d105b2e0-152c-89d3-584e-e41e142a491d","id":"d105b2e0-152c-89d3-584e-e41e142a491d","name":"Extensions","type":"folder"}},"urlObject":{"protocol":"http","path":["api","v2","extensions","{{extension-id}}","devices"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"e3016ebd-1f92-48be-8a59-311ad0800d31","name":"200 - Devices retrieve","originalRequest":{"method":"GET","header":[{"key":"app-key","type":"text","value":"{{api-key}}"},{"key":"tenant","type":"text","value":"{{tenant}}"}],"url":"http://{{host}}/api/v2/extensions/{{extension-id}}/devices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Nov 2019 23:19:01 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"267"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"device_id\": \"2\",\n            \"extension_id\": \"2\",\n            \"profile_id\": \"1\",\n            \"user\": \"dev-101\",\n            \"secret\": \"QG4nKqN#BQnNzu\",\n            \"description\": \"Agent 01\",\n            \"ring_device\": \"yes\",\n            \"technology\": \"sip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": \"1\",\n            \"device_name\": \"dev-101\"\n        }\n    ]\n}"}],"_postman_id":"1672992e-f607-4d45-b38e-1bd73cbf8537"},{"name":"/extensions/{id}/queues","id":"9692ba67-ed08-4464-914f-f0866d1ba430","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/extensions/{{extension-id}}/queues","description":"<p>Retrive queues info for an specific extension</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"d105b2e0-152c-89d3-584e-e41e142a491d","id":"d105b2e0-152c-89d3-584e-e41e142a491d","name":"Extensions","type":"folder"}},"urlObject":{"protocol":"http","path":["api","v2","extensions","{{extension-id}}","queues"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"045620e4-a66e-4745-b083-1c39b1ce0ed1","name":"200 - Queues Info Retrieved","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/extensions/{{extension-id}}/queues"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Nov 2019 23:15:43 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"119"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"queues_id\": [\n            1,\n            2\n        ],\n        \"queues_name\": [\n            \"Q500\",\n            \"Q501\"\n        ],\n        \"queues_penalty\": [\n            \"0\",\n            \"0\"\n        ]\n    }\n}"}],"_postman_id":"9692ba67-ed08-4464-914f-f0866d1ba430"},{"name":"/extensions/{id}/cdr_summary","id":"c66a0d88-2acb-437d-a713-ac5f63938f9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/extensions/{{extension-id}}/cdr_summary","description":"<p>Get cdr summary from a specific extension</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"d105b2e0-152c-89d3-584e-e41e142a491d","id":"d105b2e0-152c-89d3-584e-e41e142a491d","name":"Extensions","type":"folder"}},"urlObject":{"protocol":"http","path":["api","v2","extensions","{{extension-id}}","cdr_summary"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"9d32998c-8774-4469-b466-cc4132dfec33","name":"200 - CDR Summary","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/extensions/{{extension-id}}/cdr_summary"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 29 May 2019 16:54:22 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"176"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"local\": \"45\",\n        \"incoming\": \"29\",\n        \"outgoing\": \"4\",\n        \"transit\": \"0\"\n    }\n}"}],"_postman_id":"c66a0d88-2acb-437d-a713-ac5f63938f9e"},{"name":"/extensions/{id}/voicemail_records","id":"9579ae2e-723b-43e5-9569-57a60e5acd61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/extensions/{{extension-id}}/voicemail_records","description":"<p>Return all the voicemail records for an specific extension</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"d105b2e0-152c-89d3-584e-e41e142a491d","id":"d105b2e0-152c-89d3-584e-e41e142a491d","name":"Extensions","type":"folder"}},"urlObject":{"protocol":"http","path":["api","v2","extensions","{{extension-id}}","voicemail_records"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a5fdabc9-04e7-4f73-a7ca-bfdc463b66b8","name":"200 - Voicemail Recordings","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/extensions/{{extension-id}}/voicemail_records"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Aug 2019 20:48:20 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"421"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"INBOX\": {\n            \"date\": \"1565987730\",\n            \"clid\": \"Demo<1519>\",\n            \"priority\": \"2\",\n            \"vmorig\": \"2000\",\n            \"duration\": \"9\",\n            \"recfile\": \"/static/43b4298b09648469/voicemail/2000/INBOX/msg0000.wav\",\n            \"filename\": \"msg0000.txt\"\n        },\n        \"Old\": {\n            \"date\": \"1513443087\",\n            \"clid\": \"X-Lite<7502>\",\n            \"priority\": \"2\",\n            \"vmorig\": \"2000\",\n            \"duration\": \"8\",\n            \"recfile\": \"/static/43b4298b09648469/voicemail/2000/Old/msg0000.wav\",\n            \"filename\": \"msg0000.txt\"\n        }\n    }\n}"}],"_postman_id":"9579ae2e-723b-43e5-9569-57a60e5acd61"}],"id":"d105b2e0-152c-89d3-584e-e41e142a491d","description":"<p>The current collection shows all the methods available to get or put extensions information.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"11ddbe6c-d244-44e4-bf72-2ccb41d6ada9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b1b328cb-9e76-4a0f-878b-2330ca9770ac","type":"text/javascript","exec":[""]}}],"_postman_id":"d105b2e0-152c-89d3-584e-e41e142a491d"},{"name":"Voicemail","item":[{"name":"/voicemail/{extension}/{folder}/{message}","id":"87164045-0efa-40d7-a395-0ffbeffb6a8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/voicemail/2000/old/msg0002.txt","description":"<p>Delete an extension's voicemail recording from an specific folder</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","voicemail","2000","old","msg0002.txt"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"1f3d7342-349e-45ca-9eaf-666f2e0da841","name":"200 - Voicemail Deleted","originalRequest":{"method":"DELETE","header":[{"key":"app-key","type":"text","value":"{{api-key}}"},{"key":"tenant","type":"text","value":"{{tenant}}"}],"url":"http://{{host}}/api/v2/voicemail/2000/old/msg0002.txt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 03 Dec 2019 14:48:31 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"474"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"Old\": [\n            {\n                \"date\": \"1572966035\",\n                \"clid\": \"Person 01<2001>\",\n                \"priority\": \"2\",\n                \"vmorig\": \"2000\",\n                \"duration\": \"14\",\n                \"recfile\": \"/static/43b4298b09648469/voicemail/vitalpbx-voicemail/2000/Old/msg4372.wav\",\n                \"filename\": \"msg4372.txt\"\n            },\n            {\n                \"date\": \"1516919532\",\n                \"clid\": \"X-Lite<7502>\",\n                \"priority\": \"2\",\n                \"vmorig\": \"2000\",\n                \"duration\": \"8\",\n                \"recfile\": \"/static/43b4298b09648469/voicemail/vitalpbx-voicemail/2000/Old/msg0001.wav\",\n                \"filename\": \"msg0001.txt\"\n            }\n        ]\n    }\n}"}],"_postman_id":"87164045-0efa-40d7-a395-0ffbeffb6a8c"},{"name":"/voicemail/{extension}/{folder}/{message}","id":"b3f7f468-3dad-4058-8d3c-e929e3c1be7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"LISTENED","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/voicemail/2000/inbox/msg0000.txt","description":"<p>Allow updating message status from New to Listened (OLD). The parameters are: extension, the folder (inbox or urgent), and the message (msg0000.txt)</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","voicemail","2000","inbox","msg0000.txt"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"34591ec5-7237-49a5-92be-e365a32e399a","name":"400 - Invalid Extension","originalRequest":{"method":"LISTENED","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/voicemail/4000/inbox/msg0000.txt"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 23:16:43 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"79"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"The extension 4000 doesn't exists\",\n    \"data\": []\n}"},{"id":"9e0beb97-1352-4f90-b6d5-306b5fda0aec","name":"501 - Invalid API Request","originalRequest":{"method":"LISTENED","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/voicemail/2000/inbox/msg00002.txt"},"status":"Not Implemented","code":501,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 23:17:14 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"48"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Invalid Operation\"\n}"},{"id":"cb691507-476a-4f08-af6b-2759fc903e7c","name":"200 - Voicemail Moved","originalRequest":{"method":"LISTENED","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/voicemail/2000/inbox/msg0000.txt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 23:14:48 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"686"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"Old\": [\n            {\n                \"date\": \"1572966035\",\n                \"clid\": \"Person 01<2001>\",\n                \"priority\": \"2\",\n                \"vmorig\": \"2000\",\n                \"duration\": \"14\",\n                \"recfile\": \"/static/43b4298b09648469/voicemail/vitalpbx-voicemail/2000/Old/msg4372.wav\",\n                \"filename\": \"msg4372.txt\"\n            },\n            {\n                \"date\": \"1568218492\",\n                \"clid\": \"Person 01<2001>\",\n                \"priority\": \"2\",\n                \"vmorig\": \"2000\",\n                \"duration\": \"6\",\n                \"recfile\": \"/static/43b4298b09648469/voicemail/vitalpbx-voicemail/2000/Old/msg0002.wav\",\n                \"filename\": \"msg0002.txt\"\n            },\n            {\n                \"date\": \"1516919532\",\n                \"clid\": \"X-Lite<7502>\",\n                \"priority\": \"2\",\n                \"vmorig\": \"2000\",\n                \"duration\": \"8\",\n                \"recfile\": \"/static/43b4298b09648469/voicemail/vitalpbx-voicemail/2000/Old/msg0001.wav\",\n                \"filename\": \"msg0001.txt\"\n            }\n        ]\n    }\n}"}],"_postman_id":"b3f7f468-3dad-4058-8d3c-e929e3c1be7c"}],"id":"4e5cefbd-e758-4549-be3f-acdfae43da46","description":"<p>Actions to retrieve or delete voicemail of an specific extension</p>\n","_postman_id":"4e5cefbd-e758-4549-be3f-acdfae43da46","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Queues","item":[{"name":"/queues","id":"bd48c618-fc14-4029-857e-a3ff8572b64d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","description":"<p>Application key to authenticate requests</p>\n","type":"text"},{"key":"tenant","value":"{{tenant}}","description":"<p>Filter by tenant</p>\n","type":"text"}],"url":"http://{{host}}/api/v2/queues","description":"<p>Retrive all queues by tenant</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"92ff8b90-d79b-4377-bf0c-6bfa354e5f5d","name":"200 - Queues","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","description":"Application key to authenticate requests","type":"text"},{"key":"tenant","value":"{{tenant}}","description":"Filter by tenant","type":"text"}],"url":"http://{{host}}/api/v2/queues"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Nov 2019 20:43:28 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"3601"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"queue_id\": 1,\n            \"extension\": 500,\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": null,\n            \"queue_callback_id\": 1,\n            \"cron_profile_id\": 1,\n            \"description\": \"Support Calls\",\n            \"prefix\": \"Support:\",\n            \"destination_id\": 9,\n            \"hangup_destination_id\": null,\n            \"strategy\": \"random\",\n            \"music_group_id\": null,\n            \"weight\": null,\n            \"autofill\": true,\n            \"maxlen\": 0,\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": 1,\n            \"join_announcement_id\": null,\n            \"record\": true,\n            \"servicelevel\": 10,\n            \"wrapuptime\": 0,\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": \"10\",\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": false,\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": true,\n            \"announce_holdtime\": false,\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": false,\n            \"memberdelay\": null,\n            \"timeoutrestart\": false,\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": 10,\n            \"queue_timeout\": null,\n            \"leavewhenempty\": \"no\",\n            \"retry\": 5,\n            \"tenant_id\": 1,\n            \"name\": \"Q500\",\n            \"answered_elsewhere\": true,\n            \"agents_context\": \"queue-call-to-agents\",\n            \"members\": [\n                {\n                    \"extension\": \"2001\",\n                    \"interface\": \"Local/2001@queue-call-to-agents/n\",\n                    \"extension_id\": 243,\n                    \"penalty\": 0,\n                    \"diversions\": true,\n                    \"type\": \"dynamic\"\n                },\n                {\n                    \"extension\": \"2002\",\n                    \"interface\": \"Local/2002@queue-call-to-agents/n\",\n                    \"extension_id\": 244,\n                    \"penalty\": 0,\n                    \"diversions\": false,\n                    \"type\": \"dynamic\"\n                }\n            ]\n        },\n        {\n            \"queue_id\": 2,\n            \"extension\": 501,\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": 1,\n            \"queue_callback_id\": null,\n            \"cron_profile_id\": null,\n            \"description\": \"Sales\",\n            \"prefix\": null,\n            \"destination_id\": 10,\n            \"hangup_destination_id\": null,\n            \"strategy\": \"ringall\",\n            \"music_group_id\": null,\n            \"weight\": null,\n            \"autofill\": true,\n            \"maxlen\": 0,\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": 1,\n            \"join_announcement_id\": null,\n            \"record\": true,\n            \"servicelevel\": 20,\n            \"wrapuptime\": 0,\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": null,\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": false,\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": false,\n            \"announce_holdtime\": false,\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": false,\n            \"memberdelay\": null,\n            \"timeoutrestart\": false,\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": 15,\n            \"queue_timeout\": 10,\n            \"leavewhenempty\": \"no\",\n            \"retry\": 5,\n            \"tenant_id\": 1,\n            \"name\": \"Q501\",\n            \"answered_elsewhere\": false,\n            \"agents_context\": \"queue-call-to-agents\",\n            \"members\": [\n                {\n                    \"extension\": \"2001\",\n                    \"interface\": \"Local/2001@queue-call-to-agents/n\",\n                    \"extension_id\": 243,\n                    \"penalty\": 0,\n                    \"diversions\": false,\n                    \"type\": \"dynamic\"\n                }\n            ]\n        },\n        {\n            \"queue_id\": 4,\n            \"extension\": 504,\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": null,\n            \"queue_callback_id\": null,\n            \"cron_profile_id\": 1,\n            \"description\": \"Support Calls 2\",\n            \"prefix\": null,\n            \"destination_id\": 12,\n            \"hangup_destination_id\": null,\n            \"strategy\": \"ringall\",\n            \"music_group_id\": 1,\n            \"weight\": null,\n            \"autofill\": false,\n            \"maxlen\": 0,\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": 1,\n            \"join_announcement_id\": null,\n            \"record\": true,\n            \"servicelevel\": null,\n            \"wrapuptime\": 0,\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": null,\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": false,\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": false,\n            \"announce_holdtime\": false,\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": false,\n            \"memberdelay\": null,\n            \"timeoutrestart\": false,\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": 15,\n            \"queue_timeout\": 10,\n            \"leavewhenempty\": \"no\",\n            \"retry\": 5,\n            \"tenant_id\": 1,\n            \"name\": \"Q504\",\n            \"answered_elsewhere\": false,\n            \"agents_context\": \"queue-call-to-agents\",\n            \"members\": [\n                {\n                    \"extension\": \"2000\",\n                    \"interface\": \"Local/2000@queue-call-to-agents/n\",\n                    \"extension_id\": 63,\n                    \"penalty\": 0,\n                    \"diversions\": false,\n                    \"type\": \"dynamic\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"d38a1e3c-7613-4914-818b-056814e1f0d7","name":"/queues","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","description":"Application key to authenticate requests","type":"text"},{"key":"tenant","value":"{{tenant}}","description":"Filter by tenant","type":"text"}],"url":"http://{{host}}/api/v2/queues"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Oct 2019 23:57:17 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"3627"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"queue_id\": 1,\n            \"extension\": 500,\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": null,\n            \"queue_callback_id\": 1,\n            \"cron_profile_id\": 1,\n            \"description\": \"Support Calls\",\n            \"prefix\": \"Support:\",\n            \"destination_id\": 9,\n            \"hangup_destination_id\": null,\n            \"strategy\": \"random\",\n            \"music_group_id\": null,\n            \"weight\": null,\n            \"autofill\": true,\n            \"maxlen\": 0,\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": 1,\n            \"join_announcement_id\": null,\n            \"record\": true,\n            \"servicelevel\": 10,\n            \"wrapuptime\": 0,\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": \"10\",\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": false,\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": true,\n            \"announce_holdtime\": false,\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": false,\n            \"memberdelay\": null,\n            \"timeoutrestart\": false,\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": 10,\n            \"queue_timeout\": 30,\n            \"leavewhenempty\": \"no\",\n            \"retry\": 5,\n            \"tenant_id\": 1,\n            \"name\": \"Q500\",\n            \"answered_elsewhere\": true,\n            \"agents_context\": \"queue-call-to-agents\",\n            \"members\": [\n                {\n                    \"queue_member_id\": \"93\",\n                    \"queue_id\": \"1\",\n                    \"extension_id\": \"243\",\n                    \"penalty\": \"0\",\n                    \"diversions\": \"no\",\n                    \"type\": \"dynamic\",\n                    \"extension\": \"2001\",\n                    \"name\": \"Person 01\"\n                },\n                {\n                    \"queue_member_id\": \"95\",\n                    \"queue_id\": \"1\",\n                    \"extension_id\": \"244\",\n                    \"penalty\": \"0\",\n                    \"diversions\": \"no\",\n                    \"type\": \"dynamic\",\n                    \"extension\": \"2002\",\n                    \"name\": \"Person 02\"\n                }\n            ]\n        },\n        {\n            \"queue_id\": 2,\n            \"extension\": 501,\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": 1,\n            \"queue_callback_id\": null,\n            \"cron_profile_id\": null,\n            \"description\": \"Sales\",\n            \"prefix\": null,\n            \"destination_id\": 10,\n            \"hangup_destination_id\": null,\n            \"strategy\": \"ringall\",\n            \"music_group_id\": null,\n            \"weight\": null,\n            \"autofill\": true,\n            \"maxlen\": 0,\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": 1,\n            \"join_announcement_id\": null,\n            \"record\": true,\n            \"servicelevel\": 20,\n            \"wrapuptime\": 0,\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": null,\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": false,\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": false,\n            \"announce_holdtime\": false,\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": false,\n            \"memberdelay\": null,\n            \"timeoutrestart\": false,\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": 15,\n            \"queue_timeout\": 10,\n            \"leavewhenempty\": \"no\",\n            \"retry\": 5,\n            \"tenant_id\": 1,\n            \"name\": \"Q501\",\n            \"answered_elsewhere\": false,\n            \"agents_context\": \"queue-call-to-agents\",\n            \"members\": [\n                {\n                    \"queue_member_id\": \"89\",\n                    \"queue_id\": \"2\",\n                    \"extension_id\": \"243\",\n                    \"penalty\": \"0\",\n                    \"diversions\": \"no\",\n                    \"type\": \"dynamic\",\n                    \"extension\": \"2001\",\n                    \"name\": \"Person 01\"\n                }\n            ]\n        },\n        {\n            \"queue_id\": 4,\n            \"extension\": 504,\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": null,\n            \"queue_callback_id\": null,\n            \"cron_profile_id\": 1,\n            \"description\": \"Support Calls 2\",\n            \"prefix\": null,\n            \"destination_id\": 12,\n            \"hangup_destination_id\": null,\n            \"strategy\": \"ringall\",\n            \"music_group_id\": 1,\n            \"weight\": null,\n            \"autofill\": false,\n            \"maxlen\": 0,\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": 1,\n            \"join_announcement_id\": null,\n            \"record\": true,\n            \"servicelevel\": null,\n            \"wrapuptime\": 0,\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": null,\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": false,\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": false,\n            \"announce_holdtime\": false,\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": false,\n            \"memberdelay\": null,\n            \"timeoutrestart\": false,\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": 15,\n            \"queue_timeout\": 10,\n            \"leavewhenempty\": \"no\",\n            \"retry\": 5,\n            \"tenant_id\": 1,\n            \"name\": \"Q504\",\n            \"answered_elsewhere\": false,\n            \"agents_context\": \"queue-call-to-agents\",\n            \"members\": [\n                {\n                    \"queue_member_id\": \"94\",\n                    \"queue_id\": \"4\",\n                    \"extension_id\": \"63\",\n                    \"penalty\": \"0\",\n                    \"diversions\": \"no\",\n                    \"type\": \"dynamic\",\n                    \"extension\": \"2000\",\n                    \"name\": \"Jose Rivera\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"bd48c618-fc14-4029-857e-a3ff8572b64d"},{"name":"/queues/inbound","id":"2ee3428a-aa75-4261-89ef-336ce5c93edb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/queues/inbound","description":"<p>It returns the list of queues flagged as inbound.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues","inbound"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"71e68f9b-ba2c-450f-b29a-f5e5a6168655","name":"200 - Inbound Queues","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/queues/inbound"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 24 Nov 2021 17:33:05 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"6158"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"queue_id\": \"2\",\n            \"extension\": \"500\",\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": null,\n            \"queue_callback_id\": \"1\",\n            \"cron_profile_id\": null,\n            \"description\": \"Common Customers\",\n            \"prefix\": null,\n            \"direction\": \"inbound\",\n            \"dial_mode\": null,\n            \"destination_id\": \"298\",\n            \"hangup_destination_id\": null,\n            \"strategy\": \"rrordered\",\n            \"music_group_id\": \"1\",\n            \"weight\": \"10\",\n            \"autofill\": \"yes\",\n            \"maxlen\": \"0\",\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": \"1\",\n            \"join_announcement_id\": null,\n            \"record\": \"no\",\n            \"servicelevel\": \"40\",\n            \"wrapuptime\": \"0\",\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": \"10\",\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": \"no\",\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": \"no\",\n            \"announce_holdtime\": \"no\",\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": \"no\",\n            \"memberdelay\": null,\n            \"timeoutrestart\": \"no\",\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": \"15\",\n            \"queue_timeout\": \"0\",\n            \"leavewhenempty\": \"no\",\n            \"retry\": \"5\",\n            \"tenant_id\": \"1\",\n            \"name\": \"Q500\",\n            \"answered_elsewhere\": \"no\",\n            \"agents_context\": \"queue-call-to-agents\",\n            \"alertinfo\": null,\n            \"answerchannel\": \"yes\",\n            \"members\": [\n                {\n                    \"member_id\": 29,\n                    \"extension\": \"101\",\n                    \"interface\": \"Local/101@queue-call-to-agents/n\",\n                    \"extension_id\": 288,\n                    \"penalty\": 0,\n                    \"diversions\": true,\n                    \"type\": \"dynamic\",\n                    \"name\": \"MicroSIP\"\n                },\n                {\n                    \"member_id\": 39,\n                    \"extension\": \"104\",\n                    \"interface\": \"Local/104@queue-call-to-agents/n\",\n                    \"extension_id\": 6374,\n                    \"penalty\": 0,\n                    \"diversions\": true,\n                    \"type\": \"dynamic\",\n                    \"name\": \"Bulk Test 104\"\n                }\n            ]\n        },\n        {\n            \"queue_id\": \"3\",\n            \"extension\": \"501\",\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": null,\n            \"queue_callback_id\": null,\n            \"cron_profile_id\": null,\n            \"description\": \"Premium Customers\",\n            \"prefix\": null,\n            \"direction\": \"inbound\",\n            \"dial_mode\": null,\n            \"destination_id\": \"299\",\n            \"hangup_destination_id\": null,\n            \"strategy\": \"rrordered\",\n            \"music_group_id\": \"1\",\n            \"weight\": \"20\",\n            \"autofill\": \"yes\",\n            \"maxlen\": \"0\",\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": \"1\",\n            \"join_announcement_id\": null,\n            \"record\": \"no\",\n            \"servicelevel\": null,\n            \"wrapuptime\": \"0\",\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": null,\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": \"no\",\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": \"no\",\n            \"announce_holdtime\": \"no\",\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": \"no\",\n            \"memberdelay\": null,\n            \"timeoutrestart\": \"no\",\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": \"15\",\n            \"queue_timeout\": \"15\",\n            \"leavewhenempty\": \"no\",\n            \"retry\": \"5\",\n            \"tenant_id\": \"1\",\n            \"name\": \"Q501\",\n            \"answered_elsewhere\": \"no\",\n            \"agents_context\": \"queue-call-to-agents\",\n            \"alertinfo\": null,\n            \"answerchannel\": \"yes\",\n            \"members\": [\n                {\n                    \"member_id\": 8,\n                    \"extension\": \"101\",\n                    \"interface\": \"Local/101@queue-call-to-agents/n\",\n                    \"extension_id\": 288,\n                    \"penalty\": 0,\n                    \"diversions\": false,\n                    \"type\": \"dynamic\",\n                    \"name\": \"MicroSIP\"\n                }\n            ]\n        },\n        {\n            \"queue_id\": \"4\",\n            \"extension\": \"502\",\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": null,\n            \"queue_callback_id\": null,\n            \"cron_profile_id\": null,\n            \"description\": \"Provider\",\n            \"prefix\": null,\n            \"direction\": \"inbound\",\n            \"dial_mode\": null,\n            \"destination_id\": \"312\",\n            \"hangup_destination_id\": \"313\",\n            \"strategy\": \"ringall\",\n            \"music_group_id\": \"1\",\n            \"weight\": null,\n            \"autofill\": \"yes\",\n            \"maxlen\": \"0\",\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": \"1\",\n            \"join_announcement_id\": null,\n            \"record\": \"no\",\n            \"servicelevel\": null,\n            \"wrapuptime\": \"0\",\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": null,\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": \"no\",\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": \"no\",\n            \"announce_holdtime\": \"no\",\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": \"no\",\n            \"memberdelay\": null,\n            \"timeoutrestart\": \"no\",\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": \"15\",\n            \"queue_timeout\": \"30\",\n            \"leavewhenempty\": \"no\",\n            \"retry\": \"5\",\n            \"tenant_id\": \"1\",\n            \"name\": \"Q502\",\n            \"answered_elsewhere\": \"no\",\n            \"agents_context\": \"queue-call-to-agents\",\n            \"alertinfo\": null,\n            \"answerchannel\": \"yes\",\n            \"members\": [\n                {\n                    \"member_id\": 19,\n                    \"extension\": \"100\",\n                    \"interface\": \"Local/100@queue-call-to-agents/n\",\n                    \"extension_id\": 287,\n                    \"penalty\": 0,\n                    \"diversions\": false,\n                    \"type\": \"dynamic\",\n                    \"name\": \"Jose Rivera\"\n                },\n                {\n                    \"member_id\": 22,\n                    \"extension\": \"101\",\n                    \"interface\": \"Local/101@queue-call-to-agents/n\",\n                    \"extension_id\": 288,\n                    \"penalty\": 0,\n                    \"diversions\": false,\n                    \"type\": \"dynamic\",\n                    \"name\": \"MicroSIP\"\n                },\n                {\n                    \"member_id\": 25,\n                    \"extension\": \"2503\",\n                    \"interface\": \"Local/2503@queue-call-to-agents/n\",\n                    \"extension_id\": 6382,\n                    \"penalty\": 0,\n                    \"diversions\": false,\n                    \"type\": \"static\",\n                    \"name\": \"Mark\"\n                },\n                {\n                    \"member_id\": 28,\n                    \"extension\": \"2504\",\n                    \"interface\": \"Local/2504@queue-call-to-agents/n\",\n                    \"extension_id\": 6383,\n                    \"penalty\": 0,\n                    \"diversions\": false,\n                    \"type\": \"static\",\n                    \"name\": \"Steve\"\n                },\n                {\n                    \"member_id\": 31,\n                    \"extension\": \"2505\",\n                    \"interface\": \"Local/2505@queue-call-to-agents/n\",\n                    \"extension_id\": 6384,\n                    \"penalty\": 0,\n                    \"diversions\": false,\n                    \"type\": \"static\",\n                    \"name\": \"Bill\"\n                }\n            ]\n        },\n        {\n            \"queue_id\": \"9\",\n            \"extension\": \"510\",\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": null,\n            \"queue_callback_id\": null,\n            \"cron_profile_id\": null,\n            \"description\": \"VitalPBX Partners\",\n            \"prefix\": null,\n            \"direction\": \"inbound\",\n            \"dial_mode\": null,\n            \"destination_id\": \"424\",\n            \"hangup_destination_id\": null,\n            \"strategy\": \"rrordered\",\n            \"music_group_id\": \"1\",\n            \"weight\": \"0\",\n            \"autofill\": \"yes\",\n            \"maxlen\": \"0\",\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": \"1\",\n            \"join_announcement_id\": null,\n            \"record\": \"no\",\n            \"servicelevel\": \"30\",\n            \"wrapuptime\": \"0\",\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": \"15\",\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": \"no\",\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": \"no\",\n            \"announce_holdtime\": \"no\",\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": \"no\",\n            \"memberdelay\": null,\n            \"timeoutrestart\": \"no\",\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": \"15\",\n            \"queue_timeout\": \"300\",\n            \"leavewhenempty\": \"no\",\n            \"retry\": \"5\",\n            \"tenant_id\": \"1\",\n            \"name\": \"Q510\",\n            \"answered_elsewhere\": \"no\",\n            \"agents_context\": \"queue-call-to-agents\",\n            \"alertinfo\": null,\n            \"answerchannel\": \"yes\",\n            \"members\": [\n                {\n                    \"member_id\": 41,\n                    \"extension\": \"101\",\n                    \"interface\": \"Local/101@queue-call-to-agents/n\",\n                    \"extension_id\": 288,\n                    \"penalty\": 0,\n                    \"diversions\": true,\n                    \"type\": \"dynamic\",\n                    \"name\": \"MicroSIP\"\n                },\n                {\n                    \"member_id\": 42,\n                    \"extension\": \"104\",\n                    \"interface\": \"Local/104@queue-call-to-agents/n\",\n                    \"extension_id\": 6374,\n                    \"penalty\": 0,\n                    \"diversions\": true,\n                    \"type\": \"dynamic\",\n                    \"name\": \"Bulk Test 104\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"2ee3428a-aa75-4261-89ef-336ce5c93edb"},{"name":"/queues/outbound","id":"2d94e5d2-ee2f-40e0-8371-1c45d7b2955b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/queues/outbound","description":"<p>It returns the list of queues flagged as outbound.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues","outbound"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d6ce701b-9eaf-4a6a-90f2-1ce4c6135ab7","name":"200 - Outbound Queues","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/queues/outbound"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 24 Nov 2021 17:34:11 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"1505"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"queue_id\": \"10\",\n            \"extension\": \"520\",\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": null,\n            \"queue_callback_id\": null,\n            \"cron_profile_id\": null,\n            \"description\": \"Portafolio Recovery\",\n            \"prefix\": null,\n            \"direction\": \"outbound\",\n            \"dial_mode\": \"progressive\",\n            \"destination_id\": \"425\",\n            \"hangup_destination_id\": null,\n            \"strategy\": \"rrordered\",\n            \"music_group_id\": \"1\",\n            \"weight\": \"0\",\n            \"autofill\": \"yes\",\n            \"maxlen\": \"0\",\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": \"1\",\n            \"join_announcement_id\": null,\n            \"record\": \"no\",\n            \"servicelevel\": \"30\",\n            \"wrapuptime\": \"0\",\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": \"15\",\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": \"no\",\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": \"no\",\n            \"announce_holdtime\": \"no\",\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": \"no\",\n            \"memberdelay\": null,\n            \"timeoutrestart\": \"no\",\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": \"15\",\n            \"queue_timeout\": \"0\",\n            \"leavewhenempty\": \"no\",\n            \"retry\": \"5\",\n            \"tenant_id\": \"1\",\n            \"name\": \"Q520\",\n            \"answered_elsewhere\": \"no\",\n            \"agents_context\": \"queue-call-to-agents\",\n            \"alertinfo\": null,\n            \"answerchannel\": \"yes\",\n            \"members\": [\n                {\n                    \"member_id\": 43,\n                    \"extension\": \"101\",\n                    \"interface\": \"Local/101@queue-call-to-agents/n\",\n                    \"extension_id\": 288,\n                    \"penalty\": 0,\n                    \"diversions\": true,\n                    \"type\": \"dynamic\",\n                    \"name\": \"MicroSIP\"\n                },\n                {\n                    \"member_id\": 44,\n                    \"extension\": \"104\",\n                    \"interface\": \"Local/104@queue-call-to-agents/n\",\n                    \"extension_id\": 6374,\n                    \"penalty\": 0,\n                    \"diversions\": true,\n                    \"type\": \"dynamic\",\n                    \"name\": \"Bulk Test 104\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"2d94e5d2-ee2f-40e0-8371-1c45d7b2955b"},{"name":"/queues/{id}","id":"515be231-8aba-42b6-a4e4-bf66acf6000f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","description":"<p>Application key to authenticate requests</p>\n","type":"text"},{"key":"tenant","value":"{{tenant}}","description":"<p>Filter request by tenant</p>\n","type":"text"}],"url":"http://{{host}}/api/v2/queues/{{queue-id}}","description":"<p>Get specific queue info</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues","{{queue-id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"7940f1bd-8003-4991-a53a-005a3f88a3e4","name":"200 - Queue retrieved","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","description":"Application key to authenticate requests","type":"text"},{"key":"tenant","value":"{{tenant}}","description":"Filter request by tenant","type":"text"}],"url":"http://{{host}}/api/v2/queues/{{queue-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Nov 2019 21:04:27 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"1176"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"queue_id\": 2,\n        \"extension\": 501,\n        \"queue_vip_list_id\": null,\n        \"ivr_id\": 1,\n        \"queue_callback_id\": null,\n        \"cron_profile_id\": null,\n        \"description\": \"Sales\",\n        \"prefix\": null,\n        \"destination_id\": 10,\n        \"hangup_destination_id\": null,\n        \"strategy\": \"ringall\",\n        \"music_group_id\": null,\n        \"weight\": null,\n        \"autofill\": true,\n        \"maxlen\": 0,\n        \"announcement_id\": null,\n        \"periodic_announcement_id\": 1,\n        \"join_announcement_id\": null,\n        \"record\": true,\n        \"servicelevel\": 20,\n        \"wrapuptime\": 0,\n        \"announce_frequency\": null,\n        \"min_announce_frequency\": null,\n        \"periodic_announce_frequency\": null,\n        \"announce_round_seconds\": \"0\",\n        \"announce_to_first_user\": false,\n        \"announce_position\": \"no\",\n        \"announce_position_limit\": null,\n        \"relative_periodic_announce\": false,\n        \"announce_holdtime\": false,\n        \"penaltymemberslimit\": null,\n        \"autopause\": \"no\",\n        \"ringinuse\": false,\n        \"memberdelay\": null,\n        \"timeoutrestart\": false,\n        \"joinempty\": \"yes\",\n        \"timeoutpriority\": \"app\",\n        \"timeout\": 15,\n        \"queue_timeout\": 10,\n        \"leavewhenempty\": \"no\",\n        \"retry\": 5,\n        \"tenant_id\": 1,\n        \"name\": \"Q501\",\n        \"answered_elsewhere\": false,\n        \"agents_context\": \"queue-call-to-agents\",\n        \"members\": [\n            {\n                \"extension\": \"2001\",\n                \"interface\": \"Local/2001@queue-call-to-agents/n\",\n                \"extension_id\": 243,\n                \"penalty\": 0,\n                \"diversions\": false,\n                \"type\": \"dynamic\"\n            }\n        ]\n    }\n}"},{"id":"bc5279c4-b021-464c-88e7-38ec001c1ac9","name":"Queue not found","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","description":"Application key to authenticate requests","type":"text"},{"key":"tenant","value":"{{tenant}}","description":"Filter request by tenant","type":"text"}],"url":"http://{{host}}/api/v2/queues/200"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 29 Nov 2019 21:05:05 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"79"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested queue doesn't exists\",\n    \"data\": []\n}"},{"id":"d5cab580-9a2d-4d20-9021-c6fd6debab8e","name":"/queues/{id}","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","description":"Application key to authenticate requests","type":"text"},{"key":"tenant","value":"{{tenant}}","description":"Filter request by tenant","type":"text"}],"url":"http://{{host}}/api/v2/queues/{{queue-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Oct 2019 23:57:39 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"1171"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"queue_id\": 2,\n        \"extension\": 501,\n        \"queue_vip_list_id\": null,\n        \"ivr_id\": 1,\n        \"queue_callback_id\": null,\n        \"cron_profile_id\": null,\n        \"description\": \"Sales\",\n        \"prefix\": null,\n        \"destination_id\": 10,\n        \"hangup_destination_id\": null,\n        \"strategy\": \"ringall\",\n        \"music_group_id\": null,\n        \"weight\": null,\n        \"autofill\": true,\n        \"maxlen\": 0,\n        \"announcement_id\": null,\n        \"periodic_announcement_id\": 1,\n        \"join_announcement_id\": null,\n        \"record\": true,\n        \"servicelevel\": 20,\n        \"wrapuptime\": 0,\n        \"announce_frequency\": null,\n        \"min_announce_frequency\": null,\n        \"periodic_announce_frequency\": null,\n        \"announce_round_seconds\": \"0\",\n        \"announce_to_first_user\": false,\n        \"announce_position\": \"no\",\n        \"announce_position_limit\": null,\n        \"relative_periodic_announce\": false,\n        \"announce_holdtime\": false,\n        \"penaltymemberslimit\": null,\n        \"autopause\": \"no\",\n        \"ringinuse\": false,\n        \"memberdelay\": null,\n        \"timeoutrestart\": false,\n        \"joinempty\": \"yes\",\n        \"timeoutpriority\": \"app\",\n        \"timeout\": 15,\n        \"queue_timeout\": 10,\n        \"leavewhenempty\": \"no\",\n        \"retry\": 5,\n        \"tenant_id\": 1,\n        \"name\": \"Q501\",\n        \"answered_elsewhere\": false,\n        \"agents_context\": \"queue-call-to-agents\",\n        \"members\": [\n            {\n                \"queue_member_id\": \"89\",\n                \"queue_id\": \"2\",\n                \"extension_id\": \"243\",\n                \"penalty\": \"0\",\n                \"diversions\": \"no\",\n                \"type\": \"dynamic\",\n                \"extension\": \"2001\",\n                \"name\": \"Person 01\"\n            }\n        ]\n    }\n}"}],"_postman_id":"515be231-8aba-42b6-a4e4-bf66acf6000f"},{"name":"/queues","id":"c412f919-1829-493a-94be-84301d3abc1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"extension\": 510,\r\n  \"queue_vip_list_id\": null,\r\n  \"ivr_id\": null,\r\n  \"queue_callback_id\": null,\r\n  \"cron_profile_id\": null,\r\n  \"description\": \"Partners\",\r\n  \"prefix\": null,\r\n  \"direction\": \"inbound\",\r\n  \"dial_mode\": null,\r\n  \"strategy\": \"rrordered\",\r\n  \"music_group_id\": 1,\r\n  \"weight\": 0,\r\n  \"autofill\": true,\r\n  \"maxlen\": 0,\r\n  \"announcement_id\": null,\r\n  \"periodic_announcement_id\": 1,\r\n  \"join_announcement_id\": null,\r\n  \"record\": false,\r\n  \"servicelevel\": 30,\r\n  \"wrapuptime\": 0,\r\n  \"announce_frequency\": null,\r\n  \"min_announce_frequency\": null,\r\n  \"periodic_announce_frequency\": 15,\r\n  \"announce_round_seconds\": 0,\r\n  \"announce_to_first_user\": false,\r\n  \"announce_position\": \"no\",\r\n  \"announce_position_limit\": null,\r\n  \"relative_periodic_announce\": false,\r\n  \"announce_holdtime\": false,\r\n  \"penaltymemberslimit\": null,\r\n  \"autopause\": \"no\",\r\n  \"ringinuse\": false,\r\n  \"ring_unavailable\": false,\r\n  \"memberdelay\": null,\r\n  \"timeoutrestart\": false,\r\n  \"joinempty\": \"yes\",\r\n  \"timeoutpriority\": \"app\",\r\n  \"timeout\": 15,\r\n  \"queue_timeout\": 0,\r\n  \"leavewhenempty\": \"no\",\r\n  \"retry\": 5,\r\n  \"answered_elsewhere\": false,\r\n  \"alertinfo\": null,\r\n  \"answerchannel\": true,\r\n  \"members\": [\r\n    {\r\n      \"extension_id\": 288,\r\n      \"penalty\": 0,\r\n      \"diversions\": true,\r\n      \"type\": \"dynamic\"\r\n    },\r\n    {\r\n      \"extension_id\": 6374,\r\n      \"penalty\": 0,\r\n      \"diversions\": true,\r\n      \"type\": \"dynamic\"\r\n    }\r\n  ],\r\n  \"final_destination\": {\r\n    \"cetegory_id\": 24,\r\n    \"destination_id\": 1\r\n  },\r\n  \"after_hangup_destination\": {\r\n    \"cetegory_id\": null,\r\n    \"destination_id\": null\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/queues","description":"<p>This endpoint allows you to create queues with all the required parameters. There are some missed endpoints required for some fields(Announcements, Music on Hold, etc.). Nonetheless, the current implementation allows you to create functional queues.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Option Name</th>\n<th>Type</th>\n<th>Default Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>extension</strong></td>\n<td>String</td>\n<td></td>\n<td>Extension number to reach the queue.</td>\n</tr>\n<tr>\n<td><strong>description</strong></td>\n<td>String</td>\n<td></td>\n<td>Short description to identify the queue.</td>\n</tr>\n<tr>\n<td><strong>prefix</strong></td>\n<td>String</td>\n<td></td>\n<td>Prefix to append to calls in a queue. It typically indicates to the agents from which queue the call comes.</td>\n</tr>\n<tr>\n<td><strong>direction</strong></td>\n<td>String</td>\n<td>inbound</td>\n<td>It defines the type of call direction for a queue. This parameter is only available through API, and its possible values are \"<strong>inbound</strong>\" and \"<strong>outbound</strong>.\"</td>\n</tr>\n<tr>\n<td><strong>dial_mode</strong></td>\n<td>String</td>\n<td></td>\n<td>It defines the mode for outbound dialing. This parameter is only available through API and specially created for the Dialer module.</td>\n</tr>\n<tr>\n<td><strong>strategy</strong></td>\n<td>String</td>\n<td>rrordered</td>\n<td>It defines the ring strategy to dial the members of a queue. Possible values are: fewestcalls, leastrecent, linear, random, ringall, rrmemory, rrordered, wrandom. More info about the meaning of each parameter in <a href=\"https://github.com/asterisk/asterisk/blob/master/configs/samples/queues.conf.sample#L82\">this link.</a></td>\n</tr>\n<tr>\n<td><strong>weight</strong></td>\n<td>Integer</td>\n<td>0</td>\n<td>Short description to identify the queue.</td>\n</tr>\n<tr>\n<td><strong>servicelevel</strong></td>\n<td>Integer</td>\n<td>30</td>\n<td>Used in statistics to determine the service level of the queue (calls answered within the service level time frame).</td>\n</tr>\n<tr>\n<td><strong>wrapuptime</strong></td>\n<td>Integer</td>\n<td>0</td>\n<td>The number of seconds to keep a member unavailable in a queue after completing a call.</td>\n</tr>\n<tr>\n<td><strong>joinempty</strong></td>\n<td>String</td>\n<td>yes</td>\n<td>Controls whether a caller is added to the queue when no members are available. Possible values are: loose, no, no_inuse, strict, and yes.</td>\n</tr>\n<tr>\n<td><strong>leavewhenempty</strong></td>\n<td>String</td>\n<td>no</td>\n<td>Used to control whether callers are kicked out of the queue when members are no longer available to take calls. Possible values are: loose, no, no_inuse, strict, and yes.</td>\n</tr>\n<tr>\n<td><strong>timeoutpriority</strong></td>\n<td>String</td>\n<td>app</td>\n<td>Used to control the priority of the two possible timeout options specified for a queue. Possible values are: app and conf.</td>\n</tr>\n<tr>\n<td><strong>queue_timeout</strong></td>\n<td>Integer</td>\n<td>0</td>\n<td>It will cause the queue to fail out after a specified number of seconds. Setting up this parameter to zero will disable the queue timeout.</td>\n</tr>\n<tr>\n<td><strong>timeout</strong></td>\n<td>Integer</td>\n<td>15</td>\n<td>It specifies the number of seconds to ring a member's device.</td>\n</tr>\n<tr>\n<td><strong>retry</strong></td>\n<td>Integer</td>\n<td>5</td>\n<td>It specifies the number of seconds to wait before attempting the next member in the queue if the timeout value is exhausted while attempting to ring a member of the queue</td>\n</tr>\n<tr>\n<td><strong>alertinfo</strong></td>\n<td>String</td>\n<td></td>\n<td>It allows you to define an <em>Alert</em>-<em>Info</em> Header for generating a distinctive ringtone on members' devices associated with a queue.</td>\n</tr>\n<tr>\n<td><strong>autofill</strong></td>\n<td>Boolean</td>\n<td>true</td>\n<td>The old behavior of the queue (autofill=no) is to have a serial type behavior in that the queue will make all waiting callers wait in the queue even if there is more than one available member ready to take calls until the head caller is connected with the member they were trying to get to.</td>\n</tr>\n<tr>\n<td><strong>memberdelay</strong></td>\n<td>Integer</td>\n<td></td>\n<td>Used if you want a delay prior to the caller and queue member being connected to each other.</td>\n</tr>\n<tr>\n<td><strong>autopause</strong></td>\n<td>String</td>\n<td></td>\n<td>It Enables/disables the automatic pausing of members who fail to answer a call. Possible values are: All, No, and Yes. More info about this parameter in <a href=\"https://github.com/asterisk/asterisk/blob/master/configs/samples/queues.conf.sample#L192\">this link.</a></td>\n</tr>\n<tr>\n<td><strong>ringinuse</strong></td>\n<td>Boolean</td>\n<td>false</td>\n<td>It allows defining if busy agents will receive calls when they are busy.</td>\n</tr>\n<tr>\n<td><strong>record</strong></td>\n<td>Boolean</td>\n<td>false</td>\n<td>It allows defining if calls on a queue will get recorded or not.</td>\n</tr>\n<tr>\n<td><strong>timeoutrestart</strong></td>\n<td>Boolean</td>\n<td>false</td>\n<td>Setting up this parameter to true will reset the timeout for an agent to answer if either a BUSY or CONGESTION status is received from the channel; this can be useful if the agents are allowed to reject or cancel a call.</td>\n</tr>\n<tr>\n<td><strong>answered_elsewhere</strong></td>\n<td>Boolean</td>\n<td>false</td>\n<td>Mark all calls as \"answered elsewhere\" when cancelled. This avoids a missed call on the phone if it supports it.</td>\n</tr>\n<tr>\n<td><strong>members</strong></td>\n<td>Array</td>\n<td></td>\n<td>Array with the members of a queue. The \"<em>extension_id</em>\" attribute is the only required parameter for each member.</td>\n</tr>\n<tr>\n<td><strong>final_destination</strong></td>\n<td>Object</td>\n<td></td>\n<td>The destination to execute after reaching the queue timeout. The object must contain the destination category's id and the destination's id. You can get the values for this parameter from the destinations' endpoints.</td>\n</tr>\n<tr>\n<td><strong>after_hangup_destination</strong></td>\n<td>Object</td>\n<td></td>\n<td>The destination to execute after the agent hanged up; this is useful to run a survey to rate the customer service, for instance. The object must contain the destination category's id and the destination's id. You can get the values for this parameter from the destinations' endpoints.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"9c49be5c-0be3-49ad-bbb0-e0c98c3d5dfc","name":"200 - Queue Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"extension\": 510,\r\n  \"queue_vip_list_id\": null,\r\n  \"ivr_id\": null,\r\n  \"queue_callback_id\": null,\r\n  \"cron_profile_id\": null,\r\n  \"description\": \"Partners\",\r\n  \"prefix\": null,\r\n  \"direction\": \"inbound\",\r\n  \"dial_mode\": null,\r\n  \"strategy\": \"rrordered\",\r\n  \"music_group_id\": 1,\r\n  \"weight\": 0,\r\n  \"autofill\": true,\r\n  \"maxlen\": 0,\r\n  \"announcement_id\": null,\r\n  \"periodic_announcement_id\": 1,\r\n  \"join_announcement_id\": null,\r\n  \"record\": false,\r\n  \"servicelevel\": 30,\r\n  \"wrapuptime\": 0,\r\n  \"announce_frequency\": null,\r\n  \"min_announce_frequency\": null,\r\n  \"periodic_announce_frequency\": 15,\r\n  \"announce_round_seconds\": 0,\r\n  \"announce_to_first_user\": false,\r\n  \"announce_position\": \"no\",\r\n  \"announce_position_limit\": null,\r\n  \"relative_periodic_announce\": false,\r\n  \"announce_holdtime\": false,\r\n  \"penaltymemberslimit\": null,\r\n  \"autopause\": \"no\",\r\n  \"ringinuse\": false,\r\n  \"memberdelay\": null,\r\n  \"timeoutrestart\": false,\r\n  \"joinempty\": \"yes\",\r\n  \"timeoutpriority\": \"app\",\r\n  \"timeout\": 15,\r\n  \"queue_timeout\": 0,\r\n  \"leavewhenempty\": \"no\",\r\n  \"retry\": 5,\r\n  \"answered_elsewhere\": false,\r\n  \"alertinfo\": null,\r\n  \"answerchannel\": true,\r\n  \"members\": [\r\n    {\r\n      \"extension_id\": 288,\r\n      \"penalty\": 0,\r\n      \"diversions\": true,\r\n      \"type\": \"dynamic\"\r\n    },\r\n    {\r\n      \"extension_id\": 6374,\r\n      \"penalty\": 0,\r\n      \"diversions\": true,\r\n      \"type\": \"dynamic\"\r\n    }\r\n  ],\r\n  \"final_destination\": {\r\n    \"cetegory_id\": 24,\r\n    \"destination_id\": 1\r\n  },\r\n  \"after_hangup_destination\": {\r\n    \"cetegory_id\": null,\r\n    \"destination_id\": null\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/queues"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Nov 2021 23:34:01 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"1285"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"queue_id\": 9,\n        \"extension\": 510,\n        \"queue_vip_list_id\": null,\n        \"ivr_id\": null,\n        \"queue_callback_id\": null,\n        \"cron_profile_id\": null,\n        \"description\": \"Partners\",\n        \"prefix\": null,\n        \"direction\": \"inbound\",\n        \"dial_mode\": null,\n        \"destination_id\": 423,\n        \"hangup_destination_id\": null,\n        \"strategy\": \"rrordered\",\n        \"music_group_id\": 1,\n        \"weight\": 0,\n        \"autofill\": true,\n        \"maxlen\": 0,\n        \"announcement_id\": null,\n        \"periodic_announcement_id\": 1,\n        \"join_announcement_id\": null,\n        \"record\": false,\n        \"servicelevel\": 30,\n        \"wrapuptime\": 0,\n        \"announce_frequency\": null,\n        \"min_announce_frequency\": null,\n        \"periodic_announce_frequency\": \"15\",\n        \"announce_round_seconds\": \"0\",\n        \"announce_to_first_user\": false,\n        \"announce_position\": \"no\",\n        \"announce_position_limit\": null,\n        \"relative_periodic_announce\": false,\n        \"announce_holdtime\": false,\n        \"penaltymemberslimit\": null,\n        \"autopause\": \"no\",\n        \"ringinuse\": false,\n        \"memberdelay\": null,\n        \"timeoutrestart\": false,\n        \"joinempty\": \"yes\",\n        \"timeoutpriority\": \"app\",\n        \"timeout\": 15,\n        \"queue_timeout\": 0,\n        \"leavewhenempty\": \"no\",\n        \"retry\": 5,\n        \"tenant_id\": 1,\n        \"name\": \"Q510\",\n        \"answered_elsewhere\": false,\n        \"agents_context\": \"queue-call-to-agents\",\n        \"alertinfo\": null,\n        \"answerchannel\": true,\n        \"members\": [\n            {\n                \"member_id\": 41,\n                \"extension_id\": 288,\n                \"penalty\": 0,\n                \"diversions\": true,\n                \"type\": \"dynamic\"\n            },\n            {\n                \"member_id\": 42,\n                \"extension_id\": 6374,\n                \"penalty\": 0,\n                \"diversions\": true,\n                \"type\": \"dynamic\"\n            }\n        ]\n    }\n}"},{"id":"e4acd9db-b784-4457-8ca3-dbae0378cb9e","name":"400 - Queue Validation","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"extension\": 510,\r\n  \"queue_vip_list_id\": null,\r\n  \"ivr_id\": null,\r\n  \"queue_callback_id\": null,\r\n  \"cron_profile_id\": null,\r\n  \"description\": \"Partners\",\r\n  \"prefix\": null,\r\n  \"direction\": \"inbound\",\r\n  \"dial_mode\": null,\r\n  \"strategy\": \"rrordered\",\r\n  \"music_group_id\": 1,\r\n  \"weight\": 0,\r\n  \"autofill\": true,\r\n  \"maxlen\": 0,\r\n  \"announcement_id\": null,\r\n  \"periodic_announcement_id\": 1,\r\n  \"join_announcement_id\": null,\r\n  \"record\": false,\r\n  \"servicelevel\": 30,\r\n  \"wrapuptime\": 0,\r\n  \"announce_frequency\": null,\r\n  \"min_announce_frequency\": null,\r\n  \"periodic_announce_frequency\": 15,\r\n  \"announce_round_seconds\": 0,\r\n  \"announce_to_first_user\": false,\r\n  \"announce_position\": \"no\",\r\n  \"announce_position_limit\": null,\r\n  \"relative_periodic_announce\": false,\r\n  \"announce_holdtime\": false,\r\n  \"penaltymemberslimit\": null,\r\n  \"autopause\": \"no\",\r\n  \"ringinuse\": false,\r\n  \"memberdelay\": null,\r\n  \"timeoutrestart\": false,\r\n  \"joinempty\": \"yes\",\r\n  \"timeoutpriority\": \"app\",\r\n  \"timeout\": 15,\r\n  \"queue_timeout\": 0,\r\n  \"leavewhenempty\": \"no\",\r\n  \"retry\": 5,\r\n  \"answered_elsewhere\": false,\r\n  \"alertinfo\": null,\r\n  \"answerchannel\": true,\r\n  \"members\": [\r\n    {\r\n      \"extension_id\": 288,\r\n      \"penalty\": 0,\r\n      \"diversions\": true,\r\n      \"type\": \"dynamic\"\r\n    },\r\n    {\r\n      \"extension_id\": 6374,\r\n      \"penalty\": 0,\r\n      \"diversions\": true,\r\n      \"type\": \"dynamic\"\r\n    }\r\n  ],\r\n  \"final_destination\": {\r\n    \"cetegory_id\": 24,\r\n    \"destination_id\": 1\r\n  },\r\n  \"after_hangup_destination\": {\r\n    \"cetegory_id\": null,\r\n    \"destination_id\": null\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/queues"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Nov 2021 23:41:40 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"89"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"The provided description is already in use.\",\n    \"data\": []\n}"}],"_postman_id":"c412f919-1829-493a-94be-84301d3abc1e"},{"name":"/queues/{id}","id":"998e908b-78cc-438d-a7f7-2447227a2de8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"queue_vip_list_id\": null,\r\n  \"ivr_id\": null,\r\n  \"queue_callback_id\": null,\r\n  \"cron_profile_id\": null,\r\n  \"description\": \"VitalPBX Partners\",\r\n  \"prefix\": null,\r\n  \"direction\": \"inbound\",\r\n  \"dial_mode\": null,\r\n  \"strategy\": \"rrordered\",\r\n  \"music_group_id\": 1,\r\n  \"weight\": 0,\r\n  \"autofill\": true,\r\n  \"maxlen\": 0,\r\n  \"announcement_id\": null,\r\n  \"periodic_announcement_id\": 1,\r\n  \"join_announcement_id\": null,\r\n  \"record\": false,\r\n  \"servicelevel\": 30,\r\n  \"wrapuptime\": 0,\r\n  \"announce_frequency\": null,\r\n  \"min_announce_frequency\": null,\r\n  \"periodic_announce_frequency\": 15,\r\n  \"announce_round_seconds\": 0,\r\n  \"announce_to_first_user\": false,\r\n  \"announce_position\": \"no\",\r\n  \"announce_position_limit\": null,\r\n  \"relative_periodic_announce\": false,\r\n  \"announce_holdtime\": false,\r\n  \"penaltymemberslimit\": null,\r\n  \"autopause\": \"no\",\r\n  \"ringinuse\": false,\r\n  \"ring_unavailable\": false,\r\n  \"memberdelay\": null,\r\n  \"timeoutrestart\": false,\r\n  \"joinempty\": \"yes\",\r\n  \"timeoutpriority\": \"app\",\r\n  \"timeout\": 15,\r\n  \"queue_timeout\": 300,\r\n  \"leavewhenempty\": \"no\",\r\n  \"retry\": 5,\r\n  \"answered_elsewhere\": false,\r\n  \"alertinfo\": null,\r\n  \"answerchannel\": true,\r\n  \"members\": [\r\n    {\r\n      \"member_id\": 41,\r\n      \"extension_id\": 288,\r\n      \"penalty\": 0,\r\n      \"diversions\": true,\r\n      \"type\": \"dynamic\"\r\n    },\r\n    {\r\n      \"member_id\": 42,\r\n      \"extension_id\": 6374,\r\n      \"penalty\": 0,\r\n      \"diversions\": true,\r\n      \"type\": \"dynamic\"\r\n    }\r\n  ],\r\n  \"final_destination\": {\r\n    \"cetegory_id\": 24,\r\n    \"destination_id\": 1\r\n  },\r\n  \"after_hangup_destination\": {\r\n    \"cetegory_id\": null,\r\n    \"destination_id\": null\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/queues/{{queue-id}}","description":"<p>This endpoint allows you to update an existing queue. For more info about parameters and their possible values, check the table above.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues","{{queue-id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"e6223f93-bbd9-4f75-ab00-fc843a45b536","name":"200 - Queue Updated","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"queue_vip_list_id\": null,\r\n  \"ivr_id\": null,\r\n  \"queue_callback_id\": null,\r\n  \"cron_profile_id\": null,\r\n  \"description\": \"VitalPBX Partners\",\r\n  \"prefix\": null,\r\n  \"direction\": \"inbound\",\r\n  \"dial_mode\": null,\r\n  \"strategy\": \"rrordered\",\r\n  \"music_group_id\": 1,\r\n  \"weight\": 0,\r\n  \"autofill\": true,\r\n  \"maxlen\": 0,\r\n  \"announcement_id\": null,\r\n  \"periodic_announcement_id\": 1,\r\n  \"join_announcement_id\": null,\r\n  \"record\": false,\r\n  \"servicelevel\": 30,\r\n  \"wrapuptime\": 0,\r\n  \"announce_frequency\": null,\r\n  \"min_announce_frequency\": null,\r\n  \"periodic_announce_frequency\": 15,\r\n  \"announce_round_seconds\": 0,\r\n  \"announce_to_first_user\": false,\r\n  \"announce_position\": \"no\",\r\n  \"announce_position_limit\": null,\r\n  \"relative_periodic_announce\": false,\r\n  \"announce_holdtime\": false,\r\n  \"penaltymemberslimit\": null,\r\n  \"autopause\": \"no\",\r\n  \"ringinuse\": false,\r\n  \"memberdelay\": null,\r\n  \"timeoutrestart\": false,\r\n  \"joinempty\": \"yes\",\r\n  \"timeoutpriority\": \"app\",\r\n  \"timeout\": 15,\r\n  \"queue_timeout\": 300,\r\n  \"leavewhenempty\": \"no\",\r\n  \"retry\": 5,\r\n  \"answered_elsewhere\": false,\r\n  \"alertinfo\": null,\r\n  \"answerchannel\": true,\r\n  \"members\": [\r\n    {\r\n      \"member_id\": 41,\r\n      \"extension_id\": 288,\r\n      \"penalty\": 0,\r\n      \"diversions\": true,\r\n      \"type\": \"dynamic\"\r\n    },\r\n    {\r\n      \"member_id\": 42,\r\n      \"extension_id\": 6374,\r\n      \"penalty\": 0,\r\n      \"diversions\": true,\r\n      \"type\": \"dynamic\"\r\n    }\r\n  ],\r\n  \"final_destination\": {\r\n    \"cetegory_id\": 24,\r\n    \"destination_id\": 1\r\n  },\r\n  \"after_hangup_destination\": {\r\n    \"cetegory_id\": null,\r\n    \"destination_id\": null\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/queues/{{queue-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 24 Nov 2021 00:22:04 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"1296"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"queue_id\": 9,\n        \"extension\": 510,\n        \"queue_vip_list_id\": null,\n        \"ivr_id\": null,\n        \"queue_callback_id\": null,\n        \"cron_profile_id\": null,\n        \"description\": \"VitalPBX Partners\",\n        \"prefix\": null,\n        \"direction\": \"inbound\",\n        \"dial_mode\": null,\n        \"destination_id\": 424,\n        \"hangup_destination_id\": null,\n        \"strategy\": \"rrordered\",\n        \"music_group_id\": 1,\n        \"weight\": 0,\n        \"autofill\": true,\n        \"maxlen\": 0,\n        \"announcement_id\": null,\n        \"periodic_announcement_id\": 1,\n        \"join_announcement_id\": null,\n        \"record\": false,\n        \"servicelevel\": 30,\n        \"wrapuptime\": 0,\n        \"announce_frequency\": null,\n        \"min_announce_frequency\": null,\n        \"periodic_announce_frequency\": \"15\",\n        \"announce_round_seconds\": \"0\",\n        \"announce_to_first_user\": false,\n        \"announce_position\": \"no\",\n        \"announce_position_limit\": null,\n        \"relative_periodic_announce\": false,\n        \"announce_holdtime\": false,\n        \"penaltymemberslimit\": null,\n        \"autopause\": \"no\",\n        \"ringinuse\": false,\n        \"memberdelay\": null,\n        \"timeoutrestart\": false,\n        \"joinempty\": \"yes\",\n        \"timeoutpriority\": \"app\",\n        \"timeout\": 15,\n        \"queue_timeout\": 300,\n        \"leavewhenempty\": \"no\",\n        \"retry\": 5,\n        \"tenant_id\": 1,\n        \"name\": \"Q510\",\n        \"answered_elsewhere\": false,\n        \"agents_context\": \"queue-call-to-agents\",\n        \"alertinfo\": null,\n        \"answerchannel\": true,\n        \"members\": [\n            {\n                \"member_id\": 41,\n                \"extension_id\": 288,\n                \"penalty\": 0,\n                \"diversions\": true,\n                \"type\": \"dynamic\"\n            },\n            {\n                \"member_id\": 42,\n                \"extension_id\": 6374,\n                \"penalty\": 0,\n                \"diversions\": true,\n                \"type\": \"dynamic\"\n            }\n        ]\n    }\n}"}],"_postman_id":"998e908b-78cc-438d-a7f7-2447227a2de8"},{"name":"/queues/{id}","id":"038c601b-930a-4bea-acfa-35d74acc0e50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/queues/{{queue-id}}","description":"<p>It allows to remove an existing queue.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues","{{queue-id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0029c724-2f4a-4a2a-b7ad-1107cf49d224","name":"200 - Queue Removed","originalRequest":{"method":"DELETE","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/queues/{{queue-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 24 Nov 2021 06:29:48 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"70"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The queue have been removed\",\n    \"data\": []\n}"}],"_postman_id":"038c601b-930a-4bea-acfa-35d74acc0e50"}],"id":"b74e30ac-e3d4-4d97-bf99-f626a7992812","description":"<p>List of actions available to retrieve, create and edit queues.</p>\n<p>After creating, updating, or deleting a queue, you have to execute the \"<strong>apply_changes</strong>\" endpoint from the tenants' collection; this is essential to generate the configuration files, dial-plan, and others for Asterisk.</p>\n<p>The outbound queues are only available through the API, which means that they cannot be modified through the VitalPBX GUI. The outbound queues are for the Dialer add-on only.</p>\n","_postman_id":"b74e30ac-e3d4-4d97-bf99-f626a7992812","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Conferences","item":[{"name":"/conference/{id}","id":"a5b97e86-4e5e-4b1e-8d4a-e50c613ca2db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/conferences/1","description":"<p>Get info about specific conference room</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","conferences","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"7aac2917-9d74-4a03-880f-c6429ed22fab","name":"200 - Confrence retrieved","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/conferences/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 15:55:50 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"590"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"conference_id\": 1,\n        \"extension\": \"600\",\n        \"description\": \"My Conferences\",\n        \"class_of_service_id\": 1,\n        \"userpin\": null,\n        \"adminpin\": null,\n        \"max_members\": null,\n        \"video_mode\": \"sfu\",\n        \"language\": \"en\",\n        \"record_conference\": true,\n        \"announcement_id\": 1,\n        \"music_group_id\": 1,\n        \"music_on_hold_when_empty\": true,\n        \"startmuted\": false,\n        \"quiet\": false,\n        \"announce_user_count_all\": null,\n        \"announce_user_count\": false,\n        \"announce_only_user\": true,\n        \"wait_marked\": false,\n        \"end_marked\": false,\n        \"dsp_drop_silence\": true,\n        \"talk_detection_events\": true,\n        \"announce_join_leave\": true,\n        \"allow_to_invite\": true,\n        \"tenant_id\": 1\n    }\n}"},{"id":"b1ffd94f-6d22-4ffa-be45-be068aa73100","name":"404 - Conference not found","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/conferences/200"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 15:56:43 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"84"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested conference doesn't exists\",\n    \"data\": []\n}"},{"id":"b66b9557-41ae-44cb-b614-92b6dc30e5be","name":"/conference/{id}","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/conferences/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Oct 2019 23:58:06 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"576"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"conference_id\": 1,\n        \"extension\": \"600\",\n        \"description\": \"My Conferences\",\n        \"class_of_service_id\": 1,\n        \"userpin\": null,\n        \"adminpin\": null,\n        \"max_members\": null,\n        \"video_mode\": \"none\",\n        \"language\": \"en\",\n        \"record_conference\": true,\n        \"announcement_id\": 1,\n        \"music_group_id\": 1,\n        \"music_on_hold_when_empty\": true,\n        \"startmuted\": false,\n        \"quiet\": false,\n        \"announce_user_count_all\": null,\n        \"announce_user_count\": false,\n        \"announce_only_user\": true,\n        \"wait_marked\": false,\n        \"end_marked\": false,\n        \"dsp_drop_silence\": true,\n        \"talk_detection_events\": true,\n        \"announce_join_leave\": true,\n        \"allow_to_invite\": true,\n        \"tenant_id\": 1\n    }\n}"}],"_postman_id":"a5b97e86-4e5e-4b1e-8d4a-e50c613ca2db"},{"name":"/conferences","id":"6ab3558d-51eb-4267-82d9-f254894e2477","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/conferences","description":"<p>Get all PBX conference rooms</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","conferences"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"471e921e-ae09-4a8d-89d6-66bccb860afc","name":"200 - All conferences retrieved","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/conferences"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 15:57:12 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"2244"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"conference_id\": 1,\n            \"extension\": \"600\",\n            \"description\": \"My Conferences\",\n            \"class_of_service_id\": 1,\n            \"userpin\": null,\n            \"adminpin\": null,\n            \"max_members\": null,\n            \"video_mode\": \"sfu\",\n            \"language\": \"en\",\n            \"record_conference\": true,\n            \"announcement_id\": 1,\n            \"music_group_id\": 1,\n            \"music_on_hold_when_empty\": true,\n            \"startmuted\": false,\n            \"quiet\": false,\n            \"announce_user_count_all\": null,\n            \"announce_user_count\": false,\n            \"announce_only_user\": true,\n            \"wait_marked\": false,\n            \"end_marked\": false,\n            \"dsp_drop_silence\": true,\n            \"talk_detection_events\": true,\n            \"announce_join_leave\": true,\n            \"allow_to_invite\": true,\n            \"tenant_id\": 1\n        },\n        {\n            \"conference_id\": 2,\n            \"extension\": \"601\",\n            \"description\": \"Conferece Demo\",\n            \"class_of_service_id\": 1,\n            \"userpin\": null,\n            \"adminpin\": null,\n            \"max_members\": null,\n            \"video_mode\": \"none\",\n            \"language\": \"es_NI\",\n            \"record_conference\": true,\n            \"announcement_id\": 1,\n            \"music_group_id\": 1,\n            \"music_on_hold_when_empty\": true,\n            \"startmuted\": false,\n            \"quiet\": false,\n            \"announce_user_count_all\": null,\n            \"announce_user_count\": false,\n            \"announce_only_user\": true,\n            \"wait_marked\": false,\n            \"end_marked\": false,\n            \"dsp_drop_silence\": true,\n            \"talk_detection_events\": false,\n            \"announce_join_leave\": false,\n            \"allow_to_invite\": false,\n            \"tenant_id\": 1\n        },\n        {\n            \"conference_id\": 4,\n            \"extension\": \"700\",\n            \"description\": \"Demo\",\n            \"class_of_service_id\": 1,\n            \"userpin\": null,\n            \"adminpin\": null,\n            \"max_members\": null,\n            \"video_mode\": \"none\",\n            \"language\": \"en\",\n            \"record_conference\": true,\n            \"announcement_id\": 1,\n            \"music_group_id\": 1,\n            \"music_on_hold_when_empty\": true,\n            \"startmuted\": false,\n            \"quiet\": false,\n            \"announce_user_count_all\": null,\n            \"announce_user_count\": false,\n            \"announce_only_user\": true,\n            \"wait_marked\": false,\n            \"end_marked\": false,\n            \"dsp_drop_silence\": true,\n            \"talk_detection_events\": false,\n            \"announce_join_leave\": false,\n            \"allow_to_invite\": false,\n            \"tenant_id\": 1\n        },\n        {\n            \"conference_id\": 5,\n            \"extension\": \"950\",\n            \"description\": \"Parking Test\",\n            \"class_of_service_id\": 1,\n            \"userpin\": \"4321\",\n            \"adminpin\": \"12345\",\n            \"max_members\": null,\n            \"video_mode\": \"none\",\n            \"language\": \"en\",\n            \"record_conference\": true,\n            \"announcement_id\": 1,\n            \"music_group_id\": 1,\n            \"music_on_hold_when_empty\": true,\n            \"startmuted\": false,\n            \"quiet\": false,\n            \"announce_user_count_all\": null,\n            \"announce_user_count\": false,\n            \"announce_only_user\": true,\n            \"wait_marked\": false,\n            \"end_marked\": false,\n            \"dsp_drop_silence\": true,\n            \"talk_detection_events\": false,\n            \"announce_join_leave\": false,\n            \"allow_to_invite\": false,\n            \"tenant_id\": 1\n        }\n    ]\n}"},{"id":"a566241d-52a4-43bb-8470-ecab21026bf3","name":"/conferences","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/conferences"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Oct 2019 23:58:19 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"2230"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"conference_id\": 1,\n            \"extension\": \"600\",\n            \"description\": \"My Conferences\",\n            \"class_of_service_id\": 1,\n            \"userpin\": null,\n            \"adminpin\": null,\n            \"max_members\": null,\n            \"video_mode\": \"none\",\n            \"language\": \"en\",\n            \"record_conference\": true,\n            \"announcement_id\": 1,\n            \"music_group_id\": 1,\n            \"music_on_hold_when_empty\": true,\n            \"startmuted\": false,\n            \"quiet\": false,\n            \"announce_user_count_all\": null,\n            \"announce_user_count\": false,\n            \"announce_only_user\": true,\n            \"wait_marked\": false,\n            \"end_marked\": false,\n            \"dsp_drop_silence\": true,\n            \"talk_detection_events\": true,\n            \"announce_join_leave\": true,\n            \"allow_to_invite\": true,\n            \"tenant_id\": 1\n        },\n        {\n            \"conference_id\": 2,\n            \"extension\": \"601\",\n            \"description\": \"Conferece Demo\",\n            \"class_of_service_id\": 1,\n            \"userpin\": null,\n            \"adminpin\": null,\n            \"max_members\": null,\n            \"video_mode\": \"none\",\n            \"language\": \"es_NI\",\n            \"record_conference\": true,\n            \"announcement_id\": 1,\n            \"music_group_id\": 1,\n            \"music_on_hold_when_empty\": true,\n            \"startmuted\": false,\n            \"quiet\": false,\n            \"announce_user_count_all\": null,\n            \"announce_user_count\": false,\n            \"announce_only_user\": true,\n            \"wait_marked\": false,\n            \"end_marked\": false,\n            \"dsp_drop_silence\": true,\n            \"talk_detection_events\": false,\n            \"announce_join_leave\": false,\n            \"allow_to_invite\": false,\n            \"tenant_id\": 1\n        },\n        {\n            \"conference_id\": 4,\n            \"extension\": \"700\",\n            \"description\": \"Demo\",\n            \"class_of_service_id\": 1,\n            \"userpin\": null,\n            \"adminpin\": null,\n            \"max_members\": null,\n            \"video_mode\": \"none\",\n            \"language\": \"en\",\n            \"record_conference\": true,\n            \"announcement_id\": 1,\n            \"music_group_id\": 1,\n            \"music_on_hold_when_empty\": true,\n            \"startmuted\": false,\n            \"quiet\": false,\n            \"announce_user_count_all\": null,\n            \"announce_user_count\": false,\n            \"announce_only_user\": true,\n            \"wait_marked\": false,\n            \"end_marked\": false,\n            \"dsp_drop_silence\": true,\n            \"talk_detection_events\": false,\n            \"announce_join_leave\": false,\n            \"allow_to_invite\": false,\n            \"tenant_id\": 1\n        },\n        {\n            \"conference_id\": 5,\n            \"extension\": \"950\",\n            \"description\": \"Parking Test\",\n            \"class_of_service_id\": 1,\n            \"userpin\": \"4321\",\n            \"adminpin\": \"12345\",\n            \"max_members\": null,\n            \"video_mode\": \"none\",\n            \"language\": \"en\",\n            \"record_conference\": true,\n            \"announcement_id\": 1,\n            \"music_group_id\": 1,\n            \"music_on_hold_when_empty\": true,\n            \"startmuted\": false,\n            \"quiet\": false,\n            \"announce_user_count_all\": null,\n            \"announce_user_count\": false,\n            \"announce_only_user\": true,\n            \"wait_marked\": false,\n            \"end_marked\": false,\n            \"dsp_drop_silence\": true,\n            \"talk_detection_events\": false,\n            \"announce_join_leave\": false,\n            \"allow_to_invite\": false,\n            \"tenant_id\": 1\n        }\n    ]\n}"}],"_postman_id":"6ab3558d-51eb-4267-82d9-f254894e2477"}],"id":"73c9c642-2198-4a3d-b42a-f4c6164dea25","_postman_id":"73c9c642-2198-4a3d-b42a-f4c6164dea25","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Parking Lots","item":[{"name":"/parking_lots/{id}","id":"6335a8f3-10ec-4437-b498-4dcf4e6e6f5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/parking_lots/1","description":"<p>Get an specific parking lot item</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","parking_lots","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"05a8f204-f2be-4cda-ad21-c7fe674fbc11","name":"/parking_lots/{id}","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/parking_lots/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Oct 2019 23:58:36 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"410"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"parking_lot_id\": 1,\n        \"extension\": 955,\n        \"description\": \"Default Parking\",\n        \"destination_id\": 6,\n        \"parkingtime\": 45,\n        \"comebacktoorigin\": true,\n        \"comebackdialtime\": 20,\n        \"parkedplay\": \"callee\",\n        \"parkpos\": 10,\n        \"parkedcalltransfers\": \"no\",\n        \"parkedcallreparking\": \"no\",\n        \"parkedcallhangup\": \"no\",\n        \"findslot\": \"first\",\n        \"music_group_id\": 3,\n        \"defpark\": true,\n        \"announce_space_number\": true,\n        \"tenant_id\": 1,\n        \"parkname\": \"parking-1\"\n    }\n}"},{"id":"0e4852e0-c3a3-42ee-86fb-b3b420190d73","name":"200 - Retrieve Single Parking Lot","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/parking_lots/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 17:56:13 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"425"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"parking_lot_id\": 1,\n        \"extension\": 955,\n        \"description\": \"Default Parking\",\n        \"destination_id\": 6,\n        \"parkingtime\": 45,\n        \"comebacktoorigin\": true,\n        \"comebackdialtime\": 20,\n        \"parkedplay\": \"callee\",\n        \"parkpos\": 10,\n        \"parkedcalltransfers\": \"no\",\n        \"parkedcallreparking\": \"no\",\n        \"parkedcallhangup\": \"no\",\n        \"findslot\": \"first\",\n        \"music_group_id\": 3,\n        \"defpark\": true,\n        \"announce_space_number\": true,\n        \"tenant_id\": 1,\n        \"parkname\": \"parking-1\"\n    }\n}"},{"id":"1801390c-7cdc-4483-bd5d-0e2f86986516","name":"404 - Parking lot not found","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/parking_lots/3"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 17:56:40 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"85"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested parking lot doesn't exists\",\n    \"data\": []\n}"}],"_postman_id":"6335a8f3-10ec-4437-b498-4dcf4e6e6f5e"},{"name":"/parking_lots","id":"a9777425-6445-4195-b7c1-1c9bb24e2d26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/parking_lots","description":"<p>Get all the parking lots items</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","parking_lots"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"4f791300-0544-41e5-9a3c-1bd1b8487c3a","name":"/parking_lots","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/parking_lots"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Oct 2019 23:58:49 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"789"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"parking_lot_id\": 1,\n            \"extension\": 955,\n            \"description\": \"Default Parking\",\n            \"destination_id\": 6,\n            \"parkingtime\": 45,\n            \"comebacktoorigin\": true,\n            \"comebackdialtime\": 20,\n            \"parkedplay\": \"callee\",\n            \"parkpos\": 10,\n            \"parkedcalltransfers\": \"no\",\n            \"parkedcallreparking\": \"no\",\n            \"parkedcallhangup\": \"no\",\n            \"findslot\": \"first\",\n            \"music_group_id\": 3,\n            \"defpark\": true,\n            \"announce_space_number\": true,\n            \"tenant_id\": 1,\n            \"parkname\": \"parking-1\"\n        },\n        {\n            \"parking_lot_id\": 2,\n            \"extension\": 800,\n            \"description\": \"Demo\",\n            \"destination_id\": 7,\n            \"parkingtime\": 45,\n            \"comebacktoorigin\": true,\n            \"comebackdialtime\": 30,\n            \"parkedplay\": \"caller\",\n            \"parkpos\": 10,\n            \"parkedcalltransfers\": \"callee\",\n            \"parkedcallreparking\": \"no\",\n            \"parkedcallhangup\": \"no\",\n            \"findslot\": \"next\",\n            \"music_group_id\": 6,\n            \"defpark\": false,\n            \"announce_space_number\": false,\n            \"tenant_id\": 1,\n            \"parkname\": \"parking-2\"\n        }\n    ]\n}"},{"id":"988ee992-80c5-4925-b122-439bb8dfbad3","name":"200 - Retrieve all parking lots","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/parking_lots"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 17:58:25 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"804"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"parking_lot_id\": 1,\n            \"extension\": 955,\n            \"description\": \"Default Parking\",\n            \"destination_id\": 6,\n            \"parkingtime\": 45,\n            \"comebacktoorigin\": true,\n            \"comebackdialtime\": 20,\n            \"parkedplay\": \"callee\",\n            \"parkpos\": 10,\n            \"parkedcalltransfers\": \"no\",\n            \"parkedcallreparking\": \"no\",\n            \"parkedcallhangup\": \"no\",\n            \"findslot\": \"first\",\n            \"music_group_id\": 3,\n            \"defpark\": true,\n            \"announce_space_number\": true,\n            \"tenant_id\": 1,\n            \"parkname\": \"parking-1\"\n        },\n        {\n            \"parking_lot_id\": 2,\n            \"extension\": 800,\n            \"description\": \"Demo\",\n            \"destination_id\": 7,\n            \"parkingtime\": 45,\n            \"comebacktoorigin\": true,\n            \"comebackdialtime\": 30,\n            \"parkedplay\": \"caller\",\n            \"parkpos\": 10,\n            \"parkedcalltransfers\": \"callee\",\n            \"parkedcallreparking\": \"no\",\n            \"parkedcallhangup\": \"no\",\n            \"findslot\": \"next\",\n            \"music_group_id\": 6,\n            \"defpark\": false,\n            \"announce_space_number\": false,\n            \"tenant_id\": 1,\n            \"parkname\": \"parking-2\"\n        }\n    ]\n}"}],"_postman_id":"a9777425-6445-4195-b7c1-1c9bb24e2d26"}],"id":"e8da8bb7-2661-4b16-9a71-2a99e879b91a","_postman_id":"e8da8bb7-2661-4b16-9a71-2a99e879b91a","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Trunks","item":[{"name":"/trunk/{id}","id":"857a674e-89aa-4497-809c-8d955c8e3cfa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/trunks/1","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","trunks","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"7d8b3a0a-948b-4c8b-b547-c56f54c42c33","name":"404 - Trunk not found","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/trunks/100"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 20:52:30 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"79"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested trunk doesn't exists\",\n    \"data\": []\n}"},{"id":"92f5dfc9-7021-4061-993b-e8aad5ff71a1","name":"200 - Retrieve single trunk","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/trunks/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 20:44:08 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"681"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"trunk_id\": 1,\n        \"description\": \"VitalPBX\",\n        \"technology\": \"SIP\",\n        \"class_of_service_id\": null,\n        \"dial_profile_id\": 1,\n        \"tenant_trunk_id\": null,\n        \"profile_id\": 1,\n        \"ringtimer\": 90,\n        \"music_group_id\": 6,\n        \"register\": null,\n        \"dialstring\": null,\n        \"trunk_cid\": \"\\\"VitalPBX LLC\\\" <35925555${CS:0:3}>\",\n        \"overwrite_cid\": false,\n        \"group_id\": null,\n        \"group_mode\": \"g\",\n        \"outgoing_username\": \"eBD-Ombutel\",\n        \"incoming_username\": null,\n        \"dial_string\": null,\n        \"codecs\": null,\n        \"nat\": \"no\",\n        \"dtmfmode\": \"auto\",\n        \"simultaneous_calls\": 10,\n        \"get_did_from\": null,\n        \"get_cid_from\": \"contact\",\n        \"mode\": \"visual\",\n        \"register_flag\": false,\n        \"disable\": false,\n        \"continue_on_busy\": true,\n        \"tenant_id\": 1,\n        \"username\": \"eBD-Ombutel\",\n        \"channels\": []\n    }\n}"},{"id":"e5b73e27-51e3-4da0-8be5-851f48418e7d","name":"/trunk/{id}","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/trunks/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Oct 2019 23:59:01 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"594"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"trunk_id\": 1,\n        \"description\": \"VitalPBX\",\n        \"technology\": \"sip\",\n        \"class_of_service_id\": null,\n        \"dial_profile_id\": 1,\n        \"tenant_trunk_id\": null,\n        \"ringtimer\": 90,\n        \"music_group_id\": 6,\n        \"register\": null,\n        \"dialstring\": null,\n        \"trunk_cid\": \"\\\"VitalPBX LLC\\\" <35925555${CS:0:3}>\",\n        \"overwrite_cid\": false,\n        \"group_id\": null,\n        \"group_mode\": \"g\",\n        \"outgoing_username\": \"eBD-Ombutel\",\n        \"incoming_username\": null,\n        \"dial_string\": null,\n        \"codecs\": null,\n        \"nat\": \"no\",\n        \"simultaneous_calls\": 10,\n        \"get_did_from\": null,\n        \"get_cid_from\": \"contact\",\n        \"mode\": \"visual\",\n        \"register_flag\": false,\n        \"disable\": false,\n        \"continue_on_busy\": true,\n        \"tenant_id\": 1\n    }\n}"}],"_postman_id":"857a674e-89aa-4497-809c-8d955c8e3cfa"},{"name":"/trunks","id":"0dd9828c-7623-4680-8e01-b48ecc279d4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/trunks","description":"<p>Get all trunks</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","trunks"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a34891ab-1735-4c8c-b98d-83a50aaaf10b","name":"200 - All trunks retrieved","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/trunks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 20:45:13 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"trunk_id\": 1,\n            \"description\": \"VitalPBX\",\n            \"technology\": \"SIP\",\n            \"class_of_service_id\": null,\n            \"dial_profile_id\": 1,\n            \"tenant_trunk_id\": null,\n            \"profile_id\": 1,\n            \"ringtimer\": 90,\n            \"music_group_id\": 6,\n            \"register\": null,\n            \"dialstring\": null,\n            \"trunk_cid\": \"\\\"VitalPBX LLC\\\" <35925555${CS:0:3}>\",\n            \"overwrite_cid\": false,\n            \"group_id\": null,\n            \"group_mode\": \"g\",\n            \"outgoing_username\": \"eBD-Ombutel\",\n            \"incoming_username\": null,\n            \"dial_string\": null,\n            \"codecs\": null,\n            \"nat\": \"no\",\n            \"dtmfmode\": \"auto\",\n            \"simultaneous_calls\": 10,\n            \"get_did_from\": null,\n            \"get_cid_from\": \"contact\",\n            \"mode\": \"visual\",\n            \"register_flag\": false,\n            \"disable\": false,\n            \"continue_on_busy\": true,\n            \"tenant_id\": 1,\n            \"username\": \"eBD-Ombutel\",\n            \"channels\": []\n        },\n        {\n            \"trunk_id\": 2,\n            \"description\": \"Dummy Trunk\",\n            \"technology\": \"SIP\",\n            \"class_of_service_id\": null,\n            \"dial_profile_id\": 1,\n            \"tenant_trunk_id\": null,\n            \"profile_id\": null,\n            \"ringtimer\": 5,\n            \"music_group_id\": 1,\n            \"register\": null,\n            \"dialstring\": null,\n            \"trunk_cid\": \"\\\"\\\" <>\",\n            \"overwrite_cid\": false,\n            \"group_id\": null,\n            \"group_mode\": \"g\",\n            \"outgoing_username\": \"SRV-A\",\n            \"incoming_username\": null,\n            \"dial_string\": null,\n            \"codecs\": null,\n            \"nat\": \"force_rport,comedia\",\n            \"dtmfmode\": \"rfc2833\",\n            \"simultaneous_calls\": null,\n            \"get_did_from\": null,\n            \"get_cid_from\": null,\n            \"mode\": \"visual\",\n            \"register_flag\": false,\n            \"disable\": true,\n            \"continue_on_busy\": true,\n            \"tenant_id\": 1,\n            \"username\": \"SRV-A\",\n            \"channels\": []\n        },\n        {\n            \"trunk_id\": 7,\n            \"description\": \"OVPN CLOUD\",\n            \"technology\": \"SIP\",\n            \"class_of_service_id\": null,\n            \"dial_profile_id\": 1,\n            \"tenant_trunk_id\": null,\n            \"profile_id\": null,\n            \"ringtimer\": 90,\n            \"music_group_id\": 1,\n            \"register\": null,\n            \"dialstring\": null,\n            \"trunk_cid\": \"\\\"\\\" <>\",\n            \"overwrite_cid\": false,\n            \"group_id\": null,\n            \"group_mode\": \"g\",\n            \"outgoing_username\": \"MACHINE_A\",\n            \"incoming_username\": null,\n            \"dial_string\": null,\n            \"codecs\": null,\n            \"nat\": null,\n            \"dtmfmode\": \"rfc2833\",\n            \"simultaneous_calls\": null,\n            \"get_did_from\": null,\n            \"get_cid_from\": null,\n            \"mode\": \"visual\",\n            \"register_flag\": false,\n            \"disable\": false,\n            \"continue_on_busy\": false,\n            \"tenant_id\": 1,\n            \"username\": \"MACHINE_A\",\n            \"channels\": []\n        },\n        {\n            \"trunk_id\": 8,\n            \"description\": \"OVPN_IAX\",\n            \"technology\": \"IAX2\",\n            \"class_of_service_id\": 1,\n            \"dial_profile_id\": 1,\n            \"tenant_trunk_id\": null,\n            \"profile_id\": 2,\n            \"ringtimer\": 90,\n            \"music_group_id\": 1,\n            \"register\": null,\n            \"dialstring\": null,\n            \"trunk_cid\": \"\\\"\\\" <>\",\n            \"overwrite_cid\": false,\n            \"group_id\": null,\n            \"group_mode\": \"g\",\n            \"outgoing_username\": \"OVPN_IAX\",\n            \"incoming_username\": null,\n            \"dial_string\": null,\n            \"codecs\": null,\n            \"nat\": null,\n            \"dtmfmode\": null,\n            \"simultaneous_calls\": null,\n            \"get_did_from\": null,\n            \"get_cid_from\": null,\n            \"mode\": \"visual\",\n            \"register_flag\": false,\n            \"disable\": false,\n            \"continue_on_busy\": false,\n            \"tenant_id\": 1,\n            \"username\": \"OVPN_IAX\",\n            \"channels\": []\n        },\n        {\n            \"trunk_id\": 12,\n            \"description\": \"PJSIP Trunk\",\n            \"technology\": \"PJSIP\",\n            \"class_of_service_id\": null,\n            \"dial_profile_id\": 1,\n            \"tenant_trunk_id\": null,\n            \"profile_id\": 14,\n            \"ringtimer\": 90,\n            \"music_group_id\": 1,\n            \"register\": null,\n            \"dialstring\": null,\n            \"trunk_cid\": \"\\\"Telesoft\\\" <1234567890>\",\n            \"overwrite_cid\": true,\n            \"group_id\": null,\n            \"group_mode\": \"g\",\n            \"outgoing_username\": \"telnyx_demo\",\n            \"incoming_username\": null,\n            \"dial_string\": null,\n            \"codecs\": null,\n            \"nat\": null,\n            \"dtmfmode\": \"rfc4733\",\n            \"simultaneous_calls\": null,\n            \"get_did_from\": null,\n            \"get_cid_from\": null,\n            \"mode\": \"visual\",\n            \"register_flag\": false,\n            \"disable\": false,\n            \"continue_on_busy\": false,\n            \"tenant_id\": 1,\n            \"username\": \"telnyx_demo\",\n            \"channels\": []\n        },\n        {\n            \"trunk_id\": 24,\n            \"description\": \"OpenVox\",\n            \"technology\": \"SIP\",\n            \"class_of_service_id\": null,\n            \"dial_profile_id\": 2,\n            \"tenant_trunk_id\": null,\n            \"profile_id\": null,\n            \"ringtimer\": 90,\n            \"music_group_id\": 1,\n            \"register\": null,\n            \"dialstring\": null,\n            \"trunk_cid\": \"\\\"88569536\\\" <88569536>\",\n            \"overwrite_cid\": true,\n            \"group_id\": null,\n            \"group_mode\": \"g\",\n            \"outgoing_username\": \"openvox\",\n            \"incoming_username\": null,\n            \"dial_string\": null,\n            \"codecs\": null,\n            \"nat\": null,\n            \"dtmfmode\": \"rfc2833\",\n            \"simultaneous_calls\": null,\n            \"get_did_from\": null,\n            \"get_cid_from\": null,\n            \"mode\": \"visual\",\n            \"register_flag\": false,\n            \"disable\": false,\n            \"continue_on_busy\": false,\n            \"tenant_id\": 1,\n            \"username\": \"openvox\",\n            \"channels\": []\n        }\n    ]\n}"},{"id":"deb655e6-03d4-42d8-902c-5a5d76b76835","name":"/trunks","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/trunks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 29 Oct 2019 00:00:00 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"trunk_id\": 1,\n            \"description\": \"VitalPBX\",\n            \"technology\": \"SIP\",\n            \"class_of_service_id\": null,\n            \"dial_profile_id\": 1,\n            \"tenant_trunk_id\": null,\n            \"ringtimer\": 90,\n            \"music_group_id\": 6,\n            \"register\": null,\n            \"dialstring\": null,\n            \"trunk_cid\": \"\\\"VitalPBX LLC\\\" <35925555${CS:0:3}>\",\n            \"overwrite_cid\": false,\n            \"group_id\": null,\n            \"group_mode\": \"g\",\n            \"outgoing_username\": \"eBD-Ombutel\",\n            \"incoming_username\": null,\n            \"dial_string\": null,\n            \"codecs\": null,\n            \"nat\": \"no\",\n            \"simultaneous_calls\": 10,\n            \"get_did_from\": null,\n            \"get_cid_from\": \"contact\",\n            \"mode\": \"visual\",\n            \"register_flag\": false,\n            \"disable\": false,\n            \"continue_on_busy\": true,\n            \"tenant_id\": 1,\n            \"username\": \"eBD-Ombutel\",\n            \"channels\": []\n        },\n        {\n            \"trunk_id\": 2,\n            \"description\": \"Dummy Trunk\",\n            \"technology\": \"SIP\",\n            \"class_of_service_id\": null,\n            \"dial_profile_id\": 1,\n            \"tenant_trunk_id\": null,\n            \"ringtimer\": 5,\n            \"music_group_id\": 1,\n            \"register\": null,\n            \"dialstring\": null,\n            \"trunk_cid\": \"\\\"\\\" <>\",\n            \"overwrite_cid\": false,\n            \"group_id\": null,\n            \"group_mode\": \"g\",\n            \"outgoing_username\": \"SRV-A\",\n            \"incoming_username\": null,\n            \"dial_string\": null,\n            \"codecs\": null,\n            \"nat\": \"force_rport,comedia\",\n            \"simultaneous_calls\": null,\n            \"get_did_from\": null,\n            \"get_cid_from\": null,\n            \"mode\": \"visual\",\n            \"register_flag\": false,\n            \"disable\": true,\n            \"continue_on_busy\": true,\n            \"tenant_id\": 1,\n            \"username\": \"SRV-A\",\n            \"channels\": []\n        }\n    ]\n}"}],"_postman_id":"0dd9828c-7623-4680-8e01-b48ecc279d4b"}],"id":"cf959558-9008-48c9-8afc-b71719514247","_postman_id":"cf959558-9008-48c9-8afc-b71719514247","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Devices","item":[{"name":"/devices","id":"0b87eb69-a2e9-4d8b-bf8b-f86f043c8149","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices","description":"<p>Get all devices filtered by Tenant</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3325015b-9ae0-4a83-8516-052b5a49b165","name":"200 - All devices retrieved","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 17:24:09 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"device_id\": 3,\n            \"extension_id\": 3,\n            \"profile_id\": 1,\n            \"user\": \"dev_7502\",\n            \"secret\": \"super_pass_2019\",\n            \"description\": \"X-Lite\",\n            \"ring_device\": true,\n            \"technology\": \"sip\",\n            \"assigned_exten\": \"7502\",\n            \"tenant_id\": 1,\n            \"device_name\": \"dev_7502\"\n        },\n        {\n            \"device_id\": 41,\n            \"extension_id\": 38,\n            \"profile_id\": 1,\n            \"user\": \"dev_3806\",\n            \"secret\": \"super_pass_2019\",\n            \"description\": \"Edwin Mobile\",\n            \"ring_device\": true,\n            \"technology\": \"sip\",\n            \"assigned_exten\": \"3806\",\n            \"tenant_id\": 1,\n            \"device_name\": \"dev_3806\"\n        },\n        {\n            \"device_id\": 42,\n            \"extension_id\": 38,\n            \"profile_id\": 1,\n            \"user\": \"3806\",\n            \"secret\": \"super_pass_2019\",\n            \"description\": \"Edwin Desk\",\n            \"ring_device\": true,\n            \"technology\": \"sip\",\n            \"assigned_exten\": \"3806\",\n            \"tenant_id\": 1,\n            \"device_name\": \"3806\"\n        },\n        {\n            \"device_id\": 256,\n            \"extension_id\": 247,\n            \"profile_id\": 14,\n            \"user\": \"1004\",\n            \"secret\": \"469BqVvCMc9wpq\",\n            \"description\": \"PJSIP EPM\",\n            \"ring_device\": true,\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": 1,\n            \"device_name\": \"1004\"\n        },\n        {\n            \"device_id\": 258,\n            \"extension_id\": 249,\n            \"profile_id\": 14,\n            \"user\": \"2021\",\n            \"secret\": \"super_pass_2019\",\n            \"description\": \"VPBX Communicator\",\n            \"ring_device\": true,\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": 1,\n            \"device_name\": \"2021\"\n        }\n    ]\n}"}],"_postman_id":"0b87eb69-a2e9-4d8b-bf8b-f86f043c8149"},{"name":"/devices/{id}","id":"e01bc719-7a4f-40b6-92db-2357fef81004","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices/{{device-id}}","description":"<p>Get an specific device</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3a04e509-d542-4f75-8008-e2d03752cfff","name":"200 - Single device retrieved","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 17:28:26 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"255"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"device_id\": 3,\n        \"extension_id\": 3,\n        \"profile_id\": 1,\n        \"user\": \"dev_7502\",\n        \"secret\": \"super_pass_2019\",\n        \"description\": \"X-Lite\",\n        \"ring_device\": true,\n        \"technology\": \"sip\",\n        \"assigned_exten\": \"7502\",\n        \"tenant_id\": 1,\n        \"device_name\": \"dev_7502\"\n    }\n}"},{"id":"f4ec4a8f-1856-4e31-92ec-4ed470df276a","name":"404 - Device not found","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices/100"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 17:30:41 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"80"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested device doesn't exists\",\n    \"data\": []\n}"}],"_postman_id":"e01bc719-7a4f-40b6-92db-2357fef81004"},{"name":"/devices/vitxi","id":"4b07af0a-6459-4fa6-8ea9-f8fa51f63533","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices/vitxi","description":"<p>Retrieve all the devices flagged with the option \"Vitxi Client\".</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","vitxi"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"4b8d0f57-df79-4a1f-b6db-6c4214b6f1cb","name":"200 - Devices Retrieved","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices/vitxi"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 24 Jul 2020 03:14:50 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.32"},{"key":"X-Powered-By","value":"PHP/7.2.32"},{"key":"Content-Length","value":"1383"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"device_id\": 22,\n            \"codecs\": null,\n            \"dtmfmode\": \"rfc4733\",\n            \"max_contacts\": 1,\n            \"deny\": \"0.0.0.0/0\",\n            \"permit\": \"0.0.0.0/0\",\n            \"technology\": \"pjsip\",\n            \"extension_id\": 298,\n            \"profile_id\": 13,\n            \"user\": \"9998\",\n            \"secret\": \"v92ysB4CBJDptc\",\n            \"description\": \"Vitxi Client\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": true,\n            \"assigned_exten\": null,\n            \"tenant_id\": 1,\n            \"device_name\": \"9998\",\n            \"send_push\": false,\n            \"vitxi_client\": true,\n            \"dispatchable_location_id\": null\n        },\n        {\n            \"device_id\": 24,\n            \"codecs\": null,\n            \"dtmfmode\": \"rfc4733\",\n            \"max_contacts\": 1,\n            \"deny\": \"0.0.0.0/0\",\n            \"permit\": \"0.0.0.0/0\",\n            \"technology\": \"pjsip\",\n            \"extension_id\": 300,\n            \"profile_id\": 13,\n            \"user\": \"10000\",\n            \"secret\": \"nv62Vs6BsCcmxU\",\n            \"description\": \"New Vitxi\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": true,\n            \"assigned_exten\": null,\n            \"tenant_id\": 1,\n            \"device_name\": \"10000\",\n            \"send_push\": false,\n            \"vitxi_client\": true,\n            \"dispatchable_location_id\": null\n        },\n        {\n            \"device_id\": 26,\n            \"codecs\": null,\n            \"dtmfmode\": \"rfc4733\",\n            \"max_contacts\": 1,\n            \"deny\": \"0.0.0.0/0\",\n            \"permit\": \"0.0.0.0/0\",\n            \"technology\": \"pjsip\",\n            \"extension_id\": null,\n            \"profile_id\": 13,\n            \"user\": \"vitxi_hot_desk_2\",\n            \"secret\": \"z2vgxFRQKWKvDT\",\n            \"description\": \"Another Hot Desking\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": true,\n            \"assigned_exten\": null,\n            \"tenant_id\": 1,\n            \"device_name\": \"vitxi_hot_desk_2\",\n            \"send_push\": false,\n            \"vitxi_client\": true,\n            \"dispatchable_location_id\": null\n        }\n    ]\n}"}],"_postman_id":"4b07af0a-6459-4fa6-8ea9-f8fa51f63533"},{"name":"/devices/vitxi/{id}","id":"706fdeba-f614-4131-aa19-57d1b5f1a4c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/devices/vitxi/{{device-id}}?limit=0,10","description":"<p>It returns CDR data, device info, and others from a specific device.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","vitxi","{{device-id}}"],"host":["{{host}}"],"query":[{"key":"limit","value":"0,10"}],"variable":[]}},"response":[{"id":"6d26a797-621d-4f21-a118-0ef76edf9475","name":"Device not found","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://{{host}}/api/v2/devices/vitxi/500?limit=0,10","protocol":"http","host":["{{host}}"],"path":["api","v2","devices","vitxi","500"],"query":[{"key":"limit","value":"0,10"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 25 Jan 2021 17:35:43 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"80"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested device doesn't exists\",\n    \"data\": []\n}"},{"id":"73532916-f518-4779-9b1e-e8bc4d8777e4","name":"Succesful Request","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://{{host}}/api/v2/devices/vitxi/12?limit=0,10","protocol":"http","host":["{{host}}"],"path":["api","v2","devices","vitxi","12"],"query":[{"key":"limit","value":"0,10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 25 Jan 2021 17:34:53 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"6889"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"device\": {\n            \"device_id\": 12,\n            \"extension_id\": 288,\n            \"profile_id\": 1,\n            \"user\": \"101\",\n            \"secret\": \"ZGv5XGk67hyPU6\",\n            \"description\": \"MicroSIP\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": true,\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": 1,\n            \"device_name\": \"101\",\n            \"send_push\": false,\n            \"vitxi_client\": false,\n            \"send_welcome_email\": false,\n            \"dispatchable_location_id\": null,\n            \"protocol\": \"udp\",\n            \"extension\": \"101\"\n        },\n        \"calls\": [\n            {\n                \"cdr_id\": \"960\",\n                \"calldate\": \"2021-01-23 03:18:31\",\n                \"clid\": \"\\\"Agents 2067\\\" <2067>\",\n                \"did\": null,\n                \"source\": \"2067\",\n                \"src\": \"2067\",\n                \"dst\": \"101\",\n                \"destination\": \"101\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"PJSIP/2067-00000004\",\n                \"dstchannel\": \"\",\n                \"lastapp\": \"VoiceMail\",\n                \"lastdata\": \"101@vitalpbx-voicemail,b\",\n                \"duration\": \"3\",\n                \"billsec\": \"3\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1611371901.22\",\n                \"linkedid\": \"1611371901.22\",\n                \"sequence\": \"7\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"\",\n                \"tenant\": \"vitalpbx\",\n                \"trunk\": null\n            },\n            {\n                \"cdr_id\": \"959\",\n                \"calldate\": \"2021-01-23 03:18:21\",\n                \"clid\": \"\\\"Agents 2067\\\" <2067>\",\n                \"did\": null,\n                \"source\": \"2067\",\n                \"src\": \"2067\",\n                \"dst\": \"101\",\n                \"destination\": \"101\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"PJSIP/2067-00000004\",\n                \"dstchannel\": \"PJSIP/101-00000005\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.5:56088;ob,10,kKtrU(sub-call-recording^713b0732d7b6\",\n                \"duration\": \"10\",\n                \"billsec\": \"0\",\n                \"disposition\": \"NO ANSWER\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1611371901.22\",\n                \"linkedid\": \"1611371901.22\",\n                \"sequence\": \"5\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"\",\n                \"tenant\": \"vitalpbx\",\n                \"trunk\": null\n            },\n            {\n                \"cdr_id\": \"958\",\n                \"calldate\": \"2021-01-23 03:17:20\",\n                \"clid\": \"\\\"Agents 2067\\\" <2067>\",\n                \"did\": null,\n                \"source\": \"2067\",\n                \"src\": \"2067\",\n                \"dst\": \"101\",\n                \"destination\": \"101\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"PJSIP/2067-00000002\",\n                \"dstchannel\": \"\",\n                \"lastapp\": \"VoiceMail\",\n                \"lastdata\": \"101@vitalpbx-voicemail,b\",\n                \"duration\": \"8\",\n                \"billsec\": \"8\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1611371829.14\",\n                \"linkedid\": \"1611371829.14\",\n                \"sequence\": \"4\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"\",\n                \"tenant\": \"vitalpbx\",\n                \"trunk\": null\n            },\n            {\n                \"cdr_id\": \"957\",\n                \"calldate\": \"2021-01-23 03:17:09\",\n                \"clid\": \"\\\"Agents 2067\\\" <2067>\",\n                \"did\": null,\n                \"source\": \"2067\",\n                \"src\": \"2067\",\n                \"dst\": \"101\",\n                \"destination\": \"101\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"PJSIP/2067-00000002\",\n                \"dstchannel\": \"PJSIP/101-00000003\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.5:56088;ob,10,kKtrU(sub-call-recording^713b0732d7b6\",\n                \"duration\": \"10\",\n                \"billsec\": \"0\",\n                \"disposition\": \"NO ANSWER\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1611371829.14\",\n                \"linkedid\": \"1611371829.14\",\n                \"sequence\": \"2\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"\",\n                \"tenant\": \"vitalpbx\",\n                \"trunk\": null\n            },\n            {\n                \"cdr_id\": \"961\",\n                \"calldate\": \"2021-01-23 03:16:26\",\n                \"clid\": \"\\\"Push Test\\\" <2502>\",\n                \"did\": null,\n                \"source\": \"2502\",\n                \"src\": \"2502\",\n                \"dst\": \"101\",\n                \"destination\": \"101\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"PJSIP/2502-00000000\",\n                \"dstchannel\": \"PJSIP/101-00000001\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.5:56088;ob,10,kKtrU(sub-call-recording^713b0732d7b6\",\n                \"duration\": \"287\",\n                \"billsec\": \"284\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1611371786.12\",\n                \"linkedid\": \"1611371786.12\",\n                \"sequence\": \"0\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2021/01/22/211629-LOCAL-NONE-2502-101-1611371786.13.wav\",\n                \"tenant\": \"vitalpbx\",\n                \"trunk\": null\n            },\n            {\n                \"cdr_id\": \"943\",\n                \"calldate\": \"2021-01-22 04:13:30\",\n                \"clid\": \"\\\"MicroSIP\\\" <101>\",\n                \"did\": null,\n                \"source\": \"101\",\n                \"src\": \"101\",\n                \"dst\": \"*71\",\n                \"destination\": \"*71\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"PJSIP/101-00000001\",\n                \"dstchannel\": \"\",\n                \"lastapp\": \"Hangup\",\n                \"lastdata\": \"\",\n                \"duration\": \"8\",\n                \"billsec\": \"8\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1611288810.6\",\n                \"linkedid\": \"1611288810.6\",\n                \"sequence\": \"1\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"\",\n                \"tenant\": \"vitalpbx\",\n                \"trunk\": null\n            },\n            {\n                \"cdr_id\": \"929\",\n                \"calldate\": \"2021-01-14 09:39:41\",\n                \"clid\": \"\\\"MicroSIP\\\" <101>\",\n                \"did\": null,\n                \"source\": \"101\",\n                \"src\": \"101\",\n                \"dst\": \"2502\",\n                \"destination\": \"2502\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"PJSIP/101-00000002\",\n                \"dstchannel\": \"Local/2502@pjsip-push-00000001;1\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"Local/2502@pjsip-push,30,kKtrU(sub-call-recording^713b0732d7b683af^101^2502^no)\",\n                \"duration\": \"46\",\n                \"billsec\": \"39\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1610617181.12\",\n                \"linkedid\": \"1610617181.12\",\n                \"sequence\": \"4\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2021/01/14/033949-LOCAL-NONE-101-2502-1610617181.13.wav\",\n                \"tenant\": \"vitalpbx\",\n                \"trunk\": null\n            },\n            {\n                \"cdr_id\": \"927\",\n                \"calldate\": \"2021-01-14 09:38:13\",\n                \"clid\": \"\\\"MicroSIP\\\" <101>\",\n                \"did\": null,\n                \"source\": \"101\",\n                \"src\": \"101\",\n                \"dst\": \"2502\",\n                \"destination\": \"2502\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"PJSIP/101-00000000\",\n                \"dstchannel\": \"Local/2502@pjsip-push-00000000;1\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"Local/2502@pjsip-push,30,kKtrU(sub-call-recording^713b0732d7b683af^101^2502^no)\",\n                \"duration\": \"60\",\n                \"billsec\": \"52\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1610617093.3\",\n                \"linkedid\": \"1610617093.3\",\n                \"sequence\": \"0\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2021/01/14/033821-LOCAL-NONE-101-2502-1610617093.4.wav\",\n                \"tenant\": \"vitalpbx\",\n                \"trunk\": null\n            },\n            {\n                \"cdr_id\": \"925\",\n                \"calldate\": \"2021-01-14 09:31:02\",\n                \"clid\": \"\\\"MicroSIP\\\" <101>\",\n                \"did\": null,\n                \"source\": \"101\",\n                \"src\": \"101\",\n                \"dst\": \"2502\",\n                \"destination\": \"2502\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"PJSIP/101-00000000\",\n                \"dstchannel\": \"\",\n                \"lastapp\": \"VoiceMail\",\n                \"lastdata\": \"2502@vitalpbx-voicemail,u\",\n                \"duration\": \"2\",\n                \"billsec\": \"2\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1610616646.3\",\n                \"linkedid\": \"1610616646.3\",\n                \"sequence\": \"3\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"\",\n                \"tenant\": \"vitalpbx\",\n                \"trunk\": null\n            },\n            {\n                \"cdr_id\": \"924\",\n                \"calldate\": \"2021-01-14 09:30:46\",\n                \"clid\": \"\\\"MicroSIP\\\" <101>\",\n                \"did\": null,\n                \"source\": \"101\",\n                \"src\": \"101\",\n                \"dst\": \"2502\",\n                \"destination\": \"2502\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"PJSIP/101-00000000\",\n                \"dstchannel\": \"Local/2502@pjsip-push-00000000;1\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"Local/2502@pjsip-push,30,kKtrU(sub-call-recording^713b0732d7b683af^101^2502^no)\",\n                \"duration\": \"15\",\n                \"billsec\": \"0\",\n                \"disposition\": \"NO ANSWER\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1610616646.3\",\n                \"linkedid\": \"1610616646.3\",\n                \"sequence\": \"0\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"\",\n                \"tenant\": \"vitalpbx\",\n                \"trunk\": null\n            }\n        ],\n        \"current_plan\": \"carrier-plus\"\n    }\n}"}],"_postman_id":"706fdeba-f614-4131-aa19-57d1b5f1a4c4"},{"name":"/devices/{id}/queues","id":"e87033c4-d808-4d63-8dd6-cfe6826037fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the app-key header generated by Postman.","key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues","description":"<p>Retrieve the queues associated to a specific device</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"785bbfd9-ce4b-45da-9185-9dc8b6a0bd08","name":"200 - Queues","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the app-key header generated by Postman.","key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Mar 2021 23:30:09 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"2115"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"queue_id\": 5,\n            \"extension\": 500,\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": null,\n            \"queue_callback_id\": null,\n            \"cron_profile_id\": null,\n            \"description\": \"Demo\",\n            \"prefix\": null,\n            \"destination_id\": 317,\n            \"hangup_destination_id\": 318,\n            \"strategy\": \"ringall\",\n            \"music_group_id\": 1,\n            \"weight\": null,\n            \"autofill\": true,\n            \"maxlen\": 0,\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": 1,\n            \"join_announcement_id\": null,\n            \"record\": false,\n            \"servicelevel\": 10,\n            \"wrapuptime\": 0,\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": null,\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": false,\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": false,\n            \"announce_holdtime\": false,\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": false,\n            \"memberdelay\": null,\n            \"timeoutrestart\": false,\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": 15,\n            \"queue_timeout\": 30,\n            \"leavewhenempty\": \"no\",\n            \"retry\": 5,\n            \"tenant_id\": 3,\n            \"name\": \"T3_Q500\",\n            \"answered_elsewhere\": false,\n            \"agents_context\": \"T3_queue-call-to-agents\",\n            \"alertinfo\": null,\n            \"answerchannel\": true\n        },\n        {\n            \"queue_id\": 7,\n            \"extension\": 501,\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": null,\n            \"queue_callback_id\": null,\n            \"cron_profile_id\": null,\n            \"description\": \"Sales Management\",\n            \"prefix\": null,\n            \"destination_id\": 384,\n            \"hangup_destination_id\": null,\n            \"strategy\": \"ringall\",\n            \"music_group_id\": 1,\n            \"weight\": null,\n            \"autofill\": true,\n            \"maxlen\": 0,\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": 1,\n            \"join_announcement_id\": null,\n            \"record\": false,\n            \"servicelevel\": null,\n            \"wrapuptime\": 0,\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": null,\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": false,\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": false,\n            \"announce_holdtime\": false,\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": false,\n            \"memberdelay\": null,\n            \"timeoutrestart\": false,\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": 15,\n            \"queue_timeout\": 30,\n            \"leavewhenempty\": \"no\",\n            \"retry\": 5,\n            \"tenant_id\": 3,\n            \"name\": \"T3_Q501\",\n            \"answered_elsewhere\": false,\n            \"agents_context\": \"T3_queue-call-to-agents\",\n            \"alertinfo\": null,\n            \"answerchannel\": true\n        }\n    ]\n}"}],"_postman_id":"e87033c4-d808-4d63-8dd6-cfe6826037fe"},{"name":"/devices/{id}/queues/status","id":"9f3c0649-44af-4008-90b2-f323995f577b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the app-key header generated by Postman.","key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues/status","description":"<p>It returns the status of an agent from its assigned queues.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues","status"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"c80175b1-04cd-44be-b5d6-3d4b9823715e","name":"200 - Queues Status","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the app-key header generated by Postman.","key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Mar 2021 23:30:52 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"183"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"5\": {\n            \"status\": true,\n            \"paused\": false,\n            \"queue\": \"T3_Q500\",\n            \"type\": \"dynamic\"\n        },\n        \"7\": {\n            \"status\": true,\n            \"paused\": false,\n            \"queue\": \"T3_Q501\",\n            \"type\": \"static\"\n        }\n    }\n}"}],"_postman_id":"9f3c0649-44af-4008-90b2-f323995f577b"},{"name":"/devices/{id}/queues/dynamic","id":"faf6643a-66d6-4dbb-a949-89f53b3a2b3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the app-key header generated by Postman.","key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues/dynamic","description":"<p>It retrieves the queues from where the agent is configured as dynamic member</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues","dynamic"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"1f4d1905-b18f-4225-a477-c5b8df7a4a49","name":"200 - Dynamic Queues","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the app-key header generated by Postman.","key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues/dynamic"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Mar 2021 23:31:24 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"1072"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"queue_id\": 5,\n            \"extension\": 500,\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": null,\n            \"queue_callback_id\": null,\n            \"cron_profile_id\": null,\n            \"description\": \"Demo\",\n            \"prefix\": null,\n            \"destination_id\": 317,\n            \"hangup_destination_id\": 318,\n            \"strategy\": \"ringall\",\n            \"music_group_id\": 1,\n            \"weight\": null,\n            \"autofill\": true,\n            \"maxlen\": 0,\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": 1,\n            \"join_announcement_id\": null,\n            \"record\": false,\n            \"servicelevel\": 10,\n            \"wrapuptime\": 0,\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": null,\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": false,\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": false,\n            \"announce_holdtime\": false,\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": false,\n            \"memberdelay\": null,\n            \"timeoutrestart\": false,\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": 15,\n            \"queue_timeout\": 30,\n            \"leavewhenempty\": \"no\",\n            \"retry\": 5,\n            \"tenant_id\": 3,\n            \"name\": \"T3_Q500\",\n            \"answered_elsewhere\": false,\n            \"agents_context\": \"T3_queue-call-to-agents\",\n            \"alertinfo\": null,\n            \"answerchannel\": true\n        }\n    ]\n}"}],"_postman_id":"faf6643a-66d6-4dbb-a949-89f53b3a2b3f"},{"name":"/devices/{id}/queues/static","id":"af98b897-6d77-4e36-909e-25907199fde9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the app-key header generated by Postman.","key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues/static","description":"<p>It retrieves the queues from where the agent is configured as static member</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues","static"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"6861d3ce-bae5-4560-a29b-e6d26e3a6e42","name":"200 - Static Queues","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the app-key header generated by Postman.","key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues/static"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Mar 2021 23:31:42 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"1087"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"queue_id\": 7,\n            \"extension\": 501,\n            \"queue_vip_list_id\": null,\n            \"ivr_id\": null,\n            \"queue_callback_id\": null,\n            \"cron_profile_id\": null,\n            \"description\": \"Sales Management\",\n            \"prefix\": null,\n            \"destination_id\": 384,\n            \"hangup_destination_id\": null,\n            \"strategy\": \"ringall\",\n            \"music_group_id\": 1,\n            \"weight\": null,\n            \"autofill\": true,\n            \"maxlen\": 0,\n            \"announcement_id\": null,\n            \"periodic_announcement_id\": 1,\n            \"join_announcement_id\": null,\n            \"record\": false,\n            \"servicelevel\": null,\n            \"wrapuptime\": 0,\n            \"announce_frequency\": null,\n            \"min_announce_frequency\": null,\n            \"periodic_announce_frequency\": null,\n            \"announce_round_seconds\": \"0\",\n            \"announce_to_first_user\": false,\n            \"announce_position\": \"no\",\n            \"announce_position_limit\": null,\n            \"relative_periodic_announce\": false,\n            \"announce_holdtime\": false,\n            \"penaltymemberslimit\": null,\n            \"autopause\": \"no\",\n            \"ringinuse\": false,\n            \"memberdelay\": null,\n            \"timeoutrestart\": false,\n            \"joinempty\": \"yes\",\n            \"timeoutpriority\": \"app\",\n            \"timeout\": 15,\n            \"queue_timeout\": 30,\n            \"leavewhenempty\": \"no\",\n            \"retry\": 5,\n            \"tenant_id\": 3,\n            \"name\": \"T3_Q501\",\n            \"answered_elsewhere\": false,\n            \"agents_context\": \"T3_queue-call-to-agents\",\n            \"alertinfo\": null,\n            \"answerchannel\": true\n        }\n    ]\n}"}],"_postman_id":"af98b897-6d77-4e36-909e-25907199fde9"},{"name":"/devices/{id}/queues-login","id":"3db84abc-19eb-4bfb-96d4-54f1a747a39e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"queues","value":"all","type":"text"}]},"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues-login","description":"<p>It logins a device to provided queues or to all the queues</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues-login"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"9887c782-458e-4f42-bdf9-da2bafbcadc7","name":"200 - Login to Queues","originalRequest":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"queues","value":"all","type":"text"}]},"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues-login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Mar 2021 23:32:00 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"53"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"5\": true\n    }\n}"}],"_postman_id":"3db84abc-19eb-4bfb-96d4-54f1a747a39e"},{"name":"/devices/{id}/queues-pause","id":"a9e2bcfe-ea0d-4ff5-8007-9d44153496b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"queues","value":"all","type":"text"},{"key":"reason","value":"break","type":"text"}]},"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues-pause","description":"<p>Pause a device from all or a list of queues.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues-pause"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"1ae20837-da44-445c-9aeb-252292a58257","name":"200 - Pause from Queues","originalRequest":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"queues","value":"all","type":"text"},{"key":"reason","value":"break","type":"text"}]},"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues-pause"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Mar 2021 23:32:40 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"181"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"5\": {\n            \"status\": true,\n            \"paused\": true,\n            \"queue\": \"T3_Q500\",\n            \"type\": \"dynamic\"\n        },\n        \"7\": {\n            \"status\": true,\n            \"paused\": true,\n            \"queue\": \"T3_Q501\",\n            \"type\": \"static\"\n        }\n    }\n}"}],"_postman_id":"a9e2bcfe-ea0d-4ff5-8007-9d44153496b0"},{"name":"/devices/{id}/queues-unpause","id":"0ddf79e6-19a1-4025-bcd5-138eb1ea67a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"queues","value":"all","type":"text"}]},"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues-unpause","description":"<p>UnPause device from all/list of queues</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues-unpause"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"f5d1163d-f34b-4c39-8e9e-9456afbf18f4","name":"200 - Unpause from Queues","originalRequest":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"queues","value":"all","type":"text"}]},"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues-unpause"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Mar 2021 23:33:14 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"183"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"5\": {\n            \"status\": true,\n            \"paused\": false,\n            \"queue\": \"T3_Q500\",\n            \"type\": \"dynamic\"\n        },\n        \"7\": {\n            \"status\": true,\n            \"paused\": false,\n            \"queue\": \"T3_Q501\",\n            \"type\": \"static\"\n        }\n    }\n}"}],"_postman_id":"0ddf79e6-19a1-4025-bcd5-138eb1ea67a3"},{"name":"/devices/{id}/queues-logout","id":"b71b3dbf-382b-4c5c-bdad-15b68eea27a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"queues","value":"all","type":"text"}]},"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues-logout","description":"<p>Logout from all the queues assigned to a specific device</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues-logout"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"65ff094e-95f6-4d30-bab3-4624a8a3c51f","name":"Logout from Queues","originalRequest":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"queues","value":"all","type":"text"}]},"url":"http://{{host}}/api/v2/devices/{{device-id}}/queues-logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 13 Apr 2021 05:48:42 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"180"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"2\": {\n            \"status\": false,\n            \"paused\": false,\n            \"queue\": \"Q500\",\n            \"type\": \"unknown\"\n        },\n        \"4\": {\n            \"status\": false,\n            \"paused\": false,\n            \"queue\": \"Q502\",\n            \"type\": \"unknown\"\n        }\n    }\n}"}],"_postman_id":"b71b3dbf-382b-4c5c-bdad-15b68eea27a9"}],"id":"54d959df-8b60-4fea-8607-db1e281c3d20","description":"<p>Actions to get or create devices</p>\n","_postman_id":"54d959df-8b60-4fea-8607-db1e281c3d20","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"CDR","item":[{"name":"/cdr","id":"aadce5cf-b2bc-4ea3-9a72-00e258411fc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","type":"text","value":"{{api-key}}"},{"key":"tenant","type":"text","value":"{{tenant}}"}],"url":"http://{{host}}/api/v2/cdr?extensions=2000,3806&calltype=1,2,3,4&start_date=1556668800&end_date=1559087999&limit=0,10&order_by=calldate&order_type=desc&search=answered&search_fields=disposition,source,destination&call_history=yes","description":"<p>Get all cdr info. The requests may contain some filters, like extenisons, numbers, type of call, etc.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","cdr"],"host":["{{host}}"],"query":[{"description":{"content":"<p>Filter cdr by source and destination</p>\n","type":"text/plain"},"key":"extensions","value":"2000,3806"},{"description":{"content":"<p>Filter by call type. \n1-&gt; Internal,\n2 -&gt; Incoming,\n3 -&gt; Outgoing,\n4 -&gt; Transit</p>\n","type":"text/plain"},"key":"calltype","value":"1,2,3,4"},{"description":{"content":"<p>timestamp date. filter cdr by date range</p>\n","type":"text/plain"},"key":"start_date","value":"1556668800"},{"description":{"content":"<p>timestamp date. filter cdr by date range</p>\n","type":"text/plain"},"key":"end_date","value":"1559087999"},{"description":{"content":"<p>limit cdr results</p>\n","type":"text/plain"},"key":"limit","value":"0,10"},{"description":{"content":"<p>Field to sort results</p>\n","type":"text/plain"},"key":"order_by","value":"calldate"},{"description":{"content":"<p>method to order results (desc, asc)</p>\n","type":"text/plain"},"key":"order_type","value":"desc"},{"description":{"content":"<p>Filter cdr by a search value</p>\n","type":"text/plain"},"key":"search","value":"answered"},{"description":{"content":"<p>Fields to use for searching a value provided on search parameter</p>\n","type":"text/plain"},"key":"search_fields","value":"disposition,source,destination"},{"description":{"content":"<p>Flag for retrieving call history of two numbers (extensions)</p>\n","type":"text/plain"},"key":"call_history","value":"yes"}],"variable":[]}},"response":[{"id":"2efa2182-7bae-48ff-9971-b895965b8c4e","name":"200 - Retrive Call History","originalRequest":{"method":"GET","header":[{"key":"app-key","type":"text","value":"{{api-key}}"},{"key":"tenant","type":"text","value":"{{tenant}}"}],"url":{"raw":"http://{{host}}/api/v2/cdr?extensions=2001,0558270&calltype=1,2,3,4&limit=0,10&order_by=calldate&order_type=desc&search=answered&search_fields=disposition,source,destination&call_history=yes","protocol":"http","host":["{{host}}"],"path":["api","v2","cdr"],"query":[{"key":"extensions","value":"2001,0558270","description":"Filter cdr by source and destination"},{"key":"calltype","value":"1,2,3,4","description":"Filter by call type. \n1-> Internal,\n2 -> Incoming,\n3 -> Outgoing,\n4 -> Transit"},{"key":"start_date","value":"1556668800","description":"timestamp date. filter cdr by date range","disabled":true},{"key":"end_date","value":"1559087999","description":"timestamp date. filter cdr by date range","disabled":true},{"key":"limit","value":"0,10","description":"limit cdr results"},{"key":"order_by","value":"calldate","description":"Field to sort results"},{"key":"order_type","value":"desc","description":"method to order results (desc, asc)"},{"key":"search","value":"answered","description":"Filter cdr by a search value"},{"key":"search_fields","value":"disposition,source,destination","description":"Fields to use for searching a value provided on search parameter"},{"key":"call_history","value":"yes","description":"To retrieve call history between two extensions or numbers"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 05 Dec 2019 18:18:16 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"result\": [\n            {\n                \"calldate_ts\": \"1575504333\",\n                \"cdr_id\": \"1029\",\n                \"calldate\": \"2019-12-05 00:05:33\",\n                \"clid\": \"\\\"Person 01\\\" <2001>\",\n                \"source\": \"2001\",\n                \"src\": \"2001\",\n                \"dst\": \"0558270\",\n                \"destination\": \"0558270\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"SIP/dev_2001-000001d0\",\n                \"dstchannel\": \"SIP/eBD-Ombutel-000001d1\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/VPBX-UCM6104/8270,90,kKtTrU(sub-call-recording^43b4298b09648469^2001^8270^n\",\n                \"duration\": \"4\",\n                \"billsec\": \"0\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1575504333.2597\",\n                \"linkedid\": \"1575504333.2597\",\n                \"sequence\": \"1057\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"3\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/12/04/180536-OUT-NONE-2001-0558270-1575504333.2598.wav\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\",\n                \"trunk\": \"1\",\n                \"custom_id\": null\n            },\n            {\n                \"calldate_ts\": \"1575502415\",\n                \"cdr_id\": \"1025\",\n                \"calldate\": \"2019-12-04 23:33:35\",\n                \"clid\": \"\\\"VitalPBX: Click to Call\\\" <0558270>\",\n                \"source\": \"0558270\",\n                \"src\": \"0558270\",\n                \"dst\": \"2001\",\n                \"destination\": \"2001\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"Local/2001@click-to-call-0000010f;2\",\n                \"dstchannel\": \"SIP/dev_2001-000001c8\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/dev_2001,5,kKtTrU(sub-call-recording^43b4298b09648469^0558270^2001^no)\",\n                \"duration\": \"10\",\n                \"billsec\": \"6\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1575502415.2567\",\n                \"linkedid\": \"1575502415.2566\",\n                \"sequence\": \"1048\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/12/04/173339-LOCAL-NONE-0558270-2001-1575502415.2568.wav\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\",\n                \"trunk\": null,\n                \"custom_id\": null\n            },\n            {\n                \"calldate_ts\": \"1575502415\",\n                \"cdr_id\": \"1024\",\n                \"calldate\": \"2019-12-04 23:33:35\",\n                \"clid\": \"\\\"Person 01\\\" <2001>\",\n                \"source\": \"2001\",\n                \"src\": \"2001\",\n                \"dst\": \"0558270\",\n                \"destination\": \"0558270\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"Local/2001@click-to-call-0000010f;1\",\n                \"dstchannel\": \"SIP/eBD-Ombutel-000001c9\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/VPBX-UCM6104/8270,90,kKtTrU(sub-call-recording^43b4298b09648469^2001^8270^n\",\n                \"duration\": \"10\",\n                \"billsec\": \"6\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1575502415.2566\",\n                \"linkedid\": \"1575502415.2566\",\n                \"sequence\": \"1047\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"3\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/12/04/173342-OUT-NONE-2001-0558270-1575502420.2569.wav\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\",\n                \"trunk\": \"1\",\n                \"custom_id\": null\n            },\n            {\n                \"calldate_ts\": \"1575502312\",\n                \"cdr_id\": \"1023\",\n                \"calldate\": \"2019-12-04 23:31:52\",\n                \"clid\": \"\\\"Person 01\\\" <2001>\",\n                \"source\": \"2001\",\n                \"src\": \"2001\",\n                \"dst\": \"0558270\",\n                \"destination\": \"0558270\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"Local/2001@click-to-call-0000010e;1\",\n                \"dstchannel\": \"SIP/eBD-Ombutel-000001c7\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/VPBX-UCM6104/8270,90,kKtTrU(sub-call-recording^43b4298b09648469^2001^8270^n\",\n                \"duration\": \"8\",\n                \"billsec\": \"6\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1575502312.2560\",\n                \"linkedid\": \"1575502312.2560\",\n                \"sequence\": \"1043\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"3\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/12/04/173158-OUT-NONE-2001-0558270-1575502316.2563.wav\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\",\n                \"trunk\": \"1\",\n                \"custom_id\": null\n            },\n            {\n                \"calldate_ts\": \"1575502312\",\n                \"cdr_id\": \"1022\",\n                \"calldate\": \"2019-12-04 23:31:52\",\n                \"clid\": \"\\\"VitalPBX: Click to Call\\\" <0558270>\",\n                \"source\": \"0558270\",\n                \"src\": \"0558270\",\n                \"dst\": \"2001\",\n                \"destination\": \"2001\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"Local/2001@click-to-call-0000010e;2\",\n                \"dstchannel\": \"SIP/dev_2001-000001c6\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/dev_2001,5,kKtTrU(sub-call-recording^43b4298b09648469^0558270^2001^no)\",\n                \"duration\": \"8\",\n                \"billsec\": \"6\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1575502312.2561\",\n                \"linkedid\": \"1575502312.2560\",\n                \"sequence\": \"1044\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/12/04/173155-LOCAL-NONE-0558270-2001-1575502312.2562.wav\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\",\n                \"trunk\": null,\n                \"custom_id\": null\n            },\n            {\n                \"calldate_ts\": \"1575502040\",\n                \"cdr_id\": \"1021\",\n                \"calldate\": \"2019-12-04 23:27:20\",\n                \"clid\": \"\\\"Person 01\\\" <2001>\",\n                \"source\": \"2001\",\n                \"src\": \"2001\",\n                \"dst\": \"0558270\",\n                \"destination\": \"0558270\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"Local/2001@click-to-call-0000010d;1\",\n                \"dstchannel\": \"SIP/eBD-Ombutel-000001c5\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/VPBX-UCM6104/8270,90,kKtTrU(sub-call-recording^43b4298b09648469^2001^8270^n\",\n                \"duration\": \"10\",\n                \"billsec\": \"7\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1575502040.2554\",\n                \"linkedid\": \"1575502040.2554\",\n                \"sequence\": \"1039\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"3\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/12/04/172726-OUT-NONE-2001-0558270-1575502043.2557.wav\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\",\n                \"trunk\": \"1\",\n                \"custom_id\": null\n            },\n            {\n                \"calldate_ts\": \"1575502040\",\n                \"cdr_id\": \"1020\",\n                \"calldate\": \"2019-12-04 23:27:20\",\n                \"clid\": \"\\\"VitalPBX: Click to Call\\\" <0558270>\",\n                \"source\": \"0558270\",\n                \"src\": \"0558270\",\n                \"dst\": \"2001\",\n                \"destination\": \"2001\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"Local/2001@click-to-call-0000010d;2\",\n                \"dstchannel\": \"SIP/dev_2001-000001c4\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/dev_2001,5,kKtTrU(sub-call-recording^43b4298b09648469^0558270^2001^no)\",\n                \"duration\": \"10\",\n                \"billsec\": \"7\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1575502040.2555\",\n                \"linkedid\": \"1575502040.2554\",\n                \"sequence\": \"1040\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/12/04/172723-LOCAL-NONE-0558270-2001-1575502040.2556.wav\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\",\n                \"trunk\": null,\n                \"custom_id\": null\n            },\n            {\n                \"calldate_ts\": \"1575490173\",\n                \"cdr_id\": \"1017\",\n                \"calldate\": \"2019-12-04 20:09:33\",\n                \"clid\": \"\\\"Person 01\\\" <2001>\",\n                \"source\": \"2001\",\n                \"src\": \"2001\",\n                \"dst\": \"0558270\",\n                \"destination\": \"0558270\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"Local/2001@click-to-call-0000010a;1\",\n                \"dstchannel\": \"SIP/eBD-Ombutel-000001c3\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/VPBX-UCM6104/8270,90,kKtTrU(sub-call-recording^43b4298b09648469^2001^8270^n\",\n                \"duration\": \"17\",\n                \"billsec\": \"13\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1575490173.2541\",\n                \"linkedid\": \"1575490173.2541\",\n                \"sequence\": \"1032\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"3\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/12/04/140942-OUT-NONE-2001-0558270-1575490176.2544.wav\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\",\n                \"trunk\": \"1\",\n                \"custom_id\": null\n            },\n            {\n                \"calldate_ts\": \"1575490173\",\n                \"cdr_id\": \"1016\",\n                \"calldate\": \"2019-12-04 20:09:33\",\n                \"clid\": \"\\\"VitalPBX: Click to Call\\\" <0558270>\",\n                \"source\": \"0558270\",\n                \"src\": \"0558270\",\n                \"dst\": \"2001\",\n                \"destination\": \"2001\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"Local/2001@click-to-call-0000010a;2\",\n                \"dstchannel\": \"SIP/dev_2001-000001c2\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/dev_2001,5,kKtTrU(sub-call-recording^43b4298b09648469^0558270^2001^no)\",\n                \"duration\": \"17\",\n                \"billsec\": \"13\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1575490173.2542\",\n                \"linkedid\": \"1575490173.2541\",\n                \"sequence\": \"1033\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/12/04/140936-LOCAL-NONE-0558270-2001-1575490173.2543.wav\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\",\n                \"trunk\": null,\n                \"custom_id\": null\n            },\n            {\n                \"calldate_ts\": \"1575479235\",\n                \"cdr_id\": \"1007\",\n                \"calldate\": \"2019-12-04 17:07:15\",\n                \"clid\": \"\\\"Person 01\\\" <2001>\",\n                \"source\": \"2001\",\n                \"src\": \"2001\",\n                \"dst\": \"0558270\",\n                \"destination\": \"0558270\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"SIP/dev_2001-000001bf\",\n                \"dstchannel\": \"SIP/eBD-Ombutel-000001c0\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/VPBX-UCM6104/8270,90,kKtTrU(sub-call-recording^43b4298b09648469^2001^8270^n\",\n                \"duration\": \"36\",\n                \"billsec\": \"29\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1575479235.2510\",\n                \"linkedid\": \"1575479235.2510\",\n                \"sequence\": \"1019\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"3\",\n                \"recfile\": \"/disk4tb/call-recordings/0558270/2019-12-04-11-07-17-0558270.mp3\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\",\n                \"trunk\": \"1\",\n                \"custom_id\": null\n            }\n        ],\n        \"rows\": \"15\"\n    }\n}"},{"id":"bd289425-e3fb-49c2-814b-c47adf1d6f78","name":"200 - CDR Records","originalRequest":{"method":"GET","header":[{"key":"app-key","type":"text","value":"{{api-key}}"},{"key":"tenant","type":"text","value":"{{tenant}}"}],"url":{"raw":"http://{{host}}/api/v2/cdr?extensions=2000,3806&calltype=1,2,3,4&start_date=1556668800&end_date=1559087999&limit=0,10&order_by=calldate&order_type=desc&search=answered&search_fields=disposition,source,destination","protocol":"http","host":["{{host}}"],"path":["api","v2","cdr"],"query":[{"key":"extensions","value":"2000,3806","description":"Filter cdr by source and destination"},{"key":"calltype","value":"1,2,3,4","description":"Filter by call type. \n1-> Internal,\n2 -> Incoming,\n3 -> Outgoing,\n4 -> Transit"},{"key":"start_date","value":"1556668800","description":"timestamp date. filter cdr by date range"},{"key":"end_date","value":"1559087999","description":"timestamp date. filter cdr by date range"},{"key":"limit","value":"0,10","description":"limit cdr results"},{"key":"order_by","value":"calldate","description":"Field to sort results"},{"key":"order_type","value":"desc","description":"method to order results (desc, asc)"},{"key":"search","value":"answered","description":"Filter cdr by a search value"},{"key":"search_fields","value":"disposition,source,destination","description":"Fields to use for searching a value provided on search parameter"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 31 May 2019 16:58:12 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"7603"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"result\": [\n            {\n                \"calldate_ts\": \"1559083787\",\n                \"cdr_id\": \"190\",\n                \"calldate\": \"2019-05-28 22:49:47\",\n                \"clid\": \"\\\"Extension 3806\\\" <3806>\",\n                \"source\": \"3806\",\n                \"src\": \"3806\",\n                \"dst\": \"8910\",\n                \"destination\": \"8910\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"SIP/dev_3806-0000008f\",\n                \"dstchannel\": \"SIP/eBD-Ombutel-00000090\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/eBD-Ombutel/8910,90,ktTrU(sub-call-recording^43b4298b09648469^3806^8910^no)\",\n                \"duration\": \"35\",\n                \"billsec\": \"32\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1559083787.319\",\n                \"linkedid\": \"1559083787.319\",\n                \"sequence\": \"205\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"3\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/05/28/1559083787.320.mp3\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\"\n            },\n            {\n                \"calldate_ts\": \"1559071653\",\n                \"cdr_id\": \"185\",\n                \"calldate\": \"2019-05-28 19:27:33\",\n                \"clid\": \"\\\"Jose Rivera\\\" <2000>\",\n                \"source\": \"2000\",\n                \"src\": \"2000\",\n                \"dst\": \"501\",\n                \"destination\": \"501\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"PJSIP/2000-00000012\",\n                \"dstchannel\": \"\",\n                \"lastapp\": \"Queue\",\n                \"lastdata\": \"Q501,,,,\",\n                \"duration\": \"2\",\n                \"billsec\": \"2\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"5960859439\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1559071653.306\",\n                \"linkedid\": \"1559071653.306\",\n                \"sequence\": \"196\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\"\n            },\n            {\n                \"calldate_ts\": \"1559071483\",\n                \"cdr_id\": \"184\",\n                \"calldate\": \"2019-05-28 19:24:43\",\n                \"clid\": \"\\\"Extension 3806\\\" <3806>\",\n                \"source\": \"3806\",\n                \"src\": \"3806\",\n                \"dst\": \"8910\",\n                \"destination\": \"8910\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"SIP/dev_3806-0000008c\",\n                \"dstchannel\": \"SIP/eBD-Ombutel-0000008d\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/eBD-Ombutel/8910,90,ktTrU(sub-call-recording^43b4298b09648469^3806^8910^no)\",\n                \"duration\": \"15\",\n                \"billsec\": \"10\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1559071483.301\",\n                \"linkedid\": \"1559071483.301\",\n                \"sequence\": \"194\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"3\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/05/28/1559071483.302.mp3\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\"\n            },\n            {\n                \"calldate_ts\": \"1559070928\",\n                \"cdr_id\": \"183\",\n                \"calldate\": \"2019-05-28 19:15:28\",\n                \"clid\": \"\\\"Jose Rivera\\\" <2000>\",\n                \"source\": \"2000\",\n                \"src\": \"2000\",\n                \"dst\": \"501\",\n                \"destination\": \"501\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"PJSIP/2000-00000011\",\n                \"dstchannel\": \"\",\n                \"lastapp\": \"Queue\",\n                \"lastdata\": \"Q501,,,,\",\n                \"duration\": \"2\",\n                \"billsec\": \"2\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"5960859439\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1559070928.299\",\n                \"linkedid\": \"1559070928.299\",\n                \"sequence\": \"193\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\"\n            },\n            {\n                \"calldate_ts\": \"1559069364\",\n                \"cdr_id\": \"181\",\n                \"calldate\": \"2019-05-28 18:49:24\",\n                \"clid\": \"\\\"X-Lite\\\" <7502>\",\n                \"source\": \"7502\",\n                \"src\": \"7502\",\n                \"dst\": \"3806\",\n                \"destination\": \"3806\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"SIP/dev_7502-00000088\",\n                \"dstchannel\": \"PJSIP/2000-00000010\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/dev_3806&SIP/3806,30,kKtTrU(sub-call-recording^43b4298b09648469^7502^3806^n\",\n                \"duration\": \"5\",\n                \"billsec\": \"5\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1559069356.290\",\n                \"linkedid\": \"1559069356.290\",\n                \"sequence\": \"190\",\n                \"peeraccount\": \"5960859439\",\n                \"calltype\": \"1\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/05/28/1559069364.292.mp3\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\"\n            },\n            {\n                \"calldate_ts\": \"1559068732\",\n                \"cdr_id\": \"177\",\n                \"calldate\": \"2019-05-28 18:38:52\",\n                \"clid\": \"\\\"Jose Rivera\\\" <2000>\",\n                \"source\": \"2000\",\n                \"src\": \"2000\",\n                \"dst\": \"501\",\n                \"destination\": \"501\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"PJSIP/2000-0000000e\",\n                \"dstchannel\": \"\",\n                \"lastapp\": \"Queue\",\n                \"lastdata\": \"Q501,,,,\",\n                \"duration\": \"6\",\n                \"billsec\": \"6\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"5960859439\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1559068732.286\",\n                \"linkedid\": \"1559068732.286\",\n                \"sequence\": \"185\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"1\",\n                \"recfile\": \"\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\"\n            },\n            {\n                \"calldate_ts\": \"1559066535\",\n                \"cdr_id\": \"176\",\n                \"calldate\": \"2019-05-28 18:02:15\",\n                \"clid\": \"\\\"Extension 3806\\\" <3806>\",\n                \"source\": \"3806\",\n                \"src\": \"3806\",\n                \"dst\": \"8910\",\n                \"destination\": \"8910\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"SIP/dev_3806-00000086\",\n                \"dstchannel\": \"SIP/eBD-Ombutel-00000087\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/eBD-Ombutel/8910,90,ktTrU(sub-call-recording^43b4298b09648469^3806^8910^no)\",\n                \"duration\": \"14\",\n                \"billsec\": \"10\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1559066535.281\",\n                \"linkedid\": \"1559066535.281\",\n                \"sequence\": \"183\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"3\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/05/28/1559066535.282.mp3\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\"\n            },\n            {\n                \"calldate_ts\": \"1559066442\",\n                \"cdr_id\": \"175\",\n                \"calldate\": \"2019-05-28 18:00:42\",\n                \"clid\": \"\\\"Extension 3806\\\" <3806>\",\n                \"source\": \"3806\",\n                \"src\": \"3806\",\n                \"dst\": \"8910\",\n                \"destination\": \"8910\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"SIP/dev_3806-00000083\",\n                \"dstchannel\": \"SIP/eBD-Ombutel-00000084\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/eBD-Ombutel/8910,90,ktTrU(sub-call-recording^43b4298b09648469^3806^8910^no)\",\n                \"duration\": \"46\",\n                \"billsec\": \"39\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1559066442.277\",\n                \"linkedid\": \"1559066442.277\",\n                \"sequence\": \"180\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"3\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/05/28/1559066442.278.mp3\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\"\n            },\n            {\n                \"calldate_ts\": \"1559066349\",\n                \"cdr_id\": \"174\",\n                \"calldate\": \"2019-05-28 17:59:09\",\n                \"clid\": \"\\\"Extension 3806\\\" <3806>\",\n                \"source\": \"3806\",\n                \"src\": \"3806\",\n                \"dst\": \"8910\",\n                \"destination\": \"8910\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"SIP/dev_3806-00000081\",\n                \"dstchannel\": \"SIP/eBD-Ombutel-00000082\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/eBD-Ombutel/8910,90,ktTrU(sub-call-recording^43b4298b09648469^3806^8910^no)\",\n                \"duration\": \"19\",\n                \"billsec\": \"13\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1559066349.274\",\n                \"linkedid\": \"1559066349.274\",\n                \"sequence\": \"178\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"3\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/05/28/1559066349.275.mp3\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\"\n            },\n            {\n                \"calldate_ts\": \"1559065791\",\n                \"cdr_id\": \"173\",\n                \"calldate\": \"2019-05-28 17:49:51\",\n                \"clid\": \"\\\"Extension 3806\\\" <3806>\",\n                \"source\": \"3806\",\n                \"src\": \"3806\",\n                \"dst\": \"8910\",\n                \"destination\": \"8910\",\n                \"dcontext\": \"cos-all\",\n                \"channel\": \"SIP/dev_3806-0000007f\",\n                \"dstchannel\": \"SIP/eBD-Ombutel-00000080\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"SIP/eBD-Ombutel/8910,90,ktTrU(sub-call-recording^43b4298b09648469^3806^8910^no)\",\n                \"duration\": \"9\",\n                \"billsec\": \"1\",\n                \"disposition\": \"ANSWERED\",\n                \"amaflags\": \"3\",\n                \"accountcode\": \"\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"userfield\": \"\",\n                \"uniqueid\": \"1559065791.271\",\n                \"linkedid\": \"1559065791.271\",\n                \"sequence\": \"176\",\n                \"peeraccount\": \"\",\n                \"calltype\": \"3\",\n                \"recfile\": \"/var/spool/asterisk/monitor/2019/05/28/1559065791.272.mp3\",\n                \"tenant\": \"vitalpbx\",\n                \"processed\": \"0\",\n                \"billing_cap\": \"no\",\n                \"sync_on_recording\": \"no\"\n            }\n        ],\n        \"rows\": \"154\"\n    }\n}"}],"_postman_id":"aadce5cf-b2bc-4ea3-9a72-00e258411fc1"}],"id":"490e4d8d-ba10-4765-a67b-42b8019e2f69","description":"<p>Actions to retrive info from Asterisk CDR</p>\n","_postman_id":"490e4d8d-ba10-4765-a67b-42b8019e2f69","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Phone Books","item":[{"name":"/phonebooks","id":"7b51399b-d2c0-4203-854f-e7890b826278","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/phonebooks","description":"<p>Get all available phonebooks on the PBX</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","phonebooks"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"679182a4-f0b0-423a-8fd7-9453abf212c7","name":"200 - Retrieve all phonebooks","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/phonebooks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Sep 2019 15:43:49 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"496"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"id\": 1,\n            \"description\": \"Support Department\",\n            \"source_type\": \"internal\",\n            \"prefix\": null,\n            \"tenant_id\": 1\n        },\n        {\n            \"id\": 2,\n            \"description\": \"Demo\",\n            \"source_type\": \"internal\",\n            \"prefix\": null,\n            \"tenant_id\": 1\n        },\n        {\n            \"id\": 3,\n            \"description\": \"External Phonebook\",\n            \"source_type\": \"external\",\n            \"prefix\": null,\n            \"tenant_id\": 1\n        },\n        {\n            \"id\": 4,\n            \"description\": \"UK Contacts\",\n            \"source_type\": \"external\",\n            \"prefix\": \"9\",\n            \"tenant_id\": 1\n        },\n        {\n            \"id\": 5,\n            \"description\": \"Testing\",\n            \"source_type\": \"internal\",\n            \"prefix\": null,\n            \"tenant_id\": 1\n        }\n    ]\n}"}],"_postman_id":"7b51399b-d2c0-4203-854f-e7890b826278"},{"name":"/phonebooks/{id}","id":"ae081c4d-edcc-414b-9813-aa88daff5e7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/phonebooks/1","description":"<p>Get a specific phonebook</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","phonebooks","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"38792b5a-6c4f-4a23-be56-7191ab85ca7a","name":"404 - Phonebook doesn't exists","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/phonebooks/6"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 19:57:35 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"83"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested phonebook doesn't exists\",\n    \"data\": []\n}"},{"id":"e3f83f0f-8abd-49bb-9a25-29d3e3d4775a","name":"200 - Retrieve single phonebook","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/phonebooks/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Sep 2019 15:43:20 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"139"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"id\": 1,\n        \"description\": \"Support Department\",\n        \"source_type\": \"internal\",\n        \"prefix\": null,\n        \"tenant_id\": 1\n    }\n}"}],"_postman_id":"ae081c4d-edcc-414b-9813-aa88daff5e7e"},{"name":"/phonebooks/{id}/contacts","id":"f77ba0c4-0309-4e5a-a8f3-7e8610051ba2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/phonebooks/3/contacts","description":"<p>List the contactas related to an specific phonebook</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","phonebooks","3","contacts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"cef8f531-36b9-4b10-925b-770006711057","name":"200 - Retrieve phonebook contacts","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/phonebooks/3/contacts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Sep 2019 15:49:43 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"7279"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"name\": \"James Butt\",\n            \"telephone\": \"5048451427\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Josephine Darakjy\",\n            \"telephone\": \"8103749840\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Art Venere\",\n            \"telephone\": \"8562644130\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Lenna Paprocki\",\n            \"telephone\": \"9079212010\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Donette Foller\",\n            \"telephone\": \"5135494561\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Simona Morasca\",\n            \"telephone\": \"4198006759\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Mitsue Tollner\",\n            \"telephone\": \"7739248565\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Leota Dilliard\",\n            \"telephone\": \"4088131105\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Sage Wieser\",\n            \"telephone\": \"6057944895\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Kris Marrier\",\n            \"telephone\": \"4108044694\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Minna Amigon\",\n            \"telephone\": \"2154228694\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Abel Maclead\",\n            \"telephone\": \"6316773675\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Kiley Caldarera\",\n            \"telephone\": \"3102543084\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Graciela Ruta\",\n            \"telephone\": \"4405797763\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Cammy Albares\",\n            \"telephone\": \"9568417216\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Mattie Poquette\",\n            \"telephone\": \"6029536360\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Meaghan Garufi\",\n            \"telephone\": \"9312357959\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Gladys Rim\",\n            \"telephone\": \"4143772880\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Yuki Whobrey\",\n            \"telephone\": \"3133414470\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Fletcher Flosi\",\n            \"telephone\": \"8154265657\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Bette Nicka\",\n            \"telephone\": \"6104924643\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Veronika Inouye\",\n            \"telephone\": \"4088134592\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Willard Kolmetz\",\n            \"telephone\": \"9728964882\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Maryann Royster\",\n            \"telephone\": \"5184488982\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Alisha Slusarski\",\n            \"telephone\": \"7326353453\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Allene Iturbide\",\n            \"telephone\": \"7155309863\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Chanel Caudy\",\n            \"telephone\": \"9138991103\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Ezekiel Chui\",\n            \"telephone\": \"4102358738\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Willow Kusko\",\n            \"telephone\": \"2129345167\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Bernardo Figeroa\",\n            \"telephone\": \"9365973614\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Ammie Corrio\",\n            \"telephone\": \"6146483265\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Francine Vocelka\",\n            \"telephone\": \"5053355293\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Ernie Stenseth\",\n            \"telephone\": \"2013879093\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Albina Glick\",\n            \"telephone\": \"7327826701\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Alishia Sergi\",\n            \"telephone\": \"2127532740\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Solange Shinko\",\n            \"telephone\": \"5042658174\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Jose Stockham\",\n            \"telephone\": \"2125694233\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Rozella Ostrosky\",\n            \"telephone\": \"8056091531\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Valentine Gillian\",\n            \"telephone\": \"2103006244\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Kati Rulapaugh\",\n            \"telephone\": \"7852197724\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Youlanda Schemmer\",\n            \"telephone\": \"5419932611\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Dyan Oldroyd\",\n            \"telephone\": \"9136458918\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Roxane Campain\",\n            \"telephone\": \"9073356568\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Lavera Perin\",\n            \"telephone\": \"3059952078\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Erick Ferencz\",\n            \"telephone\": \"9072276777\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Fatima Saylors\",\n            \"telephone\": \"9524792375\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Jina Briddick\",\n            \"telephone\": \"6179975771\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Kanisha Waycott\",\n            \"telephone\": \"3233157314\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Emerson Bowley\",\n            \"telephone\": \"6086587940\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Blair Malet\",\n            \"telephone\": \"2157944519\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Brock Bolognia\",\n            \"telephone\": \"2126175063\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Lorrie Nestle\",\n            \"telephone\": \"9313036041\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Sabra Uyetake\",\n            \"telephone\": \"8036813678\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Marjory Mastella\",\n            \"telephone\": \"6103797125\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Karl Klonowski\",\n            \"telephone\": \"9084704661\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Tonette Wenner\",\n            \"telephone\": \"5163334861\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Amber Monarrez\",\n            \"telephone\": \"2153296386\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Shenika Seewald\",\n            \"telephone\": \"8187498650\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Delmy Ahle\",\n            \"telephone\": \"4015598961\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Deeanna Juhas\",\n            \"telephone\": \"2154179563\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Blondell Pugh\",\n            \"telephone\": \"4013008122\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Jamal Vanausdal\",\n            \"telephone\": \"7329042931\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Cecily Hollack\",\n            \"telephone\": \"5128613814\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Carmelina Lindall\",\n            \"telephone\": \"3038745160\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Maurine Yglesias\",\n            \"telephone\": \"4145737719\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Tawna Buvens\",\n            \"telephone\": \"2124629157\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Penney Weight\",\n            \"telephone\": \"9078732882\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Elly Morocco\",\n            \"telephone\": \"8144203553\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Ilene Eroman\",\n            \"telephone\": \"4109374543\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Vallie Mondella\",\n            \"telephone\": \"2087378439\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Kallie Blackwood\",\n            \"telephone\": \"4156047609\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Johnetta Abdallah\",\n            \"telephone\": \"9197153791\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Bobbye Rhym\",\n            \"telephone\": \"6508119032\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Micaela Rhymes\",\n            \"telephone\": \"9255227798\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Tamar Hoogland\",\n            \"telephone\": \"7405265410\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Moon Parlato\",\n            \"telephone\": \"5854984278\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Laurel Reitler\",\n            \"telephone\": \"4109576903\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Delisa Crupi\",\n            \"telephone\": \"9738479611\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Viva Toelkes\",\n            \"telephone\": \"7733523437\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Elza Lipke\",\n            \"telephone\": \"9737963667\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Devorah Chickering\",\n            \"telephone\": \"5059501763\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Timothy Mulqueen\",\n            \"telephone\": \"7186547063\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Arlette Honeywell\",\n            \"telephone\": \"9045149918\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Dominque Dickerson\",\n            \"telephone\": \"5109017640\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Lettie Isenhower\",\n            \"telephone\": \"2167338494\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Myra Munns\",\n            \"telephone\": \"8174513518\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Stephaine Barfield\",\n            \"telephone\": \"3109681219\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Lai Gato\",\n            \"telephone\": \"8479574614\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Stephen Emigh\",\n            \"telephone\": \"3307002312\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Tyra Shields\",\n            \"telephone\": \"2152288264\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Tammara Wardrip\",\n            \"telephone\": \"6502165075\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Cory Gibes\",\n            \"telephone\": \"6266962777\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Danica Bruschke\",\n            \"telephone\": \"2542051422\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Wilda Giguere\",\n            \"telephone\": \"9079149482\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Elvera Benimadho\",\n            \"telephone\": \"4084408447\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Carma Vanheusen\",\n            \"telephone\": \"5104524835\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Malinda Hochard\",\n            \"telephone\": \"3174722412\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Natalie Fern\",\n            \"telephone\": \"3072793793\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Lisha Centini\",\n            \"telephone\": \"7034757568\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Jose Rivera\",\n            \"telephone\": \"+13055605776\",\n            \"category\": \"General\"\n        },\n        {\n            \"name\": \"Jose Montes\",\n            \"telephone\": \"17056502345\",\n            \"category\": \"General\"\n        }\n    ]\n}"},{"id":"d3a3a341-3596-4439-8986-920859c42698","name":"400 - Invalid Phone Book","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/phonebooks/6/contacts"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 02 Dec 2019 19:58:55 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16"},{"key":"X-Powered-By","value":"PHP/5.4.16"},{"key":"Content-Length","value":"86"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"The provided phonebook ID doesn't exists\",\n    \"data\": []\n}"}],"_postman_id":"f77ba0c4-0309-4e5a-a8f3-7e8610051ba2"}],"id":"078db0e9-8590-4fc0-847e-9bf52777f420","_postman_id":"078db0e9-8590-4fc0-847e-9bf52777f420","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Device Profiles","item":[{"name":"/device_profiles","id":"3d44ad92-dc10-4a88-9287-539131b4b90c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/device_profiles","description":"<p>It returns an array with all the available profiles</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","device_profiles"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ad8e5bf8-986e-4819-9ce4-a18d93fde128","name":"200 OK - All Profiles Retrieved","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/device_profiles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Jul 2020 09:01:33 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.31"},{"key":"X-Powered-By","value":"PHP/7.2.31"},{"key":"Content-Length","value":"7753"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"technology\": \"bri\",\n            \"signaling\": \"bri_cpe\",\n            \"switchtype\": \"euroisdn\",\n            \"facility\": \"disabled\",\n            \"inbanddisconnect\": true,\n            \"facilityenable\": \"disabled\",\n            \"overlapdial\": \"no\",\n            \"resetinterval\": 0,\n            \"pridialplan\": \"unknown\",\n            \"prilocaldialplan\": \"national\",\n            \"internationalprefix\": null,\n            \"localprefix\": null,\n            \"nationalprefix\": null,\n            \"privateprefix\": null,\n            \"unknownprefix\": null,\n            \"usecallingpres\": true,\n            \"rxgain\": \"0.000\",\n            \"txgain\": \"0.000\",\n            \"echocanceler\": \"oslec\",\n            \"echocancel\": \"128\",\n            \"echotraining\": 0,\n            \"echocancelwhenbridged\": true,\n            \"echoparams\": \"\",\n            \"usecallerid\": true,\n            \"hidecallerid\": false,\n            \"relaxdtmf\": false,\n            \"faxdetect\": \"no\",\n            \"profile_id\": 5,\n            \"name\": \"Default BRI TE Profile\",\n            \"description\": \"Default BRI TE Profile\",\n            \"default\": true\n        },\n        {\n            \"technology\": \"bri\",\n            \"signaling\": \"bri_net\",\n            \"switchtype\": \"euroisdn\",\n            \"facility\": \"disabled\",\n            \"inbanddisconnect\": true,\n            \"facilityenable\": \"disabled\",\n            \"overlapdial\": \"no\",\n            \"resetinterval\": 0,\n            \"pridialplan\": \"unknown\",\n            \"prilocaldialplan\": \"national\",\n            \"internationalprefix\": null,\n            \"localprefix\": null,\n            \"nationalprefix\": null,\n            \"privateprefix\": null,\n            \"unknownprefix\": null,\n            \"usecallingpres\": true,\n            \"rxgain\": \"0.000\",\n            \"txgain\": \"0.000\",\n            \"echocanceler\": \"oslec\",\n            \"echocancel\": \"128\",\n            \"echotraining\": 0,\n            \"echocancelwhenbridged\": true,\n            \"echoparams\": \"\",\n            \"usecallerid\": true,\n            \"hidecallerid\": false,\n            \"relaxdtmf\": false,\n            \"faxdetect\": \"no\",\n            \"profile_id\": 6,\n            \"name\": \"Default BRI NT Profile\",\n            \"description\": \"Default BRI NT Profile\",\n            \"default\": true\n        },\n        {\n            \"technology\": \"e1pri\",\n            \"signaling\": \"pri_cpe\",\n            \"switchtype\": \"euroisdn\",\n            \"inbanddisconnect\": true,\n            \"facilityenable\": \"enabled\",\n            \"overlapdial\": \"no\",\n            \"resetinterval\": 0,\n            \"pridialplan\": \"unknown\",\n            \"prilocaldialplan\": \"national\",\n            \"internationalprefix\": null,\n            \"localprefix\": null,\n            \"nationalprefix\": null,\n            \"privateprefix\": null,\n            \"unknownprefix\": null,\n            \"usecallingpres\": true,\n            \"rxgain\": \"0.000\",\n            \"txgain\": \"0.000\",\n            \"echocanceler\": \"oslec\",\n            \"echocancel\": \"128\",\n            \"echotraining\": 0,\n            \"echocancelwhenbridged\": true,\n            \"echoparams\": \"\",\n            \"usecallerid\": true,\n            \"hidecallerid\": false,\n            \"relaxdtmf\": false,\n            \"faxdetect\": \"no\",\n            \"profile_id\": 7,\n            \"name\": \"Default E1 PRI Profile\",\n            \"description\": \"Default E1 PRI Profile\",\n            \"default\": true\n        },\n        {\n            \"technology\": \"e1r2\",\n            \"signaling\": \"mfcr2\",\n            \"switchtype\": \"euroisdn\",\n            \"variant\": \"mx\",\n            \"maxani\": 10,\n            \"maxdnis\": 4,\n            \"ani_first\": false,\n            \"category\": \"national_subscriber\",\n            \"back_timeout\": 0,\n            \"pulse_timeout\": 0,\n            \"collect_calls\": false,\n            \"double_answer\": false,\n            \"immediate_accept\": false,\n            \"skip_category\": false,\n            \"forced_release\": false,\n            \"charge_calls\": true,\n            \"dtmf_dialing\": true,\n            \"default_bits\": \"1101\",\n            \"log_level\": \"nothing\",\n            \"log_callfile_dir\": null,\n            \"inbanddisconnect\": true,\n            \"facilityenable\": \"enabled\",\n            \"overlapdial\": \"no\",\n            \"resetinterval\": 0,\n            \"pridialplan\": \"unknown\",\n            \"prilocaldialplan\": \"national\",\n            \"internationalprefix\": null,\n            \"localprefix\": null,\n            \"nationalprefix\": null,\n            \"privateprefix\": null,\n            \"unknownprefix\": null,\n            \"usecallingpres\": true,\n            \"rxgain\": \"0.000\",\n            \"txgain\": \"0.000\",\n            \"echocanceler\": \"oslec\",\n            \"echocancel\": \"128\",\n            \"echotraining\": 0,\n            \"echocancelwhenbridged\": true,\n            \"echoparams\": \"\",\n            \"usecallerid\": true,\n            \"hidecallerid\": false,\n            \"relaxdtmf\": false,\n            \"faxdetect\": \"no\",\n            \"profile_id\": 8,\n            \"name\": \"Default E1 R2 Profile\",\n            \"description\": \"Default E1 R2 Profile\",\n            \"default\": true\n        },\n        {\n            \"technology\": \"fxo\",\n            \"signaling\": \"fxs_ks\",\n            \"cidstart\": \"ring\",\n            \"cidsignaling\": \"bell\",\n            \"dtmfcidlevel\": 128,\n            \"polarityonanswerdelay\": 600,\n            \"busydetect\": false,\n            \"busycount\": 8,\n            \"busypattern\": null,\n            \"answeronpolarityswitch\": false,\n            \"hanguponpolarityswitch\": false,\n            \"rxgain\": \"0.000\",\n            \"txgain\": \"0.000\",\n            \"echocanceler\": \"oslec\",\n            \"echocancel\": \"128\",\n            \"echotraining\": 0,\n            \"echocancelwhenbridged\": true,\n            \"echoparams\": \"\",\n            \"usecallerid\": true,\n            \"hidecallerid\": false,\n            \"relaxdtmf\": false,\n            \"faxdetect\": \"no\",\n            \"profile_id\": 4,\n            \"name\": \"Default FXO Profile\",\n            \"description\": \"Default FXO Profile\",\n            \"default\": true\n        },\n        {\n            \"technology\": \"fxs\",\n            \"signaling\": \"fxo_ks\",\n            \"rxflash\": 650,\n            \"threewaycalling\": true,\n            \"transfer\": true,\n            \"callwaiting\": true,\n            \"mwisendtype\": \"hvac\",\n            \"callwaitingcallerid\": true,\n            \"sendcalleridafter\": 1,\n            \"answeronpolarityswitch\": false,\n            \"hanguponpolarityswitch\": false,\n            \"rxgain\": \"0.000\",\n            \"txgain\": \"0.000\",\n            \"echocanceler\": \"oslec\",\n            \"echocancel\": \"128\",\n            \"echotraining\": 0,\n            \"echocancelwhenbridged\": true,\n            \"echoparams\": \"\",\n            \"usecallerid\": true,\n            \"hidecallerid\": false,\n            \"relaxdtmf\": false,\n            \"faxdetect\": \"no\",\n            \"profile_id\": 3,\n            \"name\": \"Default FXS Profile\",\n            \"description\": \"Default FXS Profile\",\n            \"default\": true\n        },\n        {\n            \"technology\": \"iax\",\n            \"host\": \"dynamic\",\n            \"peertype\": \"friend\",\n            \"requirecalltoken\": \"no\",\n            \"qualify\": 2000,\n            \"qualifyfreq\": 60,\n            \"transfer\": \"yes\",\n            \"profile_id\": 2,\n            \"name\": \"Default IAX2 Profile\",\n            \"description\": \"Default IAX2 Profile\",\n            \"default\": true\n        },\n        {\n            \"technology\": \"pjsip\",\n            \"transport\": \"udp\",\n            \"dtls_cert_id\": null,\n            \"media_encryption\": \"no\",\n            \"dtls_setup\": \"actpass\",\n            \"force_rport\": true,\n            \"ice_support\": false,\n            \"rtp_symmetric\": true,\n            \"rewrite_contact\": true,\n            \"use_avpf\": false,\n            \"direct_media\": true,\n            \"disable_direct_media_on_nat\": false,\n            \"dtls_verify\": \"no\",\n            \"rtcp_mux\": false,\n            \"media_use_received_transport\": false,\n            \"media_encryption_optimistic\": false,\n            \"asymmetric_rtp_codec\": false,\n            \"dtls_fingerprint\": \"sha-256\",\n            \"dtls_rekey\": 0,\n            \"qualify_frequency\": 30,\n            \"qualify_timeout\": 3,\n            \"webrtc\": false,\n            \"send_diversion\": true,\n            \"send_pai\": false,\n            \"send_rpid\": false,\n            \"remove_existing\": true,\n            \"max_video_streams\": 5,\n            \"max_audio_streams\": 5,\n            \"support_path\": false,\n            \"outbound_proxy\": null,\n            \"profile_id\": 1,\n            \"name\": \"Default PJSIP Profile\",\n            \"description\": \"Default PJSIP Profile\",\n            \"default\": true,\n            \"force_avp\": false\n        },\n        {\n            \"technology\": \"pjsip\",\n            \"transport\": \"wss\",\n            \"dtls_cert_id\": null,\n            \"media_encryption\": \"dtls\",\n            \"dtls_setup\": \"actpass\",\n            \"force_rport\": true,\n            \"ice_support\": true,\n            \"rtp_symmetric\": true,\n            \"rewrite_contact\": false,\n            \"use_avpf\": true,\n            \"direct_media\": true,\n            \"disable_direct_media_on_nat\": true,\n            \"dtls_verify\": \"fingerprint\",\n            \"rtcp_mux\": true,\n            \"media_use_received_transport\": true,\n            \"media_encryption_optimistic\": false,\n            \"asymmetric_rtp_codec\": true,\n            \"dtls_fingerprint\": \"sha-256\",\n            \"dtls_rekey\": 0,\n            \"qualify_frequency\": 30,\n            \"qualify_timeout\": 3,\n            \"webrtc\": true,\n            \"send_diversion\": true,\n            \"send_pai\": true,\n            \"send_rpid\": true,\n            \"remove_existing\": true,\n            \"max_video_streams\": 5,\n            \"max_audio_streams\": 5,\n            \"support_path\": false,\n            \"outbound_proxy\": null,\n            \"profile_id\": 13,\n            \"name\": \"Default WebRTC Profile\",\n            \"description\": \"Default WebRTC Profile\",\n            \"default\": true,\n            \"force_avp\": false\n        },\n        {\n            \"technology\": \"sip\",\n            \"host\": \"dynamic\",\n            \"peertype\": \"friend\",\n            \"qualify\": 2000,\n            \"qualifyfreq\": 60,\n            \"transport\": \"udp\",\n            \"icesupport\": false,\n            \"encryption\": false,\n            \"avpf\": false,\n            \"directmedia\": \"nonat\",\n            \"sendrpid\": \"yes\",\n            \"trustrpid\": true,\n            \"dtlsenable\": false,\n            \"dtls_cert_id\": null,\n            \"dtlsverify\": \"no\",\n            \"dtlssetup\": \"actpass\",\n            \"dtlsfingerprint\": \"sha-256\",\n            \"dtlsrekey\": 0,\n            \"force_avp\": false,\n            \"rtcp_mux\": false,\n            \"profile_id\": 11,\n            \"name\": \"Default SIP Profile\",\n            \"description\": \"Default SIP Profile\",\n            \"default\": true\n        },\n        {\n            \"technology\": \"t1cas\",\n            \"signaling\": \"fxs_ks\",\n            \"switchtype\": \"national\",\n            \"inbanddisconnect\": true,\n            \"facilityenable\": \"disabled\",\n            \"overlapdial\": \"no\",\n            \"resetinterval\": 0,\n            \"pridialplan\": \"unknown\",\n            \"prilocaldialplan\": \"national\",\n            \"internationalprefix\": null,\n            \"localprefix\": null,\n            \"nationalprefix\": null,\n            \"privateprefix\": null,\n            \"unknownprefix\": null,\n            \"usecallingpres\": true,\n            \"rxgain\": \"0.000\",\n            \"txgain\": \"0.000\",\n            \"echocanceler\": \"oslec\",\n            \"echocancel\": \"128\",\n            \"echotraining\": 0,\n            \"echocancelwhenbridged\": true,\n            \"echoparams\": \"\",\n            \"usecallerid\": true,\n            \"hidecallerid\": false,\n            \"relaxdtmf\": false,\n            \"faxdetect\": \"no\",\n            \"profile_id\": 10,\n            \"name\": \"Default T1 CAS Profile\",\n            \"description\": \"Default T1 CAS Profile\",\n            \"default\": true\n        },\n        {\n            \"technology\": \"t1pri\",\n            \"signaling\": \"pri_cpe\",\n            \"switchtype\": \"national\",\n            \"inbanddisconnect\": true,\n            \"facilityenable\": \"enabled\",\n            \"overlapdial\": \"no\",\n            \"resetinterval\": 0,\n            \"pridialplan\": \"unknown\",\n            \"prilocaldialplan\": \"national\",\n            \"internationalprefix\": null,\n            \"localprefix\": null,\n            \"nationalprefix\": null,\n            \"privateprefix\": null,\n            \"unknownprefix\": null,\n            \"usecallingpres\": true,\n            \"rxgain\": \"0.000\",\n            \"txgain\": \"0.000\",\n            \"echocanceler\": \"oslec\",\n            \"echocancel\": \"128\",\n            \"echotraining\": 0,\n            \"echocancelwhenbridged\": true,\n            \"echoparams\": \"\",\n            \"usecallerid\": true,\n            \"hidecallerid\": false,\n            \"relaxdtmf\": false,\n            \"faxdetect\": \"no\",\n            \"profile_id\": 9,\n            \"name\": \"Default T1 PRI Profile\",\n            \"description\": \"Default T1 PRI Profile\",\n            \"default\": true\n        }\n    ]\n}"}],"_postman_id":"3d44ad92-dc10-4a88-9287-539131b4b90c"},{"name":"/devices_profiles/{id}","id":"83db6127-645d-41ee-a062-4676e1a4c468","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/device_profiles/1","description":"<p>Retrieve a specific device profile</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","device_profiles","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"737a8cd4-bef2-496a-b07d-cf8b1796160d","name":"200 OK - Retrieve Single Profile","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/device_profiles/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Jul 2020 10:55:43 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.31"},{"key":"X-Powered-By","value":"PHP/7.2.31"},{"key":"Content-Length","value":"880"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"technology\": \"pjsip\",\n        \"transport\": \"udp\",\n        \"dtls_cert_id\": null,\n        \"media_encryption\": \"no\",\n        \"dtls_setup\": \"actpass\",\n        \"force_rport\": true,\n        \"ice_support\": false,\n        \"rtp_symmetric\": true,\n        \"rewrite_contact\": true,\n        \"use_avpf\": false,\n        \"direct_media\": true,\n        \"disable_direct_media_on_nat\": false,\n        \"dtls_verify\": \"no\",\n        \"rtcp_mux\": false,\n        \"media_use_received_transport\": false,\n        \"media_encryption_optimistic\": false,\n        \"asymmetric_rtp_codec\": false,\n        \"dtls_fingerprint\": \"sha-256\",\n        \"dtls_rekey\": 0,\n        \"qualify_frequency\": 30,\n        \"qualify_timeout\": 3,\n        \"webrtc\": false,\n        \"send_diversion\": true,\n        \"send_pai\": false,\n        \"send_rpid\": false,\n        \"remove_existing\": true,\n        \"max_video_streams\": 5,\n        \"max_audio_streams\": 5,\n        \"support_path\": false,\n        \"outbound_proxy\": null,\n        \"profile_id\": 1,\n        \"name\": \"Default PJSIP Profile\",\n        \"description\": \"Default PJSIP Profile\",\n        \"default\": true,\n        \"\\u0000vitalpbx\\\\device_profile\\u0000custom\": null,\n        \"force_avp\": false\n    }\n}"},{"id":"bc526da6-cc3c-4c15-86c5-b65b1d475e8a","name":"404 - Profile not found","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/device_profiles/20"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Jul 2020 11:05:28 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.31"},{"key":"X-Powered-By","value":"PHP/7.2.31"},{"key":"Content-Length","value":"81"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested profile doesn't exists\",\n    \"data\": []\n}"}],"_postman_id":"83db6127-645d-41ee-a062-4676e1a4c468"},{"name":"/device_profiles/{id}/devices","id":"9fee26bc-af6d-465d-bbf8-8a3f0efae53a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/device_profiles/1/devices","description":"<p>Retrieve all the devices associated to an specific profile</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","device_profiles","1","devices"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"1171cf0f-0d8e-41ac-b9b6-71fe5143ee3f","name":"200 - Devices Retrieved","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/device_profiles/1/devices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Jul 2020 11:08:24 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.31"},{"key":"X-Powered-By","value":"PHP/7.2.31"},{"key":"Content-Length","value":"3965"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"device_id\": \"1\",\n            \"extension_id\": null,\n            \"profile_id\": \"1\",\n            \"user\": \"desk001\",\n            \"secret\": \"VAR6hJYS3JD9sr\",\n            \"description\": \"Desk 1\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": \"yes\",\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": \"4301\",\n            \"tenant_id\": \"1\",\n            \"device_name\": \"desk001\",\n            \"send_push\": \"no\",\n            \"dispatchable_location_id\": null\n        },\n        {\n            \"device_id\": \"2\",\n            \"extension_id\": null,\n            \"profile_id\": \"1\",\n            \"user\": \"desk002\",\n            \"secret\": \"QE5jx9K7nKuZU3\",\n            \"description\": \"Desk 2\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": \"yes\",\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": \"4302\",\n            \"tenant_id\": \"1\",\n            \"device_name\": \"desk002\",\n            \"send_push\": \"no\",\n            \"dispatchable_location_id\": null\n        },\n        {\n            \"device_id\": \"3\",\n            \"extension_id\": null,\n            \"profile_id\": \"1\",\n            \"user\": \"desk003\",\n            \"secret\": \"2ussxmZWaXY27s\",\n            \"description\": \"Desk 3\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": \"yes\",\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": \"1\",\n            \"device_name\": \"desk003\",\n            \"send_push\": \"no\",\n            \"dispatchable_location_id\": null\n        },\n        {\n            \"device_id\": \"4\",\n            \"extension_id\": null,\n            \"profile_id\": \"1\",\n            \"user\": \"desk004\",\n            \"secret\": \"6HCesqyCQVmw4x\",\n            \"description\": \"Desk 4\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": \"yes\",\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": \"1\",\n            \"device_name\": \"desk004\",\n            \"send_push\": \"no\",\n            \"dispatchable_location_id\": null\n        },\n        {\n            \"device_id\": \"5\",\n            \"extension_id\": null,\n            \"profile_id\": \"1\",\n            \"user\": \"desk005\",\n            \"secret\": \"6u7Z7eBFnt9bRD\",\n            \"description\": \"Desk 5\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": \"yes\",\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": \"1\",\n            \"device_name\": \"desk005\",\n            \"send_push\": \"no\",\n            \"dispatchable_location_id\": null\n        },\n        {\n            \"device_id\": \"6\",\n            \"extension_id\": null,\n            \"profile_id\": \"1\",\n            \"user\": \"desk006\",\n            \"secret\": \"XwhCDUnBatrEC9\",\n            \"description\": \"Desk 6\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": \"yes\",\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": \"1\",\n            \"device_name\": \"desk006\",\n            \"send_push\": \"no\",\n            \"dispatchable_location_id\": null\n        },\n        {\n            \"device_id\": \"7\",\n            \"extension_id\": null,\n            \"profile_id\": \"1\",\n            \"user\": \"desk007\",\n            \"secret\": \"2eddsMHB8mEvQG\",\n            \"description\": \"Desk 7\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": \"yes\",\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": \"1\",\n            \"device_name\": \"desk007\",\n            \"send_push\": \"no\",\n            \"dispatchable_location_id\": null\n        },\n        {\n            \"device_id\": \"8\",\n            \"extension_id\": null,\n            \"profile_id\": \"1\",\n            \"user\": \"desk008\",\n            \"secret\": \"6AY9BF4PnbSzA7\",\n            \"description\": \"Desk 8\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": \"yes\",\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": \"1\",\n            \"device_name\": \"desk008\",\n            \"send_push\": \"no\",\n            \"dispatchable_location_id\": null\n        },\n        {\n            \"device_id\": \"9\",\n            \"extension_id\": null,\n            \"profile_id\": \"1\",\n            \"user\": \"desk009\",\n            \"secret\": \"ZVS3Yrea3cGprr\",\n            \"description\": \"Desk 9\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": \"yes\",\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": \"1\",\n            \"device_name\": \"desk009\",\n            \"send_push\": \"no\",\n            \"dispatchable_location_id\": null\n        },\n        {\n            \"device_id\": \"10\",\n            \"extension_id\": null,\n            \"profile_id\": \"1\",\n            \"user\": \"desk010\",\n            \"secret\": \"g6RQh7yHQcWF4y\",\n            \"description\": \"Desk 10\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": \"yes\",\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": \"1\",\n            \"device_name\": \"desk010\",\n            \"send_push\": \"no\",\n            \"dispatchable_location_id\": null\n        },\n        {\n            \"device_id\": \"11\",\n            \"extension_id\": \"287\",\n            \"profile_id\": \"1\",\n            \"user\": \"100\",\n            \"secret\": \"Letacla01\",\n            \"description\": \"Jose Rivera\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": \"yes\",\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": \"1\",\n            \"device_name\": \"100\",\n            \"send_push\": \"yes\",\n            \"dispatchable_location_id\": null\n        },\n        {\n            \"device_id\": \"12\",\n            \"extension_id\": \"288\",\n            \"profile_id\": \"1\",\n            \"user\": \"101\",\n            \"secret\": \"ZGv5XGk67hyPU6\",\n            \"description\": \"MicroSIP\",\n            \"emergency_cid_name\": null,\n            \"emergency_cid_number\": null,\n            \"ring_device\": \"yes\",\n            \"technology\": \"pjsip\",\n            \"assigned_exten\": null,\n            \"tenant_id\": \"1\",\n            \"device_name\": \"101\",\n            \"send_push\": \"no\",\n            \"dispatchable_location_id\": null\n        }\n    ]\n}"},{"id":"c9a9de7e-6e61-41fc-af0f-d80eb74f3bfb","name":"404 - Invalid Profile ID","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/device_profiles/20/devices"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Jul 2020 11:09:25 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.31"},{"key":"X-Powered-By","value":"PHP/7.2.31"},{"key":"Content-Length","value":"81"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested profile doesn't exists\",\n    \"data\": []\n}"}],"_postman_id":"9fee26bc-af6d-465d-bbf8-8a3f0efae53a"},{"name":"/devices_profiles/webrtc","id":"155cad00-c3e1-45b8-bd5d-61f4712ed20f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/device_profiles/webrtc","description":"<p>Retrieve all the PJSIP profile marked as webrtc</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","device_profiles","webrtc"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3b54d814-f950-4e25-8a0b-4960bb248fb4","name":"200 - WebRTC Profiles Retrieved","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/device_profiles/webrtc"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Jul 2020 11:18:28 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.31"},{"key":"X-Powered-By","value":"PHP/7.2.31"},{"key":"Content-Length","value":"838"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"technology\": \"pjsip\",\n            \"transport\": \"wss\",\n            \"dtls_cert_id\": null,\n            \"media_encryption\": \"dtls\",\n            \"dtls_setup\": \"actpass\",\n            \"force_rport\": true,\n            \"ice_support\": true,\n            \"rtp_symmetric\": true,\n            \"rewrite_contact\": false,\n            \"use_avpf\": true,\n            \"direct_media\": true,\n            \"disable_direct_media_on_nat\": true,\n            \"dtls_verify\": \"fingerprint\",\n            \"rtcp_mux\": true,\n            \"media_use_received_transport\": true,\n            \"media_encryption_optimistic\": false,\n            \"asymmetric_rtp_codec\": true,\n            \"dtls_fingerprint\": \"sha-256\",\n            \"dtls_rekey\": 0,\n            \"qualify_frequency\": 30,\n            \"qualify_timeout\": 3,\n            \"webrtc\": true,\n            \"send_diversion\": true,\n            \"send_pai\": true,\n            \"send_rpid\": true,\n            \"remove_existing\": true,\n            \"max_video_streams\": 5,\n            \"max_audio_streams\": 5,\n            \"support_path\": false,\n            \"outbound_proxy\": null,\n            \"profile_id\": 13,\n            \"name\": \"Default WebRTC Profile\",\n            \"description\": \"Default WebRTC Profile\",\n            \"default\": true,\n            \"force_avp\": false\n        }\n    ]\n}"}],"_postman_id":"155cad00-c3e1-45b8-bd5d-61f4712ed20f"}],"id":"db7b72bd-74cb-4f4b-a239-d2451103d0a3","description":"<p>It containts all the available requests for the module \"Device Profiles\".</p>\n","event":[{"listen":"prerequest","script":{"id":"17a16931-8325-47ab-aa15-1a3b9b8892b8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b32892cb-f1d3-421e-8dac-0da475e07699","type":"text/javascript","exec":[""]}}],"_postman_id":"db7b72bd-74cb-4f4b-a239-d2451103d0a3","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"VitXi","item":[{"name":"/vitxi/license/{device}","id":"4774d4f0-39e4-4937-b8e5-d0116e7087f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"app-key","value":"{{vitxi-key}}","type":"text"}],"url":"http://{{host}}/api/v2/vitxi/license/10000","description":"<p>It retrieves information to validate if the premium features must be enable for the current account.</p>\n","urlObject":{"protocol":"http","path":["api","v2","vitxi","license","10000"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"06baadca-6261-4fc8-a67c-034b76e839ef","name":"404 - Device Not Found","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{vitxi-key}}","type":"text"}],"url":"http://{{host}}/api/v2/vitxi/license/1111"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 24 Jul 2020 03:57:25 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.32"},{"key":"X-Powered-By","value":"PHP/7.2.32"},{"key":"Content-Length","value":"75"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The device 1111 doesn't exists\",\n    \"data\": []\n}"},{"id":"a4030431-3f78-4d2a-abb5-b67fe555c94b","name":"200 - License Info Retrieved","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{vitxi-key}}","type":"text"}],"url":"http://{{host}}/api/v2/vitxi/license/10000"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 24 Jul 2020 03:56:33 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.32"},{"key":"X-Powered-By","value":"PHP/7.2.32"},{"key":"Content-Length","value":"81"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"license\": \"URDv9NuZYJgm74XVKgs24A==\"\n    }\n}"}],"_postman_id":"4774d4f0-39e4-4937-b8e5-d0116e7087f5"},{"name":"/vitxi/push/{device}","id":"2f707596-6d94-4c76-bf3d-c6eefc68f7ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"token\": 1234\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/vitxi/push/{{device}}","description":"<p>It allows configuring push tokens for a specific device. Each device support a maximu of 5 push tokens.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","vitxi","push","{{device}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"812f8e64-f366-42b6-96b5-a5bb35e783f9","name":"200 - Token Added","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"token\": 1234\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/vitxi/push/{{device}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 02 Dec 2020 17:43:00 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"134"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The token has been configured\",\n    \"data\": {\n        \"token\": 1234,\n        \"deviceTokens\": [\n            843942,\n            843943,\n            843944,\n            843945,\n            1234\n        ]\n    }\n}"}],"_postman_id":"2f707596-6d94-4c76-bf3d-c6eefc68f7ad"},{"name":"/vitxi/push/{device}","id":"21100342-e385-4983-85ea-022d7b4f7441","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"token\": 1234\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/vitxi/push/{{device}}","description":"<p>It allows configuring push tokens for a specific device. Each device support a maximu of 5 push tokens.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","vitxi","push","{{device}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3126449a-aa40-4c83-bc69-b186a7a6b9b1","name":"200 - Token Removed","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"token\": 1234\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/vitxi/push/{{device}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Jun 2021 22:16:37 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Length","value":"161"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The token 1234 has been removed\",\n    \"data\": {\n        \"deviceTokens\": [\n            \"IOS:41c6e6e2cb476c3dee140b9830f48a1451cca291fbfbc9a682ce6b0e68c99348\"\n        ]\n    }\n}"}],"_postman_id":"21100342-e385-4983-85ea-022d7b4f7441"}],"id":"be1b18ba-df2f-4f7d-8432-68500a67531a","description":"<p>Endpoints that can be implemented or called from VitXi mobile apps</p>\n","_postman_id":"be1b18ba-df2f-4f7d-8432-68500a67531a","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Virtual Faxes","item":[{"name":"/virtual_faxes","id":"c2c37390-7094-49ac-9df1-4c9911d4344d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/virtual_faxes","description":"<p>It retrieves all the faxes associated to the given tenant</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","virtual_faxes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"732fd201-8398-462f-ad99-bd0884871042","name":"200 - All Faxes","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/virtual_faxes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 13 Mar 2021 02:47:42 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"287"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"id\": 2,\n            \"description\": \"Another Fax\",\n            \"cos_id\": 4,\n            \"secret\": \"RD3RnYhVg3SyzEtNgM\",\n            \"associated_email\": \"miguel@vitalpbx.com\",\n            \"cid_name\": \"Jose Rivera\",\n            \"cid_number\": \"87669536\",\n            \"country_code\": null,\n            \"area_code\": null,\n            \"tenant_id\": 1,\n            \"device_name\": \"ttyIAX2\"\n        }\n    ]\n}"}],"_postman_id":"c2c37390-7094-49ac-9df1-4c9911d4344d"},{"name":"/virtual_faxes/{id}","id":"ab965060-f564-45bb-9146-6fbf36ea0df3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/virtual_faxes/{{fax-id}}","description":"<p>It retrieves the configuration/information of a specific fax device.</p>\n<p>Keep in mind that the variable <strong>{{fax-id}}</strong> represents the fax device ID.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","virtual_faxes","{{fax-id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"10a1e1a6-fad0-4453-b735-345bac12becf","name":"200 - Single Fax","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/virtual_faxes/{{fax-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 13 Mar 2021 02:49:44 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"285"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"id\": 2,\n        \"description\": \"Another Fax\",\n        \"cos_id\": 4,\n        \"secret\": \"RD3RnYhVg3SyzEtNgM\",\n        \"associated_email\": \"miguel@vitalpbx.com\",\n        \"cid_name\": \"Jose Rivera\",\n        \"cid_number\": \"87669536\",\n        \"country_code\": null,\n        \"area_code\": null,\n        \"tenant_id\": 1,\n        \"device_name\": \"ttyIAX2\"\n    }\n}"}],"_postman_id":"ab965060-f564-45bb-9146-6fbf36ea0df3"},{"name":"/virtual_faxes/{id}/send","id":"51f13840-7fe2-4ca5-8150-4296089c9950","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"url","value":"http://repo.vitalpbx.org/vitalpbx/brochures/Plan-CarrierPlusCC.pdf","description":"<p>Full URL where the PDF to be sent is located at.</p>\n","type":"text"},{"key":"recipients","value":"0100","description":"<p>List of numbers separated by comma to which the fax will be sent to.</p>\n","type":"text"},{"key":"resolution","value":"medium","description":"<p>It forces the fax resolution to use. Possible values are standard, medium, or high.</p>\n","type":"text"},{"key":"retries","value":"2","description":"<p>It allows defining the maximum number of allowed tries for sending fax after failing, not including the initial attempt.</p>\n","type":"text"},{"key":"retry_time","value":"300","description":"<p>How many seconds to wait before retry. The default is 300 (5 minutes).</p>\n","type":"text"}]},"url":"http://{{host}}/api/v2/virtual_faxes/{{fax-id}}/send","description":"<p>API endpoint for sending faxes. The file to be sent must be available online by URL.</p>\n<p>Keep in mind that the variable <strong>{{fax-id}}</strong> represents the fax device ID.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","virtual_faxes","{{fax-id}}","send"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3eb42662-4e8d-4545-ab60-b6c85e70346c","name":"200 - Fax Sent","originalRequest":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"url","value":"http://repo.vitalpbx.org/vitalpbx/brochures/Plan-CarrierPlusCC.pdf","description":"Full URL where the PDF or TXT to be sent is located at.","type":"text"},{"key":"recipients","value":"0100","description":"List of numbers separated by comma to which the fax will be sent to.","type":"text"}]},"url":"http://{{host}}/api/v2/virtual_faxes/{{fax-id}}/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 15 Mar 2021 18:32:43 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"220"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"device\": \"ttyIAX2\",\n        \"recipients\": [\n            \"0100\"\n        ],\n        \"file\": \"/var/lib/vitalpbx/fax/tmp/1615833164.2566.pdf\",\n        \"email\": \"miguel@vitalpbx.com\",\n        \"status\": \"Waiting for modem to come free\\n\"\n    }\n}"}],"_postman_id":"51f13840-7fe2-4ca5-8150-4296089c9950"},{"name":"/virtual_faxes/log/{id}","id":"0a415cac-aa3a-4859-b8dd-97f2f0b1b127","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/virtual_faxes/log/{{fax_log_id}}","description":"<p>It allows you to retrieve detailed information about a sent/received fax; This is the same information you can see on the VitalPBX's Fax Viewer module.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","virtual_faxes","log","{{fax_log_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"4c67b904-285c-4363-aa67-65cd8871cccc","name":"200 - Log Retrieved","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/virtual_faxes/log/{{fax_log_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 13 Jul 2021 05:40:17 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"265"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"unix_date\": \"1626153003\",\n        \"device_id\": 2,\n        \"device\": \"Main Fax\",\n        \"type\": \"Outgoing\",\n        \"sender\": \"\\\"VitalPBX LLC\\\" <87669536>\",\n        \"recipient\": \"0100\",\n        \"file\": \"1626153001.5126.pdf\",\n        \"status\": \"Failed\",\n        \"error\": \"The call dropped prematurely\"\n    }\n}"}],"_postman_id":"0a415cac-aa3a-4859-b8dd-97f2f0b1b127"}],"id":"c180927e-6394-4894-88b5-c9fa2dbd8b2f","description":"<p>Set of methods to retrieve Virtual Faxes' informaion. Also, it is possible sending faxes.</p>\n","_postman_id":"c180927e-6394-4894-88b5-c9fa2dbd8b2f","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Route Selections","item":[{"name":"/route_selections","id":"02c50675-8bb6-4c43-84ba-c87dfc13debb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/route_selections","description":"<p>This endpoint returns all the route selection items filtered by tenant.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","route_selections"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"154e2a21-5a2e-4daf-847a-3644907251b3","name":"200 - Get All Route Selection Items","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/route_selections"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 12 Aug 2021 22:42:31 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"255"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"ars_id\": 1,\n            \"description\": \"none\",\n            \"default\": true,\n            \"tenant_id\": 1\n        },\n        {\n            \"ars_id\": 4,\n            \"description\": \"Test Time\",\n            \"default\": false,\n            \"tenant_id\": 1\n        },\n        {\n            \"ars_id\": 5,\n            \"description\": \"International Calls\",\n            \"default\": false,\n            \"tenant_id\": 1\n        }\n    ]\n}"}],"_postman_id":"02c50675-8bb6-4c43-84ba-c87dfc13debb"},{"name":"/route_selections/{id}","id":"aa258d63-ba5a-47f8-b1f2-a9233774aa91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/route_selections/6","description":"<p>This endpoint returns a specific route selection item filtered by ID.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","route_selections","6"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"cb142fbb-500d-4e19-8cc2-df47ad9a57c3","name":"200 - Single Route Selection Item","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/route_selections/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 12 Aug 2021 22:46:53 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"105"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"ars_id\": 1,\n        \"description\": \"none\",\n        \"default\": true,\n        \"tenant_id\": 1\n    }\n}"},{"id":"bd425ac2-3e5d-4926-a472-8188d72e59f9","name":"404 - Not Found Item","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/route_selections/6"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 12 Aug 2021 22:48:17 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"94"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested route selection item doesn't exists\",\n    \"data\": []\n}"}],"_postman_id":"aa258d63-ba5a-47f8-b1f2-a9233774aa91"}],"id":"57ac85df-1389-4523-8a0c-94fd24e74f68","description":"<p>The route selections module allows you to group outbound routes to assign them to an existing class of service or share them with a tenant.</p>\n<p>The route selections are also known as <strong>outbound profiles</strong>. In the calls routing tab on the tenants' module, you will see a field labeled \"<strong>Outbound Profiles</strong>;\" this field refers to the route selection items.</p>\n","_postman_id":"57ac85df-1389-4523-8a0c-94fd24e74f68","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Outbound Routes","item":[{"name":"/outbound_routes","id":"df62f9d5-b89b-4b1b-8596-69d88644dee3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/outbound_routes","description":"<p>This endpoint returns all the outbound routes items filtered by tenant.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","outbound_routes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d2d5abb6-6c95-43c6-bc9a-4e71ea6e2e4a","name":"200 - Retrieve all outbound route items","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/outbound_routes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 12 Aug 2021 23:42:19 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"1434"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"outbound_route_id\": 1,\n            \"clearyip_connection_id\": null,\n            \"description\": \"International Calls\",\n            \"pin_list_id\": null,\n            \"destination_id\": null,\n            \"intra_company\": false,\n            \"cid_name\": null,\n            \"cid_number\": null,\n            \"overwrite_cid\": \"no\",\n            \"clearlyip_route_type\": null,\n            \"record\": false,\n            \"tenant_id\": 1,\n            \"patterns\": [\n                {\n                    \"prepend\": \"\",\n                    \"prefix\": \"\",\n                    \"pattern\": \"011.\",\n                    \"cid_pattern\": \"\"\n                }\n            ],\n            \"trunks\": [\n                {\n                    \"id\": 1,\n                    \"description\": \"Telnyx\"\n                },\n                {\n                    \"id\": 2,\n                    \"description\": \"Twilio\"\n                }\n            ]\n        },\n        {\n            \"outbound_route_id\": 2,\n            \"clearyip_connection_id\": null,\n            \"description\": \"National Calls\",\n            \"pin_list_id\": null,\n            \"destination_id\": null,\n            \"intra_company\": false,\n            \"cid_name\": null,\n            \"cid_number\": null,\n            \"overwrite_cid\": \"no\",\n            \"clearlyip_route_type\": null,\n            \"record\": false,\n            \"tenant_id\": 1,\n            \"patterns\": [\n                {\n                    \"prepend\": \"\",\n                    \"prefix\": \"\",\n                    \"pattern\": \"1NXXNXXXXXX\",\n                    \"cid_pattern\": \"\"\n                },\n                {\n                    \"prepend\": \"1\",\n                    \"prefix\": \"\",\n                    \"pattern\": \"NXXNXXXXXX\",\n                    \"cid_pattern\": \"\"\n                }\n            ],\n            \"trunks\": [\n                {\n                    \"id\": 13,\n                    \"description\": \"skyetel\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"df62f9d5-b89b-4b1b-8596-69d88644dee3"},{"name":"/outbound_routes/{id}","id":"0538ca09-3fce-44df-9099-d76ea3574389","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/outbound_routes/1","description":"<p>This endpoint returns a single outbound routes item filtered by ID.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","outbound_routes","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0073fdb3-07c0-4608-a417-ca5ebf5556c3","name":"200 - Single Outbound Route Item","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/outbound_routes/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 12 Aug 2021 23:53:20 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"479"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"outbound_route_id\": 1,\n        \"clearyip_connection_id\": null,\n        \"description\": \"International Calls\",\n        \"pin_list_id\": null,\n        \"destination_id\": null,\n        \"intra_company\": false,\n        \"cid_name\": null,\n        \"cid_number\": null,\n        \"overwrite_cid\": \"no\",\n        \"clearlyip_route_type\": null,\n        \"record\": false,\n        \"tenant_id\": 1,\n        \"trunks\": [\n            {\n                \"id\": 1,\n                \"description\": \"Telnxy\"\n            },\n            {\n                \"id\": 2,\n                \"description\": \"Twilio\"\n            }\n        ],\n        \"patterns\": [\n            {\n                \"prepend\": \"\",\n                \"prefix\": \"\",\n                \"pattern\": \"011.\",\n                \"cid_pattern\": \"\"\n            }\n        ]\n    }\n}"},{"id":"ab12d67d-e193-46c1-b74d-e2117a1212f5","name":"404 - Outbound Route Item not found","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/outbound_routes/1"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 12 Aug 2021 23:56:21 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"93"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested outbound route item doesn't exists\",\n    \"data\": []\n}"}],"_postman_id":"0538ca09-3fce-44df-9099-d76ea3574389"}],"id":"66358a0d-c474-48fe-af50-ba349409b9f9","_postman_id":"66358a0d-c474-48fe-af50-ba349409b9f9","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Roles","item":[{"name":"/roles","id":"f60d6811-d26d-455d-86a8-aa4cf94d8f4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"https://{{host}}/api/v2/roles","description":"<p>It retrieves the list of available roles filtered by tenant.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","roles"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"22acaa61-58aa-4505-8c99-ae18c9e33e14","name":"200 - All roles","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/roles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 17:58:09 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"583"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"role_id\": 1,\n            \"role\": \"super_administrator\",\n            \"description\": \"Super Administrator\",\n            \"default\": true,\n            \"tenant_id\": 1,\n            \"permissions\": {\n                \"change_language\": \"yes\",\n                \"get_updates\": \"yes\",\n                \"update_profile\": \"yes\"\n            }\n        },\n        {\n            \"role_id\": 3,\n            \"role\": \"portal\",\n            \"description\": \"Portal\",\n            \"default\": true,\n            \"tenant_id\": 1,\n            \"permissions\": {\n                \"change_language\": \"yes\",\n                \"get_updates\": \"no\",\n                \"update_profile\": \"yes\"\n            }\n        },\n        {\n            \"role_id\": 4,\n            \"role\": \"tenant_admin\",\n            \"description\": \"Tenant Administrator\",\n            \"default\": true,\n            \"tenant_id\": 1,\n            \"permissions\": {\n                \"change_language\": \"yes\",\n                \"get_updates\": \"no\",\n                \"update_profile\": \"yes\"\n            }\n        }\n    ]\n}"}],"_postman_id":"f60d6811-d26d-455d-86a8-aa4cf94d8f4c"},{"name":"/roles/{id}","id":"0cf74ac2-d4aa-45e8-b0fa-ee40f46763b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"https://{{host}}/api/v2/roles/4","description":"<p>It retrieves information of a single role.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","roles","4"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ab0709ad-f070-4274-a52c-4161f08cd083","name":"200 - Single Role","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/roles/4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 17:59:24 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"226"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"role_id\": 4,\n        \"role\": \"tenant_admin\",\n        \"description\": \"Tenant Administrator\",\n        \"default\": true,\n        \"tenant_id\": 1,\n        \"permissions\": {\n            \"change_language\": \"yes\",\n            \"get_updates\": \"no\",\n            \"update_profile\": \"yes\"\n        }\n    }\n}"},{"id":"ce63e26c-ccc5-4c6c-857f-d7a43595f21b","name":"404 - Role Not Found","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/roles/6"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 17:59:53 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"77"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested role doesn't exist\",\n    \"data\": []\n}"}],"_postman_id":"0cf74ac2-d4aa-45e8-b0fa-ee40f46763b1"},{"name":"/roles?name={name}","id":"92cb8078-63c8-4627-aaab-13ff5826d96e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"https://{{host}}/api/v2/roles?name={{name}}","description":"<p>It retrieves information of a single role.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","roles"],"host":["{{host}}"],"query":[{"key":"name","value":"{{name}}"}],"variable":[]}},"response":[{"id":"2481abdd-889c-4235-b519-d27561f16f52","name":"200 - Single Role","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/roles/4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 17:59:24 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"226"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"role_id\": 4,\n        \"role\": \"tenant_admin\",\n        \"description\": \"Tenant Administrator\",\n        \"default\": true,\n        \"tenant_id\": 1,\n        \"permissions\": {\n            \"change_language\": \"yes\",\n            \"get_updates\": \"no\",\n            \"update_profile\": \"yes\"\n        }\n    }\n}"},{"id":"c4dab273-7b9c-4b25-be2d-067252826a0e","name":"404 - Role Not Found","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/roles/6"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 17:59:53 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"77"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested role doesn't exist\",\n    \"data\": []\n}"},{"id":"1395fca4-af43-41ec-9b36-99226c242886","name":"200 - Role retrieved by name","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":{"raw":"https://{{host}}/api/v2/roles?name=tenant_admin","protocol":"https","host":["{{host}}"],"path":["api","v2","roles"],"query":[{"key":"name","value":"tenant_admin"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Aug 2021 17:31:22 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"231"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"role_id\": \"4\",\n        \"role\": \"tenant_admin\",\n        \"description\": \"Tenant Administrator\",\n        \"default\": \"yes\",\n        \"tenant_id\": \"1\",\n        \"permissions\": {\n            \"change_language\": \"yes\",\n            \"get_updates\": \"no\",\n            \"update_profile\": \"yes\"\n        }\n    }\n}"}],"_postman_id":"92cb8078-63c8-4627-aaab-13ff5826d96e"},{"name":"/roles/{id}/modules","id":"4e5424b7-35bb-4dfd-8b49-58daf88a4980","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"https://{{host}}/api/v2/roles/4/modules","description":"<p>It retrieves the list of modules allowed for a specific role.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","roles","4","modules"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"98ae0204-64ae-4eba-849b-befe0447a4be","name":"200 - Role Modules","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/roles/4/modules"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 18:01:15 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"6037"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"extensions\",\n            \"display_name\": \"Extensions\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 2,\n            \"name\": \"hot_desking\",\n            \"display_name\": \"Hot Desking\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 4,\n            \"name\": \"import_extensions\",\n            \"display_name\": \"Import Extensions\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 103,\n            \"name\": \"export_extensions\",\n            \"display_name\": \"Export Extensions\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 5,\n            \"name\": \"bulk_modification\",\n            \"display_name\": \"Bulk Modification\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 152,\n            \"name\": \"bulk_extensions\",\n            \"display_name\": \"Bulk Extensions\",\n            \"multi_tenant_capable\": false\n        },\n        {\n            \"id\": 6,\n            \"name\": \"extensions_status\",\n            \"display_name\": \"Extensions Status\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 8,\n            \"name\": \"conferences\",\n            \"display_name\": \"Conferences\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 9,\n            \"name\": \"custom_app\",\n            \"display_name\": \"Custom Applications\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 10,\n            \"name\": \"custom_dest\",\n            \"display_name\": \"Custom Destinations\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 12,\n            \"name\": \"paging\",\n            \"display_name\": \"Paging & Intercom\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 93,\n            \"name\": \"pickup_group\",\n            \"display_name\": \"Pickup Groups\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 11,\n            \"name\": \"parking\",\n            \"display_name\": \"Parking\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 7,\n            \"name\": \"speeddial\",\n            \"display_name\": \"Speed Dialing\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 109,\n            \"name\": \"import_speeddial\",\n            \"display_name\": \"Import/Export Speed Dialing\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 14,\n            \"name\": \"vmgroup\",\n            \"display_name\": \"Voicemail Broadcast Groups\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 38,\n            \"name\": \"call_back\",\n            \"display_name\": \"Call Back\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 30,\n            \"name\": \"disa\",\n            \"display_name\": \"DISA\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 24,\n            \"name\": \"pin\",\n            \"display_name\": \"PIN Lists\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 15,\n            \"name\": \"class_of_service\",\n            \"display_name\": \"Class of Service\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 16,\n            \"name\": \"feature_category\",\n            \"display_name\": \"Feature Categories\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 17,\n            \"name\": \"dialrules\",\n            \"display_name\": \"Dialing Restriction Rules\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 18,\n            \"name\": \"accountcode\",\n            \"display_name\": \"Customer Codes\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 19,\n            \"name\": \"authcode\",\n            \"display_name\": \"Authorization Codes\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 28,\n            \"name\": \"ars\",\n            \"display_name\": \"Route Selections\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 20,\n            \"name\": \"ring_group\",\n            \"display_name\": \"Ring Groups\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 21,\n            \"name\": \"queues\",\n            \"display_name\": \"Queues\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 22,\n            \"name\": \"queues_priority\",\n            \"display_name\": \"Queue Priorities\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 23,\n            \"name\": \"queues_vip\",\n            \"display_name\": \"Queue VIPs\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 26,\n            \"name\": \"trunks\",\n            \"display_name\": \"Trunks\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 27,\n            \"name\": \"trunk_group\",\n            \"display_name\": \"Outbound Routes\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 29,\n            \"name\": \"inbound_route\",\n            \"display_name\": \"Inbound Routes\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 128,\n            \"name\": \"dynamic_routing\",\n            \"display_name\": \"Dynamic Routing\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 31,\n            \"name\": \"ivr\",\n            \"display_name\": \"IVR\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 32,\n            \"name\": \"time_group\",\n            \"display_name\": \"Time Groups\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 79,\n            \"name\": \"time_conditions\",\n            \"display_name\": \"Time Conditions\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 33,\n            \"name\": \"preannoun\",\n            \"display_name\": \"Announcements\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 34,\n            \"name\": \"languages\",\n            \"display_name\": \"Languages\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 35,\n            \"name\": \"nightmode\",\n            \"display_name\": \"Night Mode\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 104,\n            \"name\": \"cid_management\",\n            \"display_name\": \"CID Modifiers\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 116,\n            \"name\": \"cid_lookup\",\n            \"display_name\": \"CID Lookup\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 36,\n            \"name\": \"blacklist\",\n            \"display_name\": \"Blacklist\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 87,\n            \"name\": \"dashboard\",\n            \"display_name\": \"Dashboard\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 117,\n            \"name\": \"cron_profiles\",\n            \"display_name\": \"Cron Profiles\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 85,\n            \"name\": \"weak_password\",\n            \"display_name\": \"Weak Passwords\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 146,\n            \"name\": \"phone_books\",\n            \"display_name\": \"Phonebooks\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 119,\n            \"name\": \"emergency_numbers\",\n            \"display_name\": \"Emergency Numbers\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 138,\n            \"name\": \"emergency_locations\",\n            \"display_name\": \"Dispatchable Locations\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 161,\n            \"name\": \"provisioning_templates\",\n            \"display_name\": \"Templates\",\n            \"multi_tenant_capable\": false\n        },\n        {\n            \"id\": 162,\n            \"name\": \"provisioning\",\n            \"display_name\": \"Provisioning\",\n            \"multi_tenant_capable\": false\n        },\n        {\n            \"id\": 140,\n            \"name\": \"fax_devices\",\n            \"display_name\": \"Fax Devices\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 142,\n            \"name\": \"fax_sending\",\n            \"display_name\": \"Fax Sending\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 143,\n            \"name\": \"fax_viewer\",\n            \"display_name\": \"Fax Viewer\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 88,\n            \"name\": \"cdr_filters\",\n            \"display_name\": \"CDR Filters\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 41,\n            \"name\": \"repcdr\",\n            \"display_name\": \"CDR\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 137,\n            \"name\": \"active_calls\",\n            \"display_name\": \"Active Calls\",\n            \"multi_tenant_capable\": false\n        },\n        {\n            \"id\": 134,\n            \"name\": \"pjsip_endpoints\",\n            \"display_name\": \"PJSIP Endpoints\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 135,\n            \"name\": \"sip_report\",\n            \"display_name\": \"SIP Devices\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 136,\n            \"name\": \"iax2_report\",\n            \"display_name\": \"IAX2 Devices\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 105,\n            \"name\": \"dial_profiles\",\n            \"display_name\": \"Dial Profiles\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 47,\n            \"name\": \"astmanager_users\",\n            \"display_name\": \"Asterisk Manager Users\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 48,\n            \"name\": \"music_on_hold\",\n            \"display_name\": \"Music on Hold\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 49,\n            \"name\": \"recmanagement\",\n            \"display_name\": \"Recordings Management\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 57,\n            \"name\": \"users\",\n            \"display_name\": \"Users\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 58,\n            \"name\": \"users_profiles\",\n            \"display_name\": \"User Profiles\",\n            \"multi_tenant_capable\": true\n        },\n        {\n            \"id\": 127,\n            \"name\": \"app_keys\",\n            \"display_name\": \"Application Keys\",\n            \"multi_tenant_capable\": false\n        }\n    ]\n}"}],"_postman_id":"4e5424b7-35bb-4dfd-8b49-58daf88a4980"}],"id":"24936b2b-4e20-42d9-b9bd-86a09f942939","description":"<p>List of endpoints to manage roles on VitalPBX.</p>\n","_postman_id":"24936b2b-4e20-42d9-b9bd-86a09f942939","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Users","item":[{"name":"/users","id":"8366af71-9a23-4b20-9c40-b18dad6c3cd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"https://{{host}}/api/v2/users","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","users"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b088ddb4-a27f-44b1-b000-bf354e69da06","name":"200 - Retrieve All Users","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 21:20:20 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"3372"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"id\": 1,\n            \"username\": \"admin\",\n            \"email\": null,\n            \"displayname\": \"Administrator\",\n            \"department\": \"Administration\",\n            \"locale\": \"en_US\",\n            \"timezone\": \"system\",\n            \"startapp\": \"mini_http_server\",\n            \"dark_mode\": true,\n            \"portaluser\": false,\n            \"multitab\": true,\n            \"enabled\": true,\n            \"default\": true\n        },\n        {\n            \"id\": 2,\n            \"username\": \"100\",\n            \"email\": null,\n            \"displayname\": \"Jose Rivera\",\n            \"department\": \"Portal Users\",\n            \"locale\": \"en_US\",\n            \"timezone\": \"America/Managua\",\n            \"startapp\": \"extension_settings\",\n            \"dark_mode\": false,\n            \"portaluser\": true,\n            \"multitab\": true,\n            \"enabled\": true,\n            \"default\": false\n        }\n    ]\n}"}],"_postman_id":"8366af71-9a23-4b20-9c40-b18dad6c3cd8"},{"name":"/users/{id}","id":"171ec881-e080-4958-81ff-d87f0069af40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"https://{{host}}/api/v2/users/1","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","users","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a9a221ee-78b9-404a-a3b2-fce709fefb7f","name":"200 - Retrieve Single User","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"https://{{host}}/api/v2/users/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 22:53:55 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"292"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"id\": 1,\n        \"username\": \"admin\",\n        \"email\": null,\n        \"displayname\": \"Administrator\",\n        \"department\": \"Administration\",\n        \"locale\": \"en_US\",\n        \"timezone\": \"system\",\n        \"startapp\": \"mini_http_server\",\n        \"dark_mode\": true,\n        \"portaluser\": false,\n        \"multitab\": true,\n        \"enabled\": true,\n        \"default\": true\n    }\n}"},{"id":"4783a359-a9ea-4a8a-aa89-2cb8226b0bb0","name":"404 - User Not Found","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"https://{{host}}/api/v2/users/99"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 22:55:07 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"77"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested user doesn't exist\",\n    \"data\": []\n}"}],"_postman_id":"171ec881-e080-4958-81ff-d87f0069af40"},{"name":"/users?email={email}","id":"30ebaa32-cf4c-48f3-b654-8dc52222aa72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"https://{{host}}/api/v2/users?email={{email}}","description":"<p>Endpoint for finding VitalPBX's user by e-mail address.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","users"],"host":["{{host}}"],"query":[{"key":"email","value":"{{email}}"}],"variable":[]}},"response":[{"id":"d9bd2507-b3a1-47eb-afc4-ba0a7aa43319","name":"200 - User retrieved by email","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":{"raw":"https://{{host}}/api/v2/users?email=miguel@vitalpbx.com","protocol":"https","host":["{{host}}"],"path":["api","v2","users"],"query":[{"key":"email","value":"miguel@vitalpbx.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Aug 2021 16:59:06 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"311"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"id\": 48,\n        \"username\": \"miguel@vitalpbx.com\",\n        \"email\": \"miguel@vitalpbx.com\",\n        \"displayname\": \"Jhon Doe\",\n        \"department\": \"Administration\",\n        \"locale\": \"en_US\",\n        \"timezone\": \"UTC\",\n        \"startapp\": \"dashboard\",\n        \"dark_mode\": false,\n        \"portaluser\": false,\n        \"multitab\": true,\n        \"enabled\": true,\n        \"default\": false\n    }\n}"}],"_postman_id":"30ebaa32-cf4c-48f3-b654-8dc52222aa72"},{"name":"/users?username={username}","id":"e8d459ef-2f6e-40ad-8ac5-4fcd4ad58933","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"https://{{host}}/api/v2/users?username={{username}}","description":"<p>Endpoint for finding VitalPBX's user by username.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","users"],"host":["{{host}}"],"query":[{"key":"username","value":"{{username}}"}],"variable":[]}},"response":[{"id":"45852230-fac6-47ae-8d1a-fda1d479c550","name":"200 - User retrieved by username","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":{"raw":"https://{{host}}/api/v2/users?username=admin","protocol":"https","host":["{{host}}"],"path":["api","v2","users"],"query":[{"key":"username","value":"admin"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Aug 2021 17:12:57 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"292"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"id\": 1,\n        \"username\": \"admin\",\n        \"email\": null,\n        \"displayname\": \"Administrator\",\n        \"department\": \"Administration\",\n        \"locale\": \"en_US\",\n        \"timezone\": \"system\",\n        \"startapp\": \"mini_http_server\",\n        \"dark_mode\": true,\n        \"portaluser\": false,\n        \"multitab\": true,\n        \"enabled\": true,\n        \"default\": true\n    }\n}"}],"_postman_id":"e8d459ef-2f6e-40ad-8ac5-4fcd4ad58933"}],"id":"97914362-2519-4089-858d-58162eb43a40","description":"<p>Endpoints to manage VitalPBX's users</p>\n","_postman_id":"97914362-2519-4089-858d-58162eb43a40","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}},{"name":"Destinations","item":[{"name":"/destinations","id":"33386411-b55e-4934-b8d2-e73f0ef3a7b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/destinations","description":"<p>It returns all the destinations categories available on the PBX.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","destinations"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"06937737-ef13-407a-8705-36ebcb0b3922","name":"200 - Destination Categories Retrieved","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/destinations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Nov 2021 19:54:40 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"999"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"id\": \"1\",\n            \"module\": \"Extensions\"\n        },\n        {\n            \"id\": \"9\",\n            \"module\": \"Speed Dialing\"\n        },\n        {\n            \"id\": \"4\",\n            \"module\": \"Conferences\"\n        },\n        {\n            \"id\": \"5\",\n            \"module\": \"Custom Applications\"\n        },\n        {\n            \"id\": \"6\",\n            \"module\": \"Custom Destinations\"\n        },\n        {\n            \"id\": \"8\",\n            \"module\": \"Parking\"\n        },\n        {\n            \"id\": \"7\",\n            \"module\": \"Paging & Intercom\"\n        },\n        {\n            \"id\": \"13\",\n            \"module\": \"Ring Groups\"\n        },\n        {\n            \"id\": \"14\",\n            \"module\": \"Queues\"\n        },\n        {\n            \"id\": \"15\",\n            \"module\": \"Queue Priorities\"\n        },\n        {\n            \"id\": \"22\",\n            \"module\": \"Trunks\"\n        },\n        {\n            \"id\": \"23\",\n            \"module\": \"Outbound Routes\"\n        },\n        {\n            \"id\": \"31\",\n            \"module\": \"Inbound Routes\"\n        },\n        {\n            \"id\": \"16\",\n            \"module\": \"IVR\"\n        },\n        {\n            \"id\": \"18\",\n            \"module\": \"Announcements\"\n        },\n        {\n            \"id\": \"20\",\n            \"module\": \"Night Mode\"\n        },\n        {\n            \"id\": \"17\",\n            \"module\": \"Time Conditions\"\n        },\n        {\n            \"id\": \"24\",\n            \"module\": \"Terminate Call\"\n        },\n        {\n            \"id\": \"25\",\n            \"module\": \"Voicemail Direct\"\n        },\n        {\n            \"id\": \"26\",\n            \"module\": \"Voicemail Busy\"\n        },\n        {\n            \"id\": \"27\",\n            \"module\": \"Voicemail Unavailable\"\n        },\n        {\n            \"id\": \"28\",\n            \"module\": \"Follow Me\"\n        },\n        {\n            \"id\": \"30\",\n            \"module\": \"Custom Number\"\n        },\n        {\n            \"id\": \"32\",\n            \"module\": \"Fax Devices\"\n        },\n        {\n            \"id\": \"35\",\n            \"module\": \"Custom Contexts\"\n        },\n        {\n            \"id\": \"36\",\n            \"module\": \"Dynamic Destinations\"\n        }\n    ]\n}"}],"_postman_id":"33386411-b55e-4934-b8d2-e73f0ef3a7b6"},{"name":"/destinations/{id}","id":"98774008-5978-4d10-8b09-a86f1abc0437","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/destinations/24","description":"<p>It returns the available destinations for a specific destination category.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","destinations","24"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"716ab208-732b-4b43-9850-f129b36104f4","name":"200 - List Destinations","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/destinations/24"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Nov 2021 20:03:16 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"215"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"destination\": \"Hangup\",\n            \"id\": 1\n        },\n        {\n            \"destination\": \"Congestion\",\n            \"id\": 2\n        },\n        {\n            \"destination\": \"Busy\",\n            \"id\": 3\n        },\n        {\n            \"destination\": \"Music on Hold\",\n            \"id\": 4\n        },\n        {\n            \"destination\": \"Ringback\",\n            \"id\": 5\n        }\n    ]\n}"},{"id":"3c724a6a-4ec8-4ed1-a0ee-14cb9141bf1f","name":"404 - Destination Category Not Found","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"url":"http://{{host}}/api/v2/destinations/200"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Nov 2021 20:05:14 GMT"},{"key":"Server","value":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"Content-Length","value":"85"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested destination doesn't exists\",\n    \"data\": []\n}"}],"_postman_id":"98774008-5978-4d10-8b09-a86f1abc0437"}],"id":"0f6bc912-e60a-4cd5-b9de-f1708ad9140d","_postman_id":"0f6bc912-e60a-4cd5-b9de-f1708ad9140d","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]},"isInherited":true,"source":{"_postman_id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","id":"b27fada8-1837-592e-2b4b-1b56f26ae4d8","name":"VitalPBX","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{api-key}}"}]}},"event":[{"listen":"prerequest","script":{"id":"1e385d0a-085f-4aae-b165-c2a7de6930ce","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e25fff7b-47d0-48eb-9220-e06e81311798","type":"text/javascript","exec":[""]}}]}