{"info":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","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":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","publishedId":"2s935hQmgP","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"293540","highlight":"529367"},"publishDate":"2023-01-30T01:11:12.000Z"},"item":[{"name":"Account Codes","item":[{"name":"/account_codes","id":"380ee43e-c7aa-462a-a4db-d729d7b3613a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/account_codes","description":"<p>This endpoint retrieves all the account codes assigned to the extensions.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this GET request.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","account_codes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"314fe07e-bfe1-402b-93c6-0aa095348bb1","name":"200 - All Account Codes","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/account_codes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Tue, 10 Dec 2024 20:22:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Set-Cookie","value":"HttpOnly;Secure"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        \"100\",\n        \"200\"\n    ]\n}"}],"_postman_id":"380ee43e-c7aa-462a-a4db-d729d7b3613a"}],"id":"fadb70e5-1cc5-4146-9b60-4fe0ab26c2e7","description":"<p>Set of endpoints to manage the Account Codes.</p>\n","_postman_id":"fadb70e5-1cc5-4146-9b60-4fe0ab26c2e7","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Authorization Codes","item":[{"name":"/auth_codes","id":"6495d0f4-75ea-445d-879b-27387c4b7bd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/auth_codes","description":"<p>This endpoint retrieves a list of authorization codes.</p>\n<p><strong>Request Body:</strong><br />This request does not require a request body.</p>\n<p><strong>Response:</strong></p>\n<ul>\n<li><p><code>status</code> (string): The status of the response.</p>\n</li>\n<li><p><code>message</code> (string): A message related to the response.</p>\n</li>\n<li><p><code>data</code> (array): An array containing the following information for each authorization codes:</p>\n<ul>\n<li><p><code>id</code> (integer): The ID of the authorization codes.</p>\n</li>\n<li><p><code>code</code> (string): The authentication code.</p>\n</li>\n<li><p><code>alias</code> (string): An alias for the authorization codes.</p>\n</li>\n<li><p><code>description</code> (string): A description of the authorization codes.</p>\n</li>\n<li><p><code>cos_id</code> (integer): The ID of the COS (Class of Service) associated with the authorization codes.</p>\n</li>\n<li><p><code>enabled</code> (boolean): Indicates whether the authorization codes is enabled or not.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","auth_codes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"bad30e92-ae61-4d09-9916-7f5cd5879ce1","name":"200 - All Auth Codes","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/auth_codes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Thu, 05 Dec 2024 21:09:54 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"id\": 1,\n            \"code\": \"1212546\",\n            \"alias\": \"Boss\",\n            \"description\": \"Boss Calls\",\n            \"cos_id\": 1,\n            \"enabled\": true\n        }\n    ]\n}"}],"_postman_id":"6495d0f4-75ea-445d-879b-27387c4b7bd1"},{"name":"/auth_codes/{id}","id":"6c9be674-c5ad-42b5-b32f-3c931182170e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/auth_codes/1","description":"<p>This endpoint retrieves the details of a specific authorization code.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this request.</p>\n<ul>\n<li><p>Path parameter:</p>\n<ul>\n<li><code>id</code> (number): The ID of the authorization code to retrieve.</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"null\"\n    },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"id\": {\n          \"type\": \"number\"\n        },\n        \"code\": {\n          \"type\": \"string\"\n        },\n        \"alias\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"cos_id\": {\n          \"type\": \"number\"\n        },\n        \"enabled\": {\n          \"type\": \"boolean\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n<p>The response will contain the status, message (if any), and the details of the authentication code including its ID, code, alias, description, cos_id, and enabled status.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","auth_codes","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"75220679-154f-40a9-ae07-3ffc59029c97","name":"200 - Retrieve Single Auth Code","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/auth_codes/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Thu, 05 Dec 2024 21:21:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"id\": 1,\n        \"code\": \"1212546\",\n        \"alias\": \"Boss\",\n        \"description\": \"Boss Calls\",\n        \"cos_id\": 1,\n        \"enabled\": true\n    }\n}"},{"id":"2becb8a9-3723-4cc3-a0be-0be5fc8b7b25","name":"404 - Not Found","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/auth_codes/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Thu, 05 Dec 2024 21:22:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested authorization code doesn't exists\",\n    \"data\": []\n}"}],"_postman_id":"6c9be674-c5ad-42b5-b32f-3c931182170e"},{"name":"/auth_codes","id":"9896cc45-656e-4aae-9c27-39d2c4c8873c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n   \"code\": \"9898\",\r\n   \"alias\": \"sales\",\r\n   \"description\": \"Sales Team\",\r\n   \"cos_id\": 1,\r\n   \"enabled\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/auth_codes","description":"<p>This endpoint allows the creation of authorization codes.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>code</code> (string, required): The authorization code.</p>\n</li>\n<li><p><code>alias</code> (string, required): An alias for the authorization code.</p>\n</li>\n<li><p><code>description</code> (string, required): A description of the purpose of the authorization code.</p>\n</li>\n<li><p><code>cos_id</code> (integer, required): The ID of the associated class of service.</p>\n</li>\n<li><p><code>enabled</code> (boolean, required): Indicates whether the authorization code is enabled.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\"\n        },\n        \"code\": {\n          \"type\": \"string\"\n        },\n        \"alias\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"cos_id\": {\n          \"type\": \"integer\"\n        },\n        \"enabled\": {\n          \"type\": \"boolean\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","auth_codes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"50064b2c-1349-457e-9e0a-6d3745d408e7","name":"200 - Auth Code Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n   \"code\": \"9898\",\r\n   \"alias\": \"sales\",\r\n   \"description\": \"Sales Team\",\r\n   \"cos_id\": 1,\r\n   \"enabled\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/auth_codes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Fri, 06 Dec 2024 19:11:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The data has been added to the database\",\n    \"data\": {\n        \"id\": \"2\",\n        \"code\": \"9898\",\n        \"alias\": \"sales\",\n        \"description\": \"Sales Team\",\n        \"cos_id\": 1,\n        \"enabled\": false\n    }\n}"},{"id":"7d9b35de-8268-4c71-acaa-5d44e6f3f8c9","name":"400 - Invalid Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n   \"code\": \"9898\",\r\n   \"description\": \"Sales Team\",\r\n   \"cos_id\": 1,\r\n   \"enabled\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/auth_codes"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Fri, 06 Dec 2024 19:09:54 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"Alias is required.\",\n    \"data\": []\n}"}],"_postman_id":"9896cc45-656e-4aae-9c27-39d2c4c8873c"},{"name":"/auth_codes/{id}","id":"2b9ee19e-e511-4ded-bb00-be802bed6158","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n   \"code\": \"9898\",\r\n   \"alias\": \"sales\",\r\n   \"description\": \"Sales Team\",\r\n   \"cos_id\": 1,\r\n   \"enabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/auth_codes/2","description":"<p>This endpoint allows the client to update an authorization code with the provided details.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>code</code> (string): The updated authorization code.</p>\n</li>\n<li><p><code>alias</code> (string): The alias for the authorization code.</p>\n</li>\n<li><p><code>description</code> (string): A description for the authorization code.</p>\n</li>\n<li><p><code>cos_id</code> (number): The ID of the associated COS.</p>\n</li>\n<li><p><code>enabled</code> (boolean): Indicates whether the authorization code is enabled.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"id\": {\n          \"type\": \"number\"\n        },\n        \"code\": {\n          \"type\": \"string\"\n        },\n        \"alias\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"cos_id\": {\n          \"type\": \"number\"\n        },\n        \"enabled\": {\n          \"type\": \"boolean\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","auth_codes","2"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"041efaef-bd2a-4296-a39a-36569909e021","name":"200 - Auth Code Updated","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n   \"code\": \"9898\",\r\n   \"alias\": \"sales\",\r\n   \"description\": \"Sales Team\",\r\n   \"cos_id\": 1,\r\n   \"enabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/auth_codes/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Fri, 06 Dec 2024 19:25:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The data has been updated in the database\",\n    \"data\": {\n        \"id\": 2,\n        \"code\": \"9898\",\n        \"alias\": \"sales\",\n        \"description\": \"Sales Team\",\n        \"cos_id\": 1,\n        \"enabled\": true\n    }\n}"},{"id":"94471e7e-1e48-475e-a67e-0268a66a1dea","name":"400 - Invalid Request","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n   \"code\": \"9898\",\r\n   \"alias\": \"sales\",\r\n   \"description\": \"Sales Team\",\r\n   \"cos_id\": 2,\r\n   \"enabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/auth_codes/2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Fri, 06 Dec 2024 19:26:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"The given Class of Services is invalid!\",\n    \"data\": []\n}"}],"_postman_id":"2b9ee19e-e511-4ded-bb00-be802bed6158"},{"name":"/auth_codes/{id}","id":"d4ed42ad-a749-4193-b8d9-63a7fad0d32e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n   \"description\": \"Sales\",\r\n   \"enabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/auth_codes/2","description":"<p>This endpoint is used to update specific fields of a specific authorization code.</p>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><code>status</code> (string): The status of the response.</p>\n</li>\n<li><p><code>message</code> (string): A message related to the response status.</p>\n</li>\n<li><p><code>data</code> (object): An object containing the updated details of the authorization code.</p>\n<ul>\n<li><p><code>id</code> (integer): The ID of the authorization code.</p>\n</li>\n<li><p><code>code</code> (string): The authorization code.</p>\n</li>\n<li><p><code>alias</code> (string): The alias of the authorization code.</p>\n</li>\n<li><p><code>description</code> (string): The updated description of the authorization code.</p>\n</li>\n<li><p><code>cos_id</code> (integer): The ID of the associated COS.</p>\n</li>\n<li><p><code>enabled</code> (boolean): The updated status of the authorization code.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","auth_codes","2"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"c4e8f6aa-2d97-4a8d-8c94-4773a71ddef4","name":"200 - Auth Code Updated","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n   \"description\": \"Sales\",\r\n   \"enabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/auth_codes/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Mon, 09 Dec 2024 18:38:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The data has been updated in the database\",\n    \"data\": {\n        \"id\": 2,\n        \"code\": \"9898\",\n        \"alias\": \"sales\",\n        \"description\": \"Sales\",\n        \"cos_id\": 1,\n        \"enabled\": true\n    }\n}"},{"id":"fa6a5eab-11bd-40fb-a163-311a4aa4b40c","name":"400 - Invalid Parameters","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n   \"description2\": \"Sales\",\r\n   \"enabled2\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/auth_codes/2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Mon, 09 Dec 2024 18:39:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"It looks like you didn't provide any valid information to update. Please double-check and send the necessary details.\",\n    \"data\": []\n}"}],"_postman_id":"d4ed42ad-a749-4193-b8d9-63a7fad0d32e"},{"name":"/auth_codes/{id}","id":"5ffce3db-22d7-4840-9533-d60246ce6dc4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://{{host}}/api/v2/auth_codes/2","description":"<p>This API endpoint sends an HTTP DELETE request to delete a specific authorization code.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>This request does not require a request body.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response will not contain a body, but will include a status code to indicate the success or failure of the deletion operation.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","auth_codes","2"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"626d641d-aebc-4bed-af14-c698e0aaf527","name":"204 - Item Removed","originalRequest":{"method":"DELETE","header":[],"url":"http://{{host}}/api/v2/auth_codes/2"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Mon, 09 Dec 2024 23:28:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"}],"cookie":[],"responseTime":null,"body":null},{"id":"adc685e1-5a6c-4ada-8441-45d19bc7d5e1","name":"404 - Not Found","originalRequest":{"method":"DELETE","header":[],"url":"http://{{host}}/api/v2/auth_codes/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Mon, 09 Dec 2024 23:28:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested item doesn't exists\",\n    \"data\": []\n}"}],"_postman_id":"5ffce3db-22d7-4840-9533-d60246ce6dc4"}],"id":"e305e358-b61b-4b13-8e0f-72dc4bf11a7e","description":"<p>Set of endpoints to manage Authorization Codes.</p>\n","_postman_id":"e305e358-b61b-4b13-8e0f-72dc4bf11a7e","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"AI API Keys","item":[{"name":"/ai_api_keys","id":"cb477e9b-3428-4294-9d67-fa8c7e9e71b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/ai_api_keys","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","ai_api_keys"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"43482c44-216f-45df-a5b5-be4667ca372d","name":"200 - All API Keys","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/ai_api_keys"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Tue, 10 Dec 2024 21:55:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Set-Cookie","value":"HttpOnly;Secure"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"id\": 1,\n            \"description\": \"OpenAI\",\n            \"key\": \"fk-c3dba5996ad348c99952c676c6b12345\"\n        }\n    ]\n}"}],"_postman_id":"cb477e9b-3428-4294-9d67-fa8c7e9e71b1"},{"name":"/ai_api_keys/{id}","id":"42a709d3-2d84-461c-86ee-dba8dbfcd903","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/ai_api_keys/1","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","ai_api_keys","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"452645a2-2053-45c0-a6cd-098eba908b51","name":"200 - Retrieve Single API Key","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/ai_api_keys/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Tue, 10 Dec 2024 22:00:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Set-Cookie","value":"HttpOnly;Secure"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"id\": 1,\n        \"description\": \"OpenAI\",\n        \"key\": \"fk-c3dba5996ad348c99952c676c6b12345\"\n    }\n}"},{"id":"9233eada-ad1d-490f-b0eb-25dbb2064fba","name":"404 - Not Found","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/ai_api_keys/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Tue, 10 Dec 2024 22:02:46 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Set-Cookie","value":"HttpOnly;Secure"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested item doesn't exists\",\n    \"data\": []\n}"}],"_postman_id":"42a709d3-2d84-461c-86ee-dba8dbfcd903"},{"name":"/ai_api_keys","id":"3b6dce77-dadd-4e42-bda5-777f844b361f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"API Demo\",\r\n    \"key\": \"fk-v0987654321pbx\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/ai_api_keys","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","ai_api_keys"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"7f77217d-52c2-4da7-aae8-d9496a92f44c","name":"200 - Item Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"API Demo\",\r\n    \"key\": \"fk-v0987654321pbx\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/ai_api_keys"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Tue, 10 Dec 2024 23:17:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Set-Cookie","value":"HttpOnly;Secure"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The data has been added to the database\",\n    \"data\": {\n        \"id\": \"2\",\n        \"description\": \"API Demo\",\n        \"key\": \"fk-v0987654321pbx\"\n    }\n}"},{"id":"aa38ed7f-f23f-4b83-9466-c537d91fc4f1","name":"400 - Invalid Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"API Demo\",\r\n    \"key\": \"fk-v0987654321pbx\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/ai_api_keys"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Tue, 10 Dec 2024 23:18:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Set-Cookie","value":"HttpOnly;Secure"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"The \\\"API Key\\\" must be unique.\",\n    \"data\": []\n}"}],"_postman_id":"3b6dce77-dadd-4e42-bda5-777f844b361f"},{"name":"/ai_api_keys/{id}","id":"10062917-893a-4245-b930-5cd6a81baf7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"Postman Demo\",\r\n    \"key\": \"fk-vital0987654321pbx\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/ai_api_keys/2","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","ai_api_keys","2"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"775f3336-1aea-48d5-8c02-55f81f0f88d0","name":"200 - Item Updated","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"Postman Demo\",\r\n    \"key\": \"fk-vital0987654321pbx\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/ai_api_keys/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Tue, 10 Dec 2024 23:22:46 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Set-Cookie","value":"HttpOnly;Secure"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The data has been updated in the database\",\n    \"data\": {\n        \"id\": 2,\n        \"description\": \"Postman Demo\",\n        \"key\": \"fk-vital0987654321pbx\"\n    }\n}"},{"id":"597586ca-c68b-466d-91c3-6820cd44dfc5","name":"400 - Bad Request","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description2\": \"Postman Demo\",\r\n    \"key\": \"fk-vital0987654321pbx\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/ai_api_keys/2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Tue, 10 Dec 2024 23:23:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Set-Cookie","value":"HttpOnly;Secure"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"The field \\\"Description\\\" is required.\",\n    \"data\": []\n}"}],"_postman_id":"10062917-893a-4245-b930-5cd6a81baf7f"},{"name":"/ai_api_keys/{id}","id":"3b097855-9da2-4079-a7ef-6ead8eb64171","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://{{host}}/api/v2/ai_api_keys/1","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","ai_api_keys","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"db5f5d33-41d0-4c03-895f-32e58f17f889","name":"204 - Item Deleted","originalRequest":{"method":"DELETE","header":[],"url":"https://{{host}}/api/v2/ai_api_keys/2"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Tue, 10 Dec 2024 23:27:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Set-Cookie","value":"HttpOnly;Secure"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":null},{"id":"cffb0e10-6524-4336-a004-831bfc03c1d3","name":"400 - Validations","originalRequest":{"method":"DELETE","header":[],"url":"https://{{host}}/api/v2/ai_api_keys/1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Tue, 10 Dec 2024 23:29:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Set-Cookie","value":"HttpOnly;Secure"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"This API Key item cannot be deleted because of being used by the following AI Assistants: \\\"Nova, PBX_ASSISTANT_1733416356\\\".\",\n    \"data\": []\n}"}],"_postman_id":"3b097855-9da2-4079-a7ef-6ead8eb64171"}],"id":"d6742669-cc4a-47da-95e6-20a7a6481536","_postman_id":"d6742669-cc4a-47da-95e6-20a7a6481536","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Core","item":[{"name":"/core/current_plan","id":"52577e59-0a3b-40e1-9fce-faeafce8a8c0","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","core","current_plan"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a5db63c0-2ae8-4d38-9fec-74867ada771c","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":"52577e59-0a3b-40e1-9fce-faeafce8a8c0"},{"name":"/core/extensions_limit","id":"f67f6bfa-03f1-475d-b983-e1dfaba24a32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}"}],"url":"https://{{host}}/api/v2/core/extensions_limit","description":"<p>It gets the number of allowed extensions based on the current licensing plan.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","core","extensions_limit"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d709554d-631e-4d32-87c0-0b0489f097bd","name":"Get Extensions Limit","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}"},{"key":"tenant","value":"{{tenant}}","disabled":true}],"url":"https://{{host}}/api/v2/core/extensions_limit"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 30 Oct 2025 22:29:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": 5000\n}"}],"_postman_id":"f67f6bfa-03f1-475d-b983-e1dfaba24a32"},{"name":"/core/external_addons","id":"6892ec14-0a34-44fa-b19c-f23f7e36cf0b","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","core","external_addons"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"9a5754df-95a3-414b-ab9c-650130c0275e","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":"6892ec14-0a34-44fa-b19c-f23f7e36cf0b"},{"name":"/core/click_to_call","id":"f93fa3fd-5eea-4eee-9ec8-791add0b1cd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"caller\": 0,\r\n    \"callee\": 7545550884,\r\n    \"cos_id\": 1,\r\n    \"cid_name\": \"VitalPBX Cloud\",\r\n    \"cid_number\": 7545550884,\r\n    \"variables\": {\r\n        \"FID_CODE\": 12345,\r\n        \"NO_POST_SERVICES\": \"yes\"\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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","core","click_to_call"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a9b5fc9a-9b98-4e0b-9872-b60cff109b8b","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":"fb86d1df-81b9-41e2-8050-f1fb6e261dde","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":"f93fa3fd-5eea-4eee-9ec8-791add0b1cd8"},{"name":"/core/dialer_call","id":"dd4d4c20-757d-4823-9668-dfeb1f1154cd","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    \"number\": 168080,\r\n    \"cos_id\": 1,\r\n    \"destination_category_id\": 18,\r\n    \"destination_id\": 3,\r\n    \"cid_number\": 13051113333,\r\n    \"cid_name\": \"Fl, USA\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/core/dialer_call","description":"<p>It facilitates the initiation of a call connection between an external or internal number and a designated PBX destination. Specifically designed for outbound campaigns, this feature proves invaluable for delivering notifications, conducting surveys, and other communication initiatives.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th><strong>Type</strong></th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>number</td>\n<td>string</td>\n<td>The number to be called at first.</td>\n</tr>\n<tr>\n<td>cos_id</td>\n<td>int</td>\n<td>The Class of Service to use for placing the call.</td>\n</tr>\n<tr>\n<td>destination_category_id</td>\n<td>int</td>\n<td>The Destination Category. It represents the module or application to which a call will be routed upon the recipient's answer to the dialed number. You can obtain the list of destination category using <a href=\"https://documenter.getpostman.com/view/5481262/2s935hQmgP#71a9fef4-ada2-40c6-a892-33c42a376b26\">this enpoint</a>.</td>\n</tr>\n<tr>\n<td>destination_id</td>\n<td>int</td>\n<td>The available destination for the selected destination category. These are the items created in the modules associated with the selected category. You can obtain them using <a href=\"https://documenter.getpostman.com/view/5481262/2s935hQmgP#c4bf0219-1fff-4418-a6e5-0bd9cb2a0c24\">this endpoint</a>.</td>\n</tr>\n<tr>\n<td>cid_number</td>\n<td>string</td>\n<td>Optional parameter to define a custom caller id number.</td>\n</tr>\n<tr>\n<td>cid_name</td>\n<td>string</td>\n<td>Optional parameter to define a custom caller id name.</td>\n</tr>\n<tr>\n<td>timeout</td>\n<td>int</td>\n<td>Optinal parameter to define how long to wait for call to be answered (in secs.).</td>\n</tr>\n</tbody>\n</table>\n</div><p>It's crucial to ensure seamless integration and successful call routing through this API endpoint that the specified Outbound Routes within the corresponding Class of Service align with the number format transmitted in the API request. The Outbound Routes configuration serves as a set of rules that dictate how calls are directed based on the dialed number patterns. Therefore, maintaining consistency between the number format provided in the API request and the configured Outbound Routes is paramount. This meticulous alignment guarantees accurate call handling and enhances the effectiveness of the API in facilitating outbound communication campaigns.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","core","dialer_call"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"f9c7ab8c-6b9e-45e4-b80b-7a0e736f3cfc","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    \"number\": 168080,\r\n    \"cos_id\": 1,\r\n    \"destination_category_id\": 18,\r\n    \"destination_id\": 3,\r\n    \"cid_number\": 13051113333,\r\n    \"cid_name\": \"Fl, USA\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/core/dialer_call"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 01 Feb 2024 16:23:24 GMT"},{"key":"Server","value":"Apache/2.4.56 (Debian)"},{"key":"Content-Security-Policy","value":"default-src 'self';frame-src *;connect-src 'self' wss: ws:;font-src *;img-src * data:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline';media-src * data:;"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, Keep-Alive"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Originate successfully queued\",\n    \"data\": []\n}"},{"id":"80ac0b5e-1371-43cc-81f2-5608de11dc0c","name":"503 - Call Failed","originalRequest":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"number\": 168013,\r\n    \"cos_id\": 1,\r\n    \"destination_category_id\": 18,\r\n    \"destination_id\": 3,\r\n    \"cid_number\": 13051113333,\r\n    \"cid_name\": \"Fl, USA\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/core/dialer_call"},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 01 Feb 2024 16:34:26 GMT"},{"key":"Server","value":"Apache/2.4.56 (Debian)"},{"key":"Content-Security-Policy","value":"default-src 'self';frame-src *;connect-src 'self' wss: ws:;font-src *;img-src * data:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline';media-src * data:;"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, close"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Originate failed\",\n    \"data\": []\n}"},{"id":"1997e79e-ceb2-42c5-aa7b-448ccc97d374","name":"400 - Invalid Parameters","originalRequest":{"method":"POST","header":[{"key":"app-key","value":"{{api-key}}","type":"text"},{"key":"tenant","value":"{{tenant}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"number\": 168013,\r\n    \"cos_id\": 1000,\r\n    \"destination_category_id\": 18,\r\n    \"destination_id\": 3,\r\n    \"cid_number\": 13051113333,\r\n    \"cid_name\": \"Fl, USA\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/core/dialer_call"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 01 Feb 2024 16:35:57 GMT"},{"key":"Server","value":"Apache/2.4.56 (Debian)"},{"key":"Content-Security-Policy","value":"default-src 'self';frame-src *;connect-src 'self' wss: ws:;font-src *;img-src * data:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline';media-src * data:;"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, close"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Transfer-Encoding","value":"chunked"},{"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":"dd4d4c20-757d-4823-9668-dfeb1f1154cd"}],"id":"995aeae6-c5b7-4025-a585-0a3e00787166","description":"<p>Core actions for VitalPBX</p>\n","_postman_id":"995aeae6-c5b7-4025-a585-0a3e00787166","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Conferences","item":[{"name":"/conference/{id}","id":"6cf044f2-4fef-49ac-ba23-4bbcc932bfc5","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","conferences","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d5e48ba6-cb33-49fa-879f-d47ffd4f82f7","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":"9138797d-b038-4cc2-950f-413d81c906ba","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":"4512fb7b-b4c4-453e-a715-8534191dcc37","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":"6cf044f2-4fef-49ac-ba23-4bbcc932bfc5"},{"name":"/conferences","id":"0699f21d-6b60-4317-83bd-4a121781fa3c","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","conferences"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"f0a8bfe7-c3c2-4f20-bd7a-08136cdaab8f","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":"2e0a678a-b1e7-4d6c-829b-f947e405adac","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":"0699f21d-6b60-4317-83bd-4a121781fa3c"}],"id":"4e32aa25-f6a8-46ae-acfb-3bffb18838eb","_postman_id":"4e32aa25-f6a8-46ae-acfb-3bffb18838eb","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Classes of Services","item":[{"name":"/classes_of_services","id":"039bb197-1f5e-4c99-aa6a-d8185ad642eb","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","classes_of_services"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"fbc33fb4-56bf-4379-bf1f-86e2ca23ced2","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":"039bb197-1f5e-4c99-aa6a-d8185ad642eb"},{"name":"/classes_of_services/{id}","id":"8730ffae-e20a-4051-9873-3ff28233903f","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","classes_of_services","10"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"9b4e1c91-a440-4775-97a9-395ae2f3d560","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":"dfe55601-5895-4127-9773-f18b64db8855","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":"8730ffae-e20a-4051-9873-3ff28233903f"}],"id":"e885c502-f03e-4091-8dff-8be1fc45452e","description":"<p>Contains all the actions/request that can be performed to the classes of services</p>\n","_postman_id":"e885c502-f03e-4091-8dff-8be1fc45452e","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Customer Codes","item":[{"name":"/customer_codes","id":"5a333016-bd09-465c-882b-996a95e5062d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/customer_codes","description":"<p>This endpoint retrieves a list of customer codes.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"http-request\">HTTP Request</h3>\n<p><code>GET http://{{host}}/api/v2/customer_codes</code></p>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><p><code>status</code> (string): The status of the response.</p>\n</li>\n<li><p><code>message</code> (string): A message related to the response.</p>\n</li>\n<li><p><code>data</code> (array):</p>\n<ul>\n<li><p><code>id</code> (integer): The ID of the customer code.</p>\n</li>\n<li><p><code>code</code> (string): The customer code.</p>\n</li>\n<li><p><code>description</code> (string): The description of the customer code.</p>\n</li>\n<li><p><code>enabled</code> (boolean): Indicates whether the customer code is enabled.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"\",\n  \"message\": null,\n  \"data\": [\n    {\n      \"id\": 0,\n      \"code\": \"\",\n      \"description\": \"\",\n      \"enabled\": true\n    }\n  ]\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","customer_codes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"09df14b2-920b-4639-a538-ba1ca67395ba","name":"200 - All customer codes","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/customer_codes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Fri, 06 Dec 2024 17:43:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": [\n        {\n            \"id\": 1,\n            \"code\": \"8989\",\n            \"description\": \"ABC\",\n            \"enabled\": true\n        }\n    ]\n}"}],"_postman_id":"5a333016-bd09-465c-882b-996a95e5062d"},{"name":"/customer_codes/{id}","id":"eb8f5cc0-49c0-4bb0-b143-63e98562ec32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/customer_codes/1","description":"<p>This endpoint retrieves the details of a specific customer code.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>http://{{host}}/api/v2/customer_codes/1</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": { \"type\": \"string\" },\n    \"message\": { \"type\": \"null\" },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"id\": { \"type\": \"integer\" },\n        \"code\": { \"type\": \"string\" },\n        \"description\": { \"type\": \"string\" },\n        \"enabled\": { \"type\": \"boolean\" }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","customer_codes","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"153b0e8d-c0bc-47d8-b168-1dfe0be14b55","name":"200 - Retrieve Single Customer Code","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/customer_codes/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Fri, 06 Dec 2024 17:44:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"id\": 1,\n        \"code\": \"8989\",\n        \"description\": \"ABC\",\n        \"enabled\": true\n    }\n}"},{"id":"557fe711-6d24-4895-a735-d4c45cc37937","name":"404 - Not Found","originalRequest":{"method":"GET","header":[],"url":"http://{{host}}/api/v2/customer_codes/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Fri, 06 Dec 2024 17:56:46 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The requested authorization code doesn't exists\",\n    \"data\": []\n}"}],"_postman_id":"eb8f5cc0-49c0-4bb0-b143-63e98562ec32"},{"name":"/customer_codes","id":"f6b3e232-6242-4088-aff0-d20dfef1be28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"2525\",\r\n    \"description\": \"Evil Company\",\r\n    \"enabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/customer_codes","description":"<p>This API endpoint allows you to create a new customer code.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p>Type: JSON</p>\n</li>\n<li><p>Attributes:</p>\n<ul>\n<li><p><code>code</code> (string, required): The customer code.</p>\n</li>\n<li><p><code>description</code> (string, required): Description of the customer code.</p>\n</li>\n<li><p><code>enabled</code> (boolean, required): Indicates if the customer code is enabled.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"code\": \"2525\",\n  \"description\": \"Evil Company\",\n  \"enabled\": true\n}\n\n</code></pre>\n<ul>\n<li><p>Type: JSON</p>\n</li>\n<li><p>Attributes:</p>\n<ul>\n<li><p><code>code</code> (string, required): The customer code.</p>\n</li>\n<li><p><code>description</code> (string, required): Description of the customer code.</p>\n</li>\n<li><p><code>enabled</code> (boolean, required): Indicates if the customer code is enabled.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"code\": \"2525\",\n  \"description\": \"Evil Company\",\n  \"enabled\": true\n}\n\n</code></pre>\n<h3 id=\"response-body\">Response Body</h3>\n<p>The response for this request can be represented as a JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\"\n        },\n        \"code\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"enabled\": {\n          \"type\": \"boolean\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","customer_codes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3294d3a6-c564-408d-8376-292e05817686","name":"200 - Item Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"2525\",\r\n    \"description\": \"Evil Company\",\r\n    \"enabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/customer_codes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Mon, 09 Dec 2024 21:23:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The data has been added to the database\",\n    \"data\": {\n        \"id\": \"2\",\n        \"code\": \"2525\",\n        \"description\": \"Evil Company\",\n        \"enabled\": true\n    }\n}"},{"id":"0c2f70a3-7224-4cc2-b2c5-40079bbefd94","name":"400 - Invalid Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"2525\",\r\n    \"description\": \"Evil Company\",\r\n    \"enabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/customer_codes"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Mon, 09 Dec 2024 21:33:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"The provided code is already in use\",\n    \"data\": []\n}"}],"_postman_id":"f6b3e232-6242-4088-aff0-d20dfef1be28"},{"name":"/customer_codes/{id}","id":"02d75628-9b65-4ff6-a53b-fd0ace7d7fcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"2525\",\r\n    \"description\": \"Good Company\",\r\n    \"enabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/customer_codes/2","description":"<h3 id=\"update-customer-code\">Update Customer Code</h3>\n<p>This endpoint allows the client to update a specific customer code.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>code (string, required): The code for the customer.</p>\n</li>\n<li><p>description (string, required): The description of the customer code.</p>\n</li>\n<li><p>enabled (boolean, required): Indicates whether the customer code is enabled.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request can be represented as a JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"id\": {\n          \"type\": \"integer\"\n        },\n        \"code\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"enabled\": {\n          \"type\": \"boolean\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","customer_codes","2"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"71742357-f1de-4ce6-afc5-904ab481426d","name":"200 - Item Updated","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"2525\",\r\n    \"description\": \"Good Company\",\r\n    \"enabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/customer_codes/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Mon, 09 Dec 2024 21:46:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The data has been updated in the database\",\n    \"data\": {\n        \"id\": 2,\n        \"code\": \"2525\",\n        \"description\": \"Good Company\",\n        \"enabled\": true\n    }\n}"},{"id":"68549cb1-8573-410f-9323-b75a4b40ff01","name":"400 - Invalid Request","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code2\": \"2525\",\r\n    \"description2\": \"Good Company\",\r\n    \"enabled2\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/customer_codes/2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Mon, 09 Dec 2024 21:47:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"Customer Codes is required.\",\n    \"data\": []\n}"}],"_postman_id":"02d75628-9b65-4ff6-a53b-fd0ace7d7fcd"},{"name":"/customer_codes/{id}","id":"becf2175-79c9-47a8-9704-d48561cf9434","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"ABC Corporation\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/customer_codes/1","description":"<p>This endpoint allows you to update specific fields for a specific customer code.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"id\": {\n          \"type\": \"integer\"\n        },\n        \"code\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"enabled\": {\n          \"type\": \"boolean\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","customer_codes","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"aa60b61b-652e-4ea1-a0fc-4131c0728e42","name":"200 - Item Updated","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"ABC Corporation\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/customer_codes/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Mon, 09 Dec 2024 22:25:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The data has been updated in the database\",\n    \"data\": {\n        \"id\": 1,\n        \"code\": \"8989\",\n        \"description\": \"ABC Corporation\",\n        \"enabled\": true\n    }\n}"},{"id":"cc1ca78d-c863-4e67-b626-2c320ee095e9","name":"400 - Invalid Request","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description2\": \"ABC Corporation\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://{{host}}/api/v2/customer_codes/1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.22.1"},{"key":"Date","value":"Mon, 09 Dec 2024 22:26:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"It looks like you didn't provide any valid information to update. Please double-check and send the necessary details.\",\n    \"data\": []\n}"}],"_postman_id":"becf2175-79c9-47a8-9704-d48561cf9434"},{"name":"/customer_codes/{id}","id":"af658077-6d01-43c9-8f14-7e33e4d63568","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://{{host}}/api/v2/customer_codes/2","description":"<p>This endpoint is used to delete a specific customer code.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will not contain a body, but will include a status code to indicate the success or failure of the deletion operation.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","customer_codes","2"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"af658077-6d01-43c9-8f14-7e33e4d63568"}],"id":"4d8dda4e-8404-4656-9cef-af1630d52370","description":"<p>Set of endpoints to manage the Customer Codes.</p>\n","_postman_id":"4d8dda4e-8404-4656-9cef-af1630d52370","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"CDR","item":[{"name":"/cdr","id":"b4896e44-5377-4df7-8abe-b4fbf425fe79","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","description":"<p>The <strong>CDR Read</strong> endpoint retrieves Call Detail Records (CDRs) from VitalPBX for the selected tenant. It supports <strong>flexible filtering, sorting, and pagination options</strong> for analyzing inbound, outbound, and internal calls.</p>\n<p>You can filter results by date range, extensions, call type, and search across specific fields (like source, destination, or disposition).</p>\n<h2 id=\"⚙️-parameters\">⚙️ <strong>Parameters</strong></h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Example</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>extensions</strong></td>\n<td><code>100</code> or <code>100,200</code></td>\n<td>string</td>\n<td>Filter CDRs by <strong>source</strong> and <strong>destination</strong> numbers. If combined with <code>call_history=yes</code>, only two numbers are allowed and returns their call history.</td>\n</tr>\n<tr>\n<td><strong>calltype</strong></td>\n<td><code>1,2,3,4</code></td>\n<td>string</td>\n<td>Filter by call type:  <br /><code>1</code> → Internal  <br /><code>2</code> → Incoming  <br /><code>3</code> → Outgoing  <br /><code>4</code> → Transit</td>\n</tr>\n<tr>\n<td><strong>start_date</strong></td>\n<td><code>2025-01-01</code></td>\n<td>string / int</td>\n<td>Filter records <strong>starting from this date/time</strong>.  <br />Accepts <code>YYYY-MM-DD</code> or UNIX timestamp.  <br />Example: <code>\"2025-01-01 08:00\"</code> or <code>1735689600</code></td>\n</tr>\n<tr>\n<td><strong>end_date</strong></td>\n<td><code>2025-10-30</code></td>\n<td>string / int</td>\n<td>Filter records <strong>up to this date/time</strong>.  <br />Accepts <code>YYYY-MM-DD</code> or UNIX timestamp.</td>\n</tr>\n<tr>\n<td><strong>limit</strong></td>\n<td><code>100</code></td>\n<td>string / int</td>\n<td>Limits number of returned rows.  <br />Supports multiple modes:  <br />– <code>\"100\"</code> → Return 100 rows.  <br />– <code>\"0,10\"</code> → DataTables-style pagination (offset,length).  <br />– <code>\"all=true\"</code> → Retrieve all data (use carefully).</td>\n</tr>\n<tr>\n<td><strong>page</strong></td>\n<td><code>1</code></td>\n<td>int</td>\n<td>Page number when using classic pagination. Ignored if <code>limit</code> uses DataTables format.</td>\n</tr>\n<tr>\n<td><strong>order_by</strong></td>\n<td><code>calldate</code></td>\n<td>string</td>\n<td>Field used for sorting results. Common values: <code>calldate</code>, <code>src</code>, <code>dst</code>, <code>duration</code>.</td>\n</tr>\n<tr>\n<td><strong>order_type</strong></td>\n<td><code>desc</code></td>\n<td>string</td>\n<td>Sort order. Use <code>asc</code> or <code>desc</code>.</td>\n</tr>\n<tr>\n<td><strong>search</strong></td>\n<td><code>answered</code></td>\n<td>string</td>\n<td>Generic keyword search. Matches values in fields defined by <code>search_fields</code>.</td>\n</tr>\n<tr>\n<td><strong>search_fields</strong></td>\n<td><code>disposition,source,destination</code></td>\n<td>string</td>\n<td>Comma-separated field list to apply search filter against.</td>\n</tr>\n<tr>\n<td><strong>call_history</strong></td>\n<td><code>yes</code></td>\n<td>string</td>\n<td>When set to <code>\"yes\"</code>, only two numbers should be provided in <code>extensions</code>. Returns bidirectional call history between them.</td>\n</tr>\n<tr>\n<td><strong>all</strong></td>\n<td><code>true</code></td>\n<td>boolean / string</td>\n<td>When <code>\"true\"</code>, disables pagination and returns all records.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"notes\"><strong>Notes</strong></h2>\n<ul>\n<li><p>Dates support <strong>both UNIX timestamps and human-readable formats</strong> (<code>YYYY-MM-DD</code> or <code>YYYY-MM-DD HH:mm</code>).</p>\n</li>\n<li><p>If <code>limit</code> is <code>\"0,10\"</code> format, pagination uses <strong>DataTables mode</strong>.</p>\n</li>\n<li><p>⚠️ Setting <code>\"all\":\"true\"</code> overrides pagination limits — use cautiously with large datasets.</p>\n</li>\n<li><p>Search is <strong>case-insensitive</strong> and works across multiple fields defined in <code>search_fields</code>.</p>\n</li>\n<li><p><code>recording_url</code> is automatically generated if a recording file is found.</p>\n</li>\n<li><p><code>vm_files</code> lists related voicemail recordings if available.</p>\n</li>\n<li><p>Calls marked as <code>NO ANSWER</code> but linked to another call with <code>ANSWERED</code> in the same <code>linkedid</code> are automatically displayed as \"<strong>Answered Elsewhere.\"</strong></p>\n</li>\n<li><p>If <code>start_date</code> and <code>end_date</code> are missing, the API filters CDRs from the <strong>current month (30-day range)</strong>.</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","cdr"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0e632d19-adda-4755-a9ce-8d3e3901a400","name":"Get CDR","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}"},{"key":"tenant","value":"{{tenant}}"}],"url":"http://{{host}}/api/v2/cdr"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 30 Oct 2025 22:13:04 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"result\": [\n            {\n                \"cdr_id\": 544,\n                \"calldate_ts\": 1761695217,\n                \"calldate\": \"2025-10-28 23:46:57\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 11,\n                \"billsec\": 9,\n                \"channel\": \"Local/101@queue-call-to-agents-00000009;2\",\n                \"dstchannel\": \"PJSIP/101-0000000e\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:51701,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761695217.36\",\n                \"linkedid\": \"1761695216.32\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 543,\n                \"calldate_ts\": 1761695217,\n                \"calldate\": \"2025-10-28 23:46:57\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 2,\n                \"billsec\": 0,\n                \"channel\": \"Local/100@queue-call-to-agents-00000008;2\",\n                \"dstchannel\": \"PJSIP/100-0000000f\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,30,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761695217.34\",\n                \"linkedid\": \"1761695216.32\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"disposition\": \"Answered Elsewhere\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 542,\n                \"calldate_ts\": 1761674732,\n                \"calldate\": \"2025-10-28 18:05:32\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 16,\n                \"billsec\": 16,\n                \"channel\": \"Local/100@queue-call-to-agents-00000006;2\",\n                \"dstchannel\": \"\",\n                \"lastapp\": \"VoiceMail\",\n                \"lastdata\": \"101@vitalpbx-voicemail,u\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.23\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"\",\n                \"trunk\": 1,\n                \"recfile\": null,\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": null,\n                \"vm_files\": [\n                    \"/var/spool/asterisk/voicemail/vitalpbx-voicemail/101/INBOX/msg0006.wav\"\n                ]\n            },\n            {\n                \"cdr_id\": 541,\n                \"calldate_ts\": 1761674702,\n                \"calldate\": \"2025-10-28 18:05:02\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 30,\n                \"billsec\": 30,\n                \"channel\": \"Local/100@queue-call-to-agents-00000006;2\",\n                \"dstchannel\": \"PJSIP/101-0000000c\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.23\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": null,\n                \"disposition\": \"NO ANSWER\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": null,\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 540,\n                \"calldate_ts\": 1761674634,\n                \"calldate\": \"2025-10-28 18:03:54\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 67,\n                \"billsec\": 63,\n                \"channel\": \"Local/100@queue-call-to-agents-00000006;2\",\n                \"dstchannel\": \"PJSIP/100-0000000b\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,30,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.23\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 539,\n                \"calldate_ts\": 1761674634,\n                \"calldate\": \"2025-10-28 18:03:54\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 4,\n                \"billsec\": 0,\n                \"channel\": \"Local/101@queue-call-to-agents-00000007;2\",\n                \"dstchannel\": \"PJSIP/101-0000000a\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.25\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"disposition\": \"Answered Elsewhere\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 538,\n                \"calldate_ts\": 1761673365,\n                \"calldate\": \"2025-10-28 17:42:45\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 23,\n                \"billsec\": 19,\n                \"channel\": \"Local/101@ring-group-dial-00000004;2\",\n                \"dstchannel\": \"PJSIP/101-00000007\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,10,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761673365.16\",\n                \"linkedid\": \"1761673357.14\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 537,\n                \"calldate_ts\": 1761673365,\n                \"calldate\": \"2025-10-28 17:42:45\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 3,\n                \"billsec\": 0,\n                \"channel\": \"Local/100@ring-group-dial-00000005;2\",\n                \"dstchannel\": \"PJSIP/100-00000008\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,10,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761673365.18\",\n                \"linkedid\": \"1761673357.14\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"disposition\": \"Answered Elsewhere\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 536,\n                \"calldate_ts\": 1761669462,\n                \"calldate\": \"2025-10-28 16:37:42\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 16,\n                \"billsec\": 13,\n                \"channel\": \"Local/101@queue-call-to-agents-00000003;2\",\n                \"dstchannel\": \"PJSIP/101-00000004\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761669462.11\",\n                \"linkedid\": \"1761669461.7\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 535,\n                \"calldate_ts\": 1761669462,\n                \"calldate\": \"2025-10-28 16:37:42\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 3,\n                \"billsec\": 0,\n                \"channel\": \"Local/100@queue-call-to-agents-00000002;2\",\n                \"dstchannel\": \"PJSIP/100-00000005\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,30,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761669462.9\",\n                \"linkedid\": \"1761669461.7\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"disposition\": \"Answered Elsewhere\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 534,\n                \"calldate_ts\": 1761668875,\n                \"calldate\": \"2025-10-28 16:27:55\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 13,\n                \"billsec\": 8,\n                \"channel\": \"Local/100@queue-call-to-agents-00000000;2\",\n                \"dstchannel\": \"PJSIP/100-00000002\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,30,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761668875.2\",\n                \"linkedid\": \"1761668874.0\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/102757-IN-Q500-4722571902-100-1761668874.0.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/102757-IN-Q500-4722571902-100-1761668874.0.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 533,\n                \"calldate_ts\": 1761668875,\n                \"calldate\": \"2025-10-28 16:27:55\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 4,\n                \"billsec\": 0,\n                \"channel\": \"Local/101@queue-call-to-agents-00000001;2\",\n                \"dstchannel\": \"PJSIP/101-00000001\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761668875.4\",\n                \"linkedid\": \"1761668874.0\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": null,\n                \"disposition\": \"Answered Elsewhere\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": null,\n                \"vm_files\": []\n            }\n        ],\n        \"rows\": 12,\n        \"meta\": {\n            \"current_page\": 1,\n            \"limit\": 100,\n            \"total_pages\": 1,\n            \"has_next\": false,\n            \"has_prev\": false,\n            \"next_page\": null,\n            \"prev_page\": null,\n            \"links\": {\n                \"next_page_url\": null,\n                \"prev_page_url\": null,\n                \"first_page_url\": \"http://192.168.0.90/api/v2/cdr?page=1&limit=100\",\n                \"last_page_url\": \"http://192.168.0.90/api/v2/cdr?page=1&limit=100\"\n            }\n        }\n    }\n}"},{"id":"99908b45-bca2-4efe-a04f-34b58cc016ff","name":"Get All Answered Calls","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}"},{"key":"tenant","value":"{{tenant}}"}],"url":{"raw":"http://{{host}}/api/v2/cdr?search=answered&search_fields=disposition","protocol":"http","host":["{{host}}"],"path":["api","v2","cdr"],"query":[{"key":"search","value":"answered"},{"key":"search_fields","value":"disposition"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 30 Oct 2025 22:15:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"result\": [\n            {\n                \"cdr_id\": 544,\n                \"calldate_ts\": 1761695217,\n                \"calldate\": \"2025-10-28 23:46:57\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 11,\n                \"billsec\": 9,\n                \"channel\": \"Local/101@queue-call-to-agents-00000009;2\",\n                \"dstchannel\": \"PJSIP/101-0000000e\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:51701,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761695217.36\",\n                \"linkedid\": \"1761695216.32\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 542,\n                \"calldate_ts\": 1761674732,\n                \"calldate\": \"2025-10-28 18:05:32\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 16,\n                \"billsec\": 16,\n                \"channel\": \"Local/100@queue-call-to-agents-00000006;2\",\n                \"dstchannel\": \"\",\n                \"lastapp\": \"VoiceMail\",\n                \"lastdata\": \"101@vitalpbx-voicemail,u\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.23\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"\",\n                \"trunk\": 1,\n                \"recfile\": null,\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": null,\n                \"vm_files\": [\n                    \"/var/spool/asterisk/voicemail/vitalpbx-voicemail/101/INBOX/msg0006.wav\"\n                ]\n            },\n            {\n                \"cdr_id\": 540,\n                \"calldate_ts\": 1761674634,\n                \"calldate\": \"2025-10-28 18:03:54\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 67,\n                \"billsec\": 63,\n                \"channel\": \"Local/100@queue-call-to-agents-00000006;2\",\n                \"dstchannel\": \"PJSIP/100-0000000b\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,30,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.23\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 538,\n                \"calldate_ts\": 1761673365,\n                \"calldate\": \"2025-10-28 17:42:45\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 23,\n                \"billsec\": 19,\n                \"channel\": \"Local/101@ring-group-dial-00000004;2\",\n                \"dstchannel\": \"PJSIP/101-00000007\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,10,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761673365.16\",\n                \"linkedid\": \"1761673357.14\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 536,\n                \"calldate_ts\": 1761669462,\n                \"calldate\": \"2025-10-28 16:37:42\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 16,\n                \"billsec\": 13,\n                \"channel\": \"Local/101@queue-call-to-agents-00000003;2\",\n                \"dstchannel\": \"PJSIP/101-00000004\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761669462.11\",\n                \"linkedid\": \"1761669461.7\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 534,\n                \"calldate_ts\": 1761668875,\n                \"calldate\": \"2025-10-28 16:27:55\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 13,\n                \"billsec\": 8,\n                \"channel\": \"Local/100@queue-call-to-agents-00000000;2\",\n                \"dstchannel\": \"PJSIP/100-00000002\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,30,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761668875.2\",\n                \"linkedid\": \"1761668874.0\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/102757-IN-Q500-4722571902-100-1761668874.0.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/102757-IN-Q500-4722571902-100-1761668874.0.wav\",\n                \"vm_files\": []\n            }\n        ],\n        \"rows\": 12,\n        \"meta\": {\n            \"current_page\": 1,\n            \"limit\": 100,\n            \"total_pages\": 1,\n            \"has_next\": false,\n            \"has_prev\": false,\n            \"next_page\": null,\n            \"prev_page\": null,\n            \"links\": {\n                \"next_page_url\": null,\n                \"prev_page_url\": null,\n                \"first_page_url\": \"http://192.168.0.90/api/v2/cdr?search=answered&search_fields=disposition&page=1&limit=100\",\n                \"last_page_url\": \"http://192.168.0.90/api/v2/cdr?search=answered&search_fields=disposition&page=1&limit=100\"\n            }\n        }\n    }\n}"},{"id":"d086f211-cd6e-4066-a3f3-d72a2e62fd59","name":"Get All Records for Current Month","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}"},{"key":"tenant","value":"{{tenant}}"}],"url":{"raw":"http://{{host}}/api/v2/cdr?start_date=2025-10-01&end_date=2025-10-31&all=true","protocol":"http","host":["{{host}}"],"path":["api","v2","cdr"],"query":[{"key":"start_date","value":"2025-10-01"},{"key":"end_date","value":"2025-10-31"},{"key":"all","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 30 Oct 2025 22:17:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"result\": [\n            {\n                \"cdr_id\": 544,\n                \"calldate_ts\": 1761695217,\n                \"calldate\": \"2025-10-28 23:46:57\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 11,\n                \"billsec\": 9,\n                \"channel\": \"Local/101@queue-call-to-agents-00000009;2\",\n                \"dstchannel\": \"PJSIP/101-0000000e\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:51701,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761695217.36\",\n                \"linkedid\": \"1761695216.32\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 543,\n                \"calldate_ts\": 1761695217,\n                \"calldate\": \"2025-10-28 23:46:57\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 2,\n                \"billsec\": 0,\n                \"channel\": \"Local/100@queue-call-to-agents-00000008;2\",\n                \"dstchannel\": \"PJSIP/100-0000000f\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,30,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761695217.34\",\n                \"linkedid\": \"1761695216.32\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"disposition\": \"Answered Elsewhere\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 542,\n                \"calldate_ts\": 1761674732,\n                \"calldate\": \"2025-10-28 18:05:32\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 16,\n                \"billsec\": 16,\n                \"channel\": \"Local/100@queue-call-to-agents-00000006;2\",\n                \"dstchannel\": \"\",\n                \"lastapp\": \"VoiceMail\",\n                \"lastdata\": \"101@vitalpbx-voicemail,u\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.23\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"\",\n                \"trunk\": 1,\n                \"recfile\": null,\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": null,\n                \"vm_files\": [\n                    \"/var/spool/asterisk/voicemail/vitalpbx-voicemail/101/INBOX/msg0006.wav\"\n                ]\n            },\n            {\n                \"cdr_id\": 541,\n                \"calldate_ts\": 1761674702,\n                \"calldate\": \"2025-10-28 18:05:02\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 30,\n                \"billsec\": 30,\n                \"channel\": \"Local/100@queue-call-to-agents-00000006;2\",\n                \"dstchannel\": \"PJSIP/101-0000000c\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.23\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": null,\n                \"disposition\": \"NO ANSWER\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": null,\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 540,\n                \"calldate_ts\": 1761674634,\n                \"calldate\": \"2025-10-28 18:03:54\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 67,\n                \"billsec\": 63,\n                \"channel\": \"Local/100@queue-call-to-agents-00000006;2\",\n                \"dstchannel\": \"PJSIP/100-0000000b\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,30,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.23\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 539,\n                \"calldate_ts\": 1761674634,\n                \"calldate\": \"2025-10-28 18:03:54\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 4,\n                \"billsec\": 0,\n                \"channel\": \"Local/101@queue-call-to-agents-00000007;2\",\n                \"dstchannel\": \"PJSIP/101-0000000a\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.25\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"disposition\": \"Answered Elsewhere\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 538,\n                \"calldate_ts\": 1761673365,\n                \"calldate\": \"2025-10-28 17:42:45\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 23,\n                \"billsec\": 19,\n                \"channel\": \"Local/101@ring-group-dial-00000004;2\",\n                \"dstchannel\": \"PJSIP/101-00000007\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,10,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761673365.16\",\n                \"linkedid\": \"1761673357.14\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 537,\n                \"calldate_ts\": 1761673365,\n                \"calldate\": \"2025-10-28 17:42:45\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 3,\n                \"billsec\": 0,\n                \"channel\": \"Local/100@ring-group-dial-00000005;2\",\n                \"dstchannel\": \"PJSIP/100-00000008\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,10,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761673365.18\",\n                \"linkedid\": \"1761673357.14\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"disposition\": \"Answered Elsewhere\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 536,\n                \"calldate_ts\": 1761669462,\n                \"calldate\": \"2025-10-28 16:37:42\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 16,\n                \"billsec\": 13,\n                \"channel\": \"Local/101@queue-call-to-agents-00000003;2\",\n                \"dstchannel\": \"PJSIP/101-00000004\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761669462.11\",\n                \"linkedid\": \"1761669461.7\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 535,\n                \"calldate_ts\": 1761669462,\n                \"calldate\": \"2025-10-28 16:37:42\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 3,\n                \"billsec\": 0,\n                \"channel\": \"Local/100@queue-call-to-agents-00000002;2\",\n                \"dstchannel\": \"PJSIP/100-00000005\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,30,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761669462.9\",\n                \"linkedid\": \"1761669461.7\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"disposition\": \"Answered Elsewhere\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 534,\n                \"calldate_ts\": 1761668875,\n                \"calldate\": \"2025-10-28 16:27:55\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 13,\n                \"billsec\": 8,\n                \"channel\": \"Local/100@queue-call-to-agents-00000000;2\",\n                \"dstchannel\": \"PJSIP/100-00000002\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,30,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761668875.2\",\n                \"linkedid\": \"1761668874.0\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/102757-IN-Q500-4722571902-100-1761668874.0.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/102757-IN-Q500-4722571902-100-1761668874.0.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 533,\n                \"calldate_ts\": 1761668875,\n                \"calldate\": \"2025-10-28 16:27:55\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 4,\n                \"billsec\": 0,\n                \"channel\": \"Local/101@queue-call-to-agents-00000001;2\",\n                \"dstchannel\": \"PJSIP/101-00000001\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761668875.4\",\n                \"linkedid\": \"1761668874.0\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": null,\n                \"disposition\": \"Answered Elsewhere\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": null,\n                \"vm_files\": []\n            }\n        ],\n        \"rows\": 12,\n        \"meta\": {\n            \"current_page\": 1,\n            \"limit\": null,\n            \"total_pages\": 1,\n            \"has_next\": false,\n            \"has_prev\": false,\n            \"next_page\": null,\n            \"prev_page\": null,\n            \"links\": {\n                \"next_page_url\": null,\n                \"prev_page_url\": null,\n                \"first_page_url\": null,\n                \"last_page_url\": null\n            }\n        }\n    }\n}"},{"id":"7b80dab6-aa50-45bc-8eec-3391d23e28cf","name":"Search by Disposition","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}"},{"key":"tenant","value":"{{tenant}}"}],"url":{"raw":"http://{{host}}/api/v2/cdr?search=answered&search_fields=disposition","protocol":"http","host":["{{host}}"],"path":["api","v2","cdr"],"query":[{"key":"search","value":"answered"},{"key":"search_fields","value":"disposition"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 30 Oct 2025 22:19:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"result\": [\n            {\n                \"cdr_id\": 544,\n                \"calldate_ts\": 1761695217,\n                \"calldate\": \"2025-10-28 23:46:57\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 11,\n                \"billsec\": 9,\n                \"channel\": \"Local/101@queue-call-to-agents-00000009;2\",\n                \"dstchannel\": \"PJSIP/101-0000000e\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:51701,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761695217.36\",\n                \"linkedid\": \"1761695216.32\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 542,\n                \"calldate_ts\": 1761674732,\n                \"calldate\": \"2025-10-28 18:05:32\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 16,\n                \"billsec\": 16,\n                \"channel\": \"Local/100@queue-call-to-agents-00000006;2\",\n                \"dstchannel\": \"\",\n                \"lastapp\": \"VoiceMail\",\n                \"lastdata\": \"101@vitalpbx-voicemail,u\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.23\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"\",\n                \"trunk\": 1,\n                \"recfile\": null,\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": null,\n                \"vm_files\": [\n                    \"/var/spool/asterisk/voicemail/vitalpbx-voicemail/101/INBOX/msg0006.wav\"\n                ]\n            },\n            {\n                \"cdr_id\": 540,\n                \"calldate_ts\": 1761674634,\n                \"calldate\": \"2025-10-28 18:03:54\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 67,\n                \"billsec\": 63,\n                \"channel\": \"Local/100@queue-call-to-agents-00000006;2\",\n                \"dstchannel\": \"PJSIP/100-0000000b\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,30,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.23\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 538,\n                \"calldate_ts\": 1761673365,\n                \"calldate\": \"2025-10-28 17:42:45\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 23,\n                \"billsec\": 19,\n                \"channel\": \"Local/101@ring-group-dial-00000004;2\",\n                \"dstchannel\": \"PJSIP/101-00000007\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,10,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761673365.16\",\n                \"linkedid\": \"1761673357.14\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 536,\n                \"calldate_ts\": 1761669462,\n                \"calldate\": \"2025-10-28 16:37:42\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 16,\n                \"billsec\": 13,\n                \"channel\": \"Local/101@queue-call-to-agents-00000003;2\",\n                \"dstchannel\": \"PJSIP/101-00000004\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761669462.11\",\n                \"linkedid\": \"1761669461.7\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 534,\n                \"calldate_ts\": 1761668875,\n                \"calldate\": \"2025-10-28 16:27:55\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"100\",\n                \"duration\": 13,\n                \"billsec\": 8,\n                \"channel\": \"Local/100@queue-call-to-agents-00000000;2\",\n                \"dstchannel\": \"PJSIP/100-00000002\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/100/sip:100@192.168.0.10:5060;ob&PJSIP/100_mobile,30,kKtrb(sub-before-con\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761668875.2\",\n                \"linkedid\": \"1761668874.0\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/102757-IN-Q500-4722571902-100-1761668874.0.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/102757-IN-Q500-4722571902-100-1761668874.0.wav\",\n                \"vm_files\": []\n            }\n        ],\n        \"rows\": 12,\n        \"meta\": {\n            \"current_page\": 1,\n            \"limit\": 100,\n            \"total_pages\": 1,\n            \"has_next\": false,\n            \"has_prev\": false,\n            \"next_page\": null,\n            \"prev_page\": null,\n            \"links\": {\n                \"next_page_url\": null,\n                \"prev_page_url\": null,\n                \"first_page_url\": \"http://192.168.0.90/api/v2/cdr?search=answered&search_fields=disposition&page=1&limit=100\",\n                \"last_page_url\": \"http://192.168.0.90/api/v2/cdr?search=answered&search_fields=disposition&page=1&limit=100\"\n            }\n        }\n    }\n}"},{"id":"169121be-54d1-49e0-b733-857b64eb8f01","name":"Call History Between Two Numbers/Extensions","originalRequest":{"method":"GET","header":[{"key":"app-key","value":"{{api-key}}"},{"key":"tenant","value":"{{tenant}}"}],"url":{"raw":"http://{{host}}/api/v2/cdr?extensions=101,4722571902&call_history=yes","protocol":"http","host":["{{host}}"],"path":["api","v2","cdr"],"query":[{"key":"extensions","value":"101,4722571902"},{"key":"call_history","value":"yes"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 30 Oct 2025 22:21:31 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-src *; connect-src 'self' data: wss: ws:; font-src *; img-src * data: blob:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src * data:;"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"result\": [\n            {\n                \"cdr_id\": 544,\n                \"calldate_ts\": 1761695217,\n                \"calldate\": \"2025-10-28 23:46:57\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 11,\n                \"billsec\": 9,\n                \"channel\": \"Local/101@queue-call-to-agents-00000009;2\",\n                \"dstchannel\": \"PJSIP/101-0000000e\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:51701,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761695217.36\",\n                \"linkedid\": \"1761695216.32\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/174656-IN-NONE-4722571902-168090-1761695216.32.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 542,\n                \"calldate_ts\": 1761674732,\n                \"calldate\": \"2025-10-28 18:05:32\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 16,\n                \"billsec\": 16,\n                \"channel\": \"Local/100@queue-call-to-agents-00000006;2\",\n                \"dstchannel\": \"\",\n                \"lastapp\": \"VoiceMail\",\n                \"lastdata\": \"101@vitalpbx-voicemail,u\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.23\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"\",\n                \"trunk\": 1,\n                \"recfile\": null,\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": null,\n                \"vm_files\": [\n                    \"/var/spool/asterisk/voicemail/vitalpbx-voicemail/101/INBOX/msg0006.wav\"\n                ]\n            },\n            {\n                \"cdr_id\": 541,\n                \"calldate_ts\": 1761674702,\n                \"calldate\": \"2025-10-28 18:05:02\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 30,\n                \"billsec\": 30,\n                \"channel\": \"Local/100@queue-call-to-agents-00000006;2\",\n                \"dstchannel\": \"PJSIP/101-0000000c\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.23\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": null,\n                \"disposition\": \"NO ANSWER\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": null,\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 539,\n                \"calldate_ts\": 1761674634,\n                \"calldate\": \"2025-10-28 18:03:54\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 4,\n                \"billsec\": 0,\n                \"channel\": \"Local/101@queue-call-to-agents-00000007;2\",\n                \"dstchannel\": \"PJSIP/101-0000000a\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761674634.25\",\n                \"linkedid\": \"1761674633.21\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"disposition\": \"Answered Elsewhere\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/120354-IN-NONE-4722571902-168090-1761674633.21.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 538,\n                \"calldate_ts\": 1761673365,\n                \"calldate\": \"2025-10-28 17:42:45\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 23,\n                \"billsec\": 19,\n                \"channel\": \"Local/101@ring-group-dial-00000004;2\",\n                \"dstchannel\": \"PJSIP/101-00000007\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,10,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761673365.16\",\n                \"linkedid\": \"1761673357.14\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/114237-IN-NONE-4722571902-168090-1761673357.14.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 536,\n                \"calldate_ts\": 1761669462,\n                \"calldate\": \"2025-10-28 16:37:42\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 16,\n                \"billsec\": 13,\n                \"channel\": \"Local/101@queue-call-to-agents-00000003;2\",\n                \"dstchannel\": \"PJSIP/101-00000004\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761669462.11\",\n                \"linkedid\": \"1761669461.7\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": \"/var/spool/asterisk/monitor/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"disposition\": \"ANSWERED\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": \"https://dummy.pbx.com/vrecordings/2025/10/28/103742-IN-NONE-4722571902-168090-1761669461.7.wav\",\n                \"vm_files\": []\n            },\n            {\n                \"cdr_id\": 533,\n                \"calldate_ts\": 1761668875,\n                \"calldate\": \"2025-10-28 16:27:55\",\n                \"accountcode\": \"\",\n                \"source\": \"4722571902\",\n                \"destination\": \"101\",\n                \"duration\": 4,\n                \"billsec\": 0,\n                \"channel\": \"Local/101@queue-call-to-agents-00000001;2\",\n                \"dstchannel\": \"PJSIP/101-00000001\",\n                \"lastapp\": \"Dial\",\n                \"lastdata\": \"PJSIP/101/sip:101@192.168.0.10:57084,30,kKtrb(sub-before-connecting-call^s^1(82\",\n                \"auth_code\": null,\n                \"customer_code\": null,\n                \"pin_code\": null,\n                \"uniqueid\": \"1761668875.4\",\n                \"linkedid\": \"1761668874.0\",\n                \"calltype\": \"2\",\n                \"peeraccount\": \"100\",\n                \"trunk\": 1,\n                \"recfile\": null,\n                \"disposition\": \"Answered Elsewhere\",\n                \"tenant\": \"vitalpbx\",\n                \"recording_url\": null,\n                \"vm_files\": []\n            }\n        ],\n        \"rows\": 7,\n        \"meta\": {\n            \"current_page\": 1,\n            \"limit\": 100,\n            \"total_pages\": 1,\n            \"has_next\": false,\n            \"has_prev\": false,\n            \"next_page\": null,\n            \"prev_page\": null,\n            \"links\": {\n                \"next_page_url\": null,\n                \"prev_page_url\": null,\n                \"first_page_url\": \"http://192.168.0.90/api/v2/cdr?extensions=101%2C4722571902&call_history=yes&page=1&limit=100\",\n                \"last_page_url\": \"http://192.168.0.90/api/v2/cdr?extensions=101%2C4722571902&call_history=yes&page=1&limit=100\"\n            }\n        }\n    }\n}"}],"_postman_id":"b4896e44-5377-4df7-8abe-b4fbf425fe79"}],"id":"e32d399d-40a3-42df-8501-c4763f75f5e5","description":"<p>Actions to retrive info from Asterisk CDR</p>\n","_postman_id":"e32d399d-40a3-42df-8501-c4763f75f5e5","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Devices","item":[{"name":"/devices","id":"d9e3aa8f-51a1-41cd-b1d0-c8d25100dd98","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a379f5ac-e0e7-470b-a252-96e6181040c3","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":"d9e3aa8f-51a1-41cd-b1d0-c8d25100dd98"},{"name":"/devices/{id}","id":"7ce51045-efab-4d50-a961-63804d77b3bb","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"63d68ef3-0fe7-4261-93c8-225252fe2dec","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":"b144c8be-6ff1-4c1f-bb1a-e961f859de56","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":"7ce51045-efab-4d50-a961-63804d77b3bb"},{"name":"/devices/vitxi","id":"bfb1f267-124b-4d81-9de3-2b4f9b660a18","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","vitxi"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"53eba41e-5fb4-4156-9980-84ed082c3672","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":"bfb1f267-124b-4d81-9de3-2b4f9b660a18"},{"name":"/devices/vitxi/{id}","id":"f7d06b08-cbbf-4c14-9780-28bfd1780ba6","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","vitxi","{{device-id}}"],"host":["{{host}}"],"query":[{"key":"limit","value":"0,10"}],"variable":[]}},"response":[{"id":"75665c5e-a360-4fa1-9de8-aad58543a96d","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":"713836f6-f4ac-4ed4-abb0-0433022aad27","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":"f7d06b08-cbbf-4c14-9780-28bfd1780ba6"},{"name":"/devices/{id}/queues","id":"82413234-b9bc-4f42-9e2e-4805ed78940d","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b3f943f2-1bfb-41bd-af10-c96947e3cc92","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":"82413234-b9bc-4f42-9e2e-4805ed78940d"},{"name":"/devices/{id}/queues/status","id":"ffc8d604-844e-43e6-9861-fdf1f85fd1ef","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues","status"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d5f4e599-9528-4fa3-97b1-10be59940d77","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":"ffc8d604-844e-43e6-9861-fdf1f85fd1ef"},{"name":"/devices/{id}/queues/dynamic","id":"a042e608-db37-47b8-80e4-3a918280d2bc","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues","dynamic"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"cf9e191c-39a8-4b37-8038-4dd315652099","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":"a042e608-db37-47b8-80e4-3a918280d2bc"},{"name":"/devices/{id}/queues/static","id":"f5666b03-80f0-44e8-921b-2070528caa66","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues","static"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d660fcc1-ac27-4af8-aba5-eeb7b411cad7","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":"f5666b03-80f0-44e8-921b-2070528caa66"},{"name":"/devices/{id}/queues-login","id":"b4f75b1c-e9ef-477f-a0f6-966ed6e70336","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues-login"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"eaef3f83-dc8f-47ac-9a71-1a67800b45f4","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":"b4f75b1c-e9ef-477f-a0f6-966ed6e70336"},{"name":"/devices/{id}/queues-pause","id":"c1397764-21d7-4531-8d35-671ec321201b","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues-pause"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"408c7f35-d282-4d21-a2ef-abc3ebe22bf0","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":"c1397764-21d7-4531-8d35-671ec321201b"},{"name":"/devices/{id}/queues-unpause","id":"348920ea-9eae-463f-8caa-02295dd12fba","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues-unpause"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0b5f93d4-2985-4049-bd54-6f33514010d9","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":"348920ea-9eae-463f-8caa-02295dd12fba"},{"name":"/devices/{id}/queues-logout","id":"5a7d19a9-c854-4b4d-a560-98c4dcd31a23","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","devices","{{device-id}}","queues-logout"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"4c265e90-ceed-4f82-a3ca-86e9ea0db615","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":"5a7d19a9-c854-4b4d-a560-98c4dcd31a23"}],"id":"1613bf87-1652-461c-8349-aea8d4c9f8b8","description":"<p>Actions to get or create devices</p>\n","_postman_id":"1613bf87-1652-461c-8349-aea8d4c9f8b8","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Device Profiles","item":[{"name":"/device_profiles","id":"9ca2656c-459d-4d33-b8bd-c333606aa752","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","device_profiles"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"bbf03d2a-fb50-4696-877f-34eb2c5af0d3","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":"9ca2656c-459d-4d33-b8bd-c333606aa752"},{"name":"/devices_profiles/{id}","id":"f843283c-bfd9-465d-9f3f-ea29220bf149","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","device_profiles","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b77585c5-f92f-4afc-b255-b3f47651e45f","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":"8acfe0a3-caab-4527-839a-82f2ace27b67","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":"f843283c-bfd9-465d-9f3f-ea29220bf149"},{"name":"/device_profiles/{id}/devices","id":"d59b5aa4-2aa1-4368-8e88-74c18d6bddec","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","device_profiles","1","devices"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ac1defd4-8207-4c1e-ad62-06f322147f18","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":"08b3a40c-6124-4e76-b9dd-63c62e3fa6e6","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":"d59b5aa4-2aa1-4368-8e88-74c18d6bddec"},{"name":"/devices_profiles/webrtc","id":"d46089db-8ba2-4df4-8399-76a003a49ba5","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","device_profiles","webrtc"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"47d2ec93-0434-48f7-9a1d-494118a42164","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":"d46089db-8ba2-4df4-8399-76a003a49ba5"}],"id":"c2a08a68-3e7a-4ccd-8d38-548901bd3026","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":"c2a08a68-3e7a-4ccd-8d38-548901bd3026","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Destinations","item":[{"name":"/destinations","id":"71a9fef4-ada2-40c6-a892-33c42a376b26","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","destinations"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"045257ef-43be-4d4c-9f85-8fb79fb887bd","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":"71a9fef4-ada2-40c6-a892-33c42a376b26"},{"name":"/destinations/{id}","id":"c4bf0219-1fff-4418-a6e5-0bd9cb2a0c24","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","destinations","24"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"7ff01608-565e-4b2d-a25a-560763d75232","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":"37e58c4f-d901-4627-8be3-3fceef0d391a","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":"c4bf0219-1fff-4418-a6e5-0bd9cb2a0c24"}],"id":"7bae5172-2b98-4853-bfac-1bb7aaca4f6c","_postman_id":"7bae5172-2b98-4853-bfac-1bb7aaca4f6c","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Extensions","item":[{"name":"/extensions","id":"aaeb7932-5684-4a32-8637-618fc23348f5","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":"d2e782d7-260d-4c82-ad05-5b4b244a2caf","id":"d2e782d7-260d-4c82-ad05-5b4b244a2caf","name":"Extensions","type":"folder"}},"urlObject":{"protocol":"http","path":["api","v2","extensions"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"7d040885-ab90-4dc3-961b-6a6efba4063d","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":"aaeb7932-5684-4a32-8637-618fc23348f5"},{"name":"/extensions/{id}","id":"7ade278b-c262-4c85-b3b6-f9aeda6a6c4a","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":"d2e782d7-260d-4c82-ad05-5b4b244a2caf","id":"d2e782d7-260d-4c82-ad05-5b4b244a2caf","name":"Extensions","type":"folder"}},"urlObject":{"protocol":"http","path":["api","v2","extensions","{{extension-id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"9e2cf9c5-5456-4ba0-a390-2f43c8f00c4a","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":"efad4c87-accb-464e-96b2-0995c9e99612","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":"4c6bde83-0916-4193-ba00-5a6ed977b6b2","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":"7ade278b-c262-4c85-b3b6-f9aeda6a6c4a"},{"name":"/extensions/{id}/devices","id":"9e54778f-c2f6-4897-a92d-283a15f64f04","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":"d2e782d7-260d-4c82-ad05-5b4b244a2caf","id":"d2e782d7-260d-4c82-ad05-5b4b244a2caf","name":"Extensions","type":"folder"}},"urlObject":{"protocol":"http","path":["api","v2","extensions","{{extension-id}}","devices"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"56879a2e-8ddc-4e86-8da6-875b77199e05","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":"9e54778f-c2f6-4897-a92d-283a15f64f04"},{"name":"/extensions/{id}/queues","id":"df5aba1b-8825-4ec6-bccc-6d26f51d7cee","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":"d2e782d7-260d-4c82-ad05-5b4b244a2caf","id":"d2e782d7-260d-4c82-ad05-5b4b244a2caf","name":"Extensions","type":"folder"}},"urlObject":{"protocol":"http","path":["api","v2","extensions","{{extension-id}}","queues"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"9f6908ea-405e-4520-990f-9f6ccf855796","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":"df5aba1b-8825-4ec6-bccc-6d26f51d7cee"},{"name":"/extensions/{id}/cdr_summary","id":"ee6afee9-e1aa-4d20-a906-53248aa5bf24","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":"d2e782d7-260d-4c82-ad05-5b4b244a2caf","id":"d2e782d7-260d-4c82-ad05-5b4b244a2caf","name":"Extensions","type":"folder"}},"urlObject":{"protocol":"http","path":["api","v2","extensions","{{extension-id}}","cdr_summary"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"89fba19c-754a-45f4-b4c9-3c3047156125","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":"ee6afee9-e1aa-4d20-a906-53248aa5bf24"},{"name":"/extensions/{id}/voicemail_records","id":"4d4d280f-f1fe-41e1-b060-52be46725b1c","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":"d2e782d7-260d-4c82-ad05-5b4b244a2caf","id":"d2e782d7-260d-4c82-ad05-5b4b244a2caf","name":"Extensions","type":"folder"}},"urlObject":{"protocol":"http","path":["api","v2","extensions","{{extension-id}}","voicemail_records"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3ef4361b-4e00-4547-aa34-3bda7f62beba","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":"4d4d280f-f1fe-41e1-b060-52be46725b1c"}],"id":"d2e782d7-260d-4c82-ad05-5b4b244a2caf","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":"d2e782d7-260d-4c82-ad05-5b4b244a2caf"},{"name":"Outbound Routes","item":[{"name":"/outbound_routes","id":"fbb66eee-d100-4ef4-b4dd-1943ce36a6b7","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","outbound_routes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"87074116-0f22-4d25-beee-7e226f2b12de","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":"fbb66eee-d100-4ef4-b4dd-1943ce36a6b7"},{"name":"/outbound_routes/{id}","id":"64fcd276-f7d3-4cef-97b1-6964c177c3a3","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","outbound_routes","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"f72bf0b2-880f-42f3-8bf9-61e98835b1aa","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":"24412412-bf78-4428-9bfb-4c2acbaee328","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":"64fcd276-f7d3-4cef-97b1-6964c177c3a3"}],"id":"a92a26da-a789-469b-948d-d5749f2818a1","_postman_id":"a92a26da-a789-469b-948d-d5749f2818a1","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Parking Lots","item":[{"name":"/parking_lots/{id}","id":"06513755-c01f-4fcc-8b7c-0a7950122d73","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","parking_lots","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a0f373e1-a57f-4060-a503-8b92649c8377","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":"40f928f8-400c-4665-a971-65e7aa9b6c55","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":"895d6496-622b-4edc-a101-8fe9a278f341","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":"06513755-c01f-4fcc-8b7c-0a7950122d73"},{"name":"/parking_lots","id":"9ffe49bf-bbca-40cb-82a1-666eb1c0ce28","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","parking_lots"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"9d9ea8a1-a19d-4e1c-a539-4eb3ebdd66df","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":"ddb3bafd-4b55-409f-9a1f-b30ad0f6109d","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":"9ffe49bf-bbca-40cb-82a1-666eb1c0ce28"}],"id":"067206d6-4cb9-4fbc-a8dd-ded39c3703e2","_postman_id":"067206d6-4cb9-4fbc-a8dd-ded39c3703e2","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Phone Books","item":[{"name":"/phonebooks","id":"2614615c-ff5f-44b3-b26a-44e2d1b862be","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","phonebooks"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"08844e11-1cf6-4255-9d08-da26e195c536","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":"2614615c-ff5f-44b3-b26a-44e2d1b862be"},{"name":"/phonebooks/{id}","id":"02a36635-9032-45ce-b2c0-505efca522bc","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","phonebooks","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"7c7e66c6-da6b-4fb6-b011-9d9771539f92","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":"b8b25d6a-5d17-4284-bb70-3594e8a1b27b","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":"02a36635-9032-45ce-b2c0-505efca522bc"},{"name":"/phonebooks/{id}/contacts","id":"e6cf0f01-381f-4970-8a22-1d01a5052ed5","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","phonebooks","3","contacts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"75585fe8-f9d4-4de0-9122-de829a7184ac","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":"e6fae067-d772-4db6-962a-cc4e31464460","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":"e6cf0f01-381f-4970-8a22-1d01a5052ed5"}],"id":"e36a0b85-e323-4cc3-b6e1-a0b219907a17","_postman_id":"e36a0b85-e323-4cc3-b6e1-a0b219907a17","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Queues","item":[{"name":"/queues","id":"660928c6-844d-459a-b89a-36976dcecff9","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"5f56dadc-9fe7-4b3d-ab78-4f3c3a16d9cb","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":"20a0ae73-db83-49ea-a6f9-ad54912207b3","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":"660928c6-844d-459a-b89a-36976dcecff9"},{"name":"/queues/inbound","id":"d1164a0d-1c69-4dea-9137-f02cb9c40430","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues","inbound"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"e393b1db-cb0b-4fe1-8539-f8a117c4ff82","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":"d1164a0d-1c69-4dea-9137-f02cb9c40430"},{"name":"/queues/outbound","id":"44e9e576-d1d5-44b3-8cce-b09ff67075fe","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues","outbound"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"1fabccb9-05e2-459c-bd5e-af183c3efcb0","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":"44e9e576-d1d5-44b3-8cce-b09ff67075fe"},{"name":"/queues/{id}","id":"ac210eb2-e8b5-47da-9530-175d558ddd67","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues","{{queue-id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"e185d4e4-b133-4b57-8f0c-6666416b57a2","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":"2eb1eb77-6cec-4a61-a366-1d97707d8e29","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":"4cd30172-033a-409a-812c-1e722d0e268a","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":"ac210eb2-e8b5-47da-9530-175d558ddd67"},{"name":"/queues","id":"3683878f-9308-49ef-844d-bfa437be4c5a","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3bafaaf7-563d-4abc-b5a9-936788bb25db","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":"b6079d22-b79d-497d-b80a-ae9d405b3655","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":"3683878f-9308-49ef-844d-bfa437be4c5a"},{"name":"/queues/{id}","id":"f936962e-5ca7-4cd3-b049-4f8629140c90","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues","{{queue-id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"fa54b7e2-6d48-4a67-9979-0845583480cf","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":"f936962e-5ca7-4cd3-b049-4f8629140c90"},{"name":"/queues/{id}","id":"cfdef5c2-747b-4c6b-8f31-bba5ff337bca","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","queues","{{queue-id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b2ae280f-6e26-4c07-b00e-6cd4223071ee","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":"cfdef5c2-747b-4c6b-8f31-bba5ff337bca"}],"id":"03223c35-ef99-4e21-91b1-7b74adf6bce7","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":"03223c35-ef99-4e21-91b1-7b74adf6bce7","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Route Selections","item":[{"name":"/route_selections","id":"ec6223cb-44d2-41d0-9879-fcdbd31e0c43","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","route_selections"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d7b53e29-6c99-4d36-9689-829ddda72ba0","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":"ec6223cb-44d2-41d0-9879-fcdbd31e0c43"},{"name":"/route_selections/{id}","id":"40fc7236-8a5e-4546-9e7f-123d124077f7","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","route_selections","6"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"593436ba-9801-4a2e-90ff-4cdfe5d4f9bf","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":"f5f6e725-bc2f-494b-9121-644dc78e00cb","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":"40fc7236-8a5e-4546-9e7f-123d124077f7"}],"id":"54268911-2590-4256-883e-130634864080","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":"54268911-2590-4256-883e-130634864080","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Roles","item":[{"name":"/roles","id":"1dfbb5e0-55a6-47fd-8f5e-b8141bc53fa0","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","roles"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"eafeb6ae-5bad-4950-a9d2-3172112e3167","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":"1dfbb5e0-55a6-47fd-8f5e-b8141bc53fa0"},{"name":"/roles/{id}","id":"4c975191-f1da-49fb-b7a2-77a1ba4f4377","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","roles","4"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ac28eb14-d75d-4ce0-bec2-8ea1606ea573","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":"92a92786-de05-4265-b0c1-0149794a138f","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":"4c975191-f1da-49fb-b7a2-77a1ba4f4377"},{"name":"/roles?name={name}","id":"497c52cc-0b36-4f57-8a23-39824776458c","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","roles"],"host":["{{host}}"],"query":[{"key":"name","value":"{{name}}"}],"variable":[]}},"response":[{"id":"07742308-d62b-40cb-8fbb-c3dc23c9ea08","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":"1a8146de-2724-472e-a7db-ef88760e5118","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":"d8d01f82-136b-4eed-9dfa-4249d2f33979","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":"497c52cc-0b36-4f57-8a23-39824776458c"},{"name":"/roles/{id}/modules","id":"5f87fe0b-6c1f-4e68-a9ff-5205c4563ff8","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","roles","4","modules"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"2218bab6-0608-4171-9388-81530196b43d","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":"5f87fe0b-6c1f-4e68-a9ff-5205c4563ff8"}],"id":"4eec5459-ce06-4182-8d13-90d8939ec8ca","description":"<p>List of endpoints to manage roles on VitalPBX.</p>\n","_postman_id":"4eec5459-ce06-4182-8d13-90d8939ec8ca","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"SMS","item":[{"name":"/phone_numbers","id":"030c9c77-9cba-44bf-bb20-d5d5804c3b1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/sms/phone_numbers","description":"<p>It returns the list of the available phone numbers with SMS capabilities configured in the Messaging Providers module.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","sms","phone_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"2e4e1d60-129c-47ad-be59-682c31aa8ef0","name":"200 - Phone Numbers Retrieved","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/sms/phone_numbers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 28 Jan 2023 01:43:40 GMT"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, Keep-Alive"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"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            \"id\": 1,\n            \"phone_number\": \"+13055605776\",\n            \"description\": \"Main\",\n            \"provider\": \"telnyx\",\n            \"accepted_format\": \"e164\"\n        }\n    ]\n}"}],"_postman_id":"030c9c77-9cba-44bf-bb20-d5d5804c3b1a"},{"name":"/phone_numbers/{id}/send_sms","id":"f6ae6cd7-1a66-4bc6-9700-5eaa9096d8c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"to\": \"{{sms-destination}}\",\r\n    \"message\": \"Ahoy Mate! Welcome to VitalPBX!\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/sms/phone_numbers/{{sms-pn-id}}/send_sms","description":"<p>It allows you to send an SMS using a phone number configured in the Messaging Provider module. Depending on the provider, the recipient must comply with a certain format.</p>\n<p>The formats that are available are:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Format</strong></th>\n<th><strong>Example</strong></th>\n<th><strong>Providers</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>+E.164</td>\n<td>+13519283109</td>\n<td>Telnyx, Twilio</td>\n</tr>\n<tr>\n<td>11-digit</td>\n<td>12093102242</td>\n<td>Skyetel</td>\n</tr>\n<tr>\n<td>10-digit</td>\n<td>5056446121</td>\n<td>Queuest Blue</td>\n</tr>\n</tbody>\n</table>\n</div><p>The parameters for this endpoint are:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>to</td>\n<td>The number that will receive the message.</td>\n</tr>\n<tr>\n<td>message</td>\n<td>The message to send.</td>\n</tr>\n</tbody>\n</table>\n</div><p>We strongly recommend that you check the character and rate limits of each provider.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","sms","phone_numbers","{{sms-pn-id}}","send_sms"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ee6101d2-96b9-4f74-a7d7-0352425fe506","name":"200 - Message Sent","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"to\": \"{{sms-destination}}\",\r\n    \"message\": \"Ahoy Mate! Welcome to VitalPBX!\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/sms/phone_numbers/{{sms-pn-id}}/send_sms"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Feb 2024 16:45:43 GMT"},{"key":"Server","value":"Apache/2.4.56 (Debian)"},{"key":"Content-Security-Policy","value":"default-src 'self';frame-src *;connect-src 'self' wss: ws:;font-src *;img-src * data:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline';media-src * data:;"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, Keep-Alive"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"The message is queued for sending\",\n    \"data\": {\n        \"msg_id\": \"40318d6a-b63a-491f-8714-fcf56f029528\",\n        \"status\": \"queued\"\n    }\n}"},{"id":"d8131a81-cbaa-43a7-8c02-0d252be6a9ca","name":"400 - Invalid Number Format","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"to\": \"{{sms-destination}}\",\r\n    \"message\": \"Ahoy Mate! Welcome to VitalPBX!\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/sms/phone_numbers/{{sms-pn-id}}/send_sms"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 28 Jan 2023 04:06:53 GMT"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, close"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"validation\",\n    \"message\": \"The format of the given number is not valid. You must provide a number in the format +E.164(e.g., +13235550150).\",\n    \"data\": []\n}"}],"_postman_id":"f6ae6cd7-1a66-4bc6-9700-5eaa9096d8c1"},{"name":"/message/{id}","id":"79dcd11e-fbc5-426f-9591-e3dd318734db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/sms/messages/{{msg_id}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","sms","messages","{{msg_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d0726d06-d378-4902-8a03-8765826c292d","name":"200 - Message Retrieved","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/sms/messages/{{msg_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 28 Jan 2023 04:35:44 GMT"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, Keep-Alive"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"id\": 1,\n        \"connection_id\": 1,\n        \"sender\": \"+13055605776\",\n        \"recipient\": \"+12195518053\",\n        \"message\": \"Ahoy Mate! Welcome to VitalPBX!\",\n        \"direction\": \"out\",\n        \"status\": \"queued\",\n        \"created_at\": 1674878753,\n        \"uid\": \"403185f6-8d9a-445d-a81e-1f5ef4d20c3f\",\n        \"errors\": null,\n        \"tenant_id\": 1\n    }\n}"},{"id":"0f5831a8-2ae9-414c-a74f-645b3c2f7e2e","name":"404 - Message not found","originalRequest":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/sms/messages/{{msg_id}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 28 Jan 2023 04:39:23 GMT"},{"key":"Server","value":"Apache/2.4.54 (Debian)"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, Keep-Alive"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"Cannot found the requested message\",\n    \"data\": []\n}"}],"_postman_id":"79dcd11e-fbc5-426f-9591-e3dd318734db"}],"id":"211c65f3-eb36-4793-8a1d-8f35bc56c747","description":"<p>Send SMS from third-party applications using the VitalPBX SMS module.</p>\n","_postman_id":"211c65f3-eb36-4793-8a1d-8f35bc56c747","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Tenants","item":[{"name":"/tenants","id":"41312a2a-2f2d-48d6-b073-892119fd1ba3","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","tenants"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"139ac91b-2da0-4ff5-846a-349e1f2d9951","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":"41312a2a-2f2d-48d6-b073-892119fd1ba3"},{"name":"/tenant/{id}","id":"0c1d6152-69df-457a-b3f1-5e3b50261547","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","tenants","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ab7d7ea9-03cf-44db-814a-2a615edc81f2","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":"806ce068-9f0d-405a-a87a-2094c2ac748a","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":"bfcff106-7a7c-401d-8eae-b878250ec9cc","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":"0c1d6152-69df-457a-b3f1-5e3b50261547"},{"name":"/tenants/{id}/{state}","id":"41ed002d-8db7-411f-bcd0-787e15f80999","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","tenants","{id}","{state}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0ce5f3b6-94f5-4cc8-86c2-c254d1bff854","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":"5fcfbe10-8bc0-4839-9136-11795c329b82","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":"835123cc-8b81-4d62-aef4-96e58f9154a6","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":"41ed002d-8db7-411f-bcd0-787e15f80999"},{"name":"/tenants/{id}/apply_changes","id":"e4bd975c-bc93-4dee-9341-9db28e3279c7","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","tenants","1","apply_changes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"61b5b05c-f37d-4ecb-8150-dd0db497345c","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":"8f540179-aa03-4661-928e-82a94e88ff94","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":"e4bd975c-bc93-4dee-9341-9db28e3279c7"},{"name":"/tenants","id":"fa1a4c48-03ac-4ad4-bec6-796f8b58258a","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","tenants"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"14ae9025-a878-4d77-9333-d8da981d06ff","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":"86a54e61-c5fa-4f5d-a8b6-31dea1dc476f","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":"46c4e32f-a9fc-42bd-bf00-3fb0c267d176","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":"fa1a4c48-03ac-4ad4-bec6-796f8b58258a"},{"name":"/tenants/{id}","id":"73085060-3cc5-4f92-a260-9aeb004b5056","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","tenants","{{tenant_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ab9198b0-136c-46a6-82a5-cb106ac32f20","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":"73085060-3cc5-4f92-a260-9aeb004b5056"},{"name":"/tenant/{id}","id":"104d72fd-c472-4c65-bfe7-9ea32bfe3c89","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","tenants","{{tenant_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d0f0c43b-8579-45f8-825b-9275a63982cb","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":"104d72fd-c472-4c65-bfe7-9ea32bfe3c89"},{"name":"/tenants/{id}/inbound_numbers","id":"49e2d27e-a815-4b1a-8c3d-4f1152aa8cc7","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","tenants","{{tenant_id}}","inbound_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ed837aad-791a-4b22-817c-ac738fd9df7c","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":"49e2d27e-a815-4b1a-8c3d-4f1152aa8cc7"},{"name":"/tenants/{id}/inbound_numbers","id":"67777de7-b13c-4131-92ed-c50a2f171b46","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","tenants","{{tenant_id}}","inbound_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"bd75b233-a083-42ea-ba09-24db98d7adda","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":"67777de7-b13c-4131-92ed-c50a2f171b46"}],"id":"bdd48986-34fe-4045-8382-d35ad89bd690","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":"bdd48986-34fe-4045-8382-d35ad89bd690","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Trunks","item":[{"name":"/trunk/{id}","id":"a3d625f8-e1b0-4a11-ab5a-567679850183","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","trunks","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"6c78d88e-47e9-4c71-b662-4d9f2db6c86e","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":"603666dc-a9d8-410e-85c6-fcf9c5e7df7b","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":"df1e42b2-1338-4bb8-8374-0047efe01d51","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":"a3d625f8-e1b0-4a11-ab5a-567679850183"},{"name":"/trunks","id":"10313101-6c3e-4330-b737-42522d7df0b5","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","trunks"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"143fb980-9840-4dba-9d3d-c0009414f0cb","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":"94bce562-c081-4b93-813b-cb09267cbaff","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":"10313101-6c3e-4330-b737-42522d7df0b5"}],"id":"d4bb23d6-8bd6-43cb-a50c-72851270279d","_postman_id":"d4bb23d6-8bd6-43cb-a50c-72851270279d","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Users","item":[{"name":"/users","id":"6c6817d4-4161-46d2-9bbf-21eb925ac569","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","users"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"13af4b70-f765-458f-bb80-d83fc085e277","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":"6c6817d4-4161-46d2-9bbf-21eb925ac569"},{"name":"/users/{id}","id":"105df506-1c50-48b6-8a15-843f010f7a99","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","users","1"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"1c962698-dbc9-4538-9979-314f9e70f49c","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":"513031a2-f1d8-47dc-887b-5d0a1c31e03a","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":"105df506-1c50-48b6-8a15-843f010f7a99"},{"name":"/users?email={email}","id":"420e28bc-204d-4e19-904b-cf0e039fdf30","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","users"],"host":["{{host}}"],"query":[{"key":"email","value":"{{email}}"}],"variable":[]}},"response":[{"id":"0d57f087-1b88-4b1a-ac28-1c54d9e0d92c","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":"420e28bc-204d-4e19-904b-cf0e039fdf30"},{"name":"/users?username={username}","id":"05d2bd52-cf8c-481f-9e5e-b87e98f4b57f","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","users"],"host":["{{host}}"],"query":[{"key":"username","value":"{{username}}"}],"variable":[]}},"response":[{"id":"f71df0b3-8abc-443b-8f6d-dbfa0ea20e17","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":"05d2bd52-cf8c-481f-9e5e-b87e98f4b57f"}],"id":"63126edd-cbb3-423b-8938-38547e97e7e3","description":"<p>Endpoints to manage VitalPBX's users</p>\n","_postman_id":"63126edd-cbb3-423b-8938-38547e97e7e3","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Virtual Faxes","item":[{"name":"/virtual_faxes","id":"46caa27b-e020-4997-aee3-4953fffac8f9","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","virtual_faxes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"f2bff5bb-cba6-4188-9343-6b66b3158eb3","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":"46caa27b-e020-4997-aee3-4953fffac8f9"},{"name":"/virtual_faxes/{id}","id":"c3cb3196-10ba-4c34-a54e-c14625f10eba","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","virtual_faxes","{{fax-id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"85eefcf9-63ac-446e-aa50-3487f323dec7","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":"c3cb3196-10ba-4c34-a54e-c14625f10eba"},{"name":"/virtual_faxes/{id}/send","id":"4ca1acb8-82e7-4300-a727-6be487d1449b","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","virtual_faxes","{{fax-id}}","send"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"55989203-0abf-4746-9c69-eb7e3f4cdbba","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":"4ca1acb8-82e7-4300-a727-6be487d1449b"},{"name":"/virtual_faxes/log/{id}","id":"1b96f2e0-eeb9-4d7b-84b6-fe2e69687793","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","virtual_faxes","log","{{fax_log_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"dd3c5561-570e-4d28-bb20-a6c8aeae7ead","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":"1b96f2e0-eeb9-4d7b-84b6-fe2e69687793"}],"id":"6ae8b29a-76f0-464e-925d-24465dc49705","description":"<p>Set of methods to retrieve Virtual Faxes' informaion. Also, it is possible sending faxes.</p>\n","_postman_id":"6ae8b29a-76f0-464e-925d-24465dc49705","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Voicemail","item":[{"name":"/voicemail/{extension}/{folder}/{message}","id":"1d030ee2-1ebd-4217-8c5c-10e5a1a72313","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","voicemail","2000","old","msg0002.txt"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"e4949920-8ba7-4ada-b4a1-baf7ebe48069","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":"1d030ee2-1ebd-4217-8c5c-10e5a1a72313"},{"name":"/voicemail/{extension}/{folder}/{message}","id":"8ffe5874-8416-47b4-ab03-a6a87766c496","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":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"http","path":["api","v2","voicemail","2000","inbox","msg0000.txt"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"37db1ed3-cdd0-444f-b4ae-ddca5b538c3d","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":"1fab97b1-3078-4b21-8442-e25ea039f26a","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":"c2f984b5-91dd-4139-9bf5-9803d8d3f82f","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":"8ffe5874-8416-47b4-ab03-a6a87766c496"}],"id":"dee9e6b6-375e-4340-8903-3ffefa8e1539","description":"<p>Actions to retrieve or delete voicemail of an specific extension</p>\n","_postman_id":"dee9e6b6-375e-4340-8903-3ffefa8e1539","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}},{"name":"Whatsapp","item":[{"name":"numbers","id":"b70a8a38-5529-473d-918a-059f7637825f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/whatsapp/numbers","description":"<p>It retrieves all the numbers from all the conections created in a specific tenant. The response returns an array of objects with the attributes below.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th><strong>Type</strong></th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>The unique ID attached to the number; this can be use to perform any action related to number endpoints.</td>\n</tr>\n<tr>\n<td>number</td>\n<td>string</td>\n<td>The whatsapp's number.</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>The name or description for the whatsapp's number.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","whatsapp","numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"131017a8-ef7a-41db-adfc-bf248f41f2f8","name":"All Numbers Retrieved","originalRequest":{"method":"GET","header":[],"url":"https://localhost/api/v2/whatsapp/numbers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 21 Sep 2023 20:23:49 GMT"},{"key":"Server","value":"Apache/2.4.56 (Debian)"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, Keep-Alive"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"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            \"id\": \"f0ae9f7d-13e0-4cf9-8ffe-171844564256\",\n            \"number\": \"+15551004538\",\n            \"description\": \"Test Number\"\n        }\n    ]\n}"}],"_postman_id":"b70a8a38-5529-473d-918a-059f7637825f"},{"name":"numbers/{id}/messages","id":"21ad5a51-f63a-438d-95c4-8a6bc5a3844f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"to\": \"{{WA-RECIPIENT-NUMBER}}\",\r\n    \"type\": \"contacs\",\r\n    \"text\": {\r\n        \"body\": \"Hello from VitalPBX API!\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/whatsapp/numbers/{{WA-NUMBER-ID}}/messages","description":"<p>It sends a Whatsapp message and returns the message ID to monitor their status.</p>\n<p>The parameters for the body requests are the ones below.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Descritption</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>to</td>\n<td>string</td>\n<td>The recipient number. It must be a valid E.164 number. e.g.: +13051114444.</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Indicates message type. The possible values are text, location, template, image, video, document, sticker, audio.</td>\n</tr>\n<tr>\n<td>text</td>\n<td>object</td>\n<td>Text messages contents.</td>\n</tr>\n<tr>\n<td>image</td>\n<td>object</td>\n<td>Media message contents. The property name should match the type of media message you are sending (image for an image message, video for a video message, etc.).</td>\n</tr>\n<tr>\n<td>location</td>\n<td>object</td>\n<td>Location message contents.</td>\n</tr>\n<tr>\n<td>contacts</td>\n<td>object</td>\n<td>Contacts message contents.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"sending-media-messages\">Sending Media Messages</h3>\n<p>When sending media messages, we must first upload the media using the \"media\" endpoint that will return an ID that can be use in the media objects(image, video, document, audio, and sticker). If you don't want to upload the media files, then you must provide a valid link publicly accessible.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","whatsapp","numbers","{{WA-NUMBER-ID}}","messages"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"6f4b24c2-8ca2-4636-bc8e-edb63d83faaf","name":"Text Message","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"to\": \"WA-RECIPIENT-NUMBER\",\r\n    \"type\": \"text\",\r\n    \"text\": {\r\n        \"body\": \"Hello from VitalPBX API!\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://localhost/api/v2/whatsapp/numbers/WA-NUMBER-ID/messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 21 Sep 2023 21:29:19 GMT"},{"key":"Server","value":"Apache/2.4.56 (Debian)"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, Keep-Alive"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"msg_id\": \"wamid.HBgLNTA1ODc2Njk1MzYVAgARGBI4MzFFODVCQkZCQzc1ODM1NDQA\"\n    }\n}"},{"id":"546d1106-e829-46d4-9103-803e5631f8e0","name":"Location","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"to\": \"{{WA-RECIPIENT-NUMBER}}\",\r\n    \"type\": \"location\",\r\n    \"location\": {\r\n        \"latitude\": 41.8826569,\r\n        \"longitude\": -87.6291466,\r\n        \"name\": \"Millennium Park\",\r\n        \"address\": \"201 E Randolph St, Chicago, IL 60602, United States\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/whatsapp/numbers/{{WA-NUMBER-ID}}/messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 21 Sep 2023 21:24:28 GMT"},{"key":"Server","value":"Apache/2.4.56 (Debian)"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, Keep-Alive"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"msg_id\": \"wamid.HBgLNTA1ODc2Njk1MzYVAgARGBJBQzdBMDMzNjlFMzE3NTMzOEUA\"\n    }\n}"},{"id":"291dbadd-a326-4050-ba19-93f72715586f","name":"Contacts","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"to\": \"{{WA-RECIPIENT-NUMBER}}\",\r\n    \"type\": \"contacts\",\r\n    \"contacts\": [\r\n        {\r\n            \"name\": {\r\n                \"first_name\": \"VitalPBX, LLC\",\r\n                \"formatted_name\": \"VitalPBX, LLC\"\r\n            },\r\n            \"addresses\": [\r\n                {\r\n                    \"street\": \"2292 NW 82nd Ave HB 002998\",\r\n                    \"city\": \"Miami\",\r\n                    \"state\": \"Florida\",\r\n                    \"zip\": \"33198\",\r\n                    \"country\": \"USA\",\r\n                    \"country_code\": \"+1\",\r\n                    \"type\": \"WORK\"\r\n                }\r\n            ],\r\n            \"phones\": [\r\n                {\r\n                    \"phone\": \"+13055605776\",\r\n                    \"type\": \"WORK\"\r\n                }\r\n            ],\r\n            \"emails\": [\r\n                {\r\n                    \"email\": \"support@vitalpbx.com\",\r\n                    \"type\": \"WORK\"\r\n                },\r\n                {\r\n                    \"email\": \"sales@vitalpbx.com\",\r\n                    \"type\": \"SALES\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/whatsapp/numbers/{{WA-NUMBER-ID}}/messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 21 Sep 2023 21:49:42 GMT"},{"key":"Server","value":"Apache/2.4.56 (Debian)"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, Keep-Alive"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"msg_id\": \"wamid.HBgLNTA1ODc2Njk1MzYVAgARGBJFNzgxQjE4MTBBN0VGNEEwMzUA\"\n    }\n}"},{"id":"5d776bbc-0501-4ffd-bf57-2990b43aafbb","name":"Media","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"to\": \"{{WA-RECIPIENT-NUMBER}}\",\r\n    \"type\": \"image\",\r\n    \"image\": {\r\n        \"id\": \"{{WA-MEDIA-ID}}\",\r\n        \"caption\": \"Look at this great image!\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{host}}/api/v2/whatsapp/numbers/{{WA-NUMBER-ID}}/messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 21 Sep 2023 22:50:09 GMT"},{"key":"Server","value":"Apache/2.4.56 (Debian)"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Content-Security-Policy","value":"default-src 'self';connect-src 'self' wss:;font-src *;img-src * data:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline';"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, Keep-Alive"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"msg_id\": \"wamid.HBgLNTA1ODc2Njk1MzYVAgARGBIxNkFGQUJDNDg2QkVEOTI5MEMA\"\n    }\n}"},{"id":"6accd712-c455-456c-92e8-c9347f0817ac","name":"Invalid Number ID","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"to\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://localhost/api/v2/whatsapp/numbers/f0ae9f7d-13e0-4cf9-8ffe-172222264256/messages"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 21 Sep 2023 20:48:50 GMT"},{"key":"Server","value":"Apache/2.4.56 (Debian)"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, Keep-Alive"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"not_found\",\n    \"message\": \"The ID f0ae9f7d-13e0-4cf9-8ffe-172222264256 doesn't belong to any number\",\n    \"data\": []\n}"},{"id":"525c088f-8446-404b-af6f-a23de6adbf43","name":"Invalid Payload","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"to\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://localhost/api/v2/whatsapp/numbers/{{WA-NUMBER-ID}}/messages"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 21 Sep 2023 20:49:41 GMT"},{"key":"Server","value":"Apache/2.4.56 (Debian)"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, Keep-Alive"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"The payload doesn't contain the property 'type'!\",\n    \"data\": []\n}"}],"_postman_id":"21ad5a51-f63a-438d-95c4-8a6bc5a3844f"},{"name":"numbers/{id}/media","id":"c0c846fc-18d1-41ad-ae61-0b5578c1873d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/C:/Users/Admin/Downloads/68747470733a2f2f6873746f2e6f72672f776562742f6d6e2f667a2f712d2f6d6e667a712d6c67646e626d762d3378762d31716d36676e3832652e706e67.png"}]},"url":"https://{{host}}/api/v2/whatsapp/numbers/{{WA-NUMBER-ID}}/media","description":"<p>It allows you to upload a media file that can be use on media messages.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","whatsapp","numbers","{{WA-NUMBER-ID}}","media"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"239254a6-84ae-48f3-99c5-109bf441dc26","name":"Media Uploaded","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/C:/Users/Admin/Downloads/unnamed.png"}]},"url":"https://localhost/api/v2/whatsapp/numbers/WA-NUMBER-ID/media"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 21 Sep 2023 22:47:30 GMT"},{"key":"Server","value":"Apache/2.4.56 (Debian)"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Content-Security-Policy","value":"default-src 'self';connect-src 'self' wss:;font-src *;img-src * data:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline';"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Connection","value":"Upgrade, Keep-Alive"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": null,\n    \"data\": {\n        \"id\": \"840900320816550\"\n    }\n}"}],"_postman_id":"c0c846fc-18d1-41ad-ae61-0b5578c1873d"},{"name":"messages/{id}/media","id":"af1c855f-a381-4cc0-9222-2af6894da654","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{host}}/api/v2/whatsapp/messages/{{WA-MSG-ID}}/media","description":"<p>It allows you to download the media from the incoming media messages.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","whatsapp","messages","{{WA-MSG-ID}}","media"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"af1c855f-a381-4cc0-9222-2af6894da654"}],"id":"d546d20b-ceb3-4c64-9015-3d9b69a681d6","description":"<p>API endpoints to send messages and upload media using the Whatsapp Connector add-on on VitalPBX.</p>\n","_postman_id":"d546d20b-ceb3-4c64-9015-3d9b69a681d6","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]},"isInherited":true,"source":{"_postman_id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","id":"e5c1f709-80b8-4b70-af63-a6192bc97fdf","name":"VitalPBX 4","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"app-key"},{"key":"value","value":"{{app-key}}"}]}},"event":[{"listen":"prerequest","script":{"id":"0bf364d6-4e17-4e8d-8a6f-027482064afa","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"96e2fad6-21a3-4cd9-a6f3-e64c40fc119d","type":"text/javascript","exec":[""]}}]}