{"info":{"_postman_id":"7d264cf1-dd1f-43da-aa32-bdaa881c9223","name":"Spaceti Public API v2","description":"<html><head></head><body><p>This API exposes the Spaceti device and event flow infrastructure via a standard programmatic interface. It is a RESTful API based on HTTP requests and JSON responses.</p>\n<p>The easiest way to start using the Spaceti API is by clicking the Run in Postman button above. Postman is a free tool which helps developers run and debug API requests, and is the source of truth for this documentation.</p>\n<h1 id=\"authorization\">Authorization</h1>\n<p>For authorization purposes API is using bearer token. You can get API token for your account in Spaceti dashboard. Navigate to Organization settings → Public API → Generate token.</p>\n<img src=\"https://content.pstmn.io/5df4aff9-b88f-47d5-b38a-6474cca7b30f/Z2VuZXJhdGVfYXBpX3Rva2VuLmpwZw==\" width=\"589\" height=\"387\">\n\n<p>Valid token should be present in every request, in the header.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Authorization: Bearer YOUR_TOKEN\n\n</code></pre><h1 id=\"limits\">Limits</h1>\n<p>Our API uses a sliding window rate limiting algorithm, allowing up to 1,000 requests per 10-minute window. This helps ensure fair usage and system stability by tracking request counts dynamically over the last 10 minutes. Once the limit is reached, additional requests will be blocked, and API will return an HTTP 429 status code until the window resets. If you require a higher request limit, please contact us, and we'll work with you to accommodate your needs.</p>\n<h1 id=\"pagination\">Pagination</h1>\n<p>Endpoints that return multiple results paginate them to 100 items by default. You can set you desired size of the response using query string parameter <code>page_size</code>. The maximum page size is 500 items.</p>\n<p>The root of these responses would contain <code>count</code> of the <code>records</code> on this page, URLs to the <code>next</code> and <code>previous</code> page. If there is no next or previous page the URL will be <code>null</code></p>\n<h3 id=\"example-of-paginated-response\">Example of paginated response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"next\": \"https://api.spaceti.net/v2/devices?next=00124B000D27C4E4\",\n    \"previous\": null,\n    \"count\": 100,\n    \"records\": [\n        ...\n    ]\n}\n\n</code></pre></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authorization","slug":"authorization"},{"content":"Limits","slug":"limits"},{"content":"Pagination","slug":"pagination"}],"owner":"14545392","collectionId":"7d264cf1-dd1f-43da-aa32-bdaa881c9223","publishedId":"TW77i4P7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"36d6e4"},"publishDate":"2021-03-03T14:34:16.000Z"},"item":[{"name":"Devices","item":[{"name":"List devices","id":"a6baf2dc-426e-418b-a464-2e22577ef89d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/devices","description":"<p>List devices associated with your account. This endpoint supports pagination.</p>\n","urlObject":{"path":["devices"],"host":["https://api.spaceti.net/v2"],"query":[{"disabled":true,"description":{"content":"<p>Optional - Limits the number of returned records. Maximum is 500, default - 100.</p>\n","type":"text/plain"},"key":"page_size","value":"<integer>"},{"disabled":true,"description":{"content":"<p>Optional - Allows you to sort records. Value that can be passed to the API consists of <code>+</code> or <code>-</code> sign that defines sorting order and name of the attribute to sort by.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Allowed values</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>+sn</code></td>\n<td>Sort by Serial Number ascending</td>\n</tr>\n<tr>\n<td><code>-sn</code></td>\n<td>Sort by Serial Number descending</td>\n</tr>\n<tr>\n<td><code>+mac</code></td>\n<td>Sort by MAC address ascending</td>\n</tr>\n<tr>\n<td><code>-mac</code></td>\n<td>Sort by MAC address descending</td>\n</tr>\n<tr>\n<td><code>+device_type</code></td>\n<td>Sort by type of device ascending</td>\n</tr>\n<tr>\n<td><code>-device_type</code></td>\n<td>Sort by type of device descending</td>\n</tr>\n<tr>\n<td><code>+created_at</code></td>\n<td>Sort by date of creation ascending</td>\n</tr>\n<tr>\n<td><code>-created_at</code></td>\n<td>Sort by date of creation descending</td>\n</tr>\n<tr>\n<td><code>+latest_event_at</code></td>\n<td>Sort by time of last message from device ascending</td>\n</tr>\n<tr>\n<td><code>-latest_event_at</code></td>\n<td>Sort by time of last message from device descending</td>\n</tr>\n</tbody>\n</table>\n</div>","type":"text/plain"},"key":"sort_by","value":"<value>"},{"disabled":true,"description":{"content":"<p>Optional - Allows you to lookup for devices whose Serial Number starts with the value you specified.</p>\n","type":"text/plain"},"key":"starts_with","value":"<string>"},{"disabled":true,"description":{"content":"<p>Optional - Allows you to filter devices from the specific building.</p>\n","type":"text/plain"},"key":"building_id","value":"<integer>"}],"variable":[]}},"response":[{"id":"b0ae8dbf-5f7f-479e-b5b9-1a996ab12f46","name":"List devices","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/devices?page_size=2","host":["https://api.spaceti.net/v2"],"path":["devices"],"query":[{"key":"page_size","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 16 Feb 2021 12:27:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3311"},{"key":"X-Amzn-Requestid","value":"99ba9fb4-9555-4314-aaa7-c803b593bbfd"},{"key":"X-Amz-Apigw-Id","value":"a1oHpHagliAFUhA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-602bba30-3679b040715c34e235a5f948;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 2624e42a83112268605736034e2afc15.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"QamKpDzMcD-TlLgvZMHgIp48Jei1b1371SRZvfVOTUH_3jLzNSpUuQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.spaceti.net/v2/devices?page_size=2&next=00124B00186A4364\",\n    \"previous\": null,\n    \"count\": 2,\n    \"records\": [\n        {\n            \"tenant\": \"spacetihq\",\n            \"mac\": \"00124B001954C467\",\n            \"latest_service_info\": {\n                \"counter\": 11250,\n                \"nb_info\": {\n                    \"ack\": 0,\n                    \"rsrp\": -256,\n                    \"snr\": -128,\n                    \"cell_id\": \"00000000\",\n                    \"ecl\": 0\n                },\n                \"volt\": 3.62,\n                \"gateway_info\": {\n                    \"gateway_sn\": \"SHU1M2V200N0563\",\n                    \"rssi\": -56\n                }\n            },\n            \"wellbeing\": {\n                \"previous_measurement\": {\n                    \"request_id\": \"3f5d6691-a8c8-4165-a6d5-9093bfca5f07\",\n                    \"value\": 80.37,\n                    \"created_at\": 1661958852\n                },\n                \"type\": \"wellbeing\",\n                \"measurement\": {\n                    \"request_id\": \"ead16b54-b219-4add-95ae-43336b290bce\",\n                    \"value\": 81.15,\n                    \"created_at\": 1661959752\n                },\n                \"timezone\": \"Prague\"\n            },\n            \"location\": {\n                \"building_id\": 102,\n                \"timezone\": \"Prague\",\n                \"group_types\": [\n                    null,\n                    null,\n                    null,\n                    null,\n                    null,\n                    null,\n                    null,\n                    null\n                ],\n                \"coordinates\": [\n                    14.8604347568903,\n                    8.32054278292614\n                ],\n                \"position\": [\n                    14.439625475939728,\n                    50.084438809269415\n                ],\n                \"groups\": [\n                    202,\n                    202,\n                    202,\n                    203,\n                    203,\n                    202,\n                    203,\n                    203\n                ],\n                \"space_types\": [\n                    1,\n                    1,\n                    1,\n                    1,\n                    1,\n                    4,\n                    1,\n                    1,\n                    1\n                ],\n                \"overall_capacity\": 11,\n                \"floors\": [],\n                \"buildings\": [],\n                \"spaces\": [\n                    564,\n                    565,\n                    566,\n                    570,\n                    571,\n                    574,\n                    567,\n                    568,\n                    569\n                ],\n                \"floor_id\": 131,\n                \"deployment_id\": 440,\n                \"tenant\": \"spacetihq\"\n            },\n            \"created_at\": 1580470638,\n            \"co2\": {\n                \"previous_measurement\": {\n                    \"request_id\": \"b47da49c-18a9-4f1e-8de2-0cb6ed4d7c51\",\n                    \"value\": 633,\n                    \"created_at\": 1661958852\n                },\n                \"type\": \"co2\",\n                \"measurement\": {\n                    \"request_id\": \"59f172a4-f0df-4ed5-b4c7-2ad9d926cefd\",\n                    \"value\": 642,\n                    \"created_at\": 1661959752\n                },\n                \"timezone\": \"Prague\"\n            },\n            \"mnf_data\": {\n                \"fixture_id\": 723,\n                \"battery_voltage\": 3.297,\n                \"nrf52_fw_version\": \"0.0.0\",\n                \"rf_signal\": 0,\n                \"power_consumption_sleep\": 0.00001493,\n                \"cc1310_fw_version\": \"rfWsnNode_Advanced_4_1_9_8683.hex\",\n                \"fixture_status\": \"OK\",\n                \"voltage_3v3\": 3.306,\n                \"power_consumption_transmit\": 0.004782,\n                \"battery_2\": \"LS14500\",\n                \"sim_iccid\": null,\n                \"battery_1\": \"LS14500\",\n                \"device_state\": \"mnf\",\n                \"date_of_production\": \"2020-01-31\",\n                \"ble_signal\": 0,\n                \"vddr_voltage\": 1.655,\n                \"power_consumption_peak\": 0.005967\n            },\n            \"temperature\": {\n                \"previous_measurement\": {\n                    \"request_id\": \"af81aadc-7a64-49f6-a1f8-3d0fa255687c\",\n                    \"value\": 23.13,\n                    \"created_at\": 1661958852\n                },\n                \"type\": \"temperature\",\n                \"measurement\": {\n                    \"request_id\": \"7ce34cdf-9dc9-4f21-805b-4dab227a21e6\",\n                    \"value\": 23.21,\n                    \"created_at\": 1661959752\n                },\n                \"timezone\": \"Prague\"\n            },\n            \"updated_at\": 1661269721.201471407,\n            \"changed_attribute\": \"humidity\",\n            \"latest_event_at\": 1661959752,\n            \"manufacturer\": \"Spaceti\",\n            \"device_type\": 4,\n            \"humidity\": {\n                \"previous_measurement\": {\n                    \"request_id\": \"7276907b-b9d2-496f-a380-98a011566ce9\",\n                    \"value\": 57.6,\n                    \"created_at\": 1661958852\n                },\n                \"type\": \"humidity\",\n                \"measurement\": {\n                    \"request_id\": \"824731dd-a3b7-4f41-9237-b17e47efa95b\",\n                    \"value\": 57.4,\n                    \"created_at\": 1661959752\n                },\n                \"timezone\": \"Prague\"\n            },\n            \"scan_enabled\": \"s\",\n            \"sn\": \"SC20L2V110N0000622\"\n        },\n        {\n            \"latest_service_info\": {\n                \"gateway_info\": {\n                    \"rssi\": -48,\n                    \"gateway_sn\": \"9181001E20500003\"\n                },\n                \"counter\": 0,\n                \"nb_info\": {\n                    \"ack\": 0,\n                    \"rsrp\": 0,\n                    \"snr\": 0,\n                    \"cell_id\": \"\",\n                    \"ecl\": 0\n                },\n                \"volt\": 3.6\n            },\n            \"location\": {\n                \"overall_capacity\": 1,\n                \"building_id\": 56,\n                \"timezone\": \"Prague\",\n                \"group_types\": [\n                    null\n                ],\n                \"spaces\": [\n                    421\n                ],\n                \"coordinates\": [\n                    9.04940150587589,\n                    22.1297320823092\n                ],\n                \"groups\": [\n                    148\n                ],\n                \"floor_id\": 68,\n                \"deployment_id\": 308,\n                \"space_types\": [\n                    1\n                ],\n                \"tenant\": \"spacetihq\"\n            },\n            \"beacon_info\": {\n                \"major\": 1,\n                \"minor\": 1,\n                \"uuid\": \"53706163-6574-6920-6279-20694c6162a9\",\n                \"tx_power\": -57\n            },\n            \"mnf_data\": {\n                \"fixture_id\": 716,\n                \"battery_voltage\": 3.3,\n                \"nrf52_fw_version\": \"0.0.0\",\n                \"rf_signal\": 0,\n                \"power_consumption_sleep\": 0.00003461,\n                \"cc1310_fw_version\": \"rfWsnNode_Chair_C_1.2.7.8683.hex\",\n                \"fixture_status\": \"OK\",\n                \"voltage_3v3\": 3.305,\n                \"power_consumption_transmit\": 0.002103,\n                \"battery_2\": \"LS14500\",\n                \"sim_iccid\": null,\n                \"battery_1\": \"LS14500\",\n                \"device_state\": \"mnf\",\n                \"date_of_production\": \"2018-10-24\",\n                \"ble_signal\": 0,\n                \"vddr_voltage\": 1.677,\n                \"power_consumption_peak\": 0.006006\n            },\n            \"mac\": \"00124B00186A4364\",\n            \"tenant\": \"spacetihq\",\n            \"updated_at\": 1612376590.722409021,\n            \"latest_event_at\": 1613478297,\n            \"changed_attribute\": null,\n            \"manufacturer\": \"Spaceti\",\n            \"partner\": \"Spaceti\",\n            \"device_type\": 2,\n            \"sn\": \"SCH1L2V100N0002927\",\n            \"scan_enabled\": \"s\",\n            \"occupancy\": {\n                \"previous_measurement\": {\n                    \"request_id\": \"7ce36df9-5b2a-481f-aea8-dc309c7b6cbc\",\n                    \"value\": 1,\n                    \"created_at\": 1613477439\n                },\n                \"type\": \"occupancy\",\n                \"measurement\": {\n                    \"request_id\": \"fc4b8315-b1fd-47f3-bcc2-79faa49d8422\",\n                    \"value\": 1,\n                    \"created_at\": 1613478297\n                },\n                \"timezone\": \"Prague\",\n                \"before_free_time\": 0\n            }\n        }\n    ]\n}"},{"id":"f354e1f4-4f5a-4943-91ac-55748ad2e9b5","name":"User is not authorized","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/devices"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 16 Feb 2021 12:20:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"82"},{"key":"X-Amzn-Requestid","value":"9f210d3c-d6e5-4328-94df-62c1494597a4"},{"key":"X-Amzn-Errortype","value":"AccessDeniedException"},{"key":"X-Amz-Apigw-Id","value":"a1nHzE1AliAFuCg="},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 2d77f193e0ce9fbd950640684be04705.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"JtABC2msPHUS0u15lOkAWD1QfNJFFo3EjKdIYts1UHjcJlkbm_G3nQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"User is not authorized to access this resource with an explicit deny\"\n}"}],"_postman_id":"a6baf2dc-426e-418b-a464-2e22577ef89d"},{"name":"Get device by MAC address","id":"6f618ad1-55f9-4376-851d-52d97d610042","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/devices/:mac","description":"<p>View information about the device.</p>\n","urlObject":{"path":["devices",":mac"],"host":["https://api.spaceti.net/v2"],"query":[],"variable":[{"description":{"content":"<p>Device MAC address</p>\n","type":"text/plain"},"type":"any","value":"","key":"mac"}]}},"response":[{"id":"931b6c0b-d6e6-4d7e-aa04-4b16eb912056","name":"User is not authorized","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/devices/:mac","host":["https://api.spaceti.net/v2"],"path":["devices",":mac"],"variable":[{"key":"mac","value":"00124B001803BE4A","description":"Device MAC address"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 16 Feb 2021 12:45:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"82"},{"key":"X-Amzn-Requestid","value":"70c0bf47-0d7a-4ec2-871c-5e227b1473c3"},{"key":"X-Amzn-Errortype","value":"AccessDeniedException"},{"key":"X-Amz-Apigw-Id","value":"a1qtvG6dFiAFcBw="},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b3f1989dace51bd45b636bc99a604b20.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"q-GxzL5d-a4ozF48qkl-MR2LH4bZmE-GoJzhgnugidVddeusV77lyw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"User is not authorized to access this resource with an explicit deny\"\n}"},{"id":"e4b6a76b-1851-4157-b21a-43d17f57903f","name":"Get device by MAC address","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/devices/:mac","host":["https://api.spaceti.net/v2"],"path":["devices",":mac"],"variable":[{"key":"mac","value":"00124B001803BE4A","description":"Device MAC address"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 16 Feb 2021 12:44:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1603"},{"key":"X-Amzn-Requestid","value":"bd697eee-07af-4ee9-a7c3-5a5513860f6a"},{"key":"X-Amz-Apigw-Id","value":"a1qmpEKbliAFSdg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-602bbe2a-0c114087427618aa70ec3c44;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 2624e42a83112268605736034e2afc15.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"ZwM1FzwswVo6c1ohpstP8k3QpVFGD74sktyDsRGg7on29rvYkoWUBw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"latest_service_info\": {\n        \"gateway_info\": {\n            \"rssi\": -68,\n            \"gateway_sn\": \"9181001E20500003\"\n        },\n        \"counter\": 0,\n        \"nb_info\": {\n            \"ack\": 0,\n            \"rsrp\": 0,\n            \"snr\": 0,\n            \"cell_id\": \"\",\n            \"ecl\": 0\n        },\n        \"volt\": 3.6\n    },\n    \"location\": {\n        \"overall_capacity\": 2,\n        \"building_id\": 56,\n        \"timezone\": \"Prague\",\n        \"group_types\": [\n            null,\n            null\n        ],\n        \"spaces\": [\n            463,\n            463\n        ],\n        \"position\": [\n            14.439625475939728,\n            50.084438809269415\n        ],\n        \"coordinates\": [\n            17.2170839451441,\n            10.3950616002511\n        ],\n        \"groups\": [\n            156,\n            156\n        ],\n        \"floor_id\": 68,\n        \"deployment_id\": 310,\n        \"space_types\": [\n            4,\n            4\n        ],\n        \"tenant\": \"spacetihq\"\n    },\n    \"beacon_info\": {\n        \"major\": 1,\n        \"minor\": 1,\n        \"uuid\": \"53706163-6574-6920-6279-20694c6162a9\",\n        \"tx_power\": -57\n    },\n    \"mac\": \"00124B001803BE4A\",\n    \"mnf_data\": {\n        \"fixture_id\": 716,\n        \"battery_voltage\": 3.303,\n        \"nrf52_fw_version\": \"0.0.0\",\n        \"rf_signal\": 0,\n        \"power_consumption_sleep\": 0.00001162,\n        \"cc1310_fw_version\": \"rfWsnNode_Roompir_1_6_3_8683_E6Z00.hex\",\n        \"fixture_status\": \"OK\",\n        \"voltage_3v3\": 3.309,\n        \"power_consumption_transmit\": 0.000173,\n        \"battery_2\": \"LS14500\",\n        \"sim_iccid\": null,\n        \"battery_1\": \"LS14500\",\n        \"device_state\": \"mnf\",\n        \"date_of_production\": \"2019-05-28\",\n        \"ble_signal\": 0,\n        \"vddr_voltage\": 1.657,\n        \"power_consumption_peak\": 0.005814\n    },\n    \"tenant\": \"spacetihq\",\n    \"updated_at\": 1612376592.267067756,\n    \"changed_attribute\": null,\n    \"manufacturer\": \"Spaceti\",\n    \"device_type\": 6,\n    \"partner\": \"Spaceti\",\n    \"scan_enabled\": \"s\",\n    \"sn\": \"SRP0L2P100N0000600\",\n    \"occupancy\": {\n        \"previous_measurement\": {\n            \"request_id\": \"977b80b1-afdf-4151-898d-78d5f408bc09\",\n            \"value\": 1,\n            \"created_at\": 1613478928\n        },\n        \"type\": \"occupancy\",\n        \"measurement\": {\n            \"request_id\": \"3bde1dbe-b6c4-44d3-af4a-4434e48aac35\",\n            \"value\": 1,\n            \"created_at\": 1613478928\n        },\n        \"timezone\": \"Prague\",\n        \"before_free_time\": 0\n    }\n}"}],"_postman_id":"6f618ad1-55f9-4376-851d-52d97d610042"},{"name":"Get device by Serial Number","id":"5d7bed49-ad2d-4e4d-b7bf-058ef1b5c223","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/devices/sn/:serial_number","description":"<p>View information about the device.</p>\n","urlObject":{"path":["devices","sn",":serial_number"],"host":["https://api.spaceti.net/v2"],"query":[],"variable":[{"description":{"content":"<p>Device Serial Number</p>\n","type":"text/plain"},"type":"any","value":"","key":"serial_number"}]}},"response":[{"id":"cca3a083-1362-4710-a493-4e2702b48c84","name":"User is not authorized","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/devices/sn/:serial_number","host":["https://api.spaceti.net/v2"],"path":["devices","sn",":serial_number"],"variable":[{"key":"serial_number","value":"SRP0L2P100N0000600","description":"Device Serial Number"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 16 Feb 2021 12:47:01 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"82"},{"key":"X-Amzn-Requestid","value":"cdaabd28-bdf3-42b0-a8e9-a03d1bb45276"},{"key":"X-Amzn-Errortype","value":"AccessDeniedException"},{"key":"X-Amz-Apigw-Id","value":"a1q-6EuUliAFf7Q="},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 4d362c0e30ca2cfa3855b041727beaa2.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"mHHFRlE47GuwEJuNT2ICA6Gk6QTzN8-cJWyR4XoL24_7S9qAbLSd9A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"User is not authorized to access this resource with an explicit deny\"\n}"},{"id":"fcd3bed3-0bde-4c96-bc8e-319dd3c3755c","name":"Get device by Serial Number","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/devices/sn/:serial_number","host":["https://api.spaceti.net/v2"],"path":["devices","sn",":serial_number"],"variable":[{"key":"serial_number","value":"SRP0L2P100N0000600","description":"Device Serial Number"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 16 Feb 2021 12:46:31 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1603"},{"key":"X-Amzn-Requestid","value":"c3bb11a6-edf9-4441-a043-770aa1ee9b33"},{"key":"X-Amz-Apigw-Id","value":"a1q6CFQKFiAFZ8A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-602bbea6-05c9a4e357c54cbd727f41ab;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 df28c5139a58e7fd82c9f1801939f7c1.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"2gZwCGlI5mWHZYVQLm_vxZp_6x0Nxv8IlXVZ1Y7QfNEAG37pVJjdLg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"latest_service_info\": {\n        \"gateway_info\": {\n            \"rssi\": -68,\n            \"gateway_sn\": \"9181001E20500003\"\n        },\n        \"counter\": 0,\n        \"nb_info\": {\n            \"ack\": 0,\n            \"rsrp\": 0,\n            \"snr\": 0,\n            \"cell_id\": \"\",\n            \"ecl\": 0\n        },\n        \"volt\": 3.6\n    },\n    \"location\": {\n        \"overall_capacity\": 2,\n        \"building_id\": 56,\n        \"timezone\": \"Prague\",\n        \"group_types\": [\n            null,\n            null\n        ],\n        \"spaces\": [\n            463,\n            463\n        ],\n        \"position\": [\n            14.439625475939728,\n            50.084438809269415\n        ],\n        \"coordinates\": [\n            17.2170839451441,\n            10.3950616002511\n        ],\n        \"groups\": [\n            156,\n            156\n        ],\n        \"floor_id\": 68,\n        \"deployment_id\": 310,\n        \"space_types\": [\n            4,\n            4\n        ],\n        \"tenant\": \"spacetihq\"\n    },\n    \"beacon_info\": {\n        \"major\": 1,\n        \"minor\": 1,\n        \"uuid\": \"53706163-6574-6920-6279-20694c6162a9\",\n        \"tx_power\": -57\n    },\n    \"mnf_data\": {\n        \"fixture_id\": 716,\n        \"battery_voltage\": 3.303,\n        \"nrf52_fw_version\": \"0.0.0\",\n        \"rf_signal\": 0,\n        \"power_consumption_sleep\": 0.00001162,\n        \"cc1310_fw_version\": \"rfWsnNode_Roompir_1_6_3_8683_E6Z00.hex\",\n        \"fixture_status\": \"OK\",\n        \"voltage_3v3\": 3.309,\n        \"power_consumption_transmit\": 0.000173,\n        \"battery_2\": \"LS14500\",\n        \"sim_iccid\": null,\n        \"battery_1\": \"LS14500\",\n        \"device_state\": \"mnf\",\n        \"date_of_production\": \"2019-05-28\",\n        \"ble_signal\": 0,\n        \"vddr_voltage\": 1.657,\n        \"power_consumption_peak\": 0.005814\n    },\n    \"mac\": \"00124B001803BE4A\",\n    \"updated_at\": 1612376592.267067756,\n    \"tenant\": \"spacetihq\",\n    \"changed_attribute\": null,\n    \"manufacturer\": \"Spaceti\",\n    \"partner\": \"Spaceti\",\n    \"device_type\": 6,\n    \"sn\": \"SRP0L2P100N0000600\",\n    \"scan_enabled\": \"s\",\n    \"occupancy\": {\n        \"previous_measurement\": {\n            \"request_id\": \"977b80b1-afdf-4151-898d-78d5f408bc09\",\n            \"value\": 1,\n            \"created_at\": 1613478928\n        },\n        \"type\": \"occupancy\",\n        \"measurement\": {\n            \"request_id\": \"3bde1dbe-b6c4-44d3-af4a-4434e48aac35\",\n            \"value\": 1,\n            \"created_at\": 1613478928\n        },\n        \"timezone\": \"Prague\",\n        \"before_free_time\": 0\n    }\n}"}],"_postman_id":"5d7bed49-ad2d-4e4d-b7bf-058ef1b5c223"}],"id":"0ca2bbe9-dc6e-4e56-a570-bb7ff857865a","description":"<p>Device is a physical sensor of any type that is registered in Spaceti system. Each sensor is automatically updated with the latest measurements it supports.</p>\n<p>You are getting access only to the devices associated with your account.</p>\n<h5 id=\"device-types\">Device types</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Device type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>1</code></td>\n<td>Standard environmental sensor</td>\n</tr>\n<tr>\n<td><code>2</code></td>\n<td>Desk occupancy sensor</td>\n</tr>\n<tr>\n<td><code>4</code></td>\n<td>Advanced environmental sensor</td>\n</tr>\n<tr>\n<td><code>5</code></td>\n<td>Parking occupancy sensor</td>\n</tr>\n<tr>\n<td><code>6</code></td>\n<td>Room occupancy sensor</td>\n</tr>\n<tr>\n<td><code>8</code></td>\n<td>People counter</td>\n</tr>\n<tr>\n<td><code>9</code></td>\n<td>Utility meter</td>\n</tr>\n<tr>\n<td><code>10</code></td>\n<td>AV equipment</td>\n</tr>\n<tr>\n<td><code>99</code></td>\n<td>Sensor gateway</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"0ca2bbe9-dc6e-4e56-a570-bb7ff857865a"},{"name":"Gateways","item":[{"name":"List gateways","id":"e195e6fe-cbaa-4061-a584-ad6ee971e78f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/gateways","description":"<p>List gateways associated with your account. This endpoint supports pagination.</p>\n","urlObject":{"path":["gateways"],"host":["https://api.spaceti.net/v2"],"query":[{"disabled":true,"description":{"content":"<p>Optional - Limits the number of returned records. Maximum is 500, default - 100.</p>\n","type":"text/plain"},"key":"page_size","value":"<integer>"},{"disabled":true,"description":{"content":"<p>Optional - Allows you to sort records. Value that can be passed to the API consists of <code>+</code> or <code>-</code> sign that defines sorting order and name of the attribute to sort by.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Allowed values</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>+sn</code></td>\n<td>Sort by Serial Number ascending</td>\n</tr>\n<tr>\n<td><code>-sn</code></td>\n<td>Sort by Serial Number descending</td>\n</tr>\n<tr>\n<td><code>+created_at</code></td>\n<td>Sort by date of creation ascending</td>\n</tr>\n<tr>\n<td><code>-created_at</code></td>\n<td>Sort by date of creation descending</td>\n</tr>\n<tr>\n<td><code>+latest_event_at</code></td>\n<td>Sort by time of last status event from gateway ascending</td>\n</tr>\n<tr>\n<td><code>-latest_event_at</code></td>\n<td>Sort by time of last status event from gateway descending</td>\n</tr>\n</tbody>\n</table>\n</div>","type":"text/plain"},"key":"sort_by","value":"<value>"},{"disabled":true,"description":{"content":"<p>Optional - Allows you to lookup for gateways whose Serial Number starts with the value you specified.</p>\n","type":"text/plain"},"key":"starts_with","value":"<string>"},{"disabled":true,"description":{"content":"<p>Optional - Allows you to filter devices from the specific building.</p>\n","type":"text/plain"},"key":"building_id","value":"<integer>"}],"variable":[]}},"response":[{"id":"6bd99bce-cce5-426f-93ac-dc37f8af0943","name":"List gateways","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/gateways?page_size=1","host":["https://api.spaceti.net/v2"],"path":["gateways"],"query":[{"key":"page_size","value":"1","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."},{"key":"sort_by","value":"-created_at","description":"Optional - Allows you to sort records. Value that can be passed to the API consists of `+` or `-` sign that defines sorting order and name of the attribute to sort by.\n\nAllowed values | Description\n--- | ---\n`+sn` | Sort by Serial Number ascending\n`-sn` | Sort by Serial Number descending\n`+created_at` | Sort by date of creation ascending\n`-created_at` | Sort by date of creation descending\n`+latest_event_at` | Sort by time of last status event received from gateway\n`-latest_event_at` | Sort by time of last status event received from gateway\n","disabled":true},{"key":"starts_with","value":"<string>","description":"Optional - Allows you to lookup for gateways whose Serial Number starts with the value you specified.","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.8"},{"key":"Date","value":"Thu, 29 Apr 2021 17:05:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1045"},{"key":"X-Amzn-Requestid","value":"76ac6750-8814-4b68-8da9-1bdeccd45b11"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Amz-Apigw-Id","value":"ejkXhG5dFiAFk-w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-608ae763-04b7011c4a31f3936ffa388e;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8070396f8b32ef8fc0f9390bd6dee8df.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"IcYJA_EJOCerja0wlg-PbqngC9RYUWK4w3l2rE7sOLQffestdEgIZA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.spaceti.net/v2/gateways?page_size=1&sort_by=-created_at&next=%7B%22scan_enabled%22%3A+%22s%22%2C+%22sn%22%3A+%22SHU0L2V100N0362%22%2C+%22created_at%22%3A+1618059075%7D\",\n    \"previous\": null,\n    \"count\": 1,\n    \"records\": [\n        {\n            \"scan_enabled\": \"s\",\n            \"sn\": \"SHU0L2V100N0362\",\n            \"created_at\": 1618059075,\n            \"latest_service_info\": {\n                \"ethernet_available\": false,\n                \"sender\": {\n                    \"bytes_sent\": 321646,\n                    \"messages_sent\": 9752\n                },\n                \"collector_available\": true,\n                \"vpn_available\": true,\n                \"mobile_quality\": {\n                    \"rssi\": -45,\n                    \"network\": \"2G\"\n                },\n                \"keep_alive\": true,\n                \"ethernet_data\": null,\n                \"mobile_data\": {\n                    \"tx\": 769540,\n                    \"rx\": 166298\n                },\n                \"mobile_available\": true,\n                \"timestamp\": 1619715169,\n                \"uptime\": 32860\n            },\n            \"updated_at\": 1618059075,\n            \"latest_event_at\": 1619715611,\n            \"manufacturer\": \"Spaceti\",\n            \"mnf_data\": {\n                \"eth_mac\": \"b827ebdc4b3d\",\n                \"fw_version\": \"2.0.17 mobile\",\n                \"mobile_modem\": {\n                    \"imei\": 860556029113578,\n                    \"model\": \"E3531\",\n                    \"sim\": {\n                        \"iccid\": 89314404000445576706,\n                        \"imsi\": 204046854521411\n                    },\n                    \"manufacturer\": \"huawei\",\n                    \"revision\": \"21.318.31.00.445\"\n                },\n                \"wlan_mac\": \"b827eb891e68\"\n            }\n        }\n    ]\n}"},{"id":"8fb242f1-9e60-4157-9267-35213bcaab86","name":"List gateways starts with SHU","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/gateways?page_size=1&starts_with=SHU","host":["https://api.spaceti.net/v2"],"path":["gateways"],"query":[{"key":"page_size","value":"1","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."},{"key":"sort_by","value":"-created_at","description":"Optional - Allows you to sort records. Value that can be passed to the API consists of `+` or `-` sign that defines sorting order and name of the attribute to sort by.\n\nAllowed values | Description\n--- | ---\n`+sn` | Sort by Serial Number ascending\n`-sn` | Sort by Serial Number descending\n`+created_at` | Sort by date of creation ascending\n`-created_at` | Sort by date of creation descending\n`+latest_event_at` | Sort by time of last status event received from gateway\n`-latest_event_at` | Sort by time of last status event received from gateway\n","type":"text","disabled":true},{"key":"starts_with","value":"SHU","description":"Optional - Allows you to lookup for gateways whose Serial Number starts with the value you specified."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.8"},{"key":"Date","value":"Thu, 29 Apr 2021 17:06:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"503"},{"key":"X-Amzn-Requestid","value":"8b173b57-5052-43ae-a08e-a099c9987404"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Amz-Apigw-Id","value":"ejkjEHRSFiAFurw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-608ae7ad-5b5050b95707728832570e1f;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 cc21ae933690a5b4513677425cfed23f.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"1HXQqfFUFqawa5gX-RxQgGz_J_FJIsYbA8F0yHTLi_5LHhX1upX0gg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.spaceti.net/v2/gateways?page_size=1&starts_with=SHU&next=%7B%22scan_enabled%22%3A+%22s%22%2C+%22sn%22%3A+%22SHU0L1V100N0005%22%7D\",\n    \"previous\": null,\n    \"count\": 1,\n    \"records\": [\n        {\n            \"scan_enabled\": \"s\",\n            \"sn\": \"SHU0L1V100N0005\",\n            \"tenant\": \"spacetihq\",\n            \"updated_at\": 1532002307,\n            \"latest_event_at\": 0,\n            \"created_at\": 1532002307,\n            \"manufacturer\": \"Spaceti\",\n            \"mnf_data\": {\n                \"fw_version\": \"1.3.1\",\n                \"mobile_modem\": {\n                    \"model\": \"E3531\",\n                    \"sim\": {\n                        \"iccid\": 89314404000170437371\n                    },\n                    \"manufacturer\": \"huawei\"\n                }\n            }\n        }\n    ]\n}"},{"id":"ec8a69ef-5731-47f8-82f1-49d431729d14","name":"User is not authorized","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/gateways?page_size=1&starts_with=SHU","host":["https://api.spaceti.net/v2"],"path":["gateways"],"query":[{"key":"page_size","value":"1","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."},{"key":"sort_by","value":"+sn","description":"Optional - Allows you to sort records. Value that can be passed to the API consists of `+` or `-` sign that defines sorting order and name of the attribute to sort by.\n\nAllowed values | Description\n--- | ---\n`+sn` | Sort by Serial Number ascending\n`-sn` | Sort by Serial Number descending\n`+created_at` | Sort by date of creation ascending\n`-created_at` | Sort by date of creation descending\n`+latest_event_at` | Sort by time of last status event received from gateway\n`-latest_event_at` | Sort by time of last status event received from gateway\n","type":"text","disabled":true},{"key":"starts_with","value":"SHU","description":"Optional - Allows you to lookup for gateways whose Serial Number starts with the value you specified."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.8"},{"key":"Date","value":"Thu, 29 Apr 2021 12:39:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"82"},{"key":"X-Amzn-Requestid","value":"77ee1a74-c272-43c4-a0d7-12f007212b9a"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"X-Amzn-Errortype","value":"AccessDeniedException"},{"key":"X-Amz-Apigw-Id","value":"ei9bVFp7liAFg3g="},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 bc4812520d2b9b12ba07c79ee144c3d1.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"CaPScRjsm3fQJU3-Wyj3u-7WKqBvl_vc4wrKUCgCw4DdJo067YX87g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User is not authorized to access this resource with an explicit deny\"\n}"}],"_postman_id":"e195e6fe-cbaa-4061-a584-ad6ee971e78f"},{"name":"Get gateway by Serial Number","id":"d85560da-cb20-42b7-8647-93217deb06d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/gateways/:serial_number","description":"<p>View information about the gateway.</p>\n","urlObject":{"path":["gateways",":serial_number"],"host":["https://api.spaceti.net/v2"],"query":[],"variable":[{"description":{"content":"<p>Gateway Serial Number</p>\n","type":"text/plain"},"type":"any","value":"","key":"serial_number"}]}},"response":[{"id":"d6b2d1aa-50d8-4db6-b4b2-3c9fd1702d79","name":"Get gateway by Serial Number","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/gateways/:serial_number","host":["https://api.spaceti.net/v2"],"path":["gateways",":serial_number"],"variable":[{"key":"serial_number","value":"SHU0L2V100N0362","description":"Gateway Serial Number"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.8"},{"key":"Date","value":"Thu, 29 Apr 2021 12:45:36 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"606"},{"key":"X-Amzn-Requestid","value":"8001aeea-a959-451e-8e63-d4970a93b57b"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Amz-Apigw-Id","value":"ei-RlHIOliAFTxw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-608aaa70-4238962143befb253e3b5a24;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 699b505ca4c2135b52633ef9f9cd2ac0.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"PppDlkh-O_21v4FK0zzxXaSKZ-AFjHEMX3RuQO6EhXx6qaEAJf47SA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"latest_service_info\": {\n        \"sender\": {\n            \"bytes_sent\": 175264,\n            \"messages_sent\": 5331\n        },\n        \"ethernet_available\": false,\n        \"vpn_available\": true,\n        \"collector_available\": true,\n        \"mobile_quality\": {\n            \"rssi\": -49,\n            \"network\": \"2G\"\n        },\n        \"keep_alive\": true,\n        \"ethernet_data\": null,\n        \"mobile_data\": {\n            \"tx\": 411869,\n            \"rx\": 85178\n        },\n        \"mobile_available\": true,\n        \"uptime\": 17560,\n        \"timestamp\": 1619699871\n    },\n    \"updated_at\": 1618059075,\n    \"latest_event_at\": 1619700311,\n    \"created_at\": 1618059075,\n    \"manufacturer\": \"Spaceti\",\n    \"mnf_data\": {\n        \"eth_mac\": \"b827ebdc4b3d\",\n        \"fw_version\": \"2.0.17 mobile\",\n        \"mobile_modem\": {\n            \"imei\": 860556029113578,\n            \"model\": \"E3531\",\n            \"sim\": {\n                \"iccid\": 89314404000445576706,\n                \"imsi\": 204046854521411\n            },\n            \"manufacturer\": \"huawei\",\n            \"revision\": \"21.318.31.00.445\"\n        },\n        \"wlan_mac\": \"b827eb891e68\"\n    },\n    \"scan_enabled\": \"s\",\n    \"sn\": \"SHU0L2V100N0362\"\n}"},{"id":"e1ba14bf-1806-485d-ac62-3d35f49b1c42","name":"Gateway doesn't exist","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/gateways/:serial_number","host":["https://api.spaceti.net/v2"],"path":["gateways",":serial_number"],"variable":[{"key":"serial_number","value":"SHU0L2V110N0362","description":"Gateway Serial Number"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.8"},{"key":"Date","value":"Thu, 29 Apr 2021 12:45:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"38"},{"key":"X-Amzn-Requestid","value":"123ffb0d-3d16-417c-b75a-f12e6023a33f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Amz-Apigw-Id","value":"ei-NtGo2FiAFltA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-608aaa57-409d5bdd2ee0eda22ef61488;Sampled=0"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 62b5081149b3b133b12c5d6cc0ac4b25.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"6XzLiIdLgmp8Y8YOK1rcsjuaPVhS-XbI2z3CPd71CeBt0__wn_khHQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"Gateway does not exist.\"\n}"}],"_postman_id":"d85560da-cb20-42b7-8647-93217deb06d4"}],"id":"7a29d576-8186-4977-a1ab-54b7d944fda2","description":"<p>Gateway is a special device that acts like a bridge. It collects all messages from the Spaceti sensors and sends them to the backend for further processing. </p>\n<p>Some gateways are additionally sending their connectivity status that is stored as <code>latest_service_info</code>. </p>\n<p>You are getting access only to the gateways associated with your account.</p>\n","_postman_id":"7a29d576-8186-4977-a1ab-54b7d944fda2"},{"name":"Device events","item":[{"name":"List events","id":"39a90d72-046b-4319-b81b-852e82e11b66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/events","description":"<p>This endpoint returns you historical data from the devices. It also allows you to filter, sort and paginate data. On contrary to other endpoints, this one supports only forward pagination, <code>previous</code> attribute is not present at the response.</p>\n<h4 id=\"sorting\">Sorting</h4>\n<p>By default all events are sorted by timestamp of creation in descending order. It is also possible to sort in ascending order. For more information check parameter <code>sort_by</code>.</p>\n<h4 id=\"filtering\">Filtering</h4>\n<p>Currently supported filtration by several fields, such as Serial number, MAC address, device_type, building and floor. In case you are defining several filter parameters they are connected using logical conjunction. More information is available in Params section.</p>\n<h4 id=\"defining-time-range\">Defining time range</h4>\n<p>You can also define time range that you are interested in using parameters <code>timestamp_from</code>, <code>timestamp_to</code> and <code>time_zone</code>. Events are stored with timestamp in UTC.   </p>\n<h5 id=\"supported-date-data-types\">Supported date data types</h5>\n<ul>\n<li>generic ISO datetime format (<code>yyyy-MM-dd'T'HH:mm:ss</code>, <code>yyyy-MM-dd</code>), where the date must include the year at a minimum, and the time (separated by T), is optional. <code>2021-03-04T11:35:17</code> or <code>2021-03-04</code> are valid values.</li>\n<li>long number representing milliseconds-since-the-epoch. E.g. <code>1614857714000</code> is valid.</li>\n<li><a href=\"https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#date-math\">date math</a> expressions, such as <code>now-1m/d</code> — the current time, minus one month, rounded down to the nearest day</li>\n</ul>\n","urlObject":{"path":["events"],"host":["https://api.spaceti.net/v2"],"query":[{"disabled":true,"description":{"content":"<p>Optional - Limits the number of returned records. Maximum is 500, default - 100.</p>\n","type":"text/plain"},"key":"page_size","value":"<integer>"},{"disabled":true,"description":{"content":"<p>Optional - Allows you to sort records. Value that can be passed to the API consists of <code>+</code> or <code>-</code> sign that defines sorting order and name of the attribute to sort by. By default set to <code>-timestamp</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Allowed values</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>+timestamp</code></td>\n<td>Sort by date of creation ascending</td>\n</tr>\n<tr>\n<td><code>-timestamp</code></td>\n<td>Sort by date of creation descending</td>\n</tr>\n</tbody>\n</table>\n</div>","type":"text/plain"},"key":"sort_by","value":"<value>"},{"disabled":true,"description":{"content":"<p>Optional - Filters records and returns only those associated with the device defined by Serial number.</p>\n","type":"text/plain"},"key":"sn","value":"<string>"},{"disabled":true,"description":{"content":"<p>Optional - Filters records and returns only those associated with the device defined by MAC address.</p>\n","type":"text/plain"},"key":"mac","value":"<string>"},{"disabled":true,"description":{"content":"<p>Optional - Filters records and returns only those associated with defined device_type.</p>\n","type":"text/plain"},"key":"device_type","value":"<integer>"},{"disabled":true,"description":{"content":"<p>Optional - Filters records and returns only those associated with defined building.</p>\n","type":"text/plain"},"key":"building_id","value":"<integer>"},{"disabled":true,"description":{"content":"<p>Optional - Filters records and returns only those associated with defined floor.</p>\n","type":"text/plain"},"key":"floor_id","value":"<integer>"},{"disabled":true,"description":{"content":"<p>Optional - Filters records and returns only those that have timestamp greater or equal to specified value.\nFormat is described in the description of the endpoint itself.</p>\n","type":"text/plain"},"key":"timestamp_from","value":"<date>"},{"disabled":true,"description":{"content":"<p>Optional - Filters records and returns only those that have timestamp lower or equal to specified value.\nFormat is described in the description of the endpoint itself.</p>\n","type":"text/plain"},"key":"timestamp_to","value":"<date>"},{"disabled":true,"description":{"content":"<p>Optional - <a href=\"https://en.wikipedia.org/wiki/List_of_UTC_time_offsets\">Coordinated Universal Time (UTC) offset</a> or <a href=\"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\">IANA time zone</a> used to convert <code>timestamp_from</code> and <code>timestamp_to</code> values in the query to UTC.</p>\n<p>Valid values are ISO 8601 UTC offsets, such as <code>+01:00</code> or <code>-08:00</code>, and IANA time zone IDs, such as <code>Europe/Prague</code>.</p>\n","type":"text/plain"},"key":"time_zone","value":"<string>"}],"variable":[]}},"response":[{"id":"4725dd3b-c9a0-4225-b9c6-d0f5cab010f7","name":"List events filtered by SN","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/events?page_size=2&sort_by=+timestamp&sn=SC20L2V110N0000534","host":["https://api.spaceti.net/v2"],"path":["events"],"query":[{"key":"page_size","value":"2","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."},{"key":"sort_by","value":"+timestamp","description":"Optional - Allows you to sort records. Value that can be passed to the API consists of `+` or `-` sign that defines sorting order and name of the attribute to sort by. By default set to `-timestamp`.\n\nAllowed values  | Description\n--- | ---\n`+timestamp` | Sort by date of creation ascending\n`-timestamp` | Sort by date of creation descending\n"},{"key":"sn","value":"SC20L2V110N0000534","description":"Optional - Filters records and returns only those associated with the device defined by Serial number."},{"key":"mac","value":"<string>","description":"Optional - Filters records and returns only those associated with the device defined by MAC address.","disabled":true},{"key":"device_type","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined device_type.","disabled":true},{"key":"building_id","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined building.","disabled":true},{"key":"floor_id","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined floor.","disabled":true},{"key":"timestamp_from","value":"<date>","description":"Optional - Filters records and returns only those that have timestamp greater or equal to specified value.\nFormat is described in the description of the endpoint itself.","disabled":true},{"key":"timestamp_to","value":"<date>","description":"Optional - Filters records and returns only those that have timestamp lower or equal to specified value.\nFormat is described in the description of the endpoint itself.","disabled":true},{"key":"time_zone","value":"<string>","description":"Optional - [Coordinated Universal Time (UTC) offset](https://en.wikipedia.org/wiki/List_of_UTC_time_offsets) or [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used to convert `timestamp_from` and `timestamp_to` values in the query to UTC.\n\nValid values are ISO 8601 UTC offsets, such as `+01:00` or `-08:00`, and IANA time zone IDs, such as `Europe/Prague`.\n","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Thu, 04 Mar 2021 13:14:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1304"},{"key":"X-Amzn-Requestid","value":"2d72fa9d-a7f1-4a71-b715-d9389edd6ded"},{"key":"X-Amz-Apigw-Id","value":"bqeECFgvFiAFV6A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6040dd4c-605d375e7ad3c16c51c3ef34;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8dcd559356fc30961462110a6153f8b2.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"dGpYwYQe575FXUsoQ8RdlUi6sWBQTOSQzaBl2jY_qeq7WBWz1Kea7Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.spaceti.net/v2/events?page_size=2&sn=SC20L2V110N0000534&sort_by=+timestamp&pit=i6-xAwInLmRzLXNwYWNldGlocS1ldmVudHMtZGF0YS1zdHJlYW0tMDAwMDAxFmRLeGM5ei1oUkktQWdSTGtJeHBXLUEAFndxUDM2UEpBUmR5djlLdkk5Qk93LVEAAAAAAAAAAL4WTHpEYVZaOXBSaENuR1hUNC1tOWsyQScuZHMtc3BhY2V0aWhxLWV2ZW50cy1kYXRhLXN0cmVhbS0wMDAwMDIWdEdGZ2hpVkFRNmVJZGNmc01zQmNlUQAWdmlTRGhwYS1ROTJjcUVhNWNfUFVtUQAAAAAAAAQjUBZtc3NfRGNvUFR0R1JYaUYtSDVjY3NnAhZ0R0ZnaGlWQVE2ZUlkY2ZzTXNCY2VRAAAWZEt4Yzl6LWhSSS1BZ1JMa0l4cFctQQAA&search_after_0=1610982971000&search_after_1=e62646c5-05dd-4665-aa6b-4b56c637f9b2\",\n    \"count\": 2,\n    \"records\": [\n        {\n            \"timestamp\": \"2021-01-18T15:16:11\",\n            \"observer\": {\n                \"mac\": \"00124B001954C45A\",\n                \"sn\": \"SC20L2V110N0000534\",\n                \"device_type\": 4\n            },\n            \"event\": {\n                \"timestamp_delta\": 0,\n                \"data\": {\n                    \"value\": 18.52,\n                    \"type\": \"humidity\"\n                },\n                \"geo\": {\n                    \"group_types\": [],\n                    \"groups\": [],\n                    \"location\": [\n                        14.8604347568903,\n                        8.32054278292614\n                    ],\n                    \"position\": [\n                        14.439625475939728,\n                        50.084438809269415\n                    ],\n                    \"space_types\": [],\n                    \"spaces\": [],\n                    \"tenant\": \"spacetihq\",\n                    \"building_id\": 56,\n                    \"floor_id\": 68\n                }\n            }\n        },\n        {\n            \"timestamp\": \"2021-01-18T15:16:11\",\n            \"observer\": {\n                \"mac\": \"00124B001954C45A\",\n                \"sn\": \"SC20L2V110N0000534\",\n                \"device_type\": 4\n            },\n            \"event\": {\n                \"timestamp_delta\": 0,\n                \"data\": {\n                    \"value\": 767,\n                    \"type\": \"co2\"\n                },\n                \"geo\": {\n                    \"group_types\": [],\n                    \"groups\": [],\n                    \"location\": [\n                        14.8604347568903,\n                        8.32054278292614\n                    ],\n                    \"position\": [\n                        14.439625475939728,\n                        50.084438809269415\n                    ],\n                    \"space_types\": [],\n                    \"spaces\": [],\n                    \"tenant\": \"spacetihq\",\n                    \"building_id\": 56,\n                    \"floor_id\": 68\n                }\n            }\n        }\n    ]\n}"},{"id":"512d1ea0-9dd1-43fd-96d2-d6e4d4cb5287","name":"List events","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/events?page_size=2","host":["https://api.spaceti.net/v2"],"path":["events"],"query":[{"key":"page_size","value":"2","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."},{"key":"sort_by","value":"<value>","description":"Optional - Allows you to sort records. Value that can be passed to the API consists of `+` or `-` sign that defines sorting order and name of the attribute to sort by. By default set to `-timestamp`.\n\nAllowed values  | Description\n--- | ---\n`+timestamp` | Sort by date of creation ascending\n`-timestamp` | Sort by date of creation descending\n","disabled":true},{"key":"sn","value":"<string>","description":"Optional - Filters records and returns only those associated with the device defined by Serial number.","disabled":true},{"key":"mac","value":"<string>","description":"Optional - Filters records and returns only those associated with the device defined by MAC address.","disabled":true},{"key":"device_type","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined device_type.","disabled":true},{"key":"building_id","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined building.","disabled":true},{"key":"floor_id","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined floor.","disabled":true},{"key":"timestamp_from","value":"<date>","description":"Optional - Filters records and returns only those that have timestamp greater or equal to specified value.\nFormat is described in the description of the endpoint itself.","disabled":true},{"key":"timestamp_to","value":"<date>","description":"Optional - Filters records and returns only those that have timestamp lower or equal to specified value.\nFormat is described in the description of the endpoint itself.","disabled":true},{"key":"time_zone","value":"<string>","description":"Optional - [Coordinated Universal Time (UTC) offset](https://en.wikipedia.org/wiki/List_of_UTC_time_offsets) or [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used to convert `timestamp_from` and `timestamp_to` values in the query to UTC.\n\nValid values are ISO 8601 UTC offsets, such as `+01:00` or `-08:00`, and IANA time zone IDs, such as `Europe/Prague`.\n","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Thu, 04 Mar 2021 13:13:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1317"},{"key":"X-Amzn-Requestid","value":"e25d0d09-8cd9-4c9f-8fcc-53871f24c9f8"},{"key":"X-Amz-Apigw-Id","value":"bqd7EGVoliAFcog="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6040dd13-4f214a397ce69b3344c80a0e;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 ed03f18c47649fd55292e71a1aea7064.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"z_JQ0dmy8k1gUvhh1tpGOqF-uRYwLB4eY4zkm-mjGHdOh2q3zujlmg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.spaceti.net/v2/events?page_size=2&pit=i6-xAwInLmRzLXNwYWNldGlocS1ldmVudHMtZGF0YS1zdHJlYW0tMDAwMDAxFmRLeGM5ei1oUkktQWdSTGtJeHBXLUEAFndxUDM2UEpBUmR5djlLdkk5Qk93LVEAAAAAAAAAAL0WTHpEYVZaOXBSaENuR1hUNC1tOWsyQScuZHMtc3BhY2V0aWhxLWV2ZW50cy1kYXRhLXN0cmVhbS0wMDAwMDIWdEdGZ2hpVkFRNmVJZGNmc01zQmNlUQAWdmlTRGhwYS1ROTJjcUVhNWNfUFVtUQAAAAAAAAQjORZtc3NfRGNvUFR0R1JYaUYtSDVjY3NnAhZ0R0ZnaGlWQVE2ZUlkY2ZzTXNCY2VRAAAWZEt4Yzl6LWhSSS1BZ1JMa0l4cFctQQAA&search_after_0=1614863629000&search_after_1=RhVf_XcB-Ryf1uN_fPBU\",\n    \"count\": 2,\n    \"records\": [\n        {\n            \"timestamp\": \"2021-03-04T13:13:49\",\n            \"observer\": {\n                \"mac\": \"00124B001954C45A\",\n                \"sn\": \"SC20L2V110N0000534\",\n                \"device_type\": 4\n            },\n            \"event\": {\n                \"timestamp_delta\": 1800,\n                \"data\": {\n                    \"value\": 551,\n                    \"type\": \"co2\"\n                },\n                \"geo\": {\n                    \"group_types\": [],\n                    \"groups\": [],\n                    \"location\": [\n                        8.92796969244312,\n                        25.8466747939585\n                    ],\n                    \"position\": [\n                        14.439625475939728,\n                        50.084438809269415\n                    ],\n                    \"space_types\": [],\n                    \"spaces\": [],\n                    \"tenant\": \"spacetihq\",\n                    \"building_id\": 56,\n                    \"floor_id\": 68\n                }\n            }\n        },\n        {\n            \"timestamp\": \"2021-03-04T13:13:49\",\n            \"observer\": {\n                \"mac\": \"00124B001954C45A\",\n                \"sn\": \"SC20L2V110N0000534\",\n                \"device_type\": 4\n            },\n            \"event\": {\n                \"timestamp_delta\": 1800,\n                \"data\": {\n                    \"value\": 25.59,\n                    \"type\": \"humidity\"\n                },\n                \"geo\": {\n                    \"group_types\": [],\n                    \"groups\": [],\n                    \"location\": [\n                        8.92796969244312,\n                        25.8466747939585\n                    ],\n                    \"position\": [\n                        14.439625475939728,\n                        50.084438809269415\n                    ],\n                    \"space_types\": [],\n                    \"spaces\": [],\n                    \"tenant\": \"spacetihq\",\n                    \"building_id\": 56,\n                    \"floor_id\": 68\n                }\n            }\n        }\n    ]\n}"},{"id":"6e13e814-f932-4794-9113-2c75edca4e89","name":"Unsupported sort_by","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/events?page_size=2&sort_by=+unsupported_sort","host":["https://api.spaceti.net/v2"],"path":["events"],"query":[{"key":"page_size","value":"2","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."},{"key":"sort_by","value":"+unsupported_sort","description":"Optional - Allows you to sort records. Value that can be passed to the API consists of `+` or `-` sign that defines sorting order and name of the attribute to sort by. By default set to `-timestamp`.\n\nAllowed values  | Description\n--- | ---\n`+timestamp` | Sort by date of creation ascending\n`-timestamp` | Sort by date of creation descending\n"},{"key":"sn","value":"<string>","description":"Optional - Filters records and returns only those associated with the device defined by Serial number.","disabled":true},{"key":"mac","value":"<string>","description":"Optional - Filters records and returns only those associated with the device defined by MAC address.","disabled":true},{"key":"device_type","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined device_type.","disabled":true},{"key":"building_id","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined building.","disabled":true},{"key":"floor_id","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined floor.","disabled":true},{"key":"timestamp_from","value":"<date>","description":"Optional - Filters records and returns only those that have timestamp greater or equal to specified value.\nFormat is described in the description of the endpoint itself.","disabled":true},{"key":"timestamp_to","value":"<date>","description":"Optional - Filters records and returns only those that have timestamp lower or equal to specified value.\nFormat is described in the description of the endpoint itself.","disabled":true},{"key":"time_zone","value":"<string>","description":"Optional - [Coordinated Universal Time (UTC) offset](https://en.wikipedia.org/wiki/List_of_UTC_time_offsets) or [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used to convert `timestamp_from` and `timestamp_to` values in the query to UTC.\n\nValid values are ISO 8601 UTC offsets, such as `+01:00` or `-08:00`, and IANA time zone IDs, such as `Europe/Prague`.\n","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Thu, 04 Mar 2021 13:23:07 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"50"},{"key":"X-Amzn-Requestid","value":"f2d2f5dd-8966-459f-8970-0e9226d6d251"},{"key":"X-Amz-Apigw-Id","value":"bqfRNFDOliAFsaw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6040df3a-10ac4e3a23f9ee2c6fde25c1;Sampled=0"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 e38902d67e98c06c59b2b9295ce6ef05.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"oLuY6Mqi6Xb8Vil6luj9Ne1BMKxTmC7tG2GWKfWz7mtia65a6vpdgQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"Attribute 'sort_by' is not correct.\"\n}"},{"id":"a674cc36-0a9c-44fd-b9e4-ab490f18f6b5","name":"List events in defined time range","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/events?page_size=2&sort_by=+timestamp&sn=SC20L2V110N0000534&timestamp_from=2021-02-01T15:00:00&timestamp_to=now-1h/h&time_zone=Europe/Prague","host":["https://api.spaceti.net/v2"],"path":["events"],"query":[{"key":"page_size","value":"2","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."},{"key":"sort_by","value":"+timestamp","description":"Optional - Allows you to sort records. Value that can be passed to the API consists of `+` or `-` sign that defines sorting order and name of the attribute to sort by. By default set to `-timestamp`.\n\nAllowed values  | Description\n--- | ---\n`+timestamp` | Sort by date of creation ascending\n`-timestamp` | Sort by date of creation descending\n"},{"key":"sn","value":"SC20L2V110N0000534","description":"Optional - Filters records and returns only those associated with the device defined by Serial number."},{"key":"mac","value":"<string>","description":"Optional - Filters records and returns only those associated with the device defined by MAC address.","disabled":true},{"key":"device_type","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined device_type.","disabled":true},{"key":"building_id","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined building.","disabled":true},{"key":"floor_id","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined floor.","disabled":true},{"key":"timestamp_from","value":"2021-02-01T15:00:00","description":"Optional - Filters records and returns only those that have timestamp greater or equal to specified value.\nFormat is described in the description of the endpoint itself."},{"key":"timestamp_to","value":"now-1h/h","description":"Optional - Filters records and returns only those that have timestamp lower or equal to specified value.\nFormat is described in the description of the endpoint itself."},{"key":"time_zone","value":"Europe/Prague","description":"Optional - [Coordinated Universal Time (UTC) offset](https://en.wikipedia.org/wiki/List_of_UTC_time_offsets) or [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used to convert `timestamp_from` and `timestamp_to` values in the query to UTC.\n\nValid values are ISO 8601 UTC offsets, such as `+01:00` or `-08:00`, and IANA time zone IDs, such as `Europe/Prague`.\n"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Thu, 04 Mar 2021 13:17:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1397"},{"key":"X-Amzn-Requestid","value":"a0647021-16c5-4d67-ad69-cc4d231365d1"},{"key":"X-Amz-Apigw-Id","value":"bqeZnE6AliAFiEQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6040ddd7-548e3dd9292f72287bd4651a;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 2ad54f65c83b790e81bb57464047598b.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"6dnUUqXhb-YhhQj4Bmo_OG1G0J6TDteeFEPddlUtMXWgIZkUJPk3LQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.spaceti.net/v2/events?page_size=2&sn=SC20L2V110N0000534&sort_by=+timestamp&time_zone=Europe%2FPrague&timestamp_from=2021-02-01T15%3A00%3A00&timestamp_to=now-1h%2Fh&pit=i6-xAwInLmRzLXNwYWNldGlocS1ldmVudHMtZGF0YS1zdHJlYW0tMDAwMDAxFmRLeGM5ei1oUkktQWdSTGtJeHBXLUEAFndxUDM2UEpBUmR5djlLdkk5Qk93LVEAAAAAAAAAAL8WTHpEYVZaOXBSaENuR1hUNC1tOWsyQScuZHMtc3BhY2V0aWhxLWV2ZW50cy1kYXRhLXN0cmVhbS0wMDAwMDIWdEdGZ2hpVkFRNmVJZGNmc01zQmNlUQAWdmlTRGhwYS1ROTJjcUVhNWNfUFVtUQAAAAAAAAQjjhZtc3NfRGNvUFR0R1JYaUYtSDVjY3NnAhZ0R0ZnaGlWQVE2ZUlkY2ZzTXNCY2VRAAAWZEt4Yzl6LWhSSS1BZ1JMa0l4cFctQQAA&search_after_0=1612188026000&search_after_1=84de65f1-7ab4-4768-95ed-65e6e36b4a66\",\n    \"count\": 2,\n    \"records\": [\n        {\n            \"timestamp\": \"2021-02-01T14:00:26\",\n            \"observer\": {\n                \"mac\": \"00124B001954C45A\",\n                \"sn\": \"SC20L2V110N0000534\",\n                \"device_type\": 4\n            },\n            \"event\": {\n                \"timestamp_delta\": 900,\n                \"data\": {\n                    \"value\": 18.34,\n                    \"type\": \"humidity\"\n                },\n                \"geo\": {\n                    \"group_types\": [],\n                    \"groups\": [],\n                    \"location\": [\n                        14.8604347568903,\n                        8.32054278292614\n                    ],\n                    \"position\": [\n                        14.439625475939728,\n                        50.084438809269415\n                    ],\n                    \"space_types\": [],\n                    \"spaces\": [],\n                    \"tenant\": \"spacetihq\",\n                    \"building_id\": 56,\n                    \"floor_id\": 68\n                }\n            }\n        },\n        {\n            \"timestamp\": \"2021-02-01T14:00:26\",\n            \"observer\": {\n                \"mac\": \"00124B001954C45A\",\n                \"sn\": \"SC20L2V110N0000534\",\n                \"device_type\": 4\n            },\n            \"event\": {\n                \"timestamp_delta\": 900,\n                \"data\": {\n                    \"value\": 860,\n                    \"type\": \"co2\"\n                },\n                \"geo\": {\n                    \"group_types\": [],\n                    \"groups\": [],\n                    \"location\": [\n                        14.8604347568903,\n                        8.32054278292614\n                    ],\n                    \"position\": [\n                        14.439625475939728,\n                        50.084438809269415\n                    ],\n                    \"space_types\": [],\n                    \"spaces\": [],\n                    \"tenant\": \"spacetihq\",\n                    \"building_id\": 56,\n                    \"floor_id\": 68\n                }\n            }\n        }\n    ]\n}"},{"id":"c0b8747b-4f1a-4087-a0f6-52aea7c3fa47","name":"Unsupported date format","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/events?page_size=2&timestamp_from=12:25 unsupported date format","host":["https://api.spaceti.net/v2"],"path":["events"],"query":[{"key":"page_size","value":"2","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."},{"key":"sort_by","value":"<value>","description":"Optional - Allows you to sort records. Value that can be passed to the API consists of `+` or `-` sign that defines sorting order and name of the attribute to sort by. By default set to `-timestamp`.\n\nAllowed values  | Description\n--- | ---\n`+timestamp` | Sort by date of creation ascending\n`-timestamp` | Sort by date of creation descending\n","disabled":true},{"key":"sn","value":"<string>","description":"Optional - Filters records and returns only those associated with the device defined by Serial number.","disabled":true},{"key":"mac","value":"<string>","description":"Optional - Filters records and returns only those associated with the device defined by MAC address.","disabled":true},{"key":"device_type","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined device_type.","disabled":true},{"key":"building_id","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined building.","disabled":true},{"key":"floor_id","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined floor.","disabled":true},{"key":"timestamp_from","value":"12:25 unsupported date format","description":"Optional - Filters records and returns only those that have timestamp greater or equal to specified value.\nFormat is described in the description of the endpoint itself."},{"key":"timestamp_to","value":"<date>","description":"Optional - Filters records and returns only those that have timestamp lower or equal to specified value.\nFormat is described in the description of the endpoint itself.","disabled":true},{"key":"time_zone","value":"<string>","description":"Optional - [Coordinated Universal Time (UTC) offset](https://en.wikipedia.org/wiki/List_of_UTC_time_offsets) or [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used to convert `timestamp_from` and `timestamp_to` values in the query to UTC.\n\nValid values are ISO 8601 UTC offsets, such as `+01:00` or `-08:00`, and IANA time zone IDs, such as `Europe/Prague`.\n","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Thu, 04 Mar 2021 13:21:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"243"},{"key":"X-Amzn-Requestid","value":"7c9f96e7-c970-44d3-9b8c-8ce2680b2774"},{"key":"X-Amz-Apigw-Id","value":"bqfEEGWPliAFbnA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6040dee6-65f8364372ae670849227af1;Sampled=0"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b098da944fb4703b68c8c994ac6e8c99.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"Mu3vaPLwnEr2GHG3fCZ7iupOaK-zJOAWoe-o92hztvxwPCvd0iRxlQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"failed to parse date field [12:25 unsupported date format] with format [strict_date_optional_time||epoch_millis]: [failed to parse date field [12:25 unsupported date format] with format [strict_date_optional_time||epoch_millis]]\"\n}"},{"id":"c3d9f1e4-e97c-49c8-8f55-0629d6d92a40","name":"List events from parking sensors","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/events?page_size=2&sort_by=+timestamp&device_type=5","host":["https://api.spaceti.net/v2"],"path":["events"],"query":[{"key":"page_size","value":"2","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."},{"key":"sort_by","value":"+timestamp","description":"Optional - Allows you to sort records. Value that can be passed to the API consists of `+` or `-` sign that defines sorting order and name of the attribute to sort by. By default set to `-timestamp`.\n\nAllowed values  | Description\n--- | ---\n`+timestamp` | Sort by date of creation ascending\n`-timestamp` | Sort by date of creation descending\n"},{"key":"sn","value":"SC20L2V110N0000534","description":"Optional - Filters records and returns only those associated with the device defined by Serial number.","disabled":true},{"key":"mac","value":"<string>","description":"Optional - Filters records and returns only those associated with the device defined by MAC address.","disabled":true},{"key":"device_type","value":"5","description":"Optional - Filters records and returns only those associated with defined device_type."},{"key":"building_id","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined building.","disabled":true},{"key":"floor_id","value":"<integer>","description":"Optional - Filters records and returns only those associated with defined floor.","disabled":true},{"key":"timestamp_from","value":"2021-02-01T15:00:00","description":"Optional - Filters records and returns only those that have timestamp greater or equal to specified value.\nFormat is described in the description of the endpoint itself.","disabled":true},{"key":"timestamp_to","value":"now-1h/h","description":"Optional - Filters records and returns only those that have timestamp lower or equal to specified value.\nFormat is described in the description of the endpoint itself.","disabled":true},{"key":"time_zone","value":"Europe/Prague","description":"Optional - [Coordinated Universal Time (UTC) offset](https://en.wikipedia.org/wiki/List_of_UTC_time_offsets) or [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used to convert `timestamp_from` and `timestamp_to` values in the query to UTC.\n\nValid values are ISO 8601 UTC offsets, such as `+01:00` or `-08:00`, and IANA time zone IDs, such as `Europe/Prague`.\n","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Thu, 04 Mar 2021 13:18:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1377"},{"key":"X-Amzn-Requestid","value":"51c2343d-ce79-4a82-8f96-866783f628bb"},{"key":"X-Amz-Apigw-Id","value":"bqeiQF7eliAFu4g="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6040de0e-17ad80c860881a9766c0767f;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 71df89df5493206e869c670f6eb82a4e.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"ruvEm3wZ1ZW4vE96vev1_xJmBMruqsGGRAWlPjLJ5KL8mcC3A9hWvA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.spaceti.net/v2/events?device_type=5&page_size=2&sort_by=+timestamp&pit=i6-xAwInLmRzLXNwYWNldGlocS1ldmVudHMtZGF0YS1zdHJlYW0tMDAwMDAxFmRLeGM5ei1oUkktQWdSTGtJeHBXLUEAFndxUDM2UEpBUmR5djlLdkk5Qk93LVEAAAAAAAAAAMAWTHpEYVZaOXBSaENuR1hUNC1tOWsyQScuZHMtc3BhY2V0aWhxLWV2ZW50cy1kYXRhLXN0cmVhbS0wMDAwMDIWdEdGZ2hpVkFRNmVJZGNmc01zQmNlUQAWdmlTRGhwYS1ROTJjcUVhNWNfUFVtUQAAAAAAAAQkURZtc3NfRGNvUFR0R1JYaUYtSDVjY3NnAhZ0R0ZnaGlWQVE2ZUlkY2ZzTXNCY2VRAAAWZEt4Yzl6LWhSSS1BZ1JMa0l4cFctQQAA&search_after_0=1610984743000&search_after_1=7b3a20d0-7f3a-48d8-af45-ee792fdae935\",\n    \"count\": 2,\n    \"records\": [\n        {\n            \"timestamp\": \"2021-01-18T15:34:29\",\n            \"observer\": {\n                \"mac\": \"00124B00186A51A4\",\n                \"sn\": \"RPK1XNV110N0000188\",\n                \"device_type\": 5\n            },\n            \"event\": {\n                \"timestamp_delta\": 0,\n                \"data\": {\n                    \"value\": 0,\n                    \"type\": \"occupancy\"\n                },\n                \"geo\": {\n                    \"group_types\": [],\n                    \"groups\": [\n                        152\n                    ],\n                    \"location\": [\n                        5.84009002235623,\n                        45.9789410735407\n                    ],\n                    \"position\": [\n                        14.439625475939728,\n                        50.084438809269415\n                    ],\n                    \"space_types\": [\n                        3\n                    ],\n                    \"spaces\": [\n                        473\n                    ],\n                    \"tenant\": \"spacetihq\",\n                    \"building_id\": 56,\n                    \"floor_id\": 104\n                }\n            }\n        },\n        {\n            \"timestamp\": \"2021-01-18T15:45:43\",\n            \"observer\": {\n                \"mac\": \"00124B00186A4EC3\",\n                \"sn\": \"RPK1XNV110N0000175\",\n                \"device_type\": 5\n            },\n            \"event\": {\n                \"timestamp_delta\": 0,\n                \"data\": {\n                    \"value\": 0,\n                    \"type\": \"occupancy\"\n                },\n                \"geo\": {\n                    \"group_types\": [],\n                    \"groups\": [\n                        152\n                    ],\n                    \"location\": [\n                        5.21866490348642,\n                        50.6678760613765\n                    ],\n                    \"position\": [\n                        14.439625475939728,\n                        50.084438809269415\n                    ],\n                    \"space_types\": [\n                        3\n                    ],\n                    \"spaces\": [\n                        471\n                    ],\n                    \"tenant\": \"spacetihq\",\n                    \"building_id\": 56,\n                    \"floor_id\": 104\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"39a90d72-046b-4319-b81b-852e82e11b66"}],"id":"18ee156d-1126-46f4-9a48-ac75e75df5d0","description":"<p>This section gives you an access to the historical raw events coming from the devices associated with your account. You can find currently supported types of events and their API codes in the table below.</p>\n<h5 id=\"units-of-measure\">Units of measure</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>API code</th>\n<th>Measurement</th>\n<th>Unit</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>occupancy</code></td>\n<td>Occupancy</td>\n<td>0/1 as boolean value</td>\n</tr>\n<tr>\n<td><code>people_count</code></td>\n<td>People count</td>\n<td>integer</td>\n</tr>\n<tr>\n<td><code>temperature</code></td>\n<td>Temperature in degrees Celsius</td>\n<td>°C</td>\n</tr>\n<tr>\n<td><code>temperature_f</code></td>\n<td>Temperature in degrees Fahrenheit</td>\n<td>°F</td>\n</tr>\n<tr>\n<td><code>humidity</code></td>\n<td>Humidity</td>\n<td>% RH</td>\n</tr>\n<tr>\n<td><code>co2</code></td>\n<td>CO2</td>\n<td>ppm</td>\n</tr>\n<tr>\n<td><code>co</code></td>\n<td>CO</td>\n<td>ppm</td>\n</tr>\n<tr>\n<td><code>pm25</code></td>\n<td>PM2.5</td>\n<td>µg/m3</td>\n</tr>\n<tr>\n<td><code>pm10</code></td>\n<td>PM10</td>\n<td>µg/m3</td>\n</tr>\n<tr>\n<td><code>tvoc</code></td>\n<td>TVOC</td>\n<td>ppb</td>\n</tr>\n<tr>\n<td><code>no2</code></td>\n<td>NO2</td>\n<td>ppb</td>\n</tr>\n<tr>\n<td><code>hcho</code></td>\n<td>Formaldehyde</td>\n<td>ppb</td>\n</tr>\n<tr>\n<td><code>o3</code></td>\n<td>Ozone</td>\n<td>ppb</td>\n</tr>\n<tr>\n<td><code>wellbeing</code></td>\n<td>Wellbeing index</td>\n<td>%</td>\n</tr>\n<tr>\n<td><code>brightness</code></td>\n<td>Brightness in lux</td>\n<td>lux</td>\n</tr>\n<tr>\n<td><code>brightness_fc</code></td>\n<td>Brightness in foot-candle</td>\n<td>fc</td>\n</tr>\n<tr>\n<td><code>sound</code></td>\n<td>Sound level</td>\n<td>dB</td>\n</tr>\n<tr>\n<td><code>energy</code></td>\n<td>Energy consumption</td>\n<td>kWh</td>\n</tr>\n<tr>\n<td><code>water</code></td>\n<td>Water consumption</td>\n<td>m3</td>\n</tr>\n<tr>\n<td><code>gas</code></td>\n<td>Gas consumption</td>\n<td>m3</td>\n</tr>\n<tr>\n<td><code>energy_cumulative</code></td>\n<td>Cumulative energy consumption</td>\n<td>kWh</td>\n</tr>\n<tr>\n<td><code>water_cumulative</code></td>\n<td>Cumulative water consumption</td>\n<td>m3</td>\n</tr>\n<tr>\n<td><code>gas_cumulative</code></td>\n<td>Cumulative gas consumption</td>\n<td>m3</td>\n</tr>\n<tr>\n<td><code>energy_cumulative_periodical</code></td>\n<td>Cumulative energy consumption that periodically is set to 0</td>\n<td>kWh</td>\n</tr>\n<tr>\n<td><code>water_cumulative_periodical</code></td>\n<td>Cumulative water consumption that periodically is set to 0</td>\n<td>m3</td>\n</tr>\n<tr>\n<td><code>gas_cumulative_periodical</code></td>\n<td>Cumulative gas consumption that periodically is set to 0</td>\n<td>m3</td>\n</tr>\n<tr>\n<td><code>av_health</code></td>\n<td>AV Equipment health status</td>\n<td>0/1 as boolean value</td>\n</tr>\n<tr>\n<td><code>av_utilization</code></td>\n<td>AV Equipment usage status</td>\n<td>0/1 as boolean value</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"18ee156d-1126-46f4-9a48-ac75e75df5d0"},{"name":"Bookings","item":[{"name":"List bookings","id":"3fc3db14-ff6d-47ab-acb9-f3d04e25673d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/bookings","description":"<p>This endpoint allows you to get the list of the bookings in your tenant. It also supports pagination.</p>\n","urlObject":{"path":["bookings"],"host":["https://api.spaceti.net/v2"],"query":[{"disabled":true,"description":{"content":"<p>Optional - Limits the number of returned records. Maximum is 500, default - 100.</p>\n","type":"text/plain"},"key":"page_size","value":"<integer>"},{"disabled":true,"description":{"content":"<p>Optional - Filters records and returns only those associated with defined space.</p>\n","type":"text/plain"},"key":"space_id","value":"<integer>"},{"disabled":true,"description":{"content":"<p>Optional - Filters records and returns only those associated with defined user.</p>\n","type":"text/plain"},"key":"user_id","value":"<integer>"},{"disabled":true,"description":{"content":"<p>Optional - Filters records and returns only those associated with defined user.</p>\n","type":"text/plain"},"key":"user_email","value":"<string>"},{"disabled":true,"description":{"content":"<p>Optional - Set to True if you want to search for the bookings where specified user (with either user_id or user_email) is present as either organizer or attendee. If set to False searches for the bookings where user is just an organizer. If not specified defaults to False.</p>\n","type":"text/plain"},"key":"search_attendees","value":"<bool>"},{"disabled":true,"description":{"content":"<p>Optional - Set to True if you want to include bookings that were deleted in the response. If not specified defaults to False.</p>\n","type":"text/plain"},"key":"include_deleted","value":"<bool>"},{"disabled":true,"description":{"content":"<p>Optional - Set to True if you want to include bookings that were rejected during approval phase in the response. If not specified defaults to False.</p>\n","type":"text/plain"},"key":"include_rejected","value":"<bool>"},{"disabled":true,"description":{"content":"<p>Optional - Filters records and returns only those where start time is after the defined timestamp in request. Supports timestamps without timezone (e.g. 2024-11-25T15:00:00) or with timezone (e.g. 2024-11-25T15:00:00+01:00)</p>\n","type":"text/plain"},"key":"start_from","value":"<datetime>"},{"disabled":true,"description":{"content":"<p>Optional - Filters records and returns only those where start time is before the defined timestamp in request. Supports timestamps without timezone (e.g. 2024-11-25T15:00:00) or with timezone (e.g. 2024-11-25T15:00:00+01:00)</p>\n","type":"text/plain"},"key":"start_to","value":"<datetime>"}],"variable":[]}},"response":[{"id":"95648788-5b36-40cf-ab19-21b11dc104b6","name":"List bookings","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/bookings?page_size=2","protocol":"https","host":["api","spaceti","net"],"path":["v2","bookings"],"query":[{"key":"page_size","value":"2","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.8"},{"key":"Date","value":"Mon, 22 Mar 2021 19:16:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"881"},{"key":"X-Amzn-Requestid","value":"13b4e9ff-a6bf-4cfd-929f-a18dd205be72"},{"key":"X-Amz-Apigw-Id","value":"cmn9lFroliAFQgg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6058ed23-4676123426c412cd101b4fd1;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 0b7c0b1558a44a398a2a995ce531093b.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"LHR52-C1"},{"key":"X-Amz-Cf-Id","value":"dFoobat3DuyWXryq7r0jK-e6eEfCro4UMZI-4HvXqDHlUP2StuB3KA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.spaceti.net/v2/bookings?page_size=2&page=2\",\n    \"previous\": null,\n    \"count\": 2,\n    \"records\": [\n        {\n            \"id\": 2913,\n            \"type\": \"booking\",\n            \"attributes\": {\n                \"start_at\": \"2024-11-13 13:00:00\",\n                \"end_at\": \"2024-11-13 14:00:00\",\n                \"created_at\": \"2024-11-12 13:15:33.556937\",\n                \"updated_at\": \"2024-11-12 13:15:34.275270\",\n                \"deleted_at\": null,\n                \"space\": {\n                    \"id\": 471,\n                    \"title\": \"Parking 068\"\n                },\n                \"user\": {\n                    \"id\": 44,\n                    \"first_name\": \"John\",\n                    \"last_name\": \"Doe\",\n                    \"email\": \"john.doe@spaceti.com\"\n                },\n                \"check_in_required\": true,\n                \"check_in_completed\": false,\n                \"check_in_start_at\": \"2024-11-13 12:45:00\",\n                \"check_in_end_at\": \"2024-11-13 13:15:00\",\n                \"approval\": {\n                    \"status\": \"bypassed\"\n                }\n            }\n        },\n        {\n            \"id\": 2912,\n            \"type\": \"booking\",\n            \"attributes\": {\n                \"start_at\": \"2024-11-13 13:00:00\",\n                \"end_at\": \"2024-11-13 14:00:00\",\n                \"created_at\": \"2024-11-12 13:15:33.556937\",\n                \"updated_at\": \"2024-11-12 13:15:34.275270\",\n                \"deleted_at\": null,\n                \"space\": {\n                    \"id\": 471,\n                    \"title\": \"Parking 068\"\n                },\n                \"user\": {\n                    \"id\": 44,\n                    \"first_name\": \"John\",\n                    \"last_name\": \"Doe\",\n                    \"email\": \"john.doe@spaceti.com\"\n                },\n                \"check_in_required\": true,\n                \"check_in_completed\": false,\n                \"check_in_start_at\": \"2024-11-13 12:45:00\",\n                \"check_in_end_at\": \"2024-11-13 13:15:00\",\n                \"approval\": {\n                    \"status\": \"bypassed\"\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"3fc3db14-ff6d-47ab-acb9-f3d04e25673d"},{"name":"Get booking by id","id":"028cab5c-de64-4760-9d35-ba44ce9395cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/bookings/:id","description":"<p>Retrieve booking information using booking <code>id</code>.</p>\n","urlObject":{"path":["bookings",":id"],"host":["https://api.spaceti.net/v2"],"query":[],"variable":[{"id":"776ec3f8-adce-43f4-90ce-1d983904c60e","type":"any","value":"booking_id","key":"id"}]}},"response":[{"id":"d91a25e7-0b7d-457a-94d5-70d16bf81b0f","name":"Get booking by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/bookings/:id","host":["https://api.spaceti.net/v2"],"path":["bookings",":id"],"variable":[{"key":"id","value":"2913"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.8"},{"key":"Date","value":"Mon, 22 Mar 2021 19:17:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"384"},{"key":"X-Amzn-Requestid","value":"001f6946-1f9a-4092-a473-051e6fabcfb5"},{"key":"X-Amz-Apigw-Id","value":"cmoB-EYnFiAFVXA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6058ed3f-45a925973a62434c16c2abe8;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 38625201ad7f896d72a7ab055328881f.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"LHR52-C1"},{"key":"X-Amz-Cf-Id","value":"prxoyIyc3sV9fWWqBPALrBZReMIUatip3U6HiqjqU0JZ1tc3Avl8kA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2913,\n    \"type\": \"booking\",\n    \"attributes\": {\n        \"start_at\": \"2024-11-13 13:00:00\",\n        \"end_at\": \"2024-11-13 14:00:00\",\n        \"created_at\": \"2024-11-12 13:15:33.556937\",\n        \"updated_at\": \"2024-11-12 13:15:34.275270\",\n        \"deleted_at\": null,\n        \"space\": {\n            \"id\": 471,\n            \"title\": \"Parking 068\"\n        },\n        \"user\": {\n            \"id\": 44,\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"email\": \"john.doe@spaceti.com\"\n        },\n        \"check_in_required\": true,\n        \"check_in_completed\": false,\n        \"check_in_start_at\": \"2024-11-13 12:45:00\",\n        \"check_in_end_at\": \"2024-11-13 13:15:00\",\n        \"approval\": {\n            \"status\": \"bypassed\"\n        }\n    }\n}"},{"id":"19709437-dbd3-41f6-9027-c695c8cceafb","name":"Booking doesn't exist","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/bookings/:id","host":["https://api.spaceti.net/v2"],"path":["bookings",":id"],"variable":[{"key":"id","value":"404"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"Booking does not exist.\"\n}"}],"_postman_id":"028cab5c-de64-4760-9d35-ba44ce9395cc"}],"id":"bb174565-09e4-4d37-8e18-119e700db005","description":"<p>Bookings are used to book workspace, meeting room or parking space.</p>\n<p>Additional information that you can find in the response is <code>id</code> and <code>title</code> of the booked space and information about the user who created the booking.</p>\n<p>If the booking was deleted, field <code>deleted_at</code> would show timestamp of deletion, otherwise it will be <code>null</code>.</p>\n<p>All the datetimes are in UTC+0.</p>\n<h5 id=\"checkin\">Checkin</h5>\n<p>Depending on the settings of your account, bookings might require check in by user.</p>\n<p>Field <code>check_in_required</code> tells you if check in is required for this booking or not. If it is required - <code>check_in_completed</code> shows if user has already performed it, and <code>check_in_start_at</code> and <code>check_in_end_at</code> define the checkin window.</p>\n<h5 id=\"approval\">Approval</h5>\n<p>Another feature that might be enabled for booking is booking approval. Approval status is located at the field <code>approval.status</code> and might be of values: <code>bypassed</code> - approval is not enabled, <code>pending</code> - approval is pending, <code>approved</code> - approval was successful, <code>rejected</code> - approval was declined.</p>\n","_postman_id":"bb174565-09e4-4d37-8e18-119e700db005"},{"name":"Websockets","item":[],"id":"9682f274-8a41-4c0d-b8c8-b0fea140e88d","description":"<p>Websockets are allowing you to use data from the devices connected to the Spaceti platform in real-time applications.</p>\n<p>Using websockets you open secured connection to the Spaceti server and receive stream of sensor data events or booking events. This approach is the preferred method versus polling the API every few seconds.</p>\n<h4 id=\"authorization\">Authorization</h4>\n<p>Authorization is done in the same manner as for all other endpoints - using request header <strong>Authorization</strong> and <code>Bearer YOUR_TOKEN</code> as the value of this header.</p>\n<h4 id=\"params\">Params</h4>\n<p>There is a possibility to filter events by their location. Specify id of the location using query parameter. Currently following options are supported:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Allowed value</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>building_id</td>\n<td>integer</td>\n<td>Optional - Filters records and returns only those associated with defined building.</td>\n</tr>\n<tr>\n<td>floor_id</td>\n<td>integer</td>\n<td>Optional - Filters records and returns only those associated with defined floor.</td>\n</tr>\n<tr>\n<td>space_id</td>\n<td>integer</td>\n<td>Optional - Filters records and returns only those associated with defined space.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"timeouts\">Timeouts</h4>\n<p>Maximum connection duration is 2 hours. After this period of time connection will be closed by server.</p>\n<p>Idle connection timeout is set to 55 seconds. It means that connection will be closed by server if there was no data transfer in any direction during this time. Given that messages coming from the devices are not evenly distributed over time, it can happen that there will be no message for longer period than 55 seconds.</p>\n<p>In order to keep the stable connection, we <strong>strongly</strong> recommend to use <a href=\"https://tools.ietf.org/html/rfc6455#section-5.5.2\">ping messages</a> going from the client to the server every 10 seconds. Server must respond with the <a href=\"https://tools.ietf.org/html/rfc6455#section-5.5.3\">pong message</a> as described in the <a href=\"https://tools.ietf.org/html/rfc6455\">RFC6455</a>. In this way the idle timeout would never happen and you can control the 2 hour duration limit and reconnect when server stops responding with pong messages.</p>\n<h1 id=\"device-events-websocket\">Device events websocket</h1>\n<p><code>wss://api.spaceti.net/v2/websocket/events</code></p>\n<h4 id=\"data-format\">Data format</h4>\n<p>Websocket returns you device message in the JSON string. <code>observer</code> describes the device which submitted the message, <code>event</code> is the measurement itself and <code>geo</code> describes the location of the device in the tenant and building.</p>\n<p>Types of the events and their respective units were described earlier in the <code>Device events</code> section.</p>\n<p>Here you can see the example of returned data.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n   \"observer\":{\n      \"mac\":\"00124B00186B20E6\",\n      \"sn\":\"SCP0L2P100N0000800\",\n      \"device_type\":2\n   },\n   \"event\":{\n      \"value\":0,\n      \"type\":\"occupancy\",\n      \"created_at\":1615888431\n   },\n   \"geo\":{\n      \"overall_capacity\":1,\n      \"building_id\":56,\n      \"timezone\":\"Prague\",\n      \"group_types\":[\n         1\n      ],\n      \"spaces\":[\n         423\n      ],\n      \"coordinates\":[\n         4.4565508056623,\n         26.9428468397733\n      ],\n      \"position\":[\n         14.439625475939728,\n         50.084438809269415\n      ],\n      \"groups\":[\n         137\n      ],\n      \"floor_id\":68,\n      \"deployment_id\":316,\n      \"space_types\":[\n         1\n      ],\n      \"tenant\":\"spacetihq\"\n   }\n}\n\n</code></pre>\n<h1 id=\"booking-events-websocket\">Booking events websocket</h1>\n<p><code>wss://api.spaceti.net/v2/websocket/bookings</code></p>\n<h4 id=\"data-format-1\">Data format</h4>\n<p>Websocket returns you booking event in the JSON string. Event consists of the booking <code>id</code>, <code>type</code> of the event that is always <code>booking</code>, <code>action</code> that can be <code>create</code>, <code>update</code>, <code>destroy</code>. The rest of the information about the booking is located in <code>attributes</code> object.</p>\n<p>If the booking was deleted, field <code>deleted_at</code> would show timestamp of deletion, otherwise it will be <code>null</code>.</p>\n<p>Here you can see the example of returned data.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 20284,\n    \"type\": \"booking\",\n    \"action\": \"create\",\n    \"attributes\":\n    {\n        \"start_at\": \"2024-12-28 08:00:00\",\n        \"end_at\": \"2024-12-28 16:00:00\",\n        \"created_at\": \"2024-12-27 14:43:12\",\n        \"updated_at\": \"2024-12-27 14:43:12\",\n        \"deleted_at\": null,\n        \"space\":\n        {\n            \"id\": 646\n        },\n        \"user\":\n        {\n            \"id\": 141\n        },\n        \"approval\":\n        {\n            \"status\": \"created\"\n        },\n        \"check_in\":\n        {\n            \"status\": \"inactive\",\n            \"started_at\": null,\n            \"expired_at\": null,\n            \"completed_at\": null\n        }\n    }\n}\n\n</code></pre>\n","_postman_id":"9682f274-8a41-4c0d-b8c8-b0fea140e88d"},{"name":"Buildings","item":[{"name":"List buildings","id":"09531f55-6492-4675-a6e4-66c6c3089076","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/buildings","description":"<p>This endpoint allows you to get the list of the registered buildings in your tenant. It also supports pagination.</p>\n","urlObject":{"path":["buildings"],"host":["https://api.spaceti.net/v2"],"query":[{"disabled":true,"description":{"content":"<p>Optional - Limits the number of returned records. Maximum is 500, default - 100.</p>\n","type":"text/plain"},"key":"page_size","value":"<integer>"}],"variable":[]}},"response":[{"id":"84c7aeb9-aecc-4a8f-acfc-833e08847193","name":"List buildings","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/buildings?page_size=2","host":["https://api.spaceti.net/v2"],"path":["buildings"],"query":[{"key":"page_size","value":"2","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 09 Mar 2021 11:55:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3263"},{"key":"X-Amzn-Requestid","value":"0eb95e74-39f9-4075-bc34-bcaca3119ff6"},{"key":"X-Amz-Apigw-Id","value":"b6xGGFleFiAFjrg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60476226-453026a16c83823e28a4cfd2;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 f0300a9921a99446a44423d996042050.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"YAygOKzZ1em2l7aRX2BlrpFMLJKWeVRMc33ZqrgbYUvpA7oQYeIdcw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.spaceti.net/v2/buildings?page_size=2&page=2\",\n    \"previous\": null,\n    \"count\": 2,\n    \"records\": [\n        {\n            \"id\": 56,\n            \"type\": \"building\",\n            \"attributes\": {\n                \"title\": \"Luxembourg Plaza\",\n                \"description\": \"This unique multifunctional project offers variety of modern, high-quality office space.\",\n                \"address\": \"Přemyslovská 2845, 130 00 Praha 3-Žižkov\",\n                \"phone_number\": \"+420 296 369 197\",\n                \"time_zone\": \"Prague\",\n                \"created_at\": \"2020-05-27 10:55:34.362113\",\n                \"updated_at\": \"2021-01-07 08:32:14.843344\",\n                \"geo_data\": {\n                    \"type\": \"MultiPolygon\",\n                    \"coordinates\": [\n                        [\n                            [\n                                [\n                                    14.4601019471884,\n                                    50.0794473617347\n                                ],\n                                [\n                                    14.460122063756,\n                                    50.0794497284396\n                                ],\n                                [\n                                    14.4601445272565,\n                                    50.0793834606574\n                                ],\n                                [\n                                    14.4601391628385,\n                                    50.0793826000362\n                                ],\n                                [\n                                    14.4601619616151,\n                                    50.0793171927835\n                                ],\n                                [\n                                    14.4601673260331,\n                                    50.0793182685614\n                                ],\n                                [\n                                    14.4602129235864,\n                                    50.0791863780104\n                                ],\n                                [\n                                    14.4602078944445,\n                                    50.0791853022295\n                                ],\n                                [\n                                    14.4602300226688,\n                                    50.0791205401771\n                                ],\n                                [\n                                    14.460235722363,\n                                    50.0791211856465\n                                ],\n                                [\n                                    14.4603037834167,\n                                    50.0789225958199\n                                ],\n                                [\n                                    14.4601599499583,\n                                    50.0789019407094\n                                ],\n                                [\n                                    14.4601733610034,\n                                    50.0788453542675\n                                ],\n                                [\n                                    14.4594092667103,\n                                    50.0787698338551\n                                ],\n                                [\n                                    14.4593935087323,\n                                    50.078822332388\n                                ],\n                                [\n                                    14.4593157246709,\n                                    50.0788092077602\n                                ],\n                                [\n                                    14.459109865129,\n                                    50.0793350506936\n                                ],\n                                [\n                                    14.4591504335403,\n                                    50.0793397841145\n                                ],\n                                [\n                                    14.459139034152,\n                                    50.0793640966778\n                                ],\n                                [\n                                    14.4592634215951,\n                                    50.0793841061232\n                                ],\n                                [\n                                    14.4592610746622,\n                                    50.079389485005\n                                ],\n                                [\n                                    14.4592654332519,\n                                    50.0793899153155\n                                ],\n                                [\n                                    14.4592748209834,\n                                    50.0793563510837\n                                ],\n                                [\n                                    14.4592778384686,\n                                    50.0793569965499\n                                ],\n                                [\n                                    14.4593090191483,\n                                    50.0792472671679\n                                ],\n                                [\n                                    14.4599822536111,\n                                    50.0793260141616\n                                ],\n                                [\n                                    14.4599675014615,\n                                    50.0793772211537\n                                ],\n                                [\n                                    14.4600181281567,\n                                    50.0793830303468\n                                ],\n                                [\n                                    14.4600037112832,\n                                    50.0794340221229\n                                ],\n                                [\n                                    14.4601019471884,\n                                    50.0794473617347\n                                ]\n                            ],\n                            [\n                                [\n                                    14.4595514237881,\n                                    50.0792279031333\n                                ],\n                                [\n                                    14.4596365839243,\n                                    50.0789537936261\n                                ],\n                                [\n                                    14.4599963352084,\n                                    50.0789998372478\n                                ],\n                                [\n                                    14.4599108397961,\n                                    50.0792741616475\n                                ],\n                                [\n                                    14.4595514237881,\n                                    50.0792279031333\n                                ]\n                            ]\n                        ]\n                    ]\n                },\n                \"image_url\": {\n                    \"small\": \"https://spaceti-staging.s3.eu-central-1.amazonaws.com/spacetihq/building/small/456226da5ed90b75-e55638575b8e4daf-c8d12cef2b6584d8-Luxembourg-Plaza.jpg\",\n                    \"large\": \"https://spaceti-staging.s3.eu-central-1.amazonaws.com/spacetihq/building/big/c6559aa8e009ee8a-58a38dfe255f1f50-ed2b4770d21d38ad-Luxembourg-Plaza.jpg\"\n                }\n            }\n        },\n        {\n            \"id\": 93,\n            \"type\": \"building\",\n            \"attributes\": {\n                \"title\": \"Katerinska\",\n                \"description\": null,\n                \"address\": \"Kateřinská 466/40, Praha 2\",\n                \"phone_number\": null,\n                \"time_zone\": \"Prague\",\n                \"created_at\": \"2020-11-20 14:52:47.287315\",\n                \"updated_at\": \"2020-11-20 14:52:47.287315\",\n                \"geo_data\": {\n                    \"type\": \"MultiPolygon\",\n                    \"coordinates\": [\n                        [\n                            [\n                                [\n                                    14.4279254972935,\n                                    50.0749534238157\n                                ],\n                                [\n                                    14.427831619978,\n                                    50.0749215778804\n                                ],\n                                [\n                                    14.427749812603,\n                                    50.0750205584207\n                                ],\n                                [\n                                    14.4278745353222,\n                                    50.0750945785172\n                                ],\n                                [\n                                    14.4279415905476,\n                                    50.0751290064301\n                                ],\n                                [\n                                    14.4281803071499,\n                                    50.0752266954985\n                                ],\n                                [\n                                    14.4281896948814,\n                                    50.0752159368003\n                                ],\n                                [\n                                    14.4282896071672,\n                                    50.0752473521923\n                                ],\n                                [\n                                    14.4284109771252,\n                                    50.0751001730547\n                                ],\n                                [\n                                    14.4282989948988,\n                                    50.0750623023264\n                                ],\n                                [\n                                    14.4284424930811,\n                                    50.0748867194677\n                                ],\n                                [\n                                    14.428296983242,\n                                    50.0748260399479\n                                ],\n                                [\n                                    14.4282842427492,\n                                    50.0748419629499\n                                ],\n                                [\n                                    14.4282406568527,\n                                    50.0748269006508\n                                ],\n                                [\n                                    14.4280958175659,\n                                    50.0750029140785\n                                ],\n                                [\n                                    14.4279301911592,\n                                    50.0749469685603\n                                ],\n                                [\n                                    14.4279254972935,\n                                    50.0749534238157\n                                ]\n                            ]\n                        ]\n                    ]\n                },\n                \"image_url\": {\n                    \"small\": null,\n                    \"large\": null\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"09531f55-6492-4675-a6e4-66c6c3089076"},{"name":"Get building by id","id":"37be38f7-66b1-4c31-b44e-78dfbcb19d02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/buildings/:id","description":"<p>Retrieve the building information using building <code>id</code>.</p>\n","urlObject":{"path":["buildings",":id"],"host":["https://api.spaceti.net/v2"],"query":[],"variable":[{"id":"e371468c-cffa-4133-b333-55b4f1586aaa","type":"any","value":"building_id","key":"id"}]}},"response":[{"id":"d9955e05-fc17-4d0b-8a29-55114e25df92","name":"Building doesn't exist","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/buildings/:id","host":["https://api.spaceti.net/v2"],"path":["buildings",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 09 Mar 2021 11:56:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"39"},{"key":"X-Amzn-Requestid","value":"0482e9c4-3dc4-4fdb-bb06-a9d20e762b79"},{"key":"X-Amz-Apigw-Id","value":"b6xQcHrcFiAFiSQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60476269-2e00bed95bfee6f81d0dd194;Sampled=0"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 c416f79611bca57dde019f04fe3cc36f.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"qM_H-jm-lBbkJeJve5ItmPK8JBZqoloJ1yH8DrZudAXqQ77h3cqq_A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"Building does not exist.\"\n}"},{"id":"f8268812-42a0-4b53-9b6c-a2de1cb1834e","name":"Get building by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/buildings/:id","host":["https://api.spaceti.net/v2"],"path":["buildings",":id"],"variable":[{"key":"id","value":"56"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 09 Mar 2021 11:56:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2128"},{"key":"X-Amzn-Requestid","value":"67ef0420-9be9-4063-8f9f-63ed730d35a5"},{"key":"X-Amz-Apigw-Id","value":"b6xNhFSwFiAFaqg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60476256-6dfc0aad150f0ebe4cf30981;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b2503ae4ba1f23047290413d8808a120.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"RK3ePOaA3eg8vk3aPl6ZUep7re_tcDElyLjO0WgUGr7PHj13xOK_OA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 56,\n    \"type\": \"building\",\n    \"attributes\": {\n        \"title\": \"Luxembourg Plaza\",\n        \"description\": \"This unique multifunctional project offers variety of modern, high-quality office space.\",\n        \"address\": \"Přemyslovská 2845, 130 00 Praha 3-Žižkov\",\n        \"phone_number\": \"+420 296 369 197\",\n        \"time_zone\": \"Prague\",\n        \"created_at\": \"2020-05-27 10:55:34.362113\",\n        \"updated_at\": \"2021-01-07 08:32:14.843344\",\n        \"geo_data\": {\n            \"type\": \"MultiPolygon\",\n            \"coordinates\": [\n                [\n                    [\n                        [\n                            14.4601019471884,\n                            50.0794473617347\n                        ],\n                        [\n                            14.460122063756,\n                            50.0794497284396\n                        ],\n                        [\n                            14.4601445272565,\n                            50.0793834606574\n                        ],\n                        [\n                            14.4601391628385,\n                            50.0793826000362\n                        ],\n                        [\n                            14.4601619616151,\n                            50.0793171927835\n                        ],\n                        [\n                            14.4601673260331,\n                            50.0793182685614\n                        ],\n                        [\n                            14.4602129235864,\n                            50.0791863780104\n                        ],\n                        [\n                            14.4602078944445,\n                            50.0791853022295\n                        ],\n                        [\n                            14.4602300226688,\n                            50.0791205401771\n                        ],\n                        [\n                            14.460235722363,\n                            50.0791211856465\n                        ],\n                        [\n                            14.4603037834167,\n                            50.0789225958199\n                        ],\n                        [\n                            14.4601599499583,\n                            50.0789019407094\n                        ],\n                        [\n                            14.4601733610034,\n                            50.0788453542675\n                        ],\n                        [\n                            14.4594092667103,\n                            50.0787698338551\n                        ],\n                        [\n                            14.4593935087323,\n                            50.078822332388\n                        ],\n                        [\n                            14.4593157246709,\n                            50.0788092077602\n                        ],\n                        [\n                            14.459109865129,\n                            50.0793350506936\n                        ],\n                        [\n                            14.4591504335403,\n                            50.0793397841145\n                        ],\n                        [\n                            14.459139034152,\n                            50.0793640966778\n                        ],\n                        [\n                            14.4592634215951,\n                            50.0793841061232\n                        ],\n                        [\n                            14.4592610746622,\n                            50.079389485005\n                        ],\n                        [\n                            14.4592654332519,\n                            50.0793899153155\n                        ],\n                        [\n                            14.4592748209834,\n                            50.0793563510837\n                        ],\n                        [\n                            14.4592778384686,\n                            50.0793569965499\n                        ],\n                        [\n                            14.4593090191483,\n                            50.0792472671679\n                        ],\n                        [\n                            14.4599822536111,\n                            50.0793260141616\n                        ],\n                        [\n                            14.4599675014615,\n                            50.0793772211537\n                        ],\n                        [\n                            14.4600181281567,\n                            50.0793830303468\n                        ],\n                        [\n                            14.4600037112832,\n                            50.0794340221229\n                        ],\n                        [\n                            14.4601019471884,\n                            50.0794473617347\n                        ]\n                    ],\n                    [\n                        [\n                            14.4595514237881,\n                            50.0792279031333\n                        ],\n                        [\n                            14.4596365839243,\n                            50.0789537936261\n                        ],\n                        [\n                            14.4599963352084,\n                            50.0789998372478\n                        ],\n                        [\n                            14.4599108397961,\n                            50.0792741616475\n                        ],\n                        [\n                            14.4595514237881,\n                            50.0792279031333\n                        ]\n                    ]\n                ]\n            ]\n        },\n        \"image_url\": {\n            \"small\": \"https://spaceti-staging.s3.eu-central-1.amazonaws.com/spacetihq/building/small/456226da5ed90b75-e55638575b8e4daf-c8d12cef2b6584d8-Luxembourg-Plaza.jpg\",\n            \"large\": \"https://spaceti-staging.s3.eu-central-1.amazonaws.com/spacetihq/building/big/c6559aa8e009ee8a-58a38dfe255f1f50-ed2b4770d21d38ad-Luxembourg-Plaza.jpg\"\n        }\n    }\n}"}],"_postman_id":"37be38f7-66b1-4c31-b44e-78dfbcb19d02"}],"id":"689e6dc0-0d66-4454-9c44-734871e13257","description":"<p>Building object describes the basic information about the building registered in the Spaceti system.</p>\n","_postman_id":"689e6dc0-0d66-4454-9c44-734871e13257"},{"name":"Floors","item":[{"name":"List floors","id":"56537a9d-265b-44a3-91ad-bc0afd056198","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/floors","description":"<p>This endpoint allows you to get the list of the registered floors in your tenant. It also supports pagination.</p>\n","urlObject":{"path":["floors"],"host":["https://api.spaceti.net/v2"],"query":[{"disabled":true,"description":{"content":"<p>Optional - Limits the number of returned records. Maximum is 500, default - 100.</p>\n","type":"text/plain"},"key":"page_size","value":"<integer>"}],"variable":[]}},"response":[{"id":"f411ab6d-dcc4-43fd-8b03-263f5254d03d","name":"List floors","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/floors?page_size=2","host":["https://api.spaceti.net/v2"],"path":["floors"],"query":[{"key":"page_size","value":"2","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 09 Mar 2021 12:07:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1422"},{"key":"X-Amzn-Requestid","value":"069446d5-396a-49b7-8e0d-b666c2d14c02"},{"key":"X-Amz-Apigw-Id","value":"b6y19HhSliAFVAQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-604764f2-1b0d223b3f6deecc3d5eb283;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 3ed9d4c241a47723d0c53da2377ea8a7.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"Fgwb_v6vBTXOpVXHPt2d-ZKkZpccK-7ekWh2s47ohSAlqkhbpDyz3g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.spaceti.net/v2/floors?page_size=2&page=2\",\n    \"previous\": null,\n    \"count\": 2,\n    \"records\": [\n        {\n            \"id\": 68,\n            \"type\": \"floor\",\n            \"attributes\": {\n                \"title\": \"1\",\n                \"position\": 0,\n                \"building_id\": 56,\n                \"published\": true,\n                \"created_at\": \"2020-05-27 10:55:38.603768\",\n                \"updated_at\": \"2021-03-08 17:07:03.274481\",\n                \"geo_data\": {\n                    \"type\": \"MultiPolygon\",\n                    \"coordinates\": [\n                        [\n                            [\n                                [\n                                    14.4593670688557,\n                                    50.0791011483763\n                                ],\n                                [\n                                    14.4594461728068,\n                                    50.0791140819906\n                                ],\n                                [\n                                    14.4594241997558,\n                                    50.0791706593991\n                                ],\n                                [\n                                    14.4593805946254,\n                                    50.0791632737967\n                                ],\n                                [\n                                    14.4593581834635,\n                                    50.0792203524418\n                                ],\n                                [\n                                    14.4593210387055,\n                                    50.0792162564143\n                                ],\n                                [\n                                    14.4593073125097,\n                                    50.0792511866279\n                                ],\n                                [\n                                    14.4592764171911,\n                                    50.0793595069426\n                                ],\n                                [\n                                    14.4591114110756,\n                                    50.0793325516256\n                                ],\n                                [\n                                    14.4592466587037,\n                                    50.0789887075135\n                                ],\n                                [\n                                    14.459545127906,\n                                    50.0790375751829\n                                ],\n                                [\n                                    14.4595229608244,\n                                    50.0790923689554\n                                ],\n                                [\n                                    14.4593794782053,\n                                    50.0790693182237\n                                ],\n                                [\n                                    14.4593670688557,\n                                    50.0791011483763\n                                ]\n                            ]\n                        ]\n                    ]\n                }\n            }\n        },\n        {\n            \"id\": 104,\n            \"type\": \"floor\",\n            \"attributes\": {\n                \"title\": \"G\",\n                \"position\": 1,\n                \"building_id\": 56,\n                \"published\": true,\n                \"created_at\": \"2020-06-12 09:10:48.096837\",\n                \"updated_at\": \"2021-01-20 14:15:56.346392\",\n                \"geo_data\": {\n                    \"type\": \"MultiPolygon\",\n                    \"coordinates\": [\n                        [\n                            [\n                                [\n                                    14.4600362973791,\n                                    50.0794688287972\n                                ],\n                                [\n                                    14.4591011426443,\n                                    50.0793571873917\n                                ],\n                                [\n                                    14.4593363993601,\n                                    50.0787621784526\n                                ],\n                                [\n                                    14.4603653551938,\n                                    50.0788669592399\n                                ],\n                                [\n                                    14.4602458264468,\n                                    50.079225908313\n                                ],\n                                [\n                                    14.4601289249453,\n                                    50.0792099194243\n                                ],\n                                [\n                                    14.4600362973791,\n                                    50.0794688287972\n                                ]\n                            ]\n                        ]\n                    ]\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"56537a9d-265b-44a3-91ad-bc0afd056198"},{"name":"Get floor by id","id":"2feaf4b2-dee7-401c-9028-110214ff08be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/floors/:id","description":"<p>Retrieve floor information using floor <code>id</code>.</p>\n","urlObject":{"path":["floors",":id"],"host":["https://api.spaceti.net/v2"],"query":[],"variable":[{"id":"4ddcb307-fc57-4b73-8651-582b3d92c6f3","type":"any","value":"floor_id","key":"id"}]}},"response":[{"id":"1e554f77-0f90-4a04-877d-daf68d03ed67","name":"Floor doesn't exist","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/floors/:id","host":["https://api.spaceti.net/v2"],"path":["floors",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 09 Mar 2021 12:08:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"36"},{"key":"X-Amzn-Requestid","value":"f35dca74-a26e-463e-bb09-59fc433da103"},{"key":"X-Amz-Apigw-Id","value":"b6y_tEWNFiAFkdA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60476531-2e6314210bb36c0b746ebf02;Sampled=0"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 003bc9225f430357abb8eb4b34f6dc20.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"MocbNzjvcxFoHKAzKGM3jATi21Sy5ttm0CyuvZT2o1G6JKyqjlizHw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"Floor does not exist.\"\n}"},{"id":"3cc40824-e915-4f5b-9990-99a0d886361a","name":"Get floor by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/floors/:id","host":["https://api.spaceti.net/v2"],"path":["floors",":id"],"variable":[{"key":"id","value":"68"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 09 Mar 2021 12:08:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"788"},{"key":"X-Amzn-Requestid","value":"16a2ac50-6a08-46f5-86ad-6aa7bca08691"},{"key":"X-Amz-Apigw-Id","value":"b6y-UEOYliAFcIA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60476528-0928fa966b1294c75b414d16;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 ce024f609b66dae59e41a6b53a8757ba.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"zo4GVQpWyggig3zxD-zBZxR9_TFVUu0RWynb4cn8Mkfx4yqRgq_6_A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 68,\n    \"type\": \"floor\",\n    \"attributes\": {\n        \"title\": \"1\",\n        \"position\": 0,\n        \"building_id\": 56,\n        \"published\": true,\n        \"created_at\": \"2020-05-27 10:55:38.603768\",\n        \"updated_at\": \"2021-03-08 17:07:03.274481\",\n        \"geo_data\": {\n            \"type\": \"MultiPolygon\",\n            \"coordinates\": [\n                [\n                    [\n                        [\n                            14.4593670688557,\n                            50.0791011483763\n                        ],\n                        [\n                            14.4594461728068,\n                            50.0791140819906\n                        ],\n                        [\n                            14.4594241997558,\n                            50.0791706593991\n                        ],\n                        [\n                            14.4593805946254,\n                            50.0791632737967\n                        ],\n                        [\n                            14.4593581834635,\n                            50.0792203524418\n                        ],\n                        [\n                            14.4593210387055,\n                            50.0792162564143\n                        ],\n                        [\n                            14.4593073125097,\n                            50.0792511866279\n                        ],\n                        [\n                            14.4592764171911,\n                            50.0793595069426\n                        ],\n                        [\n                            14.4591114110756,\n                            50.0793325516256\n                        ],\n                        [\n                            14.4592466587037,\n                            50.0789887075135\n                        ],\n                        [\n                            14.459545127906,\n                            50.0790375751829\n                        ],\n                        [\n                            14.4595229608244,\n                            50.0790923689554\n                        ],\n                        [\n                            14.4593794782053,\n                            50.0790693182237\n                        ],\n                        [\n                            14.4593670688557,\n                            50.0791011483763\n                        ]\n                    ]\n                ]\n            ]\n        }\n    }\n}"}],"_postman_id":"2feaf4b2-dee7-401c-9028-110214ff08be"}],"id":"7170d82b-b4a8-400f-9de6-0b6a499c6ab0","description":"<p>Floor object describes the basic information about the floor registered in the building in the Spaceti system.</p>\n","_postman_id":"7170d82b-b4a8-400f-9de6-0b6a499c6ab0"},{"name":"Groups","item":[{"name":"List groups","id":"4fca2fc2-cbf5-4987-874d-da7a030cf330","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/groups","description":"<p>This endpoint allows you to get the list of the groups in your tenant. It also supports pagination.</p>\n","urlObject":{"path":["groups"],"host":["https://api.spaceti.net/v2"],"query":[{"disabled":true,"description":{"content":"<p>Optional - Limits the number of returned records. Maximum is 500, default - 100.</p>\n","type":"text/plain"},"key":"page_size","value":"<integer>"}],"variable":[]}},"response":[{"id":"99686b4b-429a-4b57-98ff-311c8e65c9b1","name":"List groups","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/groups?page_size=2","host":["https://api.spaceti.net/v2"],"path":["groups"],"query":[{"key":"page_size","value":"2","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.8"},{"key":"Date","value":"Wed, 17 Mar 2021 16:29:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"563"},{"key":"X-Amzn-Requestid","value":"d2110d45-801c-4645-bcbb-23c983ad4537"},{"key":"X-Amz-Apigw-Id","value":"cVwuJE9iFiAFUGA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60522e5a-17dfef615eae9e4166888e5f;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 3e37a185adf0633e53d97f7c71ebc945.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"LHR52-C1"},{"key":"X-Amz-Cf-Id","value":"KG5yliysee0kwrj3YzhoGN_deIzHWB90dK5tDSJ2S3NRMxmKXLMVmQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.spaceti.net/v2/groups?page_size=2&page=2\",\n    \"previous\": null,\n    \"count\": 2,\n    \"records\": [\n        {\n            \"id\": 137,\n            \"type\": \"group\",\n            \"attributes\": {\n                \"title\": \"Product Team\",\n                \"spaces_count\": 12,\n                \"space_ids\": [\n                    523,\n                    524,\n                    406,\n                    528,\n                    527,\n                    415,\n                    526,\n                    525,\n                    414,\n                    413,\n                    412,\n                    416\n                ],\n                \"created_at\": \"2020-04-20 19:08:57.525310\",\n                \"updated_at\": \"2020-04-20 19:08:57.525310\",\n                \"group_type\": {\n                    \"id\": 1,\n                    \"title\": \"Department\"\n                }\n            }\n        },\n        {\n            \"id\": 147,\n            \"type\": \"group\",\n            \"attributes\": {\n                \"title\": \"Business & Marketing\",\n                \"spaces_count\": 6,\n                \"space_ids\": [\n                    429,\n                    430,\n                    434,\n                    431,\n                    432,\n                    433\n                ],\n                \"created_at\": \"2020-06-10 06:44:22.433481\",\n                \"updated_at\": \"2020-06-10 06:44:22.433481\",\n                \"group_type\": {\n                    \"id\": null,\n                    \"title\": null\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"4fca2fc2-cbf5-4987-874d-da7a030cf330"},{"name":"Get group by id","id":"b24c4c3b-4ee9-4e4a-b27f-0b75dbef1071","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/groups/:id","description":"<p>Retrieve group information using group <code>id</code>.</p>\n","urlObject":{"path":["groups",":id"],"host":["https://api.spaceti.net/v2"],"query":[],"variable":[{"type":"any","value":"group_id","key":"id"}]}},"response":[{"id":"22faad60-2b3d-4d67-985d-93a123835f55","name":"Group doesn't exist","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/groups/:id","host":["https://api.spaceti.net/v2"],"path":["groups",":id"],"variable":[{"key":"id","value":"404"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.8"},{"key":"Date","value":"Wed, 17 Mar 2021 16:30:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"36"},{"key":"X-Amzn-Requestid","value":"0ac51679-a957-47da-bbf3-f02e15160746"},{"key":"X-Amz-Apigw-Id","value":"cVw4CGrnliAFhJw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60522e99-0409ac6e13ccd61d4e293212;Sampled=0"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 59f36941a67a8e6b953ddc861721052b.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"LHR52-C1"},{"key":"X-Amz-Cf-Id","value":"KWColQB2_Kif2c4g1pjOiw7h_hV7D5B0eqrDcWCkd21BqLf8PXkQ0A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"Group does not exist.\"\n}"},{"id":"a5f532fa-5fa1-4f47-91d0-29fedcfa5436","name":"Get group by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/groups/:id","host":["https://api.spaceti.net/v2"],"path":["groups",":id"],"variable":[{"key":"id","value":"137"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.8"},{"key":"Date","value":"Wed, 17 Mar 2021 16:29:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"225"},{"key":"X-Amzn-Requestid","value":"111a699b-5b24-4609-86d0-face4c3e1760"},{"key":"X-Amz-Apigw-Id","value":"cVwzjHlnFiAFS0w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60522e7d-1eebd14f113db8c16cf6d9d4;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 2fafb26bfb5e0420de152a7abef27a44.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"LHR52-C1"},{"key":"X-Amz-Cf-Id","value":"HsuBlNQpvca-lhKoram4FHg3Z7QDRNfef0tAoujRHewv0tC3zXXl5w=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 137,\n    \"type\": \"group\",\n    \"attributes\": {\n        \"title\": \"Product Team\",\n        \"spaces_count\": 12,\n        \"space_ids\": [\n                    523,\n                    524,\n                    406,\n                    528,\n                    527,\n                    415,\n                    526,\n                    525,\n                    414,\n                    413,\n                    412,\n                    416\n                ],\n        \"created_at\": \"2020-04-20 19:08:57.525310\",\n        \"updated_at\": \"2020-04-20 19:08:57.525310\",\n        \"group_type\": {\n            \"id\": 1,\n            \"title\": \"Department\"\n        }\n    }\n}"}],"_postman_id":"b24c4c3b-4ee9-4e4a-b27f-0b75dbef1071"}],"id":"c522dd1a-addd-4d7f-a155-35877381ee98","description":"<p>Group aggregate several spaces to perform analysis of occupancy and environment. For example, all the working stations of some department can be grouped and compared with other departments on the utilisation and occupancy.</p>\n","_postman_id":"c522dd1a-addd-4d7f-a155-35877381ee98"},{"name":"Spaces","item":[{"name":"List spaces","id":"4b9872f1-c3e8-472c-adbe-fd518765408a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/spaces","description":"<p>This endpoint allows you to get the list of the registered spaces in your tenant. It also supports pagination.</p>\n","urlObject":{"path":["spaces"],"host":["https://api.spaceti.net/v2"],"query":[{"disabled":true,"description":{"content":"<p>Optional - Limits the number of returned records. Maximum is 500, default - 100.</p>\n","type":"text/plain"},"key":"page_size","value":"<integer>"}],"variable":[]}},"response":[{"id":"de59d6f7-05dc-4347-b445-166e11644422","name":"List spaces","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/spaces?page_size=2","host":["https://api.spaceti.net/v2"],"path":["spaces"],"query":[{"key":"page_size","value":"2","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 09 Mar 2021 12:16:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"665"},{"key":"X-Amzn-Requestid","value":"fe62587f-826e-4a27-8d1c-a04a63e5b801"},{"key":"X-Amz-Apigw-Id","value":"b60PTHfLliAFmPA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6047672e-531398716a5013d932696f96;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 2624e42a83112268605736034e2afc15.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"FNtAym031Pi17VisnLxQOdmBgWKJQLqjOFv--KMJKCsH66GahFrsGw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.spaceti.net/v2/spaces?page_size=2&page=2\",\n    \"previous\": null,\n    \"count\": 2,\n    \"records\": [\n        {\n            \"id\": 397,\n            \"type\": \"space\",\n            \"attributes\": {\n                \"title\": \"MR - Dragonstone\",\n                \"floor_id\": 68,\n                \"bookable\": true,\n                \"capacity\": 3,\n                \"equipment\": {},\n                \"created_at\": \"2020-05-27 12:57:25.286535\",\n                \"updated_at\": \"2020-08-25 11:59:44.349382\",\n                \"space_type\": {\n                    \"id\": 2,\n                    \"title\": \"Meeting Rooms\"\n                }\n            }\n        },\n        {\n            \"id\": 406,\n            \"type\": \"space\",\n            \"attributes\": {\n                \"title\": \"Workstation 013\",\n                \"floor_id\": 68,\n                \"bookable\": true,\n                \"capacity\": 1,\n                \"equipment\": {},\n                \"created_at\": \"2020-05-27 12:57:27.284561\",\n                \"updated_at\": \"2020-11-03 16:33:22.211708\",\n                \"space_type\": {\n                    \"id\": 1,\n                    \"title\": \"Workstations\"\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"4b9872f1-c3e8-472c-adbe-fd518765408a"},{"name":"Get space by id","id":"3527d24d-0ac0-4bc9-8f3f-086da615efb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/spaces/:id","description":"<p>Retrieve space information using space <code>id</code>.</p>\n","urlObject":{"path":["spaces",":id"],"host":["https://api.spaceti.net/v2"],"query":[],"variable":[{"id":"d4272da9-232e-407b-b42e-f21dbb0dbf42","type":"any","value":"space_id","key":"id"}]}},"response":[{"id":"96be25f7-fc03-4373-808a-12ba310dd101","name":"Get space by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/spaces/:id","host":["https://api.spaceti.net/v2"],"path":["spaces",":id"],"variable":[{"key":"id","value":"397"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 09 Mar 2021 12:17:46 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"278"},{"key":"X-Amzn-Requestid","value":"f83a6124-8c65-4bbe-a000-4176f9f21717"},{"key":"X-Amz-Apigw-Id","value":"b60YmH57liAFnmw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6047676a-6d3d2f0c7f2adfd44a36c511;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 f83c83d77232fb065a0398261a62d82d.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"xU5Pd-pmDHtc2pdqRQpQNISf9HlKMATmP_9f-tEiJgOHCpR7P2Locw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 397,\n    \"type\": \"space\",\n    \"attributes\": {\n        \"title\": \"MR - Dragonstone\",\n        \"floor_id\": 68,\n        \"bookable\": true,\n        \"capacity\": 3,\n        \"equipment\": {},\n        \"created_at\": \"2020-05-27 12:57:25.286535\",\n        \"updated_at\": \"2020-08-25 11:59:44.349382\",\n        \"space_type\": {\n            \"id\": 2,\n            \"title\": \"Meeting Rooms\"\n        }\n    }\n}"},{"id":"a55f0173-09cb-4c6a-99a3-d21d7252e6b2","name":"Space doesn't exist","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/spaces/:id","host":["https://api.spaceti.net/v2"],"path":["spaces",":id"],"variable":[{"key":"id","value":"404"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 09 Mar 2021 12:17:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"36"},{"key":"X-Amzn-Requestid","value":"16455e86-dbbf-447d-bbdc-3d3222444b82"},{"key":"X-Amz-Apigw-Id","value":"b60anG2mliAFekg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60476777-1833b6224e8f42c231115e25;Sampled=0"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 4d054711fa046225c14d8fd7485a4718.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"rYvNh7AVMXo0QyvI5RKmGng-f2EqyRv33wXjCUopmP9zcG2VzhNtDQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"Space does not exist.\"\n}"}],"_postman_id":"3527d24d-0ac0-4bc9-8f3f-086da615efb4"}],"id":"4d2f5d92-22aa-4a78-b61c-0cdaad57c95f","description":"<p>Space object describes the basic information about the space registered in the building in the Spaceti system. Meeting rooms, common spaces, workstations, parking spots are defined as spaces. You can distinguish the use case of the particular space using <code>space_type</code> attribute.</p>\n","_postman_id":"4d2f5d92-22aa-4a78-b61c-0cdaad57c95f"},{"name":"Deployments","item":[{"name":"List deployments","id":"a5887a79-ee81-4d55-bb48-984a078faf56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/deployments","description":"<p>This endpoint allows you to get the list of the registered deployments in your tenant. It also supports pagination.</p>\n","urlObject":{"path":["deployments"],"host":["https://api.spaceti.net/v2"],"query":[{"disabled":true,"description":{"content":"<p>Optional - Limits the number of returned records. Maximum is 500, default - 100.</p>\n","type":"text/plain"},"key":"page_size","value":"<integer>"}],"variable":[]}},"response":[{"id":"3b465a29-6028-4364-af96-3575611a9510","name":"List deployments","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/deployments?page_size=2","host":["https://api.spaceti.net/v2"],"path":["deployments"],"query":[{"key":"page_size","value":"2","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 09 Mar 2021 12:42:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1030"},{"key":"X-Amzn-Requestid","value":"74250136-4d6a-4f32-aee3-69a7a83e2e3b"},{"key":"X-Amz-Apigw-Id","value":"b64DjGN9liAFaSg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60476d49-3fd370905ac3e32a71345861;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 476ccb26a8fdc626a87cc406cd1197bf.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"oFjuLawmxxhmrfjtOtdSzyzwJvWGCxvdpSgBiHnfUhKrLZXn-4Y6Ig=="}],"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.spaceti.net/v2/deployments?page_size=2&page=2\",\n    \"previous\": null,\n    \"count\": 2,\n    \"records\": [\n        {\n            \"id\": 251,\n            \"type\": \"deployment\",\n            \"attributes\": {\n                \"title\": \"Stone SCH1L2V100N0002711\",\n                \"sn\": \"SCH1L2V100N0002711\",\n                \"mac\": \"00124B00186A45F8\",\n                \"manufacturer\": \"Spaceti\",\n                \"floor_id\": 68,\n                \"connected_to_spaces\": [\n                    437\n                ],\n                \"device_type\": 2,\n                \"last_event\": {\n                    \"occupancy\": 0,\n                    \"updated_at\": 1615290961\n                },\n                \"created_at\": \"2021-02-03 18:22:51.376784\",\n                \"updated_at\": \"2021-02-03 18:22:51.376784\",\n                \"geo_data\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        14.4591907281457,\n                        50.0793322475929\n                    ]\n                }\n            }\n        },\n        {\n            \"id\": 284,\n            \"type\": \"deployment\",\n            \"attributes\": {\n                \"title\": \"Occupancy Sensor\",\n                \"sn\": \"SCH1L2V100N0002746\",\n                \"mac\": \"00124B001955DE3D\",\n                \"manufacturer\": \"Spaceti\",\n                \"floor_id\": 68,\n                \"connected_to_spaces\": [\n                    437\n                ],\n                \"device_type\": 2,\n                \"last_event\": {\n                    \"occupancy\": 0,\n                    \"updated_at\": 1615293718\n                },\n                \"created_at\": \"2021-02-03 18:22:52.271163\",\n                \"updated_at\": \"2021-02-03 18:22:52.271163\",\n                \"geo_data\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        14.459177993273,\n                        50.079330005633\n                    ]\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"a5887a79-ee81-4d55-bb48-984a078faf56"},{"name":"Get deployment by id","id":"7339019a-a0ff-45f4-9a30-c95a0e5c88d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":"https://api.spaceti.net/v2/deployments/:id","description":"<p>Retrieve deployment information using deployment <code>id</code>.</p>\n","urlObject":{"path":["deployments",":id"],"host":["https://api.spaceti.net/v2"],"query":[],"variable":[{"id":"a556f34a-52f0-4e17-9955-3c50f9fd1c32","type":"any","value":"deployment_id","key":"id"}]}},"response":[{"id":"b7fd19e9-0a39-401d-8ef6-15e92ef3ec6b","name":"Get deployment by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/deployments/:id","host":["https://api.spaceti.net/v2"],"path":["deployments",":id"],"variable":[{"key":"id","value":"320"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 09 Mar 2021 12:44:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"524"},{"key":"X-Amzn-Requestid","value":"3d8d4242-b39b-40c5-8aba-bbe1891b2882"},{"key":"X-Amz-Apigw-Id","value":"b64VHHyjFiAFoKQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60476dba-2c6bdc955f76e4b004dd599e;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b5ae9e1069da8f622d80c8933408b655.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"BqnllX1pa1SeUdBHe_Hd_BIQzArKJ7YOk1kga_93LnXxAI_hYVGfdw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 320,\n    \"type\": \"deployment\",\n    \"attributes\": {\n        \"title\": \"Stone INTERNI00000000008\",\n        \"sn\": \"INTERNI00000000008\",\n        \"mac\": \"00124B00186B311B\",\n        \"manufacturer\": \"Spaceti\",\n        \"floor_id\": 68,\n        \"connected_to_spaces\": [\n            419,\n            422,\n            417,\n            420,\n            418,\n            421\n        ],\n        \"device_type\": 4,\n        \"last_event\": {\n            \"co2\": 485,\n            \"humidity\": 30.66,\n            \"updated_at\": 1615168932,\n            \"temperature\": 21.24\n        },\n        \"created_at\": \"2021-02-03 18:23:15.443285\",\n        \"updated_at\": \"2021-02-03 18:23:15.443285\",\n        \"geo_data\": {\n            \"type\": \"Point\",\n            \"coordinates\": [\n                14.4592739508773,\n                50.0791374168953\n            ]\n        }\n    }\n}"},{"id":"e603e157-028f-4dd4-ac08-88cddd7e34b5","name":"Deployment doesn't exist","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer YOUR_TOKEN","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/deployments/:id","host":["https://api.spaceti.net/v2"],"path":["deployments",":id"],"variable":[{"key":"id","value":"404"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.19.3"},{"key":"Date","value":"Tue, 09 Mar 2021 12:44:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"41"},{"key":"X-Amzn-Requestid","value":"e43f54cd-c361-4e44-8694-ed4ad8adbd1f"},{"key":"X-Amz-Apigw-Id","value":"b64XRFBqliAFp3g="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60476dc8-73b50b9e669274d368b9d762;Sampled=0"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 da174c5f22ad80cd2d344930ca7137f4.cloudfront.net (CloudFront), 1.1 vegur"},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amz-Cf-Id","value":"AVlRHBeR3uX-BUE0v276GNaxjkXVcjqs_tOShtUiVOvE06rAVQSxrQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"Deployment does not exist.\"\n}"}],"_postman_id":"7339019a-a0ff-45f4-9a30-c95a0e5c88d5"}],"id":"a388de0a-e159-4206-9bc0-72d74a18bd7c","description":"<p>The deployment object represents an installation of a device within a specific floor of your building. Any device can only have one active deployment.</p>\n<p>Deployments are connected to spaces as many-to-many relation to aggregate data on the space level from multiple devices and display it in analytics. Deployment attribute <code>connected_to_spaces</code> gives you a list of space ids to which this deployment/device is connected.</p>\n","_postman_id":"a388de0a-e159-4206-9bc0-72d74a18bd7c"},{"name":"Spaceti AI","item":[{"name":"Analytics AI Conversation","id":"d5d6d3db-8a25-4fd9-b0f9-09e8f03d6d22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.spaceti.net/v2/ai/converse/analytics","description":"<p>This endpoint enables real-time AI-driven interactions related to analytics. Integrate it into your product to allow users to query and receive actionable insights using natural language.</p>\n<p>Communication method is Socket.io (bi-directional real-time communication).</p>\n<p>Detailed documentation on authorization and data payload structure is available upon request.</p>\n","urlObject":{"path":["ai","converse","analytics"],"host":["https://api.spaceti.net/v2"],"query":[],"variable":[]}},"response":[],"_postman_id":"d5d6d3db-8a25-4fd9-b0f9-09e8f03d6d22"},{"name":"Bookings AI Conversation","id":"8fb58e25-d09d-49ca-9089-88151b676cf2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.spaceti.net/v2/ai/converse/bookings","description":"<p>This endpoint allows users to interact with Spaceti’s booking system via chat, enabling actions like checking availability or making reservations using conversational input.</p>\n<p>Communication method is Socket.io (bi-directional real-time communication).</p>\n<p>Detailed documentation on authorization and data payload structure is available upon request.</p>\n","urlObject":{"path":["ai","converse","bookings"],"host":["https://api.spaceti.net/v2"],"query":[],"variable":[]}},"response":[],"_postman_id":"8fb58e25-d09d-49ca-9089-88151b676cf2"},{"name":"List chats","id":"73b2b54e-aba6-4567-a465-f407bd37ba74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer JWT_TOKEN","type":"text"},{"key":"Account","value":"TENANT_ID","type":"text"}],"url":"https://api.spaceti.net/v2/ai/chats","description":"<p>This endpoint returns list of user's historical chats with AI.</p>\n","urlObject":{"path":["ai","chats"],"host":["https://api.spaceti.net/v2"],"query":[{"disabled":true,"description":{"content":"<p>Id of the building where chat was created</p>\n","type":"text/plain"},"key":"building_id","value":"<integer>"},{"disabled":true,"description":{"content":"<p>Optional - Specify <code>analytics_ai</code> or <code>bookings_ai</code> to get chats with specific context</p>\n","type":"text/plain"},"key":"agent","value":"<string>"},{"disabled":true,"description":{"content":"<p>Optional - Returns only chats with specified query text in messages.</p>\n","type":"text/plain"},"key":"query","value":"<string>"},{"disabled":true,"description":{"content":"<p>Optional - Limits the number of returned records. Maximum is 500, default - 100.</p>\n","type":"text/plain"},"key":"page_size","value":"<integer>"}],"variable":[]}},"response":[{"id":"4aad7939-a909-4d89-b3f3-3397eca1fb22","name":"List chats","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer JWT_TOKEN","type":"text"},{"key":"Account","value":"TENANT_ID","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/ai/chats?building_id=1","host":["https://api.spaceti.net/v2"],"path":["ai","chats"],"query":[{"key":"building_id","value":"<integer>","description":"Id of the building where chat was created","disabled":true},{"key":"agent","value":"<string>","description":"Optional - Specify `analytics_ai` or `bookings_ai` to get chats with specific context","disabled":true},{"key":"query","value":"<string>","description":"Optional - Returns only chats with specified query text in messages.","disabled":true},{"key":"page_size","value":"<integer>","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100.","disabled":true},{"key":"building_id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"82"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 09 Jun 2025 14:44:37 GMT"},{"key":"Nel","value":"{\"report_to\":\"heroku-nel\",\"response_headers\":[\"Via\"],\"max_age\":3600,\"success_fraction\":0.01,\"failure_fraction\":0.1}"},{"key":"Report-To","value":"{\"group\":\"heroku-nel\",\"endpoints\":[{\"url\":\"https://nel.heroku.com/reports?s=PeoW6627jWmdubdeIwk5H7e0%2BKRyIgx1VDrSbWybHQQ%3D\\u0026sid=812dcc77-0bd0-43b1-a5f1-b25750382959\\u0026ts=1749480277\"}],\"max_age\":3600}"},{"key":"Reporting-Endpoints","value":"heroku-nel=\"https://nel.heroku.com/reports?s=PeoW6627jWmdubdeIwk5H7e0%2BKRyIgx1VDrSbWybHQQ%3D&sid=812dcc77-0bd0-43b1-a5f1-b25750382959&ts=1749480277\""},{"key":"Server","value":"Heroku"},{"key":"Via","value":"1.1 0087f642e3b56028680f93cd202d0004.cloudfront.net (CloudFront), 1.1 heroku-router"},{"key":"X-Amz-Apigw-Id","value":"L5r1ZG4IliAEJlw="},{"key":"X-Amz-Cf-Id","value":"oINwvwGG9KPy3bcBOjrDNr8t7Wph2dMoG3VjlxR82CBkFj91Fyf9VQ=="},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amzn-Errortype","value":"AccessDeniedException"},{"key":"X-Amzn-Requestid","value":"23ebecf7-88f8-4572-94bf-2ee6fea2325d"},{"key":"X-Cache","value":"Error from cloudfront"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"next\": null,\n    \"records\": [\n        {\n            \"id\": \"13996d96-e4e2-4c78-8a97-3c346ea23f99\",\n            \"type\": \"chat\",\n            \"title\": \"Chat 1\",\n            \"description\": \"Description of chat 1\",\n            \"created_at\": 1722603902388,\n            \"updated_at\": 1722603922635,\n            \"user\": \"support@spaceti.com\",\n            \"building_id\": 1,\n            \"agent\": \"analytics_ai\"\n        },\n        {\n            \"id\": \"4909e081-7e0b-416b-984e-750adb641f7a\",\n            \"type\": \"chat\",\n            \"title\": \"Chat 2\",\n            \"description\": \"Description of chat 2.\",\n            \"created_at\": 1722504823609,\n            \"updated_at\": 1722504838165,\n            \"user\": \"support@spaceti.com\",\n            \"building_id\": 1,\n            \"agent\": \"analytics_ai\"\n        }\n    ]\n}"}],"_postman_id":"73b2b54e-aba6-4567-a465-f407bd37ba74"},{"name":"List messages","id":"b585bf57-324f-4d0a-bca0-fe2a0bc11c8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer JWT_TOKEN","type":"text"},{"key":"Account","value":"TENANT_ID","type":"text"}],"url":"https://api.spaceti.net/v2/ai/chats/{chat_id}/messages","description":"<p>This endpoint returns list of messages withing a historical chat.</p>\n","urlObject":{"path":["ai","chats","{chat_id}","messages"],"host":["https://api.spaceti.net/v2"],"query":[{"disabled":true,"description":{"content":"<p>Optional - Limits the number of returned records. Maximum is 500, default - 100.</p>\n","type":"text/plain"},"key":"page_size","value":"<integer>"}],"variable":[]}},"response":[{"id":"cf88585b-9508-405a-a9f1-1e815e93813a","name":"List messages","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer JWT_TOKEN","type":"text"},{"key":"Account","value":"TENANT_ID","type":"text"}],"url":{"raw":"https://api.spaceti.net/v2/ai/chats/13996d96-e4e2-4c78-8a97-3c346ea23f99/messages","host":["https://api.spaceti.net/v2"],"path":["ai","chats","13996d96-e4e2-4c78-8a97-3c346ea23f99","messages"],"query":[{"key":"building_id","value":"<integer>","description":"Id of the building where chat was created","disabled":true},{"key":"agent","value":"<string>","description":"Optional - Specify `analytics_ai` or `bookings_ai` to get chats with specific context","disabled":true},{"key":"query","value":"<string>","description":"Optional - Returns only chats with specified query text in messages.","disabled":true},{"key":"page_size","value":"<integer>","description":"Optional - Limits the number of returned records. Maximum is 500, default - 100.","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"82"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 09 Jun 2025 14:44:37 GMT"},{"key":"Nel","value":"{\"report_to\":\"heroku-nel\",\"response_headers\":[\"Via\"],\"max_age\":3600,\"success_fraction\":0.01,\"failure_fraction\":0.1}"},{"key":"Report-To","value":"{\"group\":\"heroku-nel\",\"endpoints\":[{\"url\":\"https://nel.heroku.com/reports?s=PeoW6627jWmdubdeIwk5H7e0%2BKRyIgx1VDrSbWybHQQ%3D\\u0026sid=812dcc77-0bd0-43b1-a5f1-b25750382959\\u0026ts=1749480277\"}],\"max_age\":3600}"},{"key":"Reporting-Endpoints","value":"heroku-nel=\"https://nel.heroku.com/reports?s=PeoW6627jWmdubdeIwk5H7e0%2BKRyIgx1VDrSbWybHQQ%3D&sid=812dcc77-0bd0-43b1-a5f1-b25750382959&ts=1749480277\""},{"key":"Server","value":"Heroku"},{"key":"Via","value":"1.1 0087f642e3b56028680f93cd202d0004.cloudfront.net (CloudFront), 1.1 heroku-router"},{"key":"X-Amz-Apigw-Id","value":"L5r1ZG4IliAEJlw="},{"key":"X-Amz-Cf-Id","value":"oINwvwGG9KPy3bcBOjrDNr8t7Wph2dMoG3VjlxR82CBkFj91Fyf9VQ=="},{"key":"X-Amz-Cf-Pop","value":"DUB2-C1"},{"key":"X-Amzn-Errortype","value":"AccessDeniedException"},{"key":"X-Amzn-Requestid","value":"23ebecf7-88f8-4572-94bf-2ee6fea2325d"},{"key":"X-Cache","value":"Error from cloudfront"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"next\": null,\n    \"records\": [\n        {\n            \"id\": \"3dd446e9-6fc5-46c1-ad15-b4712a05f4f4\",\n            \"type\": \"message\",\n            \"chat_id\": \"13996d96-e4e2-4c78-8a97-3c346ea23f99\",\n            \"message\": \"Hello, user!\",\n            \"created_at\": 1722603912184,\n            \"updated_at\": 1722603912184,\n            \"user\": \"support@spaceti.com\",\n            \"tokens\": 6207,\n            \"metadata\": {\n                \"scratchpad\": \"Internal notes of the AI\"\n            },\n            \"sender\": \"ai\",\n            \"building_id\": 1,\n            \"agent\": \"analytics_ai\"\n        },\n        {\n            \"id\": \"b7d312a4-7318-471c-bded-4ee7cc746150\",\n            \"type\": \"message\",\n            \"chat_id\": \"13996d96-e4e2-4c78-8a97-3c346ea23f99\",\n            \"message\": \"Hello, AI!\",\n            \"created_at\": 1722603902796,\n            \"updated_at\": 1722603902796,\n            \"user\": \"support@spaceti.com\",\n            \"tokens\": 1200,\n            \"metadata\": {},\n            \"sender\": \"user\",\n            \"building_id\": 1,\n            \"agent\": \"analytics_ai\"\n        }\n    ]\n}"}],"_postman_id":"b585bf57-324f-4d0a-bca0-fe2a0bc11c8c"}],"id":"f0ffbce6-4d94-4b37-9087-871d3e1ce912","description":"<p>This section provides an overview of the available API endpoints for integrating with <a href=\"https://spaceti.com/spaceti-ai\">Spaceti AI</a>, enabling powerful AI chat functionality within your application. These endpoints support real-time communication via Socket.io, as well as RESTful endpoints for managing historical chat data.</p>\n","_postman_id":"f0ffbce6-4d94-4b37-9087-871d3e1ce912"}],"event":[{"listen":"prerequest","script":{"id":"508dc725-afce-4a1c-a1d1-80b5e93ca6ac","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"259efb5d-eaf9-4869-af05-732796b241a5","type":"text/javascript","exec":[""]}}],"variable":[{"key":"url","value":"https://api.spaceti.net/v2"},{"key":"token","value":"YOUR_TOKEN"},{"key":"jwt_token","value":"JWT_TOKEN","type":"string"},{"key":"account","value":"TENANT_ID","type":"string"}]}