Jingles

Endpoint /api/v2/jingles/
HTTP methods GET, POST
Authentication GET is public. Changes require a panel JWT.

List station jingles with server and optional remote=1, or create a jingle record. Use the media upload endpoint to upload audio.

Endpoint /api/v2/jingles/{id}/
HTTP methods GET, PUT, PATCH, DELETE
Authentication GET is public. Changes require a panel JWT.

Read and manage the jingle. Properties include server, author, title, album, genre, length, samplerate, and read-only path, categories, and audio_format.

Endpoint /api/v2/jingles/{id}/regions/
HTTP methods PUT
Authentication Panel JWT

Set playback or mix markers in seconds with playback_start_time, playback_end_time, mix_in_time, and mix_out_time. Returns the markers and effective_duration.

Endpoint /api/v2/jingles/{id}/waveform/
HTTP methods GET, POST
Authentication GET is public. Changes require a panel JWT.

Both methods return waveform bytes as application/octet-stream. POST regenerates the waveform first. If generation fails, it returns HTTP 400 with result: waveform_generation_failed.

Endpoint /api/v2/jingles/{id}/download/
HTTP methods GET
Authentication Public

Audio attachment for a local file, or redirect to a remote file.

Endpoint /api/v2/jingles/tree/
HTTP methods GET
Authentication Public

server selects the station. Returns {"tree":[...]} containing folders and jingle entries.

Endpoint /api/v2/jingles/add_dir/
HTTP methods POST
Authentication Panel JWT

Send server_id, parent_dir, new_dir. Returns the updated tree.

Endpoint /api/v2/jingles/remove/
HTTP methods POST
Authentication Panel JWT

Send server_id, file IDs in files and directory paths in directories. Returns the updated tree.

Endpoint /api/v2/jingles/remote_file/
HTTP methods POST
Authentication Panel JWT

Send server and remote audio URL path. Optional metadata includes author, title, album. Returns {} on success.

Categories, rules, and blocks

Endpoint /api/v2/jingle_categories/
HTTP methods GET, POST
Authentication GET is public. Changes require a panel JWT.

List or create categories. Send server, name, and optional directory_name.

Endpoint /api/v2/jingle_categories/{id}/
HTTP methods GET, PUT, PATCH, DELETE
Authentication GET is public. Changes require a panel JWT.

Read, update, or delete a category.

Endpoint /api/v2/jingle_schemes/
HTTP methods GET, POST
Authentication GET is public. Changes require a panel JWT.

List or create jingle rules. Fields include server, cat, jingle, random_category, playlist , hour, minute, break_track, active, stop_track, show_hist, is_ad, do_mix, mix_level, and time-window fields.

Endpoint /api/v2/jingle_schemes/{id}/
HTTP methods GET, PUT, PATCH, DELETE
Authentication GET is public. Changes require a panel JWT.

Read, update, or delete a rule.

Endpoint /api/v2/jingle_blocks/
HTTP methods GET, POST
Authentication GET is public. Changes require a panel JWT.

List or create blocks with server, title, optional jingle_in and jingle_out or their random categories, and optional playlist or track . Send repeat_days (weekday numbers mapped to arrays of hours), minute and optional IANA timezone. The read-only repeat_schedule shows saved slots.

Endpoint /api/v2/jingle_blocks/{id}/
HTTP methods GET, PUT, PATCH, DELETE
Authentication GET is public. Changes require a panel JWT.

Read, update, or delete a block.

Endpoint /api/v2/jingle_schemes/{id}/toggle/
HTTP methods POST
Authentication Panel JWT

Toggle a rule. Returns result (enabled) and is_currently_active (active in its date window).

Endpoint /api/v2/jingle_blocks/{id}/toggle/
HTTP methods POST
Authentication Panel JWT

Toggle a block. Returns result and is_currently_active.

Endpoint /api/v2/jingle_schemes/{id}/reorder/
HTTP methods POST
Authentication Panel JWT

Send server and zero-based position. Returns id and position.

Endpoint /api/v2/jingle_blocks/{id}/reorder/
HTTP methods POST
Authentication Panel JWT

Send server and zero-based position. Returns id and position.

