/api/v1/pingQuick connection check
Returns a lightweight pong response to confirm the local music service is running.
curl "http://127.0.0.1:45731/api/v1/ping"
{"status": "pong"}Core • API Reference
Connect to Unbound Music's local engine on port 45731, check status, listen to live events, and manage app preferences.
http://127.0.0.1:45731
Standard JSON (UTF-8)
Local only • No API key needed
| Method | Endpoint | What it does |
|---|---|---|
| GET | /api/v1/ping | Quick connection check |
| GET | /api/v1/health | Readiness check |
| GET | /api/v1/status | App & library status |
| SSE | /api/v1/events | Live progress & discovery stream |
| GET | /api/v1/settings | Read or save app settings |
| POST | /api/v1/sleeptimer/start | Start bedtime sleep timer |
| GET | /api/v1/updater/check | Check for app updates |
/api/v1/pingReturns a lightweight pong response to confirm the local music service is running.
curl "http://127.0.0.1:45731/api/v1/ping"
{"status": "pong"}/api/v1/healthConfirms both the local API server and storage are ready to accept requests.
curl "http://127.0.0.1:45731/api/v1/health"
{"healthy": true, "port": 45731}/api/v1/statusReturns version, uptime, and how many songs are currently indexed in your library.
curl "http://127.0.0.1:45731/api/v1/status"
{
"status": "online",
"version": "2.0.0",
"uptime_seconds": 3482,
"database": {
"track_count": 1420
}
}/api/v1/eventsStreams real-time updates such as download progress and nearby peer discovery.
Parameters
Accept(header, string)required— text/event-streamcurl -N -H "Accept: text/event-stream" "http://127.0.0.1:45731/api/v1/events"
event: download_progress
data: {"track_id": "5NV6RFTu24j", "percent": 64.5}/api/v1/settingsGET reads saved playback quality and audio toggles; POST updates them.
curl "http://127.0.0.1:45731/api/v1/settings"
{
"streaming_quality": "HIGH",
"sponsorblock_enabled": true,
"normalize_volume": false
}/api/v1/sleeptimer/startFades music down gently after the chosen minutes or at the end of the current song.
curl -X POST -H "Content-Type: application/json" -d '{"minutes": 30, "end_of_song": false}' "http://127.0.0.1:45731/api/v1/sleeptimer/start"{"active": true, "remaining_ms": 1800000}/api/v1/updater/checkChecks whether a newer release of Unbound Music is available.
curl "http://127.0.0.1:45731/api/v1/updater/check"
{"has_update": false, "current_version": "2.0.0", "latest_version": "2.0.0"}