Download database backup
GET
/db/backup
const url = 'https://demo.evcc.io/api/db/backup';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/db/backup \ --cookie auth=<auth>Downloads the SQLite database as a backup file. Session users must supply the admin password in the X-Admin-Password header. API key holders via Bearer token are exempt.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Admin-Password
Admin password
string
Admin password (required for session auth, not needed for API key)
Responses
Section titled “Responses”SQLite database file
Media typeapplication/octet-stream
string format: binary
Unauthorized - Login and try again
Media typetext/plain
string