{"info":{"_postman_id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","name":"Sensgreen API v2","description":"<html><head></head><body><p>This document is prepared to assist Sensgreen's customers who want to use the service by APIs.</p>\n<h2 id=\"base-url\">Base Url</h2>\n<p>The base url of this API is <strong><a href=\"https://prod.api.sensgreen.com/v2\">https://prod.api.sensgreen.com/v2</a></strong></p>\n<p>For example, you can list all your sensors via <a href=\"https://prod.api.sensgreen.com/v2/sensors\">https://prod.api.sensgreen.com/v2/sensors</a></p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>This API uses Bearer Token to authenticate all requests.</p>\n<h2 id=\"how-to-get-a-bearer-token\">How to get a bearer token?</h2>\n<p>To get a <strong>valid</strong> bearer token, you need to send a post request which includes a JSON, to <a href=\"https://prod.api.sensgreen.com/v2/users/login\">https://prod.api.sensgreen.com/v2/users/login</a>.</p>\n<p>The format of the requested JSON should be in this format :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"email\": \"mail@mail.com\",\n  \"password\": \"password\"\n}\n\n</code></pre><p>(If you need more information about <a href=\"https://prod.api.sensgreen.com/v2/users/login\">https://prod.api.sensgreen.com/v2/users/login</a>, you can take a look at the Login part.)</p>\n<p><strong>If you sent a valid post request</strong>, this API would respond to your request as a JSON that includes two keys: users and token.</p>\n<p>The format of the responded JSON will be in this format :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"user\": {...},\n    \"token\": \"&lt;your-token&gt;\"\n}\n\n</code></pre><p><strong>The value of this \"token\" key is your bearer token.</strong></p>\n<p><strong>If you sent an invalid post request</strong>, then the API would respond to your request as:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"message\": \"Incorrect email or password.\"\n}\n\n</code></pre><h2 id=\"how-to-use-a-bearer-token\">How to use a bearer token?</h2>\n<p>After getting this bearer token, you need to send it as an Authorization header in every other request.</p>\n<p>For example, if you want to get your building list, you should send a get request in this format:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /buildings\nheaders: {\n  ...\n  \"Authorization\": \"Bearer &lt;your-token&gt;\",\n  ....\n}\n\n</code></pre></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authentication","slug":"authentication"}],"owner":"21641340","collectionId":"e1ac232f-d2f9-4775-8871-5eb8160129e3","publishedId":"2s7YYvZhPn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"2FA766"},"publishDate":"2022-09-14T13:39:05.000Z"},"item":[{"name":"Users","item":[{"name":"Login","id":"725696d0-e4e1-4156-9c6c-1448c9e4038b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"sensoffice@sensgreen.com\",\r\n  \"password\": \"sensoffice@sensgreen.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://prod.api.sensgreen.com/v2/users/login","description":"<p>If you have a valid username and password, this method will let you see your user information and your bearer token.</p>\n<p>You need to save your bearer token for every single session to get a response from the API. (If you refresh the page, you will need a new bearer token.) Because as explained in the authentication part, you need to get a Bearer Token to get a response from the API for your requests.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","name":"Sensgreen API v2","type":"collection"}},"urlObject":{"path":["users","login"],"host":["https://prod.api.sensgreen.com/v2"],"query":[],"variable":[]}},"response":[{"id":"4a926f63-a893-4930-86dd-8d8ac5f38978","name":"loginExample","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"sensoffice@sensgreen.com\",\r\n  \"password\": \"sensoffice@sensgreen.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://prod.api.sensgreen.com/v2/users/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n       \"id\": \"925353\",\n        \"forgot_token\": null,\n        \"email\": \"sensoffice@sensgreen.com\",\n        \"name\": \"SensOffice\",\n        \"surname\": \"FloorPlan\",\n        \"type\": \"ADMIN\",\n        \"corporate_id\": \"925255\",\n        \"created_at\": \"2022-07-06T07:44:40.453Z\",\n        \"updated_at\": \"2022-07-06T07:44:40.453Z\",\n        \"is_notification_enabled\": true,\n        \"config\": {\n            \"voc\": [ ],\n            \"pm10\": [ ],\n            \"pm25\": [ ],\n            \"airQuality\": [ ],\n            \"temperature\": [ ],\n            \"main_building_id\": 0\n        },\n        \"data_consent\": false,\n        \"buildings\": [\n            {\n                \"id\": \"925470\",\n                \"city\": \"Ankara\",\n                \"latitude\": 39.8944488,\n                \"longitude\": 32.8772722,\n                \"name\": \"Sensgreen Office\",\n                \"corporate_id\": \"925255\",\n                \"created_at\": \"2022-07-06T07:39:47.989Z\",\n                \"updated_at\": \"2022-07-06T07:39:47.989Z\",\n                \"gmt_offset\": null,\n                \"building_type\": null,\n                \"gmt_offset_str\": \"+03:00\",\n                \"city_id\": 11,\n                \"building_user\": {\n                    \"user_id\": \"925353\",\n                    \"building_id\": \"925470\"\n                }\n            }\n        ],\n        \"corporate\": {\n            \"id\": \"925255\",\n            \"name\": \"Sensgreen\",\n            \"created_at\": \"2021-09-15T10:40:43.714Z\",\n            \"updated_at\": \"2021-09-15T10:40:43.714Z\"\n        },\n        \"user_favorite_room_lists\": []\n    },\n    \"token\": \"<your-token>\"\n}"}],"_postman_id":"725696d0-e4e1-4156-9c6c-1448c9e4038b"}],"id":"05caa475-05ff-4d40-9ad2-29c9ba0c3b51","description":"<p>Sample requests for /users</p>\n","_postman_id":"05caa475-05ff-4d40-9ad2-29c9ba0c3b51","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","name":"Sensgreen API v2","type":"collection"}}},{"name":"Buildings","item":[{"name":"getBuildings","id":"9fb924d6-3be3-4201-80c2-1c23262ab0bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://prod.api.sensgreen.com/v2/buildings","description":"<p>This method will let you get a list of all the buildings you have.</p>\n<p>It responds to your request as a list of JSON that includes information about buildings. The ids are important in these JSONs because they are the building ids, and you will need them to make further requests.</p>\n<p>For example, when you want to see building details like the average temperature for that building whose building id is \"123456\", you need to make a request in this format :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /buildings/123456 \nheaders: {\n  ...\n  \"Authorization\": \"Bearer &lt;your-token&gt;\",\n  ....\n}\n\n</code></pre><p>Then, it will return you a response with more information about that building.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","name":"Sensgreen API v2","type":"collection"}},"urlObject":{"path":["buildings"],"host":["https://prod.api.sensgreen.com/v2"],"query":[],"variable":[]}},"response":[{"id":"257eb30f-2441-45f0-af71-743c52e97d6e","name":"getBuildingsExample","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <your-token>","type":"text"}],"url":"https://prod.api.sensgreen.com/v2/buildings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"925470\",\n        \"city\": \"Ankara\",\n        \"latitude\": 39.8944488,\n        \"longitude\": 32.8772722,\n        \"name\": \"Sensgreen Office\",\n        \"corporate_id\": \"925255\",\n        \"created_at\": \"2022-07-06T07:39:47.989Z\",\n        \"updated_at\": \"2022-07-06T07:39:47.989Z\",\n        \"gmt_offset\": null,\n        \"building_type\": null,\n        \"gmt_offset_str\": \"+03:00\",\n        \"city_id\": 11\n    }\n]"}],"_postman_id":"9fb924d6-3be3-4201-80c2-1c23262ab0bf"},{"name":"getBuildingsDetailed","id":"70d3dcbe-2b70-4004-afb2-16f11a163984","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://prod.api.sensgreen.com/v2/buildings/:buildingId","description":"<p>This method will let you get detailed information about a specific building with a given building id.</p>\n<p>If you do not know your building id, you need to send a get request to <a href=\"https://prod.api.sensgreen.com/v2/buildings\">https://prod.api.sensgreen.com/v2/buildings</a></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","name":"Sensgreen API v2","type":"collection"}},"urlObject":{"path":["buildings",":buildingId"],"host":["https://prod.api.sensgreen.com/v2"],"query":[],"variable":[{"id":"a577996e-9ca9-47c6-b9c2-2c3967cd4ccf","description":{"content":"<p>(Required) Building Identifier</p>\n","type":"text/plain"},"type":"any","value":"integer","key":"buildingId"}]}},"response":[{"id":"99b0172e-0ac6-4dda-92e1-fe25c4d6765e","name":"getBuildingsDetailedExample","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <your-token>","type":"text"}],"url":{"raw":"https://prod.api.sensgreen.com/v2/buildings/:buildingId","protocol":"https","host":["prod","api","sensgreen","com"],"path":["v2","buildings",":buildingId"],"variable":[{"key":"buildingId","value":"925470"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"buildingName\": \"Sensgreen Office\",\n    \"gmtOffset\": \"+03:00\",\n    \"lastUpdated\": \"2022-09-05T13:07:11.700Z\",\n    \"gatewayStatus\": {\n        \"status\": \"success\",\n        \"message\": \"Connected\"\n    },\n    \"gateways\": [],\n    \"totalOperating\": 6,\n    \"notOperating\": 0,\n    \"unresolved\": 2,\n    \"bestIaq\": [\n        {\n            \"room\": \"Developers Table\",\n            \"value\": 92.10000038146973\n        }, ...\n    ],\n    \"weatherStats\": {\n        \"province\": \"Ankara\",\n        \"inDoor\": {\n            \"time\": \"2022-09-05T13:07:11.700Z\",\n            \"lastDataTime\": \"Mon Sep 05 2022 13:07:11 GMT+0000 (Coordinated Universal Time)\",\n            \"notOperating\": 2,\n            \"totalOperating\": 6,\n            \"battery\": \"16.40916669766108\",\n            \"co2\": \"571.4074989318848\",\n            \"dew_point\": \"9.855000042915343\",\n            \"humidity\": \"29.974999999999998\",\n            \"iaq\": \"84.65000038146972\",\n            \"pm1\": \"5.2125000059604645\",\n            \"pm10\": \"9.842500066757202\",\n            \"pm25\": \"7.7374999761581424\",\n            \"pm4\": \"9.552500104904174\",\n            \"pressure\": \"89745.125\",\n            \"p_size\": \"0.7050000123679638\",\n            \"temperature\": \"29.286250233650208\",\n            \"voc\": \"1.39250000230968\",\n            \"current\": \"0.9520000219345093\",\n            \"peak_current\": \"1.1139999628067017\",\n            \"sound_level\": \"53.09999996120647\",\n            \"airQuality\": null\n        },\n        \"outDoor\": {\n            \"temperature\": 24.09,\n            \"humidity\": 39,\n            \"pm10\": 1.57,\n            \"voc\": 0,\n            \"airQuality\": 99,\n            \"dewPoint\": 9.3,\n            \"pm25\": 1.22,\n            \"co2\": 0,\n            \"baroPressure\": 1009\n        }\n    },\n    \"recentAlerts\": [ ],\n    \"weatherChart\": { },\n    \"config\": [ ]\n}"}],"_postman_id":"70d3dcbe-2b70-4004-afb2-16f11a163984"},{"name":"getRoomsFromBuilding","id":"bd24ec25-6659-4114-a26c-cc963db896f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://prod.api.sensgreen.com/v2/buildings/:buildingId/rooms","description":"<p>This method will let you get information about all rooms in a building according to the given building id.</p>\n<p>It responds to your request with a list of JSON containing room information. The ids in these JSONs are room ids. If you need further details about a single room, you will use this id.</p>\n<p>For instance, when you need to get details of the room, whose room id is \"1234567\", of a building, whose building id is \"123456\", you need to make a get request in this format:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /buildings/123456/rooms/1234567 \nheaders: {\n  ...\n  \"Authorization\": \"Bearer &lt;your-token&gt;\",\n  ....\n}\n\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","name":"Sensgreen API v2","type":"collection"}},"urlObject":{"path":["buildings",":buildingId","rooms"],"host":["https://prod.api.sensgreen.com/v2"],"query":[],"variable":[{"id":"572a23ec-2114-40d0-b277-765edd3ac41b","description":{"content":"<p>(Required) Building Identifier</p>\n","type":"text/plain"},"type":"any","value":"integer","key":"buildingId"}]}},"response":[{"id":"302436ef-50e4-497f-bda1-df0e2fac8d7d","name":"getRoomsFromBuildingExample","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <your-token>","type":"text"}],"url":{"raw":"https://prod.api.sensgreen.com/v2/buildings/:buildingId/rooms","protocol":"https","host":["prod","api","sensgreen","com"],"path":["v2","buildings",":buildingId","rooms"],"variable":[{"key":"buildingId","value":"925470"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1264838\",\n        \"room\": \"Developers Table\",\n        \"roomDescription\": \"\",\n        \"sensorExists\": true,\n        \"lastSensorDataAt\": \"2022-09-05T13:09:50.936Z\",\n        \"stats\": {\n            \"battery\": 3.7,\n            \"co2\": 390,\n            \"dew_point\": 10.1,\n            \"humidity\": 29,\n            \"iaq\": 95,\n            \"pm1\": 2.4,\n            \"pm10\": 2.5,\n            \"pm25\": 2.5,\n            \"pm4\": 2.5,\n            \"pressure\": 89740,\n            \"p_size\": 0.3,\n            \"temperature\": 30.1,\n            \"voc\": 0.4\n        }\n    },\n    ...\n]"}],"_postman_id":"bd24ec25-6659-4114-a26c-cc963db896f2"}],"id":"f76008cd-234f-4154-b9fa-526b9a0645a0","description":"<p>Sample requests for /buildings</p>\n","_postman_id":"f76008cd-234f-4154-b9fa-526b9a0645a0","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","name":"Sensgreen API v2","type":"collection"}}},{"name":"Rooms","item":[{"name":"getRoomDetailed","id":"85de48de-ebdc-4065-8ad8-9b0885fba778","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://prod.api.sensgreen.com/v2/buildings/:buildingId/rooms/:roomId","description":"<p>This method will let you get detailed information like battery status and chart data about a specific room according to the given building and room id.</p>\n<p>If you do not know your room id, you can look at the getRoomsFromBuilding part.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","name":"Sensgreen API v2","type":"collection"}},"urlObject":{"path":["buildings",":buildingId","rooms",":roomId"],"host":["https://prod.api.sensgreen.com/v2"],"query":[],"variable":[{"id":"26f2876b-2be1-4df4-905d-29e7283f529d","description":{"content":"<p>(Required) Building Identifier</p>\n","type":"text/plain"},"type":"any","value":"integer","key":"buildingId"},{"id":"21116fec-5183-44f6-8b17-6a314bc4e18a","description":{"content":"<p>(Required) Room Identifier</p>\n","type":"text/plain"},"type":"any","value":"integer","key":"roomId"}]}},"response":[{"id":"0bb24d71-f2e1-475e-ad2b-329afcc017ae","name":"getRoomDetailedExample","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <your-token>","type":"text"}],"url":{"raw":"https://prod.api.sensgreen.com/v2/buildings/:buildingId/rooms/:roomId","protocol":"https","host":["prod","api","sensgreen","com"],"path":["v2","buildings",":buildingId","rooms",":roomId"],"variable":[{"key":"buildingId","value":"925470"},{"key":"roomId","value":"1264838"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1264838\",\n    \"name\": \"Developers Table\",\n    \"sensorBattery\": {\n        \"value\": 3.7,\n        \"status\": \"GOOD\"\n    },\n    \"sensor_type_id\": null,\n    \"sensor_category_id\": [\n        1\n    ],\n    \"weatherStats\": {\n        \"data\": {\n            \"battery\": 3.7,\n            \"co2\": 390,\n            \"dew_point\": 10.1,\n            \"humidity\": 29,\n            \"iaq\": 95,\n            \"pm1\": 2.4,\n            \"pm10\": 2.5,\n            \"pm25\": 2.5,\n            \"pm4\": 2.5,\n            \"pressure\": 89740,\n            \"p_size\": 0.3,\n            \"temperature\": 30.1,\n            \"voc\": 0.4\n        }\n    },\n    \"otherStats\": {},\n    \"recentAlerts\": [ ],\n    \"weatherChart\": { },\n    \"sensorExists\": true,\n    \"lastUpdated\": \"2022-09-05T13:09:50.936Z\",\n    \"config\": [ ]\n}"}],"_postman_id":"85de48de-ebdc-4065-8ad8-9b0885fba778"},{"name":"getRoomLastData","id":"989737fb-a6de-4a97-85b9-309744ec4f58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://prod.api.sensgreen.com/v2/buildings/:buildingId/rooms/:roomId/sensors","description":"<p>This method will let you get the most recent data that comes from this room.</p>\n<p>If you do not know your room id, you can look at the getRoomsFromBuilding part.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","name":"Sensgreen API v2","type":"collection"}},"urlObject":{"path":["buildings",":buildingId","rooms",":roomId","sensors"],"host":["https://prod.api.sensgreen.com/v2"],"query":[],"variable":[{"id":"5f01eea1-d664-4104-be54-5da0ac5e3c0c","description":{"content":"<p>(Required) Building Identifier</p>\n","type":"text/plain"},"type":"any","value":"integer","key":"buildingId"},{"id":"486b4491-c469-4aca-9e12-89c1bbf21cc3","description":{"content":"<p>(Required) Room Identifier</p>\n","type":"text/plain"},"type":"any","value":"integer","key":"roomId"}]}},"response":[{"id":"56118120-4b20-4177-96f4-e12b934b638a","name":"getRoomLastDataExample","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <your-token>","type":"text"}],"url":{"raw":"https://prod.api.sensgreen.com/v2/buildings/:buildingId/rooms/:roomId/sensors","protocol":"https","host":["prod","api","sensgreen","com"],"path":["v2","buildings",":buildingId","rooms",":roomId","sensors"],"variable":[{"key":"buildingId","value":"925470"},{"key":"roomId","value":"1264838"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"time\": \"2022-09-05T13:23:40.055Z\",\n        \"battery\": 3.7,\n        \"co2\": 408,\n        \"dew_point\": 10.1,\n        \"humidity\": 29,\n        \"iaq\": 94,\n        \"pm1\": 2.3,\n        \"pm10\": 2.5,\n        \"pm25\": 2.5,\n        \"pm4\": 2.5,\n        \"pressure\": 89740,\n        \"p_size\": 0.4,\n        \"temperature\": 30.1,\n        \"voc\": 0.4,\n        \"sensor_id\": 697521\n    }\n]"}],"_postman_id":"989737fb-a6de-4a97-85b9-309744ec4f58"}],"id":"0146556c-2ea1-414e-81de-9a35cf207067","_postman_id":"0146556c-2ea1-414e-81de-9a35cf207067","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","name":"Sensgreen API v2","type":"collection"}}},{"name":"Charts","item":[{"name":"getAllData","id":"c1582fb8-df8e-49d6-8e27-d532d7a6c9f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://prod.api.sensgreen.com/v2/charts/?parameter=string&startDate=time&endDate=time&buildingID=integer&roomID=integer","description":"<p>This method will let you get all data of the room or building according to the request between selected time intervals.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","name":"Sensgreen API v2","type":"collection"}},"urlObject":{"path":["charts",""],"host":["https://prod.api.sensgreen.com/v2"],"query":[{"description":{"content":"<p>(Required) Parameter to consider. </p>\n<p>Here is the parameter options: temperature, humidity, pressure, co2, voc, pm1, pm25, pm4, pm10, dew_point, iaq, p_size, current, peak_current, sound_level, no2, co, o3. </p>\n<p>You can select more than one parameter but you should separate it by using a semicolon. </p>\n<p>For example, parameter=temperature;humidity;voc</p>\n","type":"text/plain"},"key":"parameter","value":"string"},{"description":{"content":"<p>(Required) Start Time. </p>\n<p>Time should be in ISO Format.</p>\n","type":"text/plain"},"key":"startDate","value":"time"},{"description":{"content":"<p>(Required) End Time. </p>\n<p>Time should be in ISO Format.</p>\n","type":"text/plain"},"key":"endDate","value":"time"},{"description":{"content":"<p>(Optional) Building Identifier. </p>\n<p>If you want to see all data that comes from all sensors that are placed on your building between selected time intervals, send the building id.</p>\n","type":"text/plain"},"key":"buildingID","value":"integer"},{"description":{"content":"<p>(Optional) Room Identifier. </p>\n<p>If you want to see all data that comes from the sensor that is placed in your room between selected time intervals, send the room id. </p>\n","type":"text/plain"},"key":"roomID","value":"integer"}],"variable":[]}},"response":[{"id":"350b6f6e-0e61-4f22-9957-cbca4e9fe309","name":"getAllData","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <your-token>","type":"text"}],"url":{"raw":"https://prod.api.sensgreen.com/v2/charts/?parameter=temperature&startDate=2022-09-01T00:00:00Z&endDate=2022-09-01T02:00:00Z&buildingID=925470","host":["https://prod.api.sensgreen.com/v2"],"path":["charts",""],"query":[{"key":"parameter","value":"temperature","description":"(Required) Parameter to consider. \n\nSelect one of them: temperature, humidity, pressure, co2, voc, pm1, pm25, pm4, pm10, dew_point, iaq, p_size, current, peak_current, sound_level, no2, co, o3"},{"key":"startDate","value":"2022-09-01T00:00:00Z","description":"(Required) Start Time. Time should be in ISO Format."},{"key":"endDate","value":"2022-09-01T02:00:00Z","description":"(Required) End Time. Time should be in ISO Format."},{"key":"buildingID","value":"925470","description":"(Optional) Building Identifier. If you want to see all data that comes from all sensors that are placed on your building between selected time intervals, send the building id."},{"key":"roomID","value":"integer","description":"(Optional) Room Identifier. If you want to see all data that comes from the sensor that is placed in your room between selected time intervals, send the room id. ","disabled":true}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"time,room,temperature\n2022-09-01T03:00:34+03:00, Kitchen,29.7\n2022-09-01T03:13:43+03:00, Kitchen,29.8\n2022-09-01T03:26:56+03:00, Kitchen,29.7\n2022-09-01T03:40:11+03:00, Kitchen,29.6\n2022-09-01T03:53:25+03:00, Kitchen,29.6\n2022-09-01T04:06:39+03:00, Kitchen,29.6\n2022-09-01T04:19:52+03:00, Kitchen,29.7\n2022-09-01T04:33:06+03:00, Kitchen,29.6\n2022-09-01T04:46:20+03:00, Kitchen,29.6\n2022-09-01T04:59:34+03:00, Kitchen,29.5\n2022-09-01T03:00:39+03:00, Meeting Room,29.9\n2022-09-01T03:14:07+03:00, Meeting Room,29.9\n2022-09-01T03:27:34+03:00, Meeting Room,29.8\n2022-09-01T03:41:01+03:00, Meeting Room,30\n2022-09-01T03:54:28+03:00, Meeting Room,29.9\n2022-09-01T04:07:56+03:00, Meeting Room,29.8\n2022-09-01T04:21:22+03:00, Meeting Room,29.9\n2022-09-01T04:34:49+03:00, Meeting Room,29.8\n2022-09-01T04:48:16+03:00, Meeting Room,29.8\n2022-09-01T03:07:16+03:00, Developers Table,30.9\n2022-09-01T03:21:05+03:00, Developers Table,30.9\n2022-09-01T03:34:52+03:00, Developers Table,31\n2022-09-01T03:48:40+03:00, Developers Table,30.9\n2022-09-01T04:02:30+03:00, Developers Table,30.8\n2022-09-01T04:16:19+03:00, Developers Table,30.8\n2022-09-01T04:30:09+03:00, Developers Table,30.8\n2022-09-01T04:43:58+03:00, Developers Table,30.7\n2022-09-01T04:57:47+03:00, Developers Table,30.7\n2022-09-01T03:13:06+03:00, Hardware Room,31.6\n2022-09-01T03:26:19+03:00, Hardware Room,31.5\n2022-09-01T03:39:32+03:00, Hardware Room,31.5\n2022-09-01T03:52:46+03:00, Hardware Room,31.5\n2022-09-01T04:05:59+03:00, Hardware Room,31.5\n2022-09-01T04:19:12+03:00, Hardware Room,31.4\n2022-09-01T04:32:25+03:00, Hardware Room,31.4\n2022-09-01T04:45:38+03:00, Hardware Room,31.4\n2022-09-01T04:58:51+03:00, Hardware Room,31.4"}],"_postman_id":"c1582fb8-df8e-49d6-8e27-d532d7a6c9f3"}],"id":"bb2f7179-285e-4f68-b431-71f45ec43973","_postman_id":"bb2f7179-285e-4f68-b431-71f45ec43973","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","id":"e1ac232f-d2f9-4775-8871-5eb8160129e3","name":"Sensgreen API v2","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"203b800a-29e9-4c87-b961-4cd12a40cb46"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"ac0db793-c981-4969-a416-213ad99edb97"}}],"variable":[{"key":"base_url","value":"https://prod.api.sensgreen.com/v2","type":"string"}]}