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

Mount Points

PreviousMediaNextPlaylists

Last updated 7 months ago

get

Get the intro track for a mount point.

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

Mount Point ID

Responses
200
Success
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}/mount/{id}/intro HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Accept: */*

No content

post

Update the intro track for a mount point.

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

Mount Point 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
post
POST /api/station/{station_id}/mount/{id}/intro 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>"
}
delete

Removes the intro track for a mount point.

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

Mount Point 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}/mount/{id}/intro 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

List all current mount points.

Authorizations
Path parameters
station_idany ofRequired
integer · int64Optional
or
string · stringOptional
Responses
200
Success
application/json
Responseall of[]
403
Access denied.
application/json
500
A generic exception has occurred.
application/json
get
GET /api/station/{station_id}/mounts HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Accept: */*
[
  {
    "id": 1,
    "name": "/radio.mp3",
    "display_name": "128kbps MP3",
    "is_visible_on_public_pages": true,
    "is_default": false,
    "is_public": false,
    "fallback_mount": "/error.mp3",
    "relay_url": "https://radio.example.com:8000/radio.mp3",
    "authhash": "",
    "max_listener_duration": 43200,
    "enable_autodj": true,
    "autodj_format": "mp3",
    "autodj_bitrate": 128,
    "custom_listen_url": "https://custom-listen-url.example.com/stream.mp3",
    "frontend_config": [],
    "listeners_unique": 10,
    "listeners_total": 12
  }
]
get

Retrieve details for a single mount point.

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

Streamer 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}/mount/{id} HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "id": 1,
  "name": "/radio.mp3",
  "display_name": "128kbps MP3",
  "is_visible_on_public_pages": true,
  "is_default": false,
  "is_public": false,
  "fallback_mount": "/error.mp3",
  "relay_url": "https://radio.example.com:8000/radio.mp3",
  "authhash": "",
  "max_listener_duration": 43200,
  "enable_autodj": true,
  "autodj_format": "mp3",
  "autodj_bitrate": 128,
  "custom_listen_url": "https://custom-listen-url.example.com/stream.mp3",
  "frontend_config": [],
  "listeners_unique": 10,
  "listeners_total": 12
}
delete

Delete a single mount point.

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

StationMount 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}/mount/{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}/mount/{id}/intro
  • POST/station/{station_id}/mount/{id}/intro
  • DELETE/station/{station_id}/mount/{id}/intro
  • GET/station/{station_id}/mounts
  • POST/station/{station_id}/mounts
  • GET/station/{station_id}/mount/{id}
  • PUT/station/{station_id}/mount/{id}
  • DELETE/station/{station_id}/mount/{id}
post

Create a new mount point.

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
500
A generic exception has occurred.
application/json
post
POST /api/station/{station_id}/mounts HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 456

{
  "id": 1,
  "name": "/radio.mp3",
  "display_name": "128kbps MP3",
  "is_visible_on_public_pages": true,
  "is_default": false,
  "is_public": false,
  "fallback_mount": "/error.mp3",
  "relay_url": "https://radio.example.com:8000/radio.mp3",
  "authhash": "",
  "max_listener_duration": 43200,
  "enable_autodj": true,
  "autodj_format": "mp3",
  "autodj_bitrate": 128,
  "custom_listen_url": "https://custom-listen-url.example.com/stream.mp3",
  "frontend_config": [],
  "listeners_unique": 10,
  "listeners_total": 12
}
{
  "id": 1,
  "name": "/radio.mp3",
  "display_name": "128kbps MP3",
  "is_visible_on_public_pages": true,
  "is_default": false,
  "is_public": false,
  "fallback_mount": "/error.mp3",
  "relay_url": "https://radio.example.com:8000/radio.mp3",
  "authhash": "",
  "max_listener_duration": 43200,
  "enable_autodj": true,
  "autodj_format": "mp3",
  "autodj_bitrate": 128,
  "custom_listen_url": "https://custom-listen-url.example.com/stream.mp3",
  "frontend_config": [],
  "listeners_unique": 10,
  "listeners_total": 12
}
put

Update details of a single mount point.

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

Streamer 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}/mount/{id} HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 456

{
  "id": 1,
  "name": "/radio.mp3",
  "display_name": "128kbps MP3",
  "is_visible_on_public_pages": true,
  "is_default": false,
  "is_public": false,
  "fallback_mount": "/error.mp3",
  "relay_url": "https://radio.example.com:8000/radio.mp3",
  "authhash": "",
  "max_listener_duration": 43200,
  "enable_autodj": true,
  "autodj_format": "mp3",
  "autodj_bitrate": 128,
  "custom_listen_url": "https://custom-listen-url.example.com/stream.mp3",
  "frontend_config": [],
  "listeners_unique": 10,
  "listeners_total": 12
}
{
  "success": true,
  "message": "Changes saved successfully.",
  "formatted_message": "<b>Changes saved successfully.</b>"
}