Access control
Get user access token
Returns user jwt based on the email. The jwt can be used in some endpoints of the API to obtain energy data from the user.
get/auth/{userId}/token
Request
- Base URLhttps://connect.clever.gy
- AuthAPI key in header clevergy-api-key
Path parameters
userIdstring required
Clevergy ID from the user (also available with email)
Response
User jwt
Example response
{
"jwt": "eyJhbGciOiJSJhdWQiOiJodHRwczopdC5nb29nbGVhcGlzLmNvbS9nb29nbGUuaWRlbnRpdHkuaWRlbnRpdHl0b29sa2l0LnYxLklkZW50aXRF0IjoxNzAzODU0NzY5LCJpc3MiOiJwdWJsaWMtZnJvbnQtYmFja0BjbGV2ZXJneS5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInN1YiI6InB1YmxpYy1mcm9udC1iYWNrQGNXA",
"userId": "U7Q02aMJm9VokGsNIZmID3BK25p3"
}Changes
No recorded changes to this operation across all 1 revision of this API.