{"info":{"_postman_id":"58094a29-9077-4b44-9783-6a0114d772a8","name":"Syrus Cloud API","description":"<html><head></head><body><p>Syrus Cloud API documentation, \nuse the /auth/login method to generate a token that's used in the <code>authentication</code> header on subsequent requests.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"389172","collectionId":"58094a29-9077-4b44-9783-6a0114d772a8","publishedId":"UV5ZAbPE","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-10-20T12:57:45.000Z"},"item":[{"name":"Login","id":"87010781-d041-4f0c-8c92-91789b232b8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"user@digitalcomtech.com\",\n    \"password\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cloud.digitalcomtech.com/auth/login","description":"<p>Authentication with the API, \nrequires <code>email</code> and <code>password</code> in the body.</p>\n<p>Successful authentication creates a <code>token</code> that can be used on subsequent requests in the <code>authentication</code> header.</p>\n","urlObject":{"protocol":"https","path":["auth","login"],"host":["cloud","digitalcomtech","com"],"query":[],"variable":[]}},"response":[{"id":"15d88277-292d-48f8-ae7a-c12f7f95b626","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"user@digitalcomtech.com\",\n    \"password\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cloud.digitalcomtech.com/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 09 Nov 2021 12:49:27 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"237"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"ETag","value":"W/\"ed-VlCwv+9bxFcmTFOGC9Lq7AZPpWI\""},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000;includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"userId\": \"user@digitalcomtech.com\",\n    \"roles\": [\n        \"user\"\n    ],\n    \"orgs\": {\n        \"1598880820149\": {\n            \"roles\": [\n                \"user\"\n            ],\n            \"groups\": [\n                \"1625582784923\"\n            ]\n        }\n    },\n    \"tokenTime\": 1636462167216,\n    \"ttl\": 86400,\n    \"token\": \"E2lu2pRxjrUAcqdWL8XJ1uq85Wx59uSB54sGibpQVXOFAfKvIt8avbzZkvs3blio\"\n}"},{"id":"5f88c75a-e4dd-457a-bc26-eaf583e2c5b5","name":"Invalid credentials","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"user@digitalcomtech.com\",\n    \"password\": \"112233\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cloud.digitalcomtech.com/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 09 Nov 2021 12:48:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"ETag","value":"W/\"2f-SflW0ZOejpsofgIBqqEjHiW3VbE\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 401,\n    \"message\": \"Invalid credentials.\"\n}"}],"_postman_id":"87010781-d041-4f0c-8c92-91789b232b8f"},{"name":"Get device info","id":"ee58fc5d-67be-42ba-a586-d616bbc52424","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authentication"},{"key":"value","value":"{{AUTH_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://cloud.digitalcomtech.com/api/devices/:imei","description":"<p>Get device details</p>\n","urlObject":{"protocol":"https","path":["api","devices",":imei"],"host":["cloud","digitalcomtech","com"],"query":[],"variable":[{"description":{"content":"<p>IMEI of device</p>\n","type":"text/plain"},"type":"any","value":"{{IMEI}}","key":"imei"}]}},"response":[{"id":"1d45313f-dc02-4c1f-8ea2-e46a09d73220","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://cloud.digitalcomtech.com/api/devices/:imei","protocol":"https","host":["cloud","digitalcomtech","com"],"path":["api","devices",":imei"],"variable":[{"key":"imei","value":"867698041099824","description":"IMEI of device"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 09 Nov 2021 12:52:46 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"4038"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"ETag","value":"W/\"fc6-2RqXoUYTNEV0VSKpR6S5meBUldg\""},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000;includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"867698041099824\",\n    \"_rev\": \"349-7cb170979b2c9014f71bf481f6c7877c\",\n    \"docType\": \"device\",\n    \"model\": \"syrus4\",\n    \"createdAt\": \"2020-04-11T13:00:24.000Z\",\n    \"updatedAt\": \"2020-04-11T13:00:24.000Z\",\n    \"createdBy\": \"syrprod\",\n    \"updatedBy\": \"syrprod\",\n    \"swid\": \"syrprod4\",\n    \"swver\": \"0.2.21\",\n    \"organization\": \"1598880820149\",\n    \"group\": \"1598880820149:1625582784923\",\n    \"crypto_unique_id\": \"01235c96e5b418d101\",\n    \"imei\": \"867698041099824\",\n    \"embedded_sim_id\": \"8901260862393321335F\",\n    \"pic_version\": \"0.0.2T\",\n    \"os_version\": \"apex-20.12\",\n    \"bluetooth_mac\": \"28:EC:9A:70:69:51\",\n    \"wifi_mac\": \"28:EC:9A:70:69:52\",\n    \"ethernet_mac\": \"78:04:73:80:02:10\",\n    \"serial\": \"S4GBW-2016-000049\",\n    \"name\": \"Ignacio\",\n    \"apexUpdate\": {\n        \"createdAt\": \"2021-01-12T17:11:13.052Z\",\n        \"version\": \"apex-21.43.1\",\n        \"progress\": 100,\n        \"startedAt\": \"2021-11-01T13:51:31.110Z\",\n        \"status\": \"done\",\n        \"finishedAt\": \"2021-11-01T13:57:44.420Z\",\n        \"message\": \"Successfully updated. Restarting Device\",\n        \"updatedAt\": \"2021-11-01T13:57:46.241Z\"\n    },\n    \"lastState\": {\n        \"system\": {\n            \"apex\": {\n                \"version\": \"21.43.1\",\n                \"date\": \"20211029193311\",\n                \"kernel\": \"5.4.20-g738552d0b0\",\n                \"epoch\": 1635775240\n            },\n            \"ram\": {\n                \"total\": 506084,\n                \"epoch\": 1602252681\n            },\n            \"dataFs\": {\n                \"total\": 2223416,\n                \"epoch\": 1602252681\n            },\n            \"rootFs\": {\n                \"total\": 590260,\n                \"epoch\": 1635197302\n            },\n            \"session\": {\n                \"since\": \"2021-11-09_11:19:35\",\n                \"count\": 2160,\n                \"epoch\": 1636455962\n            },\n            \"warnings\": {\n                \"ramP\": null,\n                \"dataP\": null,\n                \"batt\": 3.444,\n                \"epoch\": 1636456448\n            }\n        },\n        \"gps\": {\n            \"engine\": {\n                \"name\": \"xm1110\",\n                \"epoch\": 1588806033\n            },\n            \"filter\": {\n                \"hdop\": 2,\n                \"motion\": true,\n                \"speed\": 5,\n                \"epoch\": 1588806033\n            }\n        },\n        \"mobile\": {\n            \"sim\": {\n                \"priority\": \"e-sim\",\n                \"swInterval\": 8,\n                \"epoch\": 1632827890\n            },\n            \"rf\": {\n                \"apn\": \"wireless.twilio.com\",\n                \"keepAlive\": 15,\n                \"epoch\": 1626381525\n            },\n            \"nbrAuth\": {\n                \"call\": false,\n                \"sms\": false,\n                \"epoch\": 1626381525\n            }\n        },\n        \"core\": {\n            \"syrus\": {\n                \"api\": \"1.13.3-r0.0\",\n                \"apps\": \"0.0.4-r0.0\",\n                \"bt\": \"1.1.8-r0.0\",\n                \"counters\": \"1.0.6-r0.0\",\n                \"disk-cleaner\": \"0.0.3-r0.0\",\n                \"ecu\": \"2.0.3-r0.1\",\n                \"geofences\": \"1.0.2-r0.2\",\n                \"gps\": \"1.3.2-r0.0\",\n                \"imu\": \"1.1.1-r0.0\",\n                \"interface\": \"1.0.8-r0.0\",\n                \"mdm\": \"1.3.5-r0.1\",\n                \"ndm\": \"0.0.8-r0.0\",\n                \"onewire\": \"1.0.2-r0.0\",\n                \"serial\": \"0.2.2-r0.0\",\n                \"ui\": \"0.20.3-r0.0\",\n                \"video\": \"0.3.19-r0.0\",\n                \"watcher\": \"0.2.5-r0.5\",\n                \"epoch\": 1635775240\n            },\n            \"uchip\": {\n                \"version\": \"1.0.14T\",\n                \"epoch\": 1635197501\n            }\n        },\n        \"apps\": {\n            \"list\": [\n                {\n                    \"instance_name\": \"__cloud_tahoe\",\n                    \"app_name\": \"syrusjs\",\n                    \"version\": \"1.34.0\",\n                    \"status\": \"active\",\n                    \"hash\": \"b5c6a43513c05c8a1f7a39ce5dc499ad\"\n                },\n                {\n                    \"instance_name\": \"recorder\",\n                    \"app_name\": \"syrus-recorder\",\n                    \"version\": \"1.0.0\",\n                    \"status\": \"inactive\"\n                },\n                {\n                    \"instance_name\": \"telegram\",\n                    \"app_name\": \"telegram-bot\",\n                    \"version\": \"1.1.0\",\n                    \"status\": \"inactive\"\n                }\n            ],\n            \"installed\": 3,\n            \"instances\": 3,\n            \"epoch\": 1635946556\n        },\n        \"profile\": {\n            \"geofences\": {\n                \"files\": null,\n                \"epoch\": 1619556233\n            },\n            \"onewire\": {\n                \"files\": {\n                    \"ibutton.onewire.conf\": \"md5=26dffdc35c90c8f82dd51847200a0000\"\n                },\n                \"epoch\": 1634338866\n            },\n            \"ecumonitor\": {\n                \"files\": {\n                    \"ecumonitor.conf\": \"md5=0860ae02197ede8896220b2fe2b3198d\"\n                },\n                \"epoch\": 1634338866\n            },\n            \"video\": {\n                \"files\": {\n                    \"video.conf\": \"md5=25db8c673f34b7b7a0e824eeed749b49\",\n                    \"video.conf.json\": \"md5=aa0dfa1a3588d9c1e22829d48c7e944d\"\n                },\n                \"epoch\": 1636043470\n            },\n            \"psm\": {\n                \"psm.conf\": \"str=IGN:0,SLP:600;PWR,IGN,MOT,IN1,IN2,IN3,MIN:240;600\",\n                \"epoch\": 1634338866\n            },\n            \"serial\": {\n                \"serial.conf\": \"md5=74d0bde79c07d93ad822664463c26254\",\n                \"epoch\": 1634338866\n            }\n        },\n        \"geofences\": {\n            \"namespaces\": [\n                {\n                    \"name\": \"applications\",\n                    \"count\": 16\n                },\n                {\n                    \"name\": \"syrusjs\",\n                    \"count\": 5\n                },\n                {\n                    \"name\": \"Copilo_Zonas_Ignacio\",\n                    \"count\": 16\n                }\n            ],\n            \"g_count\": 37,\n            \"epoch\": 1622990536\n        },\n        \"epoch\": 1636456448,\n        \"connSt\": {\n            \"online\": false,\n            \"type\": \"dirty\",\n            \"reported\": \"2021-11-09T11:15:11.579Z\"\n        }\n    },\n    \"lastDiag\": {\n        \"system\": {\n            \"ramA\": 403448,\n            \"cpuS\": [\n                0,\n                428,\n                7,\n                8,\n                188\n            ],\n            \"uptime\": 628,\n            \"loadAvg\": [\n                2.46,\n                2.05,\n                1.27\n            ],\n            \"batt\": 3.444,\n            \"sessionCount\": 2160\n        },\n        \"gps\": {\n            \"fix\": 3,\n            \"position\": [\n                25.697621,\n                -80.166125\n            ],\n            \"speed\": 0\n        },\n        \"mobile\": {\n            \"state\": \"ON\",\n            \"gsm\": 1,\n            \"gprs\": 1,\n            \"rat\": \"FDD_LTE\",\n            \"mcc_mnc\": \"310260\",\n            \"operator\": \"Wireless\",\n            \"band\": \"LTE_BAND_4\",\n            \"rssi\": 21,\n            \"ip\": \"25.128.112.41\",\n            \"eSimId\": \"8901260862393321335F\"\n        },\n        \"netLink\": {\n            \"name\": \"ppp0\",\n            \"ip\": \"25.128.112.41\"\n        },\n        \"message\": {\n            \"level\": \"info\",\n            \"app\": \"systemd\",\n            \"mess\": \"PSM_was_activated.\"\n        },\n        \"epoch\": 1636456497320,\n        \"full_state_epoch\": 1636456448,\n        \"_id\": \"1598880820149.1625582784923:867698041099824:1636456497320\",\n        \"docType\": \"diagnostics\",\n        \"reported\": \"2021-11-09T11:14:57.320Z\",\n        \"serverTime\": \"2021-11-09T11:15:00.138Z\"\n    }\n}"},{"id":"e85d2700-d9a0-4928-8b09-968c19b428d0","name":"Invalid IMEI","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://cloud.digitalcomtech.com/api/devices/:imei","protocol":"https","host":["cloud","digitalcomtech","com"],"path":["api","devices",":imei"],"variable":[{"key":"imei","value":"123","description":"IMEI of device"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 09 Nov 2021 12:53:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"39"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"ETag","value":"W/\"27-8acQFNq9kuA4ZQ7W5Nx0gxHa6lA\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 400,\n    \"message\": \"Invalid IMEI\"\n}"},{"id":"9b9136e4-81a4-4b04-8760-d413912a99d0","name":"No access to device","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://cloud.digitalcomtech.com/api/devices/:imei","protocol":"https","host":["cloud","digitalcomtech","com"],"path":["api","devices",":imei"],"variable":[{"key":"imei","value":"867698041103519","description":"IMEI of device"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 09 Nov 2021 13:00:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"ETag","value":"W/\"24-aIuEWecqa7M0Bi+WTh7LeWQm24U\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 403,\n    \"message\": \"Forbidden\"\n}"}],"_postman_id":"ee58fc5d-67be-42ba-a586-d616bbc52424"},{"name":"View list of videos","id":"98152215-d238-4478-b764-52f7e2561703","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authentication"},{"key":"value","value":"{{AUTH_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://cloud.digitalcomtech.com/api/devices/:imei/videos?from={{DATE_FROM}}&to={{DATE_TO}}&tz={{TIMEZONE}}&available=true","urlObject":{"protocol":"https","path":["api","devices",":imei","videos"],"host":["cloud","digitalcomtech","com"],"query":[{"description":{"content":"<p>Date from YYYY-MM-DD[Thh:mm:ss] or any momentJS date format</p>\n","type":"text/plain"},"key":"from","value":"{{DATE_FROM}}"},{"description":{"content":"<p>Date to YYYY-MM-DD[Thh:mm:ss] or any momentJS date format</p>\n","type":"text/plain"},"key":"to","value":"{{DATE_TO}}"},{"description":{"content":"<p><a href=\"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\">https://en.wikipedia.org/wiki/List_of_tz_database_time_zones</a></p>\n","type":"text/plain"},"key":"tz","value":"{{TIMEZONE}}"},{"description":{"content":"<p>Set to true to filter by videos already downloaded</p>\n","type":"text/plain"},"key":"available","value":"true"}],"variable":[{"description":{"content":"<p>IMEI of device</p>\n","type":"text/plain"},"type":"any","value":"{{IMEI}}","key":"imei"}]}},"response":[{"id":"9c96d71d-db6b-4358-a1e9-6b8967f9b28b","name":"Successful response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://cloud.digitalcomtech.com/api/devices/:imei/videos?from={{date_from}}&to={{date_to}}","protocol":"https","host":["cloud","digitalcomtech","com"],"path":["api","devices",":imei","videos"],"query":[{"key":"from","value":"{{date_from}}","description":"Date from YYYY-MM-DD[Thh:mm:ss]"},{"key":"to","value":"{{date_to}}","description":"Date to YYYY-MM-DD[Thh:mm:ss]"},{"key":"tz","value":"{{timezone}}","description":"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones","disabled":true}],"variable":[{"key":"imei","value":"867698040023510","description":"IMEI of device"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 09 Nov 2021 13:08:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"890"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"ETag","value":"W/\"37a-N30WOG2/r6X8yGL5eQhtRbQYmPE\""},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000;includeSubDomains"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"type\": \"file\",\n        \"name\": \"1636115189-test1-window_cam.mp4\",\n        \"size\": 2312595,\n        \"time\": \"2021-11-05T12:27:20Z\"\n    },\n    {\n        \"type\": \"file\",\n        \"name\": \"1636115189-test1-dahua_cam.mp4\",\n        \"size\": 6271024,\n        \"time\": \"2021-11-05T12:27:24Z\"\n    },\n    {\n        \"type\": \"file\",\n        \"name\": \"1636115657-test1-dahua_cam.mp4\",\n        \"size\": 0,\n        \"time\": \"2021-11-05T12:34:36Z\"\n    },\n    {\n        \"type\": \"file\",\n        \"name\": \"dahua_cam-pt-2.mp4\",\n        \"size\": 3094122,\n        \"time\": \"2021-11-05T12:34:38Z\"\n    },\n    {\n        \"type\": \"file\",\n        \"name\": \"dahua_cam-pt-1.mp4\",\n        \"size\": 3124876,\n        \"time\": \"2021-11-05T12:34:38Z\"\n    },\n    {\n        \"type\": \"file\",\n        \"name\": \"1636115657-test1-window_cam.mp4\",\n        \"size\": 2030174,\n        \"time\": \"2021-11-05T12:34:54Z\",\n        \"url\": \"/uploads/e4c9c3c4fd95c9e39e189b621d7eb117.mp4\"\n    },\n    {\n        \"type\": \"file\",\n        \"name\": \"1636116374-test1-window_cam.mp4\",\n        \"size\": 2014656,\n        \"time\": \"2021-11-05T12:46:50Z\",\n        \"url\": \"/uploads/eea6ffea7c0a97dae68a2eef4ad32f72.mp4\"\n    },\n    {\n        \"type\": \"file\",\n        \"name\": \"1636116374-test1-dahua_cam.mp4\",\n        \"size\": 6256053,\n        \"time\": \"2021-11-05T12:47:06Z\"\n    }\n]"}],"_postman_id":"98152215-d238-4478-b764-52f7e2561703"},{"name":"Watch a video","id":"2f15b95b-2e72-449e-9675-2be66eaf2d3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authentication"},{"key":"value","value":"{{AUTH_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://cloud.digitalcomtech.com/api/devices/:imei/videos/:filename?json=false","urlObject":{"protocol":"https","path":["api","devices",":imei","videos",":filename"],"host":["cloud","digitalcomtech","com"],"query":[{"description":{"content":"<p>Return result as json to view status </p>\n","type":"text/plain"},"key":"json","value":"false"}],"variable":[{"description":{"content":"<p>IMEI of device</p>\n","type":"text/plain"},"type":"any","value":"{{IMEI}}","key":"imei"},{"description":{"content":"<p>Video filename</p>\n","type":"text/plain"},"type":"any","value":"{{VIDEO_FILENAME}}","key":"filename"}]}},"response":[],"_postman_id":"2f15b95b-2e72-449e-9675-2be66eaf2d3a"},{"name":"Send command (get videos)","id":"3ba33738-ab75-4442-a94d-86b2358c1d29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authentication"},{"key":"value","value":"{{AUTH_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"groupId\": \"1598880820149:1625582784923\",\n    \"imeis\": [\n        {{IMEI}}\n    ],\n    \"command\": \"list-videos\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cloud.digitalcomtech.com/api/commands/send","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>path Params</th>\n<th>type</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>json</code></td>\n<td>boolean</td>\n<td>true to request information on the status of the last command sent</td>\n</tr>\n<tr>\n<td><code>tz</code></td>\n<td>string</td>\n<td><a href=\"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\">tz database</a> time zone</td>\n</tr>\n</tbody>\n</table>\n</div><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>body Params</th>\n<th>type</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>command</code></td>\n<td>string</td>\n<td>command to send (apx, shell, or special reserved commands, (see below))</td>\n</tr>\n<tr>\n<td><code>imeis</code></td>\n<td>string[]</td>\n<td>array of IMEIs to send the command to</td>\n</tr>\n</tbody>\n</table>\n</div><p>Special commands</p>\n<p><code>list-videos</code> - query latest videos on the device</p>\n<p>Important: commands will only be sent to devices that are in the same group as the first IMEI on the array list.</p>\n","urlObject":{"protocol":"https","path":["api","commands","send"],"host":["cloud","digitalcomtech","com"],"query":[{"disabled":true,"description":{"content":"<p>Return result as json to view status </p>\n","type":"text/plain"},"key":"json","value":"true"},{"disabled":true,"description":{"content":"<p>Timezone</p>\n","type":"text/plain"},"key":"tz","value":"{{TIMEZONE}}"}],"variable":[]}},"response":[{"id":"91e25c7c-c345-44e3-bf2b-85ad892bf443","name":"list-videos","originalRequest":{"method":"POST","header":[{"key":"authentication","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"groupId\": \"1598880820149:1625582784923\",\n    \"imeis\": [\n        867698040023510\n    ],\n    \"command\": \"list-videos\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://cloud.digitalcomtech.com/api/commands/send","protocol":"https","host":["cloud","digitalcomtech","com"],"path":["api","commands","send"],"query":[{"key":"json","value":"true","description":"Return result as json to view status ","disabled":true},{"key":"tz","value":"{{timezone}}","description":"Timezone","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 09 Nov 2021 13:09:54 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"528"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"ETag","value":"W/\"210-G+ueSi//35TLBYC9pZM07Cz41rI\""},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000;includeSubDomains"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"1598880820149.1625582784923:867698040023510:1636463394107\",\n        \"createdAt\": \"2021-11-09T13:09:54.107Z\",\n        \"createdBy\": \"support@digitalcomtech.com\",\n        \"docType\": \"command\",\n        \"request\": \"token=keikcwj9kqs60oez8jkmz5qaqekvs41w6z run-cloud-script 159df686a0f6946738439e432a6342c4 1636463394098\",\n        \"status\": \"queued\",\n        \"responseAt\": null,\n        \"response\": null,\n        \"responseCode\": null,\n        \"scloudCmd\": {\n            \"id\": \"list-videos\",\n            \"scriptName\": \"159df686a0f6946738439e432a6342c4\",\n            \"outFileName\": \"159df686a0f6946738439e432a6342c4-1636463394098.log\",\n            \"outDownloaded\": false\n        }\n    }\n]"}],"_postman_id":"3ba33738-ab75-4442-a94d-86b2358c1d29"},{"name":"Send command (custom)","id":"8d4f2b81-d1cd-495a-ad88-5cc7a01a54cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authentication"},{"key":"value","value":"{{AUTH_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"command\": \"curl -s https://api-dev.waypoint.cl/geofences-integration/geturl/WAYPOINT_OPERACIONES/code | grep -o https://geofences-syrus.s3.amazonaws.com/[^\\\"]* | xargs -I {} curl -o geo.conf \\\"{}\\\"\",\n    \"imeis\": [\n        \"{{IMEI}}\"\n    ]\n}\n","options":{"raw":{"language":"json"}}},"url":"https://cloud.digitalcomtech.com/api/commands/send","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>path Params</th>\n<th>type</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>json</code></td>\n<td>boolean</td>\n<td>true to request information on the status of the last command sent</td>\n</tr>\n<tr>\n<td><code>tz</code></td>\n<td>string</td>\n<td><a href=\"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\">tz database</a> time zone</td>\n</tr>\n</tbody>\n</table>\n</div><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>body Params</th>\n<th>type</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>command</code></td>\n<td>string</td>\n<td>command to send (apx, shell, or special reserved commands, (see below))</td>\n</tr>\n<tr>\n<td><code>imeis</code></td>\n<td>string[]</td>\n<td>array of IMEIs to send the command to</td>\n</tr>\n</tbody>\n</table>\n</div><p>Special commands</p>\n<p><code>list-videos</code> - query latest videos on the device</p>\n<p>Important: commands will only be sent to devices that are in the same group as the first IMEI on the array list.</p>\n","urlObject":{"protocol":"https","path":["api","commands","send"],"host":["cloud","digitalcomtech","com"],"query":[{"disabled":true,"description":{"content":"<p>Return result as json to view status </p>\n","type":"text/plain"},"key":"json","value":"true"},{"disabled":true,"description":{"content":"<p>Timezone</p>\n","type":"text/plain"},"key":"tz","value":"{{TIMEZONE}}"}],"variable":[]}},"response":[{"id":"44926a2e-7cc7-4f32-904d-1736c05e88a1","name":"list-videos","originalRequest":{"method":"POST","header":[{"key":"authentication","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"groupId\": \"1598880820149:1625582784923\",\n    \"imeis\": [\n        867698040023510\n    ],\n    \"command\": \"list-videos\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://cloud.digitalcomtech.com/api/commands/send","protocol":"https","host":["cloud","digitalcomtech","com"],"path":["api","commands","send"],"query":[{"key":"json","value":"true","description":"Return result as json to view status ","disabled":true},{"key":"tz","value":"{{timezone}}","description":"Timezone","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 09 Nov 2021 13:09:54 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"528"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"ETag","value":"W/\"210-G+ueSi//35TLBYC9pZM07Cz41rI\""},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000;includeSubDomains"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"1598880820149.1625582784923:867698040023510:1636463394107\",\n        \"createdAt\": \"2021-11-09T13:09:54.107Z\",\n        \"createdBy\": \"support@digitalcomtech.com\",\n        \"docType\": \"command\",\n        \"request\": \"token=keikcwj9kqs60oez8jkmz5qaqekvs41w6z run-cloud-script 159df686a0f6946738439e432a6342c4 1636463394098\",\n        \"status\": \"queued\",\n        \"responseAt\": null,\n        \"response\": null,\n        \"responseCode\": null,\n        \"scloudCmd\": {\n            \"id\": \"list-videos\",\n            \"scriptName\": \"159df686a0f6946738439e432a6342c4\",\n            \"outFileName\": \"159df686a0f6946738439e432a6342c4-1636463394098.log\",\n            \"outDownloaded\": false\n        }\n    }\n]"}],"_postman_id":"8d4f2b81-d1cd-495a-ad88-5cc7a01a54cf"},{"name":"Get status of command","id":"4de989f6-3d3f-4941-bb5e-1f8c9ac5d8b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authentication"},{"key":"value","value":"{{AUTH_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://cloud.digitalcomtech.com/api/commands/:_id","urlObject":{"protocol":"https","path":["api","commands",":_id"],"host":["cloud","digitalcomtech","com"],"query":[],"variable":[{"description":{"content":"<p>Command _id from Send command response</p>\n","type":"text/plain"},"type":"any","value":"{{COMMAND_ID}}","key":"_id"}]}},"response":[],"_postman_id":"4de989f6-3d3f-4941-bb5e-1f8c9ac5d8b4"},{"name":"Upload file","id":"bec4b681-2199-4e00-a110-58af5ce42e88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authentication"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"command","value":"upload-file","type":"text"},{"key":"path","value":"/data/users/syrus4g/geofences/waypoint.syrus.conf","type":"text"},{"key":"userFileName","value":"waypoint.syrus.conf","type":"text"},{"key":"fileName","value":"waypoint.syrus.conf","type":"text"},{"key":"imeis","value":"[\"867698040023056\"]","type":"text"},{"key":"file","type":"file","src":"YeL7AdA3o/waypoint.sh"}]},"url":"https://cloud.digitalcomtech.com/api/commands/send","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>path Params</th>\n<th>type</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>json</code></td>\n<td>boolean</td>\n<td>true to request information on the status of the last command sent</td>\n</tr>\n<tr>\n<td><code>tz</code></td>\n<td>string</td>\n<td><a href=\"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\">tz database</a> time zone</td>\n</tr>\n</tbody>\n</table>\n</div><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>body Params</th>\n<th>type</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>command</code></td>\n<td>string</td>\n<td>command to send (apx, shell, or special reserved commands, (see below))</td>\n</tr>\n<tr>\n<td><code>imeis</code></td>\n<td>string[]</td>\n<td>array of IMEIs to send the command to</td>\n</tr>\n</tbody>\n</table>\n</div><p>Special commands</p>\n<p><code>list-videos</code> - query latest videos on the device</p>\n<p>Important: commands will only be sent to devices that are in the same group as the first IMEI on the array list.</p>\n","urlObject":{"protocol":"https","path":["api","commands","send"],"host":["cloud","digitalcomtech","com"],"query":[{"disabled":true,"description":{"content":"<p>Return result as json to view status </p>\n","type":"text/plain"},"key":"json","value":"true"},{"disabled":true,"description":{"content":"<p>Timezone</p>\n","type":"text/plain"},"key":"tz","value":"{{timezone}}"}],"variable":[]}},"response":[{"id":"0fd68014-c8af-4aa1-aac0-1b3fa77eca22","name":"Upload file","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"A1AHgkUic/fecha2.sh"},{"key":"command","value":"upload-file","type":"text"},{"key":"path","value":"/data/users/syrus4g/fecha2.sh","type":"text"},{"key":"userFileName","value":"fecha2.sh","type":"text"},{"key":"fileName","value":"a42733f2a9058460fd79c6da39ae7ad0","type":"text"},{"key":"groupId","value":"1598880820149:1625582784923","type":"text"},{"key":"imeis","value":"[\"867698040023056\"]","type":"text"}]},"url":{"raw":"https://cloud.digitalcomtech.com/api/commands/send","protocol":"https","host":["cloud","digitalcomtech","com"],"path":["api","commands","send"],"query":[{"key":"json","value":"true","description":"Return result as json to view status ","disabled":true},{"key":"tz","value":"{{timezone}}","description":"Timezone","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 30 Aug 2023 20:36:17 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"612"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"ETag","value":"W/\"264-9qjcHdJ1m3mFlWDfUXU7qKg3tZI\""},{"key":"Strict-Transport-Security","value":"max-age=31536000;includeSubDomains"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"1598880820149.1625582784923:867698040023056:1693427776834\",\n        \"createdAt\": \"2023-08-30T20:36:16.834Z\",\n        \"createdBy\": \"leopoldo.reynoso@digitalcomtech.com\",\n        \"docType\": \"command\",\n        \"request\": \"run-cloud-script da29fede27053acbabd6146fdb2e958f 1693427776363\",\n        \"status\": \"queued\",\n        \"responseAt\": null,\n        \"response\": null,\n        \"responseCode\": null,\n        \"scloudCmd\": {\n            \"id\": \"upload-file\",\n            \"userFileName\": \"fecha2.sh\",\n            \"fileName\": \"a42733f2a9058460fd79c6da39ae7ad0\",\n            \"destPath\": \"/data/users/syrus4g/fecha2.sh\",\n            \"scriptName\": \"da29fede27053acbabd6146fdb2e958f\",\n            \"outFileName\": \"da29fede27053acbabd6146fdb2e958f-1693427776363.log\",\n            \"outDownloaded\": false\n        }\n    }\n]"}],"_postman_id":"bec4b681-2199-4e00-a110-58af5ce42e88"},{"name":"Request a file from device","id":"4c152e1a-1dfd-4b1b-b977-4d9db86147aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authentication"},{"key":"value","value":"{{AUTH_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"command\": \"download-file\",\n    \"path\": \"/data/app_data/instancetest57/output.json\",\n    \"imeis\": [\n        {{IMEI}}\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://cloud.digitalcomtech.com/api/commands/send","urlObject":{"protocol":"https","path":["api","commands","send"],"host":["cloud","digitalcomtech","com"],"query":[{"disabled":true,"description":{"content":"<p>Return result as json to view status </p>\n","type":"text/plain"},"key":"json","value":"true"},{"disabled":true,"description":{"content":"<p>Timezone</p>\n","type":"text/plain"},"key":"tz","value":"{{TIMEZONE}}"}],"variable":[]}},"response":[],"_postman_id":"4c152e1a-1dfd-4b1b-b977-4d9db86147aa"},{"name":"View a file from Syrus Cloud","id":"82a148d7-a505-4f10-bbdb-4e5772f79300","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authentication"},{"key":"value","value":"{{AUTH_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://cloud.digitalcomtech.com/api/uploads/{{FILENAME}}","urlObject":{"protocol":"https","path":["api","uploads","{{FILENAME}}"],"host":["cloud","digitalcomtech","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"82a148d7-a505-4f10-bbdb-4e5772f79300"},{"name":"Store file","id":"3ce381f2-4028-44f7-a6f7-6177a912b508","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authentication"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data; boundary=----WebKitFormBoundaryiD9eCiBZXHqmxyG0","type":"text"}],"body":{"mode":"file","file":{"src":"wYZwLNxn5/geo.syrus.conf"}},"url":"https://cloud.digitalcomtech.com/api/store-file","urlObject":{"protocol":"https","path":["api","store-file"],"host":["cloud","digitalcomtech","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ce381f2-4028-44f7-a6f7-6177a912b508"}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authentication"},{"key":"value","value":"{{AUTH_TOKEN}}"}]}},"event":[{"listen":"prerequest","script":{"id":"c9b46994-0643-4f68-aac3-02ddf2f88eb1","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"20df9717-c8f7-4543-82b5-32bbf106ae31","type":"text/javascript","exec":[""]}}]}