Login
POST
/auth/login
const url = 'https://demo.evcc.io/api/auth/login';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://demo.evcc.io/api/auth/login \ --header 'Content-Type: application/json' \ --data '{ "password": "example" }'Administrator login. Returns authorization cookie required for all protected endpoints.
Request Body required
Section titled “Request Body required ” Media type application/json
object
password
Admin password
string
Example generated
{ "password": "example"}Responses
Section titled “ Responses ”Success
Headers
Section titled “Headers ” Set-Cookie
string
Example
auth=ey...qY; Path=/; Expires=Fri, 04 Apr 2025 14:35:37 GMT; HttpOnly; SameSite=StrictThe authorization cookie
Invalid password provided