The WiFi Motion Core Cloud APIs facilitate the creation, configuration, and management of WiFi Motion networks via RESTful APIs. Additionally, it offers interfaces for accessing topologies, events, and motion data. The only difference is that the Core APIs do not specifically reference a user, and instead provide you with the ability to query the data from any network that is available in the environment.
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/network/{network_id}/motion/history/day
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/network/{network_id}/motion/history/day?bucket=15&buffer=6&timeTo=0' \
-H 'Authorization: YOUR_API_KEY_HERE'
[ { "type": "petMotion", "start": 1704067800, "stop": 1704068400 } ]
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/network/{network_id}/motion/history/calendar
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/network/{network_id}/motion/history/calendar?historyDays=30&timeTo=0' \
-H 'Authorization: YOUR_API_KEY_HERE'
[ { "timestamp": 1703980800, "isPetMotion": true, "isUnknownMotion": false } ]
Returns detailed motion blocks with location information and device data.
Notes regarding implementation:
Always use the id field as the primary device identifier.
If mac, location, or friendly_name fields are missing, default to the id value.
By implementing this optimization, you will reduce the response size by eliminating redundant data and restructures from the previous state_blocks endpoint.
https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/network/{network_id}/motion/history/data
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/mns/v3-x-x/network/{network_id}/motion/history/data?density_bucket=120&from=0&state_bucket=1800&states=3&to=0&verbose_format=false' \
-H 'Authorization: YOUR_API_KEY_HERE'
200 OK
Verbose set to False
Array of device information involved in the motion. Each device object in the devices array follows an optimized structure:
id field is always present and contains the primary device identifier.
mac, location, and friendly_name fields are only included when:
They have valid (non-null) values; AND
They differ from the id value.
petMotion
Indicates that low motion activity was detected.
unknownMotion
Indicates that motion was detected.
[ { "devices": [ … ], "start": 1704067800, "stop": 1704068400, "state": 2, "type": "petMotion", "motion_segments": [ … ] } ]