Search for Devices

Search for devices using any property defined on that device. Meshblu also supports MongoDB-style query operators: $in, $exists, etc.

curl -X POST \
-H 'Content-Type: application/json' \
-H 'meshblu_auth_uuid: 8109a97e-9c89-428f-806a-ef875ab6baf6' \
-H 'meshblu_auth_token: e110a34829db4bb4a307fef2bae7b501' \
https://meshblu.octoblu.com/search/devices -d '{"type":"drone"}'

X-MESHBLU-PROJECTION

X-MESHBLU-PROJECTION allows you to retrieve only the data you want.

Example: Retrieving only the uuid and name

curl -X POST \
-H 'Content-Type: application/json' \
-H 'meshblu_auth_uuid: 8109a97e-9c89-428f-806a-ef875ab6baf6' \
-H 'meshblu_auth_token: e110a34829db4bb4a307fef2bae7b501' \
-H 'X-MESHBLU-PROJECTION: {"uuid": true, "name": true} \
https://meshblu.octoblu.com/search/devices -d '{"type":"drone"}'
[
  {
    "uuid":"8d4dfa79-358b-464d-9e58-f3cd84d540c3",
    "name":"Drone 1"
  },
  {
    "uuid":"ff903a54-166e-447c-8981-5ffc8b2e82f9",
    "name":"Drone 2"
  }
]
Language
Credentials
Click Try It! to start a request and see the response here!