{"info":{"_postman_id":"d03d773f-7f26-48f6-9120-8874b70355e0","name":"Tiki CMS IoT APis","description":"<html><head></head><body><p>These are endpoint you will use to pair you physical device with your Tiki Instance</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14572798","collectionId":"d03d773f-7f26-48f6-9120-8874b70355e0","publishedId":"2sAXxWa9Wi","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-10-19T01:20:49.000Z"},"item":[{"name":"TIki IOT set IO State","id":"a1987524-e290-4a90-a162-f5a23d7ca2df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-AUTH-TOKEN","value":"8a77b9df52e74ff497abe90bea892a48","type":"text"},{"key":"X-APP-UUID","value":"90da0adc-88fb-4bfc-84a9-7cf505b2fed9","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"api_action\": \"set_io_state\",\r\n    \"io_ids\": {\r\n        \"25\" : 100\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/tikiwikitrunk/tiki-ajax_services.php?controller=iotapps&action=iot_api_middleware","urlObject":{"path":["tiki-ajax_services.php"],"host":["http://localhost/tikiwikitrunk"],"query":[{"key":"controller","value":"iotapps"},{"key":"action","value":"iot_api_middleware"}],"variable":[]}},"response":[{"id":"a2e2e95d-c9d3-4af0-ac67-97575f76bb41","name":"TIki IOT set IO State","originalRequest":{"method":"POST","header":[{"key":"X-AUTH-TOKEN","value":"8a77b9df52e74ff497abe90bea892a48","type":"text"},{"key":"X-APP-UUID","value":"90da0adc-88fb-4bfc-84a9-7cf505b2fed9","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"api_action\": \"set_io_state\",\r\n    \"io_ids\": {\r\n        \"LED#BAD\" : \"ON\",\r\n        \"LED#OK\" : \"OFF\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost/tikiwikitrunk/tiki-ajax_services.php?controller=iotapps&action=iot_api_middleware","host":["http://localhost/tikiwikitrunk"],"path":["tiki-ajax_services.php"],"query":[{"key":"controller","value":"iotapps"},{"key":"action","value":"iot_api_middleware"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 21 Dec 2024 11:00:37 GMT"},{"key":"Server","value":"Apache/2.4.62 (Win64) OpenSSL/3.0.13 PHP/8.1.10"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Pragma","value":"no-cache"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Content-Length","value":"103"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"LED#BAD\": {\n        \"state\": \"ON\",\n        \"hardware_sync_done\": true\n    },\n    \"LED#OK\": {\n        \"state\": \"OFF\",\n        \"hardware_sync_done\": true\n    }\n}"}],"_postman_id":"a1987524-e290-4a90-a162-f5a23d7ca2df"},{"name":"Tiki IoT Record Data","id":"cdf99e57-e9d0-40ee-aa22-0bae52f654d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-AUTH-TOKEN","value":"8a77b9df52e74ff497abe90bea892a48","type":"text"},{"key":"X-APP-UUID","value":"90da0adc-88fb-4bfc-84a9-7cf505b2fed9","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"api_action\": \"record_data\",\r\n    \"payload\": {\r\n        \"homeairqualitymonitorTemperature\": \"103.55\",\r\n        \"homeairqualitymonitorAirQuality\": 48\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/tikiwikitrunk/tiki-ajax_services.php?controller=iotapps&action=iot_api_middleware","description":"<p>ℹ️ Always use <a href=\"https://doc.tiki.org/Permanent-Names\">fields permName</a> in the payload to refer to tracker fields eg. <code>gaslevelKitchenName</code></p>\n","urlObject":{"path":["tiki-ajax_services.php"],"host":["http://localhost/tikiwikitrunk"],"query":[{"key":"controller","value":"iotapps"},{"key":"action","value":"iot_api_middleware"}],"variable":[]}},"response":[{"id":"6e6ce0db-246e-42a3-89d7-bdc7165aef61","name":"Tiki IoT Record Data","originalRequest":{"method":"POST","header":[{"key":"X-AUTH-TOKEN","value":"8a77b9df52e74ff497abe90bea892a48","type":"text"},{"key":"X-APP-UUID","value":"90da0adc-88fb-4bfc-84a9-7cf505b2fed9","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"api_action\": \"record_data\",\r\n    \"payload\": {\r\n        \"gaslevelKitchenName\": \"Kichen#1\",\r\n        \"gaslevelGasLevel\": 78\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost/tikiwikitrunk/tiki-ajax_services.php?controller=iotapps&action=iot_api_middleware","host":["http://localhost/tikiwikitrunk"],"path":["tiki-ajax_services.php"],"query":[{"key":"controller","value":"iotapps"},{"key":"action","value":"iot_api_middleware"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 21 Dec 2024 11:06:11 GMT"},{"key":"Server","value":"Apache/2.4.62 (Win64) OpenSSL/3.0.13 PHP/8.1.10"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Pragma","value":"no-cache"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Content-Length","value":"43"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"trackerId\": 3,\n    \"itemId\": \"9\"\n}"}],"_postman_id":"cdf99e57-e9d0-40ee-aa22-0bae52f654d7"},{"name":"TIki IOT get IO State","id":"91331be2-39b7-4a10-8738-9cecf65c1ad8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-AUTH-TOKEN","value":"8a77b9df52e74ff497abe90bea892a48","type":"text"},{"key":"X-APP-UUID","value":"90da0adc-88fb-4bfc-84a9-7cf505b2fed9","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"api_action\": \"get_io_state\",\r\n    \"io_ids\": [\r\n        \"50\",\r\n        \"45\",\r\n        \"101LED\",\r\n        \"102LED\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/tikiwikitrunk/tiki-ajax_services.php?controller=iotapps&action=iot_api_middleware","urlObject":{"path":["tiki-ajax_services.php"],"host":["http://localhost/tikiwikitrunk"],"query":[{"key":"controller","value":"iotapps"},{"key":"action","value":"iot_api_middleware"}],"variable":[]}},"response":[{"id":"a59eb195-ff44-4ae7-b6b3-90e719e70c9e","name":"TIki IOT get IO State","originalRequest":{"method":"POST","header":[{"key":"X-AUTH-TOKEN","value":"8a77b9df52e74ff497abe90bea892a48","type":"text"},{"key":"X-APP-UUID","value":"90da0adc-88fb-4bfc-84a9-7cf505b2fed9","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"api_action\": \"get_io_state\",\r\n    \"io_ids\": [\r\n        \"LED#OK\",\r\n        \"LED#BAD\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost/tikiwikitrunk/tiki-ajax_services.php?controller=iotapps&action=iot_api_middleware","host":["http://localhost/tikiwikitrunk"],"path":["tiki-ajax_services.php"],"query":[{"key":"controller","value":"iotapps"},{"key":"action","value":"iot_api_middleware"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 21 Dec 2024 11:16:18 GMT"},{"key":"Server","value":"Apache/2.4.62 (Win64) OpenSSL/3.0.13 PHP/8.1.10"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Pragma","value":"no-cache"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Content-Length","value":"31"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"LED#OK\": \"OFF\",\n    \"LED#BAD\": \"ON\"\n}"}],"_postman_id":"91331be2-39b7-4a10-8738-9cecf65c1ad8"}],"event":[{"listen":"prerequest","script":{"id":"4f47bf28-7b9b-41b0-9272-88d89dbff7de","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"900aab8a-0fa1-4ca6-9d3a-60389370ea83","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"Auth-token","value":"8a77b9df52e74ff497abe90bea892a48"},{"key":"App-Uuid","value":"90da0adc-88fb-4bfc-84a9-7cf505b2fed9"},{"key":"Base-URL","value":"http://localhost/tikiwikitrunk"}]}