Authentication
Authenticate each request with an API key, sent as a bearer token in the Authorization header, and make a first call.
The Helementa API authenticates every request with an API key, sent as a bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Keep the key on your server: read it from an environment variable, and never ship it in a web page or a mobile app.
Make a first call
List the sensor types, the kinds of reading a device reports, each with its unit:
curl https://api.helementa.com/v1/sensor-types \
-H "Authorization: Bearer $HELEMENTA_API_KEY"
The route in full, from the API reference:
/v1/sensor-typesAuthorizationBearer token · headerrequiredAn API key.
AuthorizationBearer token · headerrequiredThe session of a signed-in user.
limitintegercursorstringResponse for status 200
dataobject[]requiredShow propertiesHide properties
objectidstring<uuid>requiredtagstringrequiredStable identifier devices report readings by.
namestringrequiredunitstringrequireddescriptionstring | nullrequirednext_cursorstring | nullrequiredResponse for status 401
typestringrequiredcodestringrequiredtitlestringrequiredstatusintegerrequireddetailstringResponse for status 403
typestringrequiredcodestringrequiredtitlestringrequiredstatusintegerrequireddetailstringResponse for status 422
typestringrequiredcodestringrequiredtitlestringrequiredstatusintegerrequireddetailstringWhen the API refuses the key
401 unauthenticated: the request carries no key, or one the API does not accept.403 forbidden: the key is valid, but it lacks the permission the route needs.
Both answers are problem documents. The API checks the key before it validates the request, so a refused call learns nothing about the route’s schema.