The App Cloud APIs expose the Core API endpoints, but with the addition of adding per user authentication and authorization. For example, you may choose to build with App Cloud APIs when developing for a mobile platform.
Cognitive Systems App Cloud API
Download OpenAPI description
Languages
Servers
Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud
https://docs.cognitivesystems.com/api/v1
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/sensors/history/{THING_NAME}
- https://docs.cognitivesystems.com/api/v1/sensors/history/{THING_NAME}
- 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/sensors/history/{THING_NAME}?from=0&to=0&latest=true'Response
application/json
{ "network_id": "1", "sensor_detections": [ { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … } ] }
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/sensors/ota/hub/recommended
- https://docs.cognitivesystems.com/api/v1/sensors/ota/hub/recommended
- 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/sensors/ota/hub/recommendedResponse
application/json
{ "version": "03.00.88.00" }
Request
Allows you to update your sensor hub via an Over the Air (OTA) push.
Below is a list of the different status codes that you can receive while performing an Over the air (OTA) Hub upgrade:
| Status Code | Description |
|---|---|
201 | The firmware will be triggered to deploy when the hub is online. |
400 | There is an issue with the API request or the hub does not exist. |
403 | The destination hub does not belong to the integration. |
404 | The thingName was not found in Third Reality's Cloud. |
505 | An invalid thingName or is an unsupported version. The firmware update failed to trigger. |
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/sensors/ota/{thingName}
- https://docs.cognitivesystems.com/api/v1/sensors/ota/{thingName}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/sensors/ota/{thingName}' \
-H 'Content-Type: application/json' \
-d '{
"otaVersion": "03.00.88.00"
}'Response
application/json
{ "thingName": "HUB_A1B2CDEF345A", "fromVersion": "03.00.62.00", "toVersion": "03.00.88.00" }