HTTP Track Find


Request


GET https://api.flowthings.io/v0.1/<account_id>/track?filter=<filter>&start=<start>&limit=<limit>&sort=<sort>&order=<order>

Params

  • start - For the starting index of the search, default is 0
  • limit - To limit the maximum number of object returned in the response, default is 20
  • sort - For selecting a member field to sort the search results. Default is creationDate
  • order - For selecting the order of the sort, options are ‘asc’ (ascending) or ‘desc’ (descending). Default is desc
  • filter - For defining the parameters of the search, see the Flow Filter Language documentation for more details

Headers

NameDescription
Content-Typeapplication/json
X-Auth-TokenAuthentication Token

Example

GET https://api.flowthings.io/v0.1/<account_id>/track?filter=source==“/bob/homeappliances”&start=0&limit=10&sort=destination&order=asc

Response


HTTP Codes

CodeDescription
200Request Successful
400Bad Request
401Unauthorized
503Service Unavailable

Example

  {
    "head": {
      "status": 200,
      "ok": true,
      "errors": [],
      "messages": [ "Your request has been processed successfully." ]
    },
    "body": [{
      "id": "t53b1d1600cf27b75148de02e",
      "source": "/bob/homeapplicances",
      "destination": "/bob/kitchenstuff",
      "filter": "elems.room == 'kitchen'"
    },{
      "id": "t53b1d1600cf27b75148de0fa",
      "source": "/bob/homeapplicances",
      "destination": "/bob/security",
      "filter": "elems.device_type == 'camera'"
    }]
  }