{ "info": { "name": "Data integration", "_postman_id": "18bc4962-7296-1c9b-ba95-abbc71c5f2c1", "description": "", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Query", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "key {{access_key}}" } ], "body": {}, "url": { "raw": "https://data.{{domain_id}}.thethings.industries/{{api_id}}/api/v2/query", "protocol": "https", "host": [ "data", "{{domain_id}}", "thethings", "industries" ], "path": [ "{{api_id}}", "api", "v2", "query" ] }, "description": "Query messages from all devices.\nDefault to 1h.\nadd ?last=t to change query time frame" }, "response": [ { "id": "545602c8-326c-4b72-b385-1be954d53dad", "name": "Query 1h", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "key {{access_key}}" } ], "body": {}, "url": { "raw": "https://data.{{domain_id}}.thethings.industries/{{api_id}}/api/v2/query", "protocol": "https", "host": [ "data", "{{domain_id}}", "thethings", "industries" ], "path": [ "{{api_id}}", "api", "v2", "query" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "json", "_postman_previewtype": "text", "header": [ { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Type", "value": "application/json", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Thu, 22 Feb 2018 09:45:58 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Server", "value": "nginx", "name": "Server", "description": "A name for the server" } ], "cookie": [], "responseTime": 302, "body": "" }, { "id": "15316d31-4dde-4406-8dff-3f83c9239660", "name": "Query 30s", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "key {{access_key}}" } ], "body": {}, "url": { "raw": "https://data.{{domain_id}}.thethings.industries/{{api_id}}/api/v2/query?last=30s", "protocol": "https", "host": [ "data", "{{domain_id}}", "thethings", "industries" ], "path": [ "{{api_id}}", "api", "v2", "query" ], "query": [ { "key": "last", "value": "30s", "equals": true } ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "json", "_postman_previewtype": "text", "header": [ { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Type", "value": "application/json", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Thu, 22 Feb 2018 09:45:58 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Server", "value": "nginx", "name": "Server", "description": "A name for the server" } ], "cookie": [], "responseTime": 302, "body": "" }, { "id": "11d14cdf-77de-47b4-8a1e-7442d66b7559", "name": "Query 2d", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "key {{access_key}}" } ], "body": {}, "url": { "raw": "https://data.{{domain_id}}.thethings.industries/{{api_id}}/api/v2/query?last=2d", "protocol": "https", "host": [ "data", "{{domain_id}}", "thethings", "industries" ], "path": [ "{{api_id}}", "api", "v2", "query" ], "query": [ { "key": "last", "value": "2d", "equals": true } ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "json", "_postman_previewtype": "text", "header": [ { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Type", "value": "application/json", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Thu, 22 Feb 2018 09:45:58 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Server", "value": "nginx", "name": "Server", "description": "A name for the server" } ], "cookie": [], "responseTime": 302, "body": "" } ] }, { "name": "Query devices", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "key {{access_key}}" } ], "body": {}, "url": { "raw": "https://data.{{domain_id}}.thethings.industries/{{api_id}}/api/v2/devices", "protocol": "https", "host": [ "data", "{{domain_id}}", "thethings", "industries" ], "path": [ "{{api_id}}", "api", "v2", "devices" ] }, "description": "Querry all devices that still have record in the database " }, "response": [] }, { "name": "Query a device", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "key {{access_key}}" } ], "body": {}, "url": { "raw": "https://data.{{domain_id}}.thethings.industries/{{api_id}}/api/v2/query/{{device_id}}", "protocol": "https", "host": [ "data", "{{domain_id}}", "thethings", "industries" ], "path": [ "{{api_id}}", "api", "v2", "query", "{{device_id}}" ] }, "description": "Query messages sent by once device.\nUse ?last= to change the timeframe" }, "response": [] } ] }