Device ID
API Documentation for Device Climate Status
Last updated
API Documentation for Device Climate Status
Last updated
This documentation provides guidelines for developers to integrate our APIs into their applications or games. These APIs allow developers to retrieve users' device climate status and incentivize climate-friendly actions through in-app or in-game rewards.
The base URL for all API endpoints is:
https://api.umweltify.com
The GetToken
API is used to obtain an authorization token. This token is required for making requests to other APIs and expires in 24 hours.
appId
string
appSecret
string
The secret key associated with the app.
The token must be included as a Bearer token in the Authorization header for the ClimateStatus API request.
The ClimateStatus
API retrieves the climate status of a specific device. This status is returned as a number that corresponds to a predefined set of descriptions.
deviceID
string
The unique identifier of the device.
Authorization
Bearer token obtained from GetToken
0
The device climate status is not yet set.
1
Not Green: The device owner's home electricity source is not green.
2
Not Green: The device owner's station is not available.
3
Not Green: Generally not green.
4
Not Green: The device's carbon budget is used up.
5
Green: The device owner's home electricity source is green.
6
Green: The device owner's station carbon budget is available.
7
Green: Generally green.
8
Green: The device's carbon budget is still available.
9
Green: Certified green electricity source through EACs.
Ensure that the deviceID
provided is valid and registered in Umweltify.
This API requires a valid authorization token in the request headers.
Interpret the ClimateStatus
number using the description table above.
The ClimateStatus API requires a valid authorization token in the request headers.
400
Bad Request: Missing or invalid parameters.
401
Unauthorized: Invalid or expired authorization.
404
Not Found: Requested resource does not exist.
500
Internal Server Error: An unexpected error.
For additional support or inquiries, please submit a ticket in the developers' portal.
The unique identifier for the developer's app in our .
Developers can obtain their appId
and appSecret
by registering in our .
To register a device in Umweltify, users must first install the on their devices.