Welcome to the Green Brain API. Below is a list of the currently available routes for obtaining data.
Routes require authentication. To authenticate a token is required. To get a token, login using the login route.
To make a request to a route that requires authentication add an authorization bearer header with your token to your request:
Authorization: Bearer your-token-here
Route | Authentication | |
---|---|---|
/v3/auth/login | No | More |
/v3/bootstrap | Yes | More |
/v3/sensor-groups/{sensorGroupId}/latest | Yes | More |
/v3/sensor-groups/{sensorGroupId}/readings?date=2018-01-01 | Yes | More |
/v3/station-types | Yes | More |
/v3/sensor-group-types | Yes | More |
/v3/sensor-group-models | Yes | More |
/v3/sensor-types | Yes | More |