{"info":{"_postman_id":"c713496d-fe66-461e-ba41-0d87aaa1cda2","name":"Exon","description":"<html><head></head><body><p>API for Synati IoT system</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11886870","collectionId":"c713496d-fe66-461e-ba41-0d87aaa1cda2","publishedId":"UUxz9SUd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-09-27T11:26:59.000Z"},"item":[{"name":"User","item":[{"name":"GET User","id":"dd1a1d02-d463-4445-b7e4-07b8f3b5b2bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://iot.synati.com/api/user/get","description":"<p>Get authorized user data.</p>\n","urlObject":{"path":["api","user","get"],"host":["https://iot.synati.com"],"query":[],"variable":[]}},"response":[{"id":"24eac1f7-66be-419a-9163-a1d2ae83c0c3","name":"GET User","originalRequest":{"method":"GET","header":[],"url":"https://iot.synati.com/api/user/get"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.21.1"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.6"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 26 Sep 2021 22:09:36 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": {\n        \"id\": 1,\n        \"name\": \"basic_user_1\",\n        \"email\": \"basic_1@dummy.com\",\n        \"last_login\": null,\n        \"max_hubs\": null,\n        \"max_sensors\": null,\n        \"max_custom_reading_types\": null,\n        \"max_reading_per_day\": null,\n        \"rest_access\": null\n    },\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"User successfuly downloaded\"\n    }\n}"}],"_postman_id":"dd1a1d02-d463-4445-b7e4-07b8f3b5b2bb"}],"id":"d1136c7c-1b68-4326-90ec-262ecc93957d","_postman_id":"d1136c7c-1b68-4326-90ec-262ecc93957d","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"c713496d-fe66-461e-ba41-0d87aaa1cda2","id":"c713496d-fe66-461e-ba41-0d87aaa1cda2","name":"Exon","type":"collection"}}},{"name":"Devices","item":[{"name":"GET Devices","id":"186e0ee5-3413-4efe-ba99-b5403e0708d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://iot.synati.com/api/devices/get","description":"<p>Get all devices of user.</p>\n","urlObject":{"path":["api","devices","get"],"host":["https://iot.synati.com"],"query":[],"variable":[]}},"response":[{"id":"91c6eccd-e700-4e21-b4f9-0aefb35f6a3c","name":"GET Devices","originalRequest":{"method":"GET","header":[],"url":"https://iot.synati.com/api/devices/get"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.21.1"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.6"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 26 Sep 2021 22:08:55 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": [\n        {\n            \"id\": 1,\n            \"hash\": \"HUB_1_1_HASH\",\n            \"name\": \"Hub\",\n            \"model_name\": \"HUB\",\n            \"model_version\": null,\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 2,\n            \"hash\": \"HUB_1_2_HASH\",\n            \"name\": \"Moj hub\",\n            \"model_name\": \"HUB\",\n            \"model_version\": null,\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 4,\n            \"hash\": \"ENV_1_1_HASH\",\n            \"name\": \"Sensor przedpokoj\",\n            \"model_name\": \"ENV_SENSOR\",\n            \"model_version\": null,\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 5,\n            \"hash\": \"ENV_1_2_HASH\",\n            \"name\": \"Sensor drzwi\",\n            \"model_name\": \"ENV_SENSOR\",\n            \"model_version\": null,\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 9,\n            \"hash\": \"RFID_1_1_HASH\",\n            \"name\": \"\",\n            \"model_name\": \"RFID_SENSOR\",\n            \"model_version\": null,\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 22,\n            \"hash\": \"HUBIK10\",\n            \"name\": \"\",\n            \"model_name\": \"HUB\",\n            \"model_version\": null,\n            \"created_at\": \"2021-09-01T09:29:27.000000Z\",\n            \"updated_at\": \"2021-09-01T09:29:27.000000Z\"\n        },\n        {\n            \"id\": 23,\n            \"hash\": \"DEVICE\",\n            \"name\": \"Friendly name\",\n            \"model_name\": \"ENV_SENSOR\",\n            \"model_version\": null,\n            \"created_at\": \"2021-09-01T09:33:09.000000Z\",\n            \"updated_at\": \"2021-09-03T12:40:15.000000Z\"\n        }\n    ],\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Devices found for this user.\"\n    }\n}"}],"_postman_id":"186e0ee5-3413-4efe-ba99-b5403e0708d0"},{"name":"POST ADD Device","id":"d6f787c6-9520-4a20-a730-37605424fa18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"hash","value":"ENV_1_2_HASH","type":"text"},{"key":"friendly_name","value":"Moj sensorek","type":"text"}]},"url":"https://iot.synati.com/api/devices/add","description":"<p>Add device for user</p>\n","urlObject":{"path":["api","devices","add"],"host":["https://iot.synati.com"],"query":[{"disabled":true,"key":"","value":""},{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"f898faf5-d5be-4c0e-9561-b2180719ad2c","name":"POST ADD Device","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"hash","value":"ENV_1_2_HASH","description":"Device hash as provided by Synati","type":"text"},{"key":"friendly_name","value":"Moj sensorek","description":"Friendly name displayed on the platform","type":"text"}]},"url":{"raw":"https://iot.synati.com/api/devices/add","host":["https://iot.synati.com"],"path":["api","devices","add"],"query":[{"key":"","value":"","type":"text","disabled":true},{"key":"","value":"","type":"text","disabled":true}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.21.1"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.0.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 02 Nov 2021 02:16:58 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"payload\": [],\n    \"info\": {\n        \"errors\": [\n            \"This device is already linked with this user.\"\n        ],\n        \"warnings\": [],\n        \"message\": \"Error occurred.\"\n    }\n}"}],"_postman_id":"d6f787c6-9520-4a20-a730-37605424fa18"},{"name":"GET Device by hash","id":"faab86a3-5e01-4b81-bc30-eaa8e4436ffa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://iot.synati.com/api/devices/RFID_1_1_HASH/get","description":"<p>Get device using it's hash.</p>\n","urlObject":{"path":["api","devices","RFID_1_1_HASH","get"],"host":["https://iot.synati.com"],"query":[],"variable":[]}},"response":[{"id":"3ca581e9-f00d-4811-a410-9a86a3d66796","name":"GET Device by hash","originalRequest":{"method":"GET","header":[],"url":"https://iot.synati.com/api/devices/RFID_1_1_HASH/get"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 02 Nov 2021 12:44:19 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": {\n        \"id\": 9,\n        \"hash\": \"RFID_1_1_HASH\",\n        \"name\": \"Sensor1231\",\n        \"model_name\": \"RFID_SENSOR\",\n        \"model_version\": null,\n        \"created_at\": null,\n        \"updated_at\": \"2021-10-27T11:02:02.000000Z\"\n    },\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Device found for this user.\"\n    }\n}"}],"_postman_id":"faab86a3-5e01-4b81-bc30-eaa8e4436ffa"},{"name":"GET Devices in Hub by it's hash","id":"8c23d941-a2e1-4516-8ed9-9c03809cfa1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://iot.synati.com/api/devices/hub/HUB_1_1_HASH/get","description":"<p>Get hub and conntected devices.</p>\n","urlObject":{"path":["api","devices","hub","HUB_1_1_HASH","get"],"host":["https://iot.synati.com"],"query":[],"variable":[]}},"response":[{"id":"48c274d9-73b8-499d-9202-2753bae9c36a","name":"GET Devices in Hub by Hash","originalRequest":{"method":"GET","header":[],"url":"https://iot.synati.comapi/devices/hub/HUB_1_1_HASH/get"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.21.1"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.6"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 26 Sep 2021 23:55:59 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"54"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": {\n        \"id\": 1,\n        \"hash\": \"HUB_1_1_HASH\",\n        \"name\": \"Hub\",\n        \"model_name\": \"HUB\",\n        \"model_version\": null,\n        \"created_at\": null,\n        \"updated_at\": null\n    },\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Device found for this user.\"\n    }\n}"}],"_postman_id":"8c23d941-a2e1-4516-8ed9-9c03809cfa1f"}],"id":"b91250a5-7609-4cd1-912c-300147490f0f","_postman_id":"b91250a5-7609-4cd1-912c-300147490f0f","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"c713496d-fe66-461e-ba41-0d87aaa1cda2","id":"c713496d-fe66-461e-ba41-0d87aaa1cda2","name":"Exon","type":"collection"}}},{"name":"Hubs","item":[{"name":"GET All Hubs","id":"84fbe1d5-7a85-44d8-84c6-9a6f324604b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://iot.synati.com/api/hubs/get","description":"<p>Get all hubs of authorized user.</p>\n","urlObject":{"path":["api","hubs","get"],"host":["https://iot.synati.com"],"query":[],"variable":[]}},"response":[{"id":"11f03eee-a2c5-47dc-90b4-18068aeaefc9","name":"GET Hubs","originalRequest":{"method":"GET","header":[],"url":"https://iot.synati.com/api/hubs/get"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.21.1"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.6"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 26 Sep 2021 22:07:56 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": [\n        {\n            \"id\": 1,\n            \"hash\": \"HUB_1_1_HASH\",\n            \"name\": \"Hub\",\n            \"model_name\": \"HUB\",\n            \"model_version\": null,\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 2,\n            \"hash\": \"HUB_1_2_HASH\",\n            \"name\": \"Moj hub\",\n            \"model_name\": \"HUB\",\n            \"model_version\": null,\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 22,\n            \"hash\": \"HUBIK10\",\n            \"name\": \"\",\n            \"model_name\": \"HUB\",\n            \"model_version\": null,\n            \"created_at\": \"2021-09-01T09:29:27.000000Z\",\n            \"updated_at\": \"2021-09-01T09:29:27.000000Z\"\n        }\n    ],\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Hubs found for this user.\"\n    }\n}"}],"_postman_id":"84fbe1d5-7a85-44d8-84c6-9a6f324604b7"},{"name":"GET Hub by hash","id":"fbc3acda-2c98-4dd8-9619-4ed0eca5e472","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://iot.synati.com/api/hubs/HUB_1_1_HASH/get","description":"<p>Get hub by it's hash.</p>\n","urlObject":{"path":["api","hubs","HUB_1_1_HASH","get"],"host":["https://iot.synati.com"],"query":[],"variable":[]}},"response":[{"id":"1fb29ae5-f5d0-4f22-b53d-c17f0a892929","name":"GET Hubs Copy","originalRequest":{"method":"GET","header":[],"url":"https://iot.synati.com/api/hubs/HUB_1_1_HASH/get"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.21.1"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.6"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 27 Sep 2021 12:37:41 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": {\n        \"id\": 1,\n        \"hash\": \"HUB_1_1_HASH\",\n        \"name\": \"Hub\",\n        \"model_name\": \"HUB\",\n        \"model_version\": null\n    },\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Hub found.\"\n    }\n}"}],"_postman_id":"fbc3acda-2c98-4dd8-9619-4ed0eca5e472"},{"name":"POST Add sensor to hub","id":"8d6db1ad-08a4-498a-ab90-2b4da5e140c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"sensor_hash","value":"ENV_1_1_HASH","type":"text"}]},"url":"https://iot.synati.com/api/hubs/HUB_1_1_HASH/sensor/add","description":"<p>Link sensor with hub by hash</p>\n","urlObject":{"path":["api","hubs","HUB_1_1_HASH","sensor","add"],"host":["https://iot.synati.com"],"query":[],"variable":[]}},"response":[{"id":"05ee5e42-ab0f-494b-b860-3d82962c9a05","name":"GET Hubs Copy","originalRequest":{"method":"GET","header":[],"url":"https://iot.synati.com/api/hubs/HUB_1_1_HASH/get"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.21.1"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.6"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 27 Sep 2021 12:37:41 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": {\n        \"id\": 1,\n        \"hash\": \"HUB_1_1_HASH\",\n        \"name\": \"Hub\",\n        \"model_name\": \"HUB\",\n        \"model_version\": null\n    },\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Hub found.\"\n    }\n}"},{"id":"621881bd-ca15-443a-82ed-f37234f43903","name":"GET Hub by hash Copy","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"sensor_hash","value":"ENV_1_1_HASH","type":"text"}]},"url":"https://iot.synati.com/api/hubs/HUB_1_1_HASH/sensor/add"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 10 Nov 2021 10:30:45 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": [],\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Linked.\"\n    }\n}"}],"_postman_id":"8d6db1ad-08a4-498a-ab90-2b4da5e140c3"},{"name":"POST Unlink sensor from hub","id":"a5a65010-158f-4308-81de-9a58b429f213","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"sensor_hash","value":"ENV_1_1_HASH","type":"text"}]},"url":"https://iot.synati.com/api/hubs/HUB_1_1_HASH/sensor/remove","description":"<p>Unlink sensor with hub by hash</p>\n","urlObject":{"path":["api","hubs","HUB_1_1_HASH","sensor","remove"],"host":["https://iot.synati.com"],"query":[],"variable":[]}},"response":[{"id":"3c7de747-b47e-4f8e-9e1a-58037504981b","name":"GET Hubs Copy","originalRequest":{"method":"GET","header":[],"url":"https://iot.synati.com/api/hubs/HUB_1_1_HASH/get"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.21.1"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.6"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 27 Sep 2021 12:37:41 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": {\n        \"id\": 1,\n        \"hash\": \"HUB_1_1_HASH\",\n        \"name\": \"Hub\",\n        \"model_name\": \"HUB\",\n        \"model_version\": null\n    },\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Hub found.\"\n    }\n}"},{"id":"c03c53e5-ff4b-4a7f-9339-d795a7e0b699","name":"POST Unlink sensor from hub","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"sensor_hash","value":"ENV_1_1_HASH","type":"text"}]},"url":"https://iot.synati.com/api/hubs/HUB_1_1_HASH/sensor/remove"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 10 Nov 2021 10:28:44 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": [],\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Unlinked.\"\n    }\n}"}],"_postman_id":"a5a65010-158f-4308-81de-9a58b429f213"}],"id":"f8465e79-052a-4a9e-9e83-0ab5073df6b8","_postman_id":"f8465e79-052a-4a9e-9e83-0ab5073df6b8","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"c713496d-fe66-461e-ba41-0d87aaa1cda2","id":"c713496d-fe66-461e-ba41-0d87aaa1cda2","name":"Exon","type":"collection"}}},{"name":"Sensors","item":[{"name":"GET All Sensors","id":"6842dd3b-aaa0-458c-aa59-78828af1db73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://iot.synati.com/api/sensors/get","description":"<p>Get all senosors of authorized user.</p>\n","urlObject":{"path":["api","sensors","get"],"host":["https://iot.synati.com"],"query":[],"variable":[]}},"response":[{"id":"d13d50e9-0d13-4607-ac63-34d21aea9381","name":"GET Sensors","originalRequest":{"method":"GET","header":[],"url":"https://iot.synati.com/api/sensors/get"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.21.1"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.6"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 26 Sep 2021 21:28:11 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": [\n        {\n            \"id\": 4,\n            \"hash\": \"ENV_1_1_HASH\",\n            \"name\": \"Sensor przedpokoj\",\n            \"model_name\": \"ENV_SENSOR\",\n            \"model_version\": null,\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 5,\n            \"hash\": \"ENV_1_2_HASH\",\n            \"name\": \"Sensor drzwi\",\n            \"model_name\": \"ENV_SENSOR\",\n            \"model_version\": null,\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 9,\n            \"hash\": \"RFID_1_1_HASH\",\n            \"name\": \"\",\n            \"model_name\": \"RFID_SENSOR\",\n            \"model_version\": null,\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 23,\n            \"hash\": \"DEVICE\",\n            \"name\": \"Friendly name\",\n            \"model_name\": \"ENV_SENSOR\",\n            \"model_version\": null,\n            \"created_at\": \"2021-09-01T09:33:09.000000Z\",\n            \"updated_at\": \"2021-09-03T12:40:15.000000Z\"\n        }\n    ],\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Sensors found for this user.\"\n    }\n}"}],"_postman_id":"6842dd3b-aaa0-458c-aa59-78828af1db73"},{"name":"GET reading types by hash","id":"c4669ff2-9756-4515-958c-4025ac8918b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://iot.synati.com/api/sensors/ENV_1_1_HASH/reading-type/get","description":"<p>Get Available reading types for given device hash.</p>\n","urlObject":{"path":["api","sensors","ENV_1_1_HASH","reading-type","get"],"host":["https://iot.synati.com"],"query":[],"variable":[]}},"response":[{"id":"caae2b87-9a0c-4abb-99b6-e7319b503032","name":"GET reading types by hash","originalRequest":{"method":"GET","header":[],"url":"https://iot.synati.com/api/sensors/ENV_1_1_HASH/reading-type/get"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 10 Nov 2021 10:07:40 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": [\n        {\n            \"reading_type\": 1,\n            \"name\": \"Air temperature\"\n        },\n        {\n            \"reading_type\": 5,\n            \"name\": \"Pressure\"\n        },\n        {\n            \"reading_type\": 8,\n            \"name\": \"Battery level\"\n        }\n    ],\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Data found.\"\n    }\n}"}],"_postman_id":"c4669ff2-9756-4515-958c-4025ac8918b0"},{"name":"GET Sensor by Hash","id":"44a6bc0c-6a4d-4c5f-8e24-358fdb6aaef5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://iot.synati.com/api/sensors/ENV_1_1_HASH/get","description":"<p>Get sesor by it's hash.</p>\n","urlObject":{"path":["api","sensors","ENV_1_1_HASH","get"],"host":["https://iot.synati.com"],"query":[],"variable":[]}},"response":[{"id":"9afd72c5-d97d-49a5-8c3a-7673dba6f330","name":"GET Sensor eample","originalRequest":{"method":"GET","header":[],"url":"https://iot.synati.com/api/sensors/ENV_1_1_HASH/get"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 02 Nov 2021 01:23:55 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": [\n        {\n            \"id\": 4,\n            \"hash\": \"ENV_1_1_HASH\",\n            \"name\": \"Czujnik drzwi23\",\n            \"model_name\": \"ENV_SENSOR\",\n            \"model_version\": null,\n            \"created_at\": null,\n            \"updated_at\": \"2021-10-27T02:37:34.000000Z\"\n        }\n    ],\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Sensor not found for this user.\"\n    }\n}"}],"_postman_id":"44a6bc0c-6a4d-4c5f-8e24-358fdb6aaef5"}],"id":"171c0406-e957-44a0-a810-91196d438a00","_postman_id":"171c0406-e957-44a0-a810-91196d438a00","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"c713496d-fe66-461e-ba41-0d87aaa1cda2","id":"c713496d-fe66-461e-ba41-0d87aaa1cda2","name":"Exon","type":"collection"}}},{"name":"Configs","item":[{"name":"GET Config for device by hash","id":"4891d0b5-9f9b-4939-8ded-2b6b538835d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://iot.synati.com/api/sensors/TEST2_ENV_7/get","description":"<p>Get hubs and conntected devices.</p>\n","urlObject":{"path":["api","sensors","TEST2_ENV_7","get"],"host":["https://iot.synati.com"],"query":[],"variable":[]}},"response":[{"id":"661aa7d4-622d-4fcb-a520-8203ee6c411d","name":"GET Config for device by hash","originalRequest":{"method":"GET","header":[],"url":"https://iot.synati.com/api/sensors/TEST2_ENV_7/get"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 04 Nov 2021 12:43:52 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": {\n        \"hash\": \"TEST2_ENV_7\",\n        \"name\": \"Moj sensorek\",\n        \"model_name\": \"ENV_SENSOR\",\n        \"model_version\": null,\n        \"created_at\": null,\n        \"updated_at\": \"2021-11-04T12:06:33.000000Z\"\n    },\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Sensor not found for this user.\"\n    }\n}"}],"_postman_id":"4891d0b5-9f9b-4939-8ded-2b6b538835d0"},{"name":"SAVE config for device","id":"6884e868-a1b1-48e4-910b-3392fb09796b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://iot.synati.com/api/sensors/get","description":"<p>Get hubs and conntected devices.</p>\n","urlObject":{"path":["api","sensors","get"],"host":["https://iot.synati.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6884e868-a1b1-48e4-910b-3392fb09796b"}],"id":"14df5c69-5156-40c9-85b2-a2d6f55b1587","_postman_id":"14df5c69-5156-40c9-85b2-a2d6f55b1587","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"c713496d-fe66-461e-ba41-0d87aaa1cda2","id":"c713496d-fe66-461e-ba41-0d87aaa1cda2","name":"Exon","type":"collection"}}},{"name":"Data","item":[{"name":"GET values data","id":"c753c1e9-f2f0-4557-a3f8-48b1e7dc6d94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"timeresolution","value":"DAY","description":"<p>Timeresolution: DAY, MONTH, YEAR, HOUR, MINUTE</p>\n","type":"text"},{"key":"date_from","value":"11.09.2021 10:00","description":"<p>Date from which date should be taken in format d.m.Y H:i</p>\n","type":"text"},{"key":"date_to","value":"02.11.2021 10:00","description":"<p>Date to which date should be taken in format d.m.Y H:i</p>\n","type":"text"},{"key":"device_hash","value":"ENV_1_1_HASH","description":"<p>Device hash</p>\n","type":"text"},{"key":"visualization_type","value":"5","description":"<p>Type of data to be downloaded</p>\n","type":"text"}]},"url":"https://iot.synati.com/api/data/get","urlObject":{"path":["api","data","get"],"host":["https://iot.synati.com"],"query":[{"disabled":true,"key":"timeresolution","value":""},{"disabled":true,"key":"date_from","value":null},{"disabled":true,"key":"date_to","value":""},{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"32188a01-9883-47ee-a81e-0ea5b0dc4407","name":"GET values data","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"timeresolution","value":"DAY","type":"text"},{"key":"date_from","value":"11.09.2021 10:00","type":"text"},{"key":"date_to","value":"02.11.2021 10:00","type":"text"},{"key":"device_hash","value":"ENV_1_1_HASH","type":"text"},{"key":"visualization_type","value":"5","type":"text"}]},"url":{"raw":"https://iot.synati.com/api/data/get","host":["https://iot.synati.com"],"path":["api","data","get"],"query":[{"key":"timeresolution","value":"","type":"text","disabled":true},{"key":"date_from","value":null,"type":"text","disabled":true},{"key":"date_to","value":"","type":"text","disabled":true},{"key":"","value":"","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.21.1"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 02 Nov 2021 02:37:15 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"payload\": {\n        \"counts\": {\n            \"22.09.21 16:48\": 17,\n            \"23.09.21 14:02\": 2,\n            \"24.09.21 11:23\": 221,\n            \"27.09.21 10:42\": 212,\n            \"28.09.21 10:19\": 71\n        },\n        \"values\": {\n            \"22.09.21 16:48\": 107.61,\n            \"23.09.21 14:02\": 9.1,\n            \"24.09.21 11:23\": 36.55,\n            \"27.09.21 10:42\": 24.56,\n            \"28.09.21 10:19\": 52.78\n        },\n        \"dates\": [\n            \"22.09.21 16:48\",\n            \"23.09.21 14:02\",\n            \"24.09.21 11:23\",\n            \"27.09.21 10:42\",\n            \"28.09.21 10:19\"\n        ]\n    },\n    \"info\": {\n        \"errors\": [],\n        \"warnings\": [],\n        \"message\": \"Data found.\"\n    }\n}"}],"_postman_id":"c753c1e9-f2f0-4557-a3f8-48b1e7dc6d94"}],"id":"db54a60d-0cf5-4cb3-b642-67b77b4481c4","_postman_id":"db54a60d-0cf5-4cb3-b642-67b77b4481c4","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"c713496d-fe66-461e-ba41-0d87aaa1cda2","id":"c713496d-fe66-461e-ba41-0d87aaa1cda2","name":"Exon","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Authorization"},{"key":"value","value":"<value>"}]}},"event":[{"listen":"prerequest","script":{"id":"1ff5ade5-e518-4901-8472-a61760142f0c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7d9ba764-f0a5-40ef-90a6-5db9dad5fedd","type":"text/javascript","exec":[""]}}],"variable":[{"key":"base_url","value":"https://iot.synati.com","type":"string"}]}