Media
Returns the album art for a song, or a generic image.
The station media unique ID
The requested album artwork
No content
Image not found; generic filler image.
GET /api/station/{station_id}/art/{media_id} HTTP/1.1
Host: listen.dovafm.xyz
Accept: */*
No content
Sets the album art for a track.
Media ID
Success
Access denied.
Record not found.
A generic exception has occurred.
POST /api/station/{station_id}/art/{media_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>"
}
Removes the album art for a track.
Media ID
Success
Access denied.
Record not found.
A generic exception has occurred.
DELETE /api/station/{station_id}/art/{media_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>"
}
List all current uploaded files.
Success
Access denied.
A generic exception has occurred.
GET /api/station/{station_id}/files HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"text": "Chet Porter - Aluko River",
"artist": "Chet Porter",
"title": "Aluko River",
"album": "Moving Castle",
"genre": "Rock",
"isrc": "US28E1600021",
"lyrics": "",
"links": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"id": 1,
"unique_id": "69b536afc7ebbf16457b8645",
"song_id": "9f33bbc912c19603e51be8e0987d076b",
"art": "https://picsum.photos/1200/1200",
"path": "test.mp3",
"mtime": 1609480800,
"uploaded_at": 1609480800,
"art_updated_at": 1609480800,
"length": 240,
"length_text": "4:00",
"custom_fields": [
"custom_field_value"
],
"extra_metadata": [],
"playlists": []
}
]
Upload a new file.
The destination path of the uploaded file.
relative/path/to/file.mp3
The base64-encoded contents of the file to upload.
Success
Access denied.
A generic exception has occurred.
POST /api/station/{station_id}/files HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 46
{
"path": "relative/path/to/file.mp3",
"file": ""
}
{
"text": "Chet Porter - Aluko River",
"artist": "Chet Porter",
"title": "Aluko River",
"album": "Moving Castle",
"genre": "Rock",
"isrc": "US28E1600021",
"lyrics": "",
"links": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"id": 1,
"unique_id": "69b536afc7ebbf16457b8645",
"song_id": "9f33bbc912c19603e51be8e0987d076b",
"art": "https://picsum.photos/1200/1200",
"path": "test.mp3",
"mtime": 1609480800,
"uploaded_at": 1609480800,
"art_updated_at": 1609480800,
"length": 240,
"length_text": "4:00",
"custom_fields": [
"custom_field_value"
],
"extra_metadata": [],
"playlists": []
}
Retrieve details for a single file.
Media ID
Success
Access denied.
Record not found.
A generic exception has occurred.
GET /api/station/{station_id}/file/{id} HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Accept: */*
{
"text": "Chet Porter - Aluko River",
"artist": "Chet Porter",
"title": "Aluko River",
"album": "Moving Castle",
"genre": "Rock",
"isrc": "US28E1600021",
"lyrics": "",
"links": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"id": 1,
"unique_id": "69b536afc7ebbf16457b8645",
"song_id": "9f33bbc912c19603e51be8e0987d076b",
"art": "https://picsum.photos/1200/1200",
"path": "test.mp3",
"mtime": 1609480800,
"uploaded_at": 1609480800,
"art_updated_at": 1609480800,
"length": 240,
"length_text": "4:00",
"custom_fields": [
"custom_field_value"
],
"extra_metadata": [],
"playlists": []
}
Update details of a single file.
Media ID
Success
Access denied.
Record not found.
A generic exception has occurred.
PUT /api/station/{station_id}/file/{id} HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 526
{
"text": "Chet Porter - Aluko River",
"artist": "Chet Porter",
"title": "Aluko River",
"album": "Moving Castle",
"genre": "Rock",
"isrc": "US28E1600021",
"lyrics": "",
"links": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"id": 1,
"unique_id": "69b536afc7ebbf16457b8645",
"song_id": "9f33bbc912c19603e51be8e0987d076b",
"art": "https://picsum.photos/1200/1200",
"path": "test.mp3",
"mtime": 1609480800,
"uploaded_at": 1609480800,
"art_updated_at": 1609480800,
"length": 240,
"length_text": "4:00",
"custom_fields": [
"custom_field_value"
],
"extra_metadata": [],
"playlists": []
}
{
"success": true,
"message": "Changes saved successfully.",
"formatted_message": "<b>Changes saved successfully.</b>"
}
Delete a single file.
Media ID
Success
Access denied.
Record not found.
A generic exception has occurred.
DELETE /api/station/{station_id}/file/{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>"
}
Last updated