Stations

A station ID is the server value used in channel , playlist , and schedule requests . Station list, detail, and first-station reads are public. Other station operations require a panel token with the appropriate permissions or a valid API key. Social streaming configuration uses a panel token.

Endpoint /api/v2/servers/
HTTP methods GET, POST
Authentication GET is public. Changes require a panel JWT or API key.

List stations or create a station with a unique title. Optional fields include genre, description, url_address, icq, minisite_display, default, and image upload image. Creation returns the station with HTTP 201.

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

Read, update, or delete a station. The default station and the last station cannot be deleted.

Endpoint /api/v2/servers/first/
HTTP methods GET
Authentication Public

First station in the panel.

Endpoint /api/v2/servers/{id}/countries/
HTTP methods GET
Authentication Panel JWT or API key

Country counts aggregated from live channels of the station.

Endpoint /api/v2/servers/{id}/start/
HTTP methods POST
Authentication Panel JWT or API key

Start the station. Returns result equal to started or running.

Endpoint /api/v2/servers/{id}/stop/
HTTP methods POST
Authentication Panel JWT or API key

Stop the station. Returns {"result":"stopped"}.

Endpoint /api/v2/servers/{id}/toggle_hls/
HTTP methods POST
Authentication Panel JWT or API key

Toggle HLS. Returns hls_enabled. HTTP 403 with detail: hls_not_allowed means HLS is unavailable.

Endpoint /api/v2/servers/ftp_folders/
HTTP methods GET
Authentication Panel JWT or API key

Sorted array of FTP directory paths.

Endpoint /api/v2/servers/jingle_folders/
HTTP methods GET
Authentication Panel JWT or API key

Pass server to get paths in the station’s jingle directory.

Endpoint /api/v2/servers/media_folders/
HTTP methods GET
Authentication Panel JWT or API key

Pass server to get paths in the station’s media directory.

Example

POST /api/v2/servers/1/start/
{
  "result": "started"
}

A station response includes runtime fields is_running, timezone_name, hls_enabled, ptt_enabled, ptt_available, calls_enabled, calls_available, and new_version_available.

Social streaming

Endpoint /api/v2/social-ingests/
HTTP methods GET, POST
Authentication Panel JWT

List destinations with ?server=1 or create one with server, platform, and server_url.

Endpoint /api/v2/social-ingests/{id}/
HTTP methods GET, PUT, PATCH, DELETE
Authentication Panel JWT

Read, update, or delete a destination. status reflects the engine state and is read-only.

Endpoint /api/v2/social-ingests/limits/
HTTP methods GET
Authentication Panel JWT

Account-wide allowance, including limit, used and enableable_ids. A null limit means unlimited.

Endpoint /api/v2/social-ingests/presets/
HTTP methods GET
Authentication Panel JWT

Returns presets for supported platforms, editable_fields with value ranges and field_defaults.

Use label for the panel label, stream_key for the platform’s stream key, and enabled to activate the destination. audio_only selects audio-only mode where supported. In video mode, asset is an uploaded background, cover_enabled and title_enabled control overlays, and base_color and title_color use hex colors. profile_overrides supplies permitted encoding overrides.

The platform values are youtube, rutube, vk, telegram, facebook, tiktok, instagram, twitch, mixcloud, ok, x, and custom. The response includes effective_profile (the resulting encoding settings), audio_only_supported, encoder_editable, and any uploaded asset’s dimensions and duration.

Social streaming statuses

status is disabled (destination disabled), offline (engine stopped), connecting (connection opening), live (broadcasting), degraded (broadcast is falling behind), error (processing or connection fault), or expired (platform ended the session). In the start example, 1 is the station ID.

Custom encoder parameters

Field or parameter Meaning
width, height Even video dimensions in pixels. Width is 640–1920 and height is 360–1920.
video_bitrate_k, video_maxrate_k Target and maximum video bitrate in kbps. Both accept 500–20000 and must match.
video_bufsize_k Encoder buffer size in kilobits, 500–40000. Its numeric value must be at least the maximum bitrate value.
keyframe_interval_ms Time between keyframes in milliseconds, 1000–4000.

Only destinations with platform: custom accept profile_overrides. The presets endpoint returns the available fields and ranges in editable_fields.