Submit a request

POST /api/v2/track_requests/
{
  "server_id": 1,
  "music_id": 40,
  "person": "Alex",
  "message": "For the evening show"
}

server_id is the station ID and music_id is the music library ID . person and message are optional strings. No login is required. The station applies its configured request intervals and moderation mode . HTTP 201 returns the saved request. HTTP 400 can report bad_params, ip_blocked, track_blocked, or field validation errors.

Read and moderate requests

Endpoint /api/v2/track_requests/
HTTP methods GET
Authentication Public

Filter by server. with_name=true and with_message=true are the defaults and exclude blank fields. Pass false to include blanks. Supply show_pending=1 to include unplayed requests.

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

Get a request, edit its fields, or delete it. Writes require panel authorization .

Endpoint /api/v2/track_requests/{id}/approve/
HTTP methods PUT
Authentication Panel JWT

Mark the request as moderated. Returns {}.

Endpoint /api/v2/track_requests/clear/
HTTP methods DELETE
Authentication Panel JWT

Pass ?server=1 to remove unplayed requests for the station.

The request object includes id, server, person, message, moderated, the nested all_music track, and dttm and played_at timestamps in Unix milliseconds. played_at is null until playback. Public GET responses omit src_ip.

Request filters and example IDs

The example sends server_id: 1 for station ID 1 and music_id: 40 for library track ID 40. For with_name and with_message, true excludes empty values and false includes them. Omit show_pending to exclude unplayed requests, or pass show_pending=1 to include them. Any nonempty query value for show_pending, including 0, includes unplayed records.