Repository navigation
API tokens
API tokens let dashboards (Homepage, Homarr, Grafana…) and scripts call the REST API without a browser session.
Account → API tokens: Name, Access and Expires (30 days, 90 days, 1 year or never).
The token (rw_…) is shown only once – copy it right away. The server keeps only a SHA-256 hash.
| Access | Allows |
|---|---|
| Read only |
GET / HEAD only (403 for anything else) – enough for dashboards |
| Full access | everything, including starting checks, updates and upgrades on your machines |
No token can reach the account endpoints (/api/auth/* → 403): tokens cannot change the password, passkeys,
sessions or other tokens. Unknown, revoked and expired tokens get 401.
The list shows when and from which address each token was last used. Revoke a token there.
Send it with either header:
curl -H "Authorization: Bearer rw_…" https://watcher.example.com/api/status
curl -H "X-API-Key: rw_…" https://watcher.example.com/api/statusservices.yaml:
- Monitoring:
- ReleaseWatcher:
href: https://watcher.example.com
icon: mdi-update
widget:
type: customapi
url: https://watcher.example.com/api/status
refreshInterval: 60000
headers:
X-API-Key: rw_… # a read-only token
mappings:
- field: { repositories: updatesAvailable }
label: Updates
- field: { targets: packagesPending }
label: Package updates
- field: { targets: appUpdatesAvailable }
label: App updates
- field: { advisories: affecting }
label: VulnerabilitiesOther counters in GET /api/status: repositories.total / withErrors, targets.total / withErrors /
homeAssistantUpdatesAvailable, advisories.total.
Check all repositories now (full-access token):
curl -X POST -H "X-API-Key: $RW_TOKEN" https://watcher.example.com/api/check-allList repositories with an available update (needs jq):
curl -s -H "X-API-Key: $RW_TOKEN" https://watcher.example.com/api/repositories \
| jq -r '.[] | select(.updateAvailable) | "\(.fullName): \(.installedVersion) → \(.lastSeenTag)"'Field names: see
web/src/app/core/models.tsin the repository or inspect a response – the API uses camelCase andnullfor missing values.
Start a package upgrade of a machine and follow the run:
run=$(curl -s -X POST -H "X-API-Key: $RW_TOKEN" -H 'Content-Type: application/json' \
-d '{"backup": true}' https://watcher.example.com/api/targets/3/packages-upgrade | jq -r .id)
curl -s -H "X-API-Key: $RW_TOKEN" https://watcher.example.com/api/runs/$run | jq -r .status # running, succeeded or failedReleaseWatcher · Releases · Issues · MIT License · Something wrong in this wiki? Open an issue.
Getting started
Releases
Machines
App
Reference