Cognitive Systems App Cloud API
The AppCloud APIs are used by mobile applications to communicate with the Cognitive Systems Infrastructure.
https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/
https://docs.cognitivesystems.com/api/v1/
Request
Returns an array of all alerts associated with the network, but from the view of the job queue, including all the internal state of the job.
The data field of this response contains the client facing alert alert model. This endpoint is to assist with seeing the internals of the job queue.
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/universal-alert/status
https://docs.cognitivesystems.com/api/v1/universal-alert/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/app_cloud/universal-alert/status \
-H 'Authorization: YOUR_API_KEY_HERE'
200 - OK
{ "alerts": [ { … } ] }
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/universal-alert/{uuid}
https://docs.cognitivesystems.com/api/v1/universal-alert/{uuid}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/universal-alert/{uuid}' \
-H 'Authorization: YOUR_API_KEY_HERE'
OK
{ "uuid": "Unique alert identifier", "enabled": true, "target": "2021-12-13T16:00:00.000+00:00", "timezone": "America/New_York", "alert_name": "client decided label", "rrule": "DTSTART;TZID=America/New_York:20211201T163000\nRRULE:FREQ=WEEKLY;COUNT=30;INTERVAL=1;WKST=MO", "monitor": { "monitor_mode": "INACTIVITY", "duration_minutes": 10, "inactive_minutes": 2, "repeat_monitoring": true }, "meta": { "anything": "client controlled writable space" }, "analytics_tag": "caregiver_alert_trace", "no_motion_actions": [ { … } ], "motion_actions": [ { … } ], "unknown_actions": [], "error_actions": [], "id": 2255 }
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/universal-alert/{uuid}
https://docs.cognitivesystems.com/api/v1/universal-alert/{uuid}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/universal-alert/{uuid}' \
-H 'Authorization: YOUR_API_KEY_HERE'
201 - Created
{ "uuid": "a93a9c7d-ce5e-4ec7-be6f-8795c68c1930", "enabled": true, "alert_name": "Outing", "external_id": 14, "rrule": "DTSTART;TZID=America/New_York:20220318T200000\nRRULE:FREQ=WEEKLY;COUNT=1;INTERVAL=1;WKST=MO", "monitor": { "monitor_mode": "SIMPLE", "duration_minutes": 120 }, "meta": { "alert_type": "OUTING_PRESET" }, "analytics_tag": "outingsPreset", "no_motion_actions": [ { … }, { … } ], "motion_actions": [ { … }, { … } ], "unknown_actions": [ { … }, { … } ], "error_actions": [], "timezone": "America/New_York", "target": "3/18/2022, 8:00:00 PM - America/New_York", "window_end": 1647648000000 }