DovaFM Documentation
WebsiteAdd Discord Bot
  • Welcome to the DovaFM Documentation!
  • DovaFM Stream
    • Embed Widgets
    • Public Pages
    • Radio & Playlist Streams
  • DovaFM API
    • Now Playing
    • Stations
      • General
      • Broadcasting
      • Song Requests
      • Service Control
      • History
      • HLS Streams
      • Listeners
      • Schedules
      • Media
      • Mount Points
      • Playlists
      • Podcasts
      • Queue
      • Remote Relays
      • SFTP Users
      • Streamers/DJs
      • Web Hooks
    • Administration
      • Custom Fields
      • Users
      • Relays
      • Roles
      • Settings
      • Stations
      • Storage Locations
      • CPU Status
    • Miscellaneous
      • Status
      • Time
  • DovaFM Discord Bot
    • Information
    • Commands
  • DovaFM Staff
    • Staff Members
Powered by GitBook
On this page
  1. DovaFM API
  2. Stations

Remote Relays

PreviousQueueNextSFTP Users

Last updated 7 months ago

get

Retrieve details for a single remote relay.

Authorizations
Path parameters
station_idany ofRequired
integer · int64Optional
or
string · stringOptional
idinteger · int64Required

Remote Relay ID

Responses
200
Success
application/json
Responseall of
403
Access denied.
application/json
404
Record not found.
application/json
500
A generic exception has occurred.
application/json
get
GET /api/station/{station_id}/remote/{id} HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "links": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "id": 1,
  "display_name": "128kbps MP3",
  "is_visible_on_public_pages": true,
  "type": "icecast",
  "is_editable": "true",
  "enable_autodj": false,
  "autodj_format": "mp3",
  "autodj_bitrate": 128,
  "custom_listen_url": "https://custom-listen-url.example.com/stream.mp3",
  "url": "https://custom-url.example.com",
  "mount": "/stream.mp3",
  "admin_password": "password",
  "source_port": 8000,
  "source_mount": "/",
  "source_username": "source",
  "source_password": "password",
  "is_public": false,
  "listeners_unique": 10,
  "listeners_total": 12
}
delete

Delete a single remote relay.

Authorizations
Path parameters
station_idany ofRequired
integer · int64Optional
or
string · stringOptional
idinteger · int64Required

Remote Relay ID

Responses
200
Success
application/json
403
Access denied.
application/json
404
Record not found.
application/json
500
A generic exception has occurred.
application/json
delete
DELETE /api/station/{station_id}/remote/{id} HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "message": "Changes saved successfully.",
  "formatted_message": "<b>Changes saved successfully.</b>"
}
  • GET/station/{station_id}/remotes
  • POST/station/{station_id}/remotes
  • GET/station/{station_id}/remote/{id}
  • PUT/station/{station_id}/remote/{id}
  • DELETE/station/{station_id}/remote/{id}
get

List all current remote relays.

Authorizations
Path parameters
station_idany ofRequired
integer · int64Optional
or
string · stringOptional
Responses
200
Success
application/json
Responseall of[]
403
Access denied.
application/json
404
Record not found.
application/json
500
A generic exception has occurred.
application/json
get
GET /api/station/{station_id}/remotes HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Accept: */*
[
  {
    "links": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "id": 1,
    "display_name": "128kbps MP3",
    "is_visible_on_public_pages": true,
    "type": "icecast",
    "is_editable": "true",
    "enable_autodj": false,
    "autodj_format": "mp3",
    "autodj_bitrate": 128,
    "custom_listen_url": "https://custom-listen-url.example.com/stream.mp3",
    "url": "https://custom-url.example.com",
    "mount": "/stream.mp3",
    "admin_password": "password",
    "source_port": 8000,
    "source_mount": "/",
    "source_username": "source",
    "source_password": "password",
    "is_public": false,
    "listeners_unique": 10,
    "listeners_total": 12
  }
]
post

Create a new remote relay.

Authorizations
Path parameters
station_idany ofRequired
integer · int64Optional
or
string · stringOptional
Body
all ofOptional
Responses
200
Success
application/json
Responseall of
403
Access denied.
application/json
404
Record not found.
application/json
500
A generic exception has occurred.
application/json
post
POST /api/station/{station_id}/remotes HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 532

{
  "links": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "id": 1,
  "display_name": "128kbps MP3",
  "is_visible_on_public_pages": true,
  "type": "icecast",
  "is_editable": "true",
  "enable_autodj": false,
  "autodj_format": "mp3",
  "autodj_bitrate": 128,
  "custom_listen_url": "https://custom-listen-url.example.com/stream.mp3",
  "url": "https://custom-url.example.com",
  "mount": "/stream.mp3",
  "admin_password": "password",
  "source_port": 8000,
  "source_mount": "/",
  "source_username": "source",
  "source_password": "password",
  "is_public": false,
  "listeners_unique": 10,
  "listeners_total": 12
}
{
  "links": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "id": 1,
  "display_name": "128kbps MP3",
  "is_visible_on_public_pages": true,
  "type": "icecast",
  "is_editable": "true",
  "enable_autodj": false,
  "autodj_format": "mp3",
  "autodj_bitrate": 128,
  "custom_listen_url": "https://custom-listen-url.example.com/stream.mp3",
  "url": "https://custom-url.example.com",
  "mount": "/stream.mp3",
  "admin_password": "password",
  "source_port": 8000,
  "source_mount": "/",
  "source_username": "source",
  "source_password": "password",
  "is_public": false,
  "listeners_unique": 10,
  "listeners_total": 12
}
put

Update details of a single remote relay.

Authorizations
Path parameters
station_idany ofRequired
integer · int64Optional
or
string · stringOptional
idinteger · int64Required

Remote Relay ID

Body
all ofOptional
Responses
200
Success
application/json
403
Access denied.
application/json
404
Record not found.
application/json
500
A generic exception has occurred.
application/json
put
PUT /api/station/{station_id}/remote/{id} HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 532

{
  "links": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "id": 1,
  "display_name": "128kbps MP3",
  "is_visible_on_public_pages": true,
  "type": "icecast",
  "is_editable": "true",
  "enable_autodj": false,
  "autodj_format": "mp3",
  "autodj_bitrate": 128,
  "custom_listen_url": "https://custom-listen-url.example.com/stream.mp3",
  "url": "https://custom-url.example.com",
  "mount": "/stream.mp3",
  "admin_password": "password",
  "source_port": 8000,
  "source_mount": "/",
  "source_username": "source",
  "source_password": "password",
  "is_public": false,
  "listeners_unique": 10,
  "listeners_total": 12
}
{
  "success": true,
  "message": "Changes saved successfully.",
  "formatted_message": "<b>Changes saved successfully.</b>"
}