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/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" }
Bodyapplication/json
Contains the information that is being updated. The payload object can be empty.
Provides the humidity level that is being reported by the sensor.
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/sensors/ingress
- https://docs.cognitivesystems.com/api/v1/sensors/ingress
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- Adding a Hub or Sensor
- Sensor Humidity Change
- Sensor Temperature Change
- Vibration Occurrence
- Sensor or Hub Online
- Sensor or Hub Online / Offline
- Battery Level Changed
- Removing a Sensor or Hub
curl -i -X POST \
https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/sensors/ingress \
-H 'Content-Type: application/json' \
-d '{
"action": "DeviceAdded",
"payload": {
"userThingName": "USER_a0b1c2de3fa4567bc8901234567d8901"
},
"reqId": "0123abc456de7f890abc1de2f345a67b",
"thingName": "SENSOR_ABCDE01F23456A7B"
}'