API key status
GET
/auth/apikey
const url = 'https://demo.evcc.io/api/auth/apikey';const options = {method: 'GET', headers: {cookie: 'auth=<auth>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://demo.evcc.io/api/auth/apikey \ --cookie auth=<auth>Reports whether an API key has been generated. The key itself is only returned once at creation time (POST), never on subsequent reads.
Authorizations
Section titled “Authorizations”Responses
Section titled “ Responses ”Success
Media typeapplication/json
object
configured
boolean
Examplegenerated
{ "configured": true}Unauthorized - Login and try again
Media typetext/plain
string