The Core APIs facilitate the creation, configuration, and management of WiFi Motion networks via RESTful APIs. It offers interfaces for accessing topologies, events, motion data, and more.
Cognitive Systems App Core API
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/topology
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/topology?offline=false' \
-H 'Authorization: YOUR_API_KEY_HERE'OK
Device list
The term Friendly Name, also known as friendly_name, refers to a name that is easy for the end user to understand. For example, if referring to a location, it is easier for an end user to refer to a location as "Bedroom" rather than the mac address of the device that is located in the bedroom.
Link fixed vs mobile detection state
Enum"UNKNOWN""MOBILE""STATIC_NEW""STATIC"
Keys are leaf macs, value is: "" - automatic sounding "1" - sounding forced enabled "0" - disabled
Device interconnect
Response
application/json
{ "ts": 0.1, "devices": [ { … } ], "links": [ { … } ] }
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/edit
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/edit?annihilate=true' \
-H 'Authorization: YOUR_API_KEY_HERE'- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/status
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/status?key=string' \
-H 'Authorization: YOUR_API_KEY_HERE'Response
application/json
{ "leafblower": { "property1": { … }, "property2": { … } }, "network_id": 0, "shard_id": "string", "radars": { "property1": { … }, "property2": { … } }, "ts": 0.1, "last_motion": 0, "motion_tripped": 0, "startup": true, "version": { "property1": "string", "property2": "string" }, "health": { "nodes": { … }, "network": 0 }, "capabilities": [ "string" ], "coverage": { "property1": [ … ], "property2": [ … ] }, "guardian_id": "string", "dhcp": { "property1": { … }, "property2": { … } }, "motion_enabled": 0, "armed": 0, "paused": true, "motion_suppressed": 0 }