Endpoint /api/v2/jingles/blocks/import_calendar/
HTTP methods POST
Authentication Calendar integration credential

Replaces all jingle blocks for the station. Each slot requires id, url, slot_number, weekday, hour, minute, and timezone. Optional fields are artist, title, album, length, samplerate, and is_ad. Requires the calendar integration’s Authorization credential, server_id and a slots array. Returns {} when accepted.

Connection intros

The intro management endpoints accept a panel token or API key. Filter collections with ?server=1.

Endpoint /api/v2/intros/files/
HTTP methods GET, POST
Authentication Panel JWT or API key

List intro files or upload multipart original_file with server and name. Optional booleans include enabled, is_default, and is_ad. The response includes uploaded_at, encoding_status, duration in seconds and stream_url.

Endpoint /api/v2/intros/files/{id}/
HTTP methods GET, PUT, PATCH, DELETE
Authentication Panel JWT or API key

Read, update, or delete a file.

Endpoint /api/v2/intros/files/{id}/set_default/
HTTP methods POST
Authentication Panel JWT or API key

Toggle this file as the station’s default. Selecting it clears any other file or group default. Returns the updated file object.

Endpoint /api/v2/intros/files/{id}/stream/
HTTP methods GET
Authentication Public

Stream the original audio file.

Endpoint /api/v2/intros/groups/
HTTP methods GET, POST
Authentication Panel JWT or API key

List groups or create one with server, name, and optional is_default. Returns groups with embedded files.

Endpoint /api/v2/intros/groups/{id}/
HTTP methods GET, PUT, PATCH, DELETE
Authentication Panel JWT or API key

Read, update, or delete a group.

Endpoint /api/v2/intros/groups/{id}/add_file/
HTTP methods POST
Authentication Panel JWT or API key

Send intro_file (file ID). Returns the group.

Endpoint /api/v2/intros/groups/{id}/remove_file/
HTTP methods POST
Authentication Panel JWT or API key

Send intro_file (file ID). Returns the group.

Endpoint /api/v2/intros/groups/{id}/set_default/
HTTP methods POST
Authentication Panel JWT or API key

Toggle this group as the station’s default. Selecting it clears any other file or group default. Returns the group.

Endpoint /api/v2/intros/slots/
HTTP methods GET, POST
Authentication Panel JWT or API key

List or create intro schedule slots.

Endpoint /api/v2/intros/slots/{id}/
HTTP methods GET, DELETE
Authentication Panel JWT or API key

Read or delete one slot. Use the schedule save endpoint to change a slot.

Endpoint /api/v2/intros/slots/save/
HTTP methods POST
Authentication Panel JWT or API key

Send server, a slots array, and optional timezone as a fallback when the station has no time zone to replace the station’s schedule atomically. Returns the saved slot array.

Each slot has time_start, time_end, days (seven characters, Monday first, 1 for an active day), and play_mode. Use single with intro_file or random with intro_group. enabled controls whether the slot is used.

POST /api/v2/intros/slots/save/
{
  "server": 1,
  "timezone": "Europe/Helsinki",
  "slots": [
    {
      "server": 1,
      "time_start": "08:00:00",
      "time_end": "12:00:00",
      "days": "1111100",
      "play_mode": "single",
      "intro_file": 4,
      "enabled": true
    }
  ]
}

Jingle rules and intro values

Field or parameter Meaning
cat hourly each hour, daily at a daily time, time_interval at minute intervals inside the time window, break after a track interval, request before a listener request, playlist before a playlist starts.
hour, minute, weekday Clock hour 0–23 and minute 0–59. Weekdays are 0 Monday through 6 Sunday, in calendar order. The keys of repeat_days use the same weekday numbering.
break_track, time_interval_minute Number of tracks between inserts for a track interval, or minutes between inserts for a timed interval, respectively. time_interval_start_ts and time_interval_end_ts are clock times for the window.
mix_level Mix level from 0 to 100 percent, applied when do_mix is enabled.
encoding_status pending when encoding is incomplete or has yet to start, ready when the encoded versions are ready.

The intro example uses station ID 1 and intro file ID 4. 08:00:00 and 12:00:00 are local start and end times, and 1111100 enables Monday through Friday. An intro slot may cross midnight when its end is earlier than its start.