Skip to main content

Get config

GET/api/config

Returns the settings the dashboard shows: servers, Proxmox endpoints, alert thresholds, wake targets and notification channels. Secrets are never returned. A credential appears as a set flag, and a notification field that is not a secret appears with its value. When the server has a token, the response carries a revision to send back with a save.

Authorizations

Authorizationstringheader

The token you start the server with: homebutler serve --token <token>, or web.token in the config file. Send it as Authorization: Bearer <token>. When the server has a token, every /api/ route except the CORS preflight requires it, reads included.

Response

200 · application/json

The current settings.

pathstringrequired

The config file in use, or (defaults) when there is none.

serversobject[]required

The servers.

proxmoxobject[]required

The Proxmox endpoints.

alertsobjectrequired

The alert thresholds in percent.

wakeobject[]required

The wake targets.

notifyobject[]required

Every channel homebutler has, configured or not.

editablebooleanrequired

true when the server has a token, which is what enables the save routes.

transport_warningstringrequired

A warning when the token travels over plain HTTP on a public address. Empty otherwise.

revisionstring

Send this back with a save. Present only when editable is true and the config file exists. It is valid until the file changes or the server restarts.