Station and account settings
Use a panel JWT
with the appropriate settings permissions. server_settings
and stereo_tool_settings
refer to configuration records. Read the list with ?server=1 to obtain the record ID for updates.
HTTP methods GET
Authentication Public
Installation and account feature flags, including HLS, podcast, website, text-to-speech, realtime, and demo availability.
HTTP methods GET, PUT
Authentication Panel JWT
GET returns the global key/value settings and account email. PUT accepts statistic_password, language, and email, returning HTTP 204.
HTTP methods GET
Authentication Public
Branding with logo, copyright, copyright_mode, and optional favicon.
HTTP methods GET, PUT, DELETE
Authentication Panel JWT
Read branded URL settings, set branded_url, or clear the branded hostname. Successful PUT returns HTTP 204.
HTTP methods GET
Authentication Panel JWT
List station configurations.
HTTP methods GET, PUT, PATCH
Authentication Panel JWT
Read or update AutoDJ settings. Returns the configuration.
HTTP methods POST
Authentication Panel JWT
Request a full library rescan. Returns the station configuration with rescan timestamps. Use POST /api/v2/music/rescan_files/
to request reanalysis of selected files.
HTTP methods GET
Authentication Panel JWT
List station Stereo Tool configurations.
HTTP methods GET, PUT, PATCH
Authentication Panel JWT
Read or update stereotool_enabled, stereotool_key and the uploaded stereotool_settings file. Response includes stereotool_status, stereotool_status_debug and master_stereo_tool_enabled.
crossfade_track and crossfade_dj are decimal seconds from 0 to 60 for track and live transitions. Other settings include crossfade_mode, autodj_resume_mode, random_mode, same_artist_interval, normalize_volume, trim_silence and its thresholds, timezone_name, ptt_enabled
, output_meta_format, static_metadata, and request_moderation
. server, library_rescan_requested_at, and library_rescan_completed_at are read-only.
PATCH /api/v2/server_settings/3/
{
"crossfade_track": "3.25",
"crossfade_dj": "1.50"
}
API keys and FTP
HTTP methods GET, POST
Authentication Panel JWT
List metadata or create a key with name and optional expiry_date (ISO 8601). The full key is returned only at creation, with HTTP 201.
HTTP methods GET, PUT, PATCH, DELETE
Authentication Panel JWT
Read, update, or remove a key. Records include created, name, revoked, is_currently_active and expiry_date.
HTTP methods GET, POST
Authentication Panel JWT or API key
List or create FTP users with username, password, and homedir relative to the account’s FTP root. The response omits the password.
HTTP methods GET, PUT, PATCH, DELETE
Authentication Panel JWT or API key
Use the full username returned by creation . The login name cannot be changed.
HTTP methods POST
Authentication Panel JWT
Send username and new password. Returns {} on success.
Stream access and blocking
HTTP methods GET, POST
Authentication Panel JWT
List or create stream access records. Send server, a unique access token for the listener, and optionally username and active. The record includes access token, created, and last_connection_ts, plus listen_links for authenticated streaming channels.
HTTP methods GET, PUT, PATCH, DELETE
Authentication Panel JWT
Manage a stream access record. These records are used by the channel’s Icecast authentication callback .
HTTP methods GET, POST
Authentication Panel JWT or API key
List or create station geoblocking settings. Use ?server=1 to retrieve settings for a station, initializing its configuration if necessary.
HTTP methods GET, PUT, PATCH, DELETE
Authentication Panel JWT or API key
Read or manage the configuration. Include block_mode: 0 disables, 1 blocks listed countries, 2 allows listed countries. Updates accept countries (country codes) and channels (channel IDs
mapped to booleans). Send the complete country list when changing settings.
HTTP methods GET, POST
Authentication Panel JWT or API key
List or add IP entries. Create with server and ip_or_mask containing an IP address or CIDR.
HTTP methods GET, PUT, PATCH, DELETE
Authentication Panel JWT or API key
Read, update, or delete an IP entry.
Setting values
| Field or parameter | Meaning |
|---|---|
crossfade_mode |
1 fade out the first track and fade in the next, 2 fade out with next track at normal volume, 3 first track ends at normal volume and next fades in, 4 mix without fades. |
autodj_resume_mode |
0 continue where playback stopped, 1 resume with the next track. |
random_mode |
1 choose by score, 2 choose from a shuffled permutation. |
request_moderation |
0 allow all, 1 premoderate, 2 registered-users-only setting. |
stereotool_status |
0 off, 1 on, 2 turning on, 3 turning off, 4 error. stereotool_status_debug provides diagnostic text. |
status in URL branding |
0 inactive, 1 configuring, 2 active, 3 DNS error, 4 Apache error, 5 TLS error, 6 nginx error, 7 panel error, 8 stream error, 9 other error. ip is the target host address and branded_url is the configured hostname. |
In the PATCH example, 3 is the settings record ID. The strings "3.25" and "1.50" set transitions of 3.25 seconds between tracks and 1.50 seconds between DJ sources, respectively.
Audio, metadata, and library settings
trim_silenceenables silence trimming.trim_silence_dbandtrim_silence_end_dbset start and end thresholds for tracks.jingle_trim_silence_start_dbandjingle_trim_silence_end_dbset the thresholds for jingles. All thresholds are −80 to −20 dB and default to −40 dB.dc_blocker_enabledenables the DC filter.eq_enabledenables the equalizer. Fieldsm_eq_frequency_0throughm_eq_frequency_9set gain in dB for 31, 62, 125, 250, 500, 1000, 2000, 4000, 8000, and 16000 Hz, respectively. Zero means no gain adjustment.normalize_volumenormalizes track levels.emergency_restartrestarts a stopped station.jingles_play_all_collidingplays all jingles scheduled for the same time.djname_in_metadataincludes the presenter’s name.dj_captionis the fallback for a live connection without metadata.playlist_meta_emptyis the fallback when the playlist is empty.use_static_metadataenables the fixedstatic_metadatatext.output_meta_formatformats stream metadata, andrequest_meta_formatformats metadata for requested tracks.playlist_creating_dirscreates playlists from folders.jingles_create_dirscreates jingle groups from folders.set_missing_tagsfills missing tags, andsearch_cover_artenables cover lookup.media_serverselects the library station by ID andplaylist_files_per_pagecontrols the playlist page size in the panel.request_notification_emailreceives request notifications.tunein_station_id,tunein_partner_id, andtunein_partner_keyare the TuneIn station ID, partner ID, and partner key.timezone_nameis an IANA zone.timezones_availablelists the zones offered by the panel.
library_rescan_state is never when there is no previous rescan, scheduled when a request awaits completion, and completed when the latest request has finished. library_rescan_requested_at and library_rescan_completed_at are UTC timestamps. library_rescan_next_allowed_at is the next time a rescan can be requested.