# Authentication API
POST
/api/login
Login a user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
string | The email of the user. |
| |
password | string | The password of the user. |
|
POST
/api/logout
Logout the current user.
POST
/api/register
Register a new user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
name | string | The name of the user. |
|
string | The email of the user. |
| |
password | string | The password for the new account. |
|
password_confirmation | string | The password confirmation for the new account. |
|
POST
/api/password/forgot
Send a password reset link.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
string | The email of the user. |
|
POST
/api/login/{driver}/callback
Handle OAuth provider callback for login.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
driver | string | The OAuth provider (e.g., google, facebook). |
|
profile | object | The profile data returned by the OAuth provider. |
|
POST
/api/password/reset
Reset the user password.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
string | The email of the user. |
| |
token | string | The password reset token. |
|
password | string | The new password. |
|
password_confirmation | string | The confirmation of the new password. |
|
GET
/api/email/verify/{id}
Verify if the user email address is verified.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the user. |
|
# Users API
Admin endpoints
GET
/api/admin/users
Retrieve a list of users.
Example Response [+]
POST
/api/admin/users
Create a new user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
string | The email of the user. |
| |
name | string | The name of the user. |
|
password | string | The password of the user. |
|
available_disk_space | integer | The available disk space for the user (in MB). | |
avatar | file|url | The avatar image of the user. | |
roles | json | The roles to be assigned to the user. | |
permissions | json | The permissions to be assigned to the user. |
Example Response [+]
GET
/api/admin/users/{user}
Retrieve a specific user by its ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
user | integer | The unique identifier for the user. |
Example Response [+]
PUT
/api/admin/users/{user}
Update a specific user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the user. |
|
string | The new email of the user. |
| |
name | string | The new name of the user. |
|
password | string | The new password of the user. |
|
available_disk_space | integer | The available disk space for the user (in MB). | |
avatar | file|url | The avatar image of the user. | |
roles | json | The roles to be assigned to the user. | |
permissions | json | The permissions to be assigned to the user. |
DELETE
/api/admin/users/{user}
Delete a specific user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
user | integer | The unique identifier for the user. |
Example Response [+]
User endpoints
GET
/api/user
Get the account information of the current logged user.
Example Response [+]
POST
/api/add-friend
Send a friend request to a user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
user_id | integer | The ID of the user to send a friend request to. |
|
Example Response [+]
POST
/api/user/accept-friendship
Accept a friendship request.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
friend_id | integer | The unique identifier for the friend. |
|
Example Response [+]
POST
/api/user/cancel-subscription
Cancel the current subscription.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
subscription_id | integer | The unique identifier for the subscription. |
|
password | integer | The password on the current user. |
|
POST
/api/user/checkout-with-paypal
Checkout with PayPal.
POST
/api/user/checkout-with-stripe
Checkout with Stripe.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
payment_method | string | The payment method identifier from Stripe. |
|
POST
/api/user/create-intent
Create a payment intent with Stripe.
POST
/api/user/end-play/{play_id}
End a play session.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
play_id | integer | The unique identifier for the play session. |
|
GET
/api/user/follows/{type}
Get the follows of a specific type for the current user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
type | string | The type of content to retrieve follows for. possible values are: artist, podcast |
|
GET
/api/user/likes/{type}
Get the likes of a specific type for the current user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
type | string | The type of content to retrieve likes for. possible values are: song, album, playlist, radio-station |
|
Example Response [+]
GET
/api/user/friends
Get the friends of the current user.
Example Response [+]
GET
/api/user/notifications
Get the notifications for the current user.
Example Response [+]
POST
/api/user/playing
Update the current playing status for the user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
playlist | integer | The unique identifier for the playlist. | |
genre_id | integer | The unique identifier for the genre. | |
radio | boolean | Whether the user is playing radio. | |
playlist_index | integer | The index of the current song in the playlist. |
GET
/api/user/playlists
Get the playlists for the current user.
Example Response [+]
POST
/api/user/playlists
Create a new playlist for the current user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
title | string | The name of the playlist. |
|
public | boolean | If the playlist should be public. |
|
cover | file|url | The cover image of the playlist. |
DELETE
/api/user/playlists/{playlist}
Delete a specific playlist.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
playlist | integer | The unique identifier for the playlist. |
|
PUT
/api/user/playlists/{playlist}
Update a specific playlist.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
title | string | The name of the playlist. |
|
public | boolean | If the playlist should be public. |
|
cover | file|url | The cover image of the playlist. |
GET
/api/user/purchases
Get the purchases for the current user.
Example Response [+]
GET
/api/user/recent-plays
Get the recent plays for the current user.
Example Response [+]
POST
/api/user/register-play
Register a play for the current user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
song_id | integer | The unique identifier for the song. |
|
Example Response [+]
POST
/api/user/reject-friendship
Reject a friendship request.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
notification_id | integer | The unique identifier for the friend request notification. |
|
Example Response [+]
POST
/api/user/add-to-cart
Add item to the user's cart.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
cart | array | The updated cart items. |
|
POST
/api/user/remove-from-cart
Remove an item from the user's cart.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
item_id | integer | The unique identifier for the item. |
|
POST
/api/user/request-artist-account
Request an artist account.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
firstname | string | The first name of the user. |
|
lastname | string | The last name of the user. |
|
displayname | string | The display name of the user. |
|
country | string | The country of the user. |
|
string | The email of the user. |
| |
phone | string | The phone number of the user. |
|
address | string | The address of the user. |
|
spotify_link | string | The spotify_link of the artist. | |
youtube_link | string | The youtube_link of the artist. | |
soundcloud_link | string | The soundcloud_link of the artist. | |
itunes_link | string | The itunes_link of the artist. |
POST
/api/user/save-account-settings
Save the account settings of a user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
name | string | The name of the user. |
|
lang | string | The language preference of the user. | |
hide_activity | boolean | The activity visibility preference of the user. | |
currentPassword | string | The current password of the user. |
|
newPassword | string | The new password of the user. |
|
GET
/api/user/songs
Retrieve a list of songs for the current user.
Example Response [+]
POST
/api/user/songs
Add a new song for the current user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
title | string | The title of the song. |
|
artist | string | The artist of the song. |
|
album | string | The album of the song. | |
duration | string | The duration of the song. | |
genre | string | The genre of the song. | |
release_date | date | The release date of the song. |
DELETE
/api/user/songs/{id}
Delete a specific song.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the song. |
|
Example Response [+]
POST
/api/follow
Follow a user, an artist or a podcast
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
type | string | The type of entity to follow. |
|
id | integer | The unique identifier of the entity to follow. |
|
origin | string | The origin of the follow request. |
|
POST
/api/unfollow
Unfollow an entity.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
type | string | The type of entity to unfollow (user|artist|podcast). |
|
id | integer | The unique identifier of the entity being unfollowed. |
|
origin | string | The origin of the unfollow request. |
|
POST
/api/like
Like content.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
type | string | The type of content being liked (song|album|playlist). |
|
id | integer | The unique identifier of the content being liked. |
|
origin | string | The origin of the like request. |
|
POST
/api/dislike
Dislike content.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
type | string | The type of content being disliked (song|album|playlist). |
|
id | integer | The unique identifier of the content being disliked. |
|
origin | string | The origin of the dislike request. |
|
# Roles API
Admin endpoints
Admin Role Routes
POST
/api/admin/roles
Create a new role.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
name | string | The name of the role. |
|
category | string | The category of the role (admin, artist or user). |
|
current_permissions | array | The permissions assigned to the role. |
|
GET
/api/admin/roles
Get a list of all roles with their permissions.
Example Response [+]
POST
/api/admin/roles/sync
Sync the roles and permissions for all users.
PUT
/api/admin/roles/{role}
Update a specific role.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
role | int | The ID of the role. |
|
category | string | The category of the role (admin, artist or user). | |
name | string | The name of the role. |
|
current_permissions | array | The permissions assigned to the role. |
|
DELETE
/api/admin/roles/{role}
Delete a specific role.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
role | int | The ID of the role. |
|
POST
/api/admin/save-roles
Save roles settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
roles | array | The roles to save. |
|
POST
/api/admin/approve-user-artist-request
Approve the user's artist account request.
POST
/api/admin/reject-user-artist-request
Reject the user's artist account request.
POST
/api/admin/reset-roles
Reset all roles to their default permissions.
# Playlists API
Admin endpoints
GET
/api/admin/playlists
Retrieve a list of playlists.
Example Response [+]
POST
/api/admin/playlists
Create a new playlist.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
title | string | The title of the playlist. |
|
cover | string|UploadFile | The URL of the cover image or an uploaded file for the playlist. |
|
user_id | integer | The ID of the user creating the playlist. |
|
created_by | string | The role of the person creating the playlist (admin or user). |
|
public | boolean | Whether the playlist is public or private. |
|
GET
/api/playlists/{id}
Retrieve a specific playlist by its ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the playlist. |
|
Example Response [+]
PUT
/api/admin/playlists/{id}
Update a specific playlist.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the playlist. |
|
title | string | The new title of the playlist. |
|
cover | UploadFile | The new uploaded file for the playlist cover image. | |
public | boolean | The new visibility status of the playlist. |
DELETE
/api/admin/playlists/{id}
Delete a specific playlist.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the playlist. |
|
POST
/api/admin/add-songs-to-playlists
Add songs to a playlist.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
playlists | array | The array of IDs of the playlists to add songs to. |
|
songs | array | An array of song IDs to add to the playlist. |
|
POST
/api/attach-to-playlist/{playlist}
Attach a song to a playlist.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
playlist | integer | The ID of the playlist. |
|
song_id | integer | The ID of the song to attach to the playlist. |
|
POST
/api/detach-from-playlist/{playlist}
Detach a song from a playlist.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
playlist | integer | The ID of the playlist. |
|
song_id | integer | The ID of the song to detach from the playlist. |
|
POST
/api/make-playlist-private/{playlist}
Make a playlist private.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
playlist | integer | The unique identifier for the playlist. |
|
POST
/api/make-playlist-public/{playlist}
Make a playlist public.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
playlist | integer | The unique identifier for the playlist. |
|
GET
/api/match-playlists
Match playlists based on criteria.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
query | string | The search query to match playlists against. |
Example Response [+]
GET
/api/user/playlists
Retrieve playlists for the current user.
Example Response [+]
POST
/api/user/playlists
Create a new playlist for the current user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
title | string | The title of the playlist. |
|
public | boolean | Whether the playlist is public or private. |
DELETE
/api/user/playlists/{id}
Delete a playlist for the current user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the playlist. |
|
PUT
/api/user/playlists/{id}
Update a playlist for the current user.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the playlist. |
|
title | string | The new title of the playlist. |
|
cover | string | The new URL of the cover image for the playlist. | |
public | boolean | The new visibility status of the playlist. |
# Songs API
Admin endpoints
POST
/api/upload
Upload a new song.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
song | file | The song file to upload. |
|
uploaded_by | string | The uploader role, either admin or user. |
|
GET
/api/songs/{song}
Get a specific song by its ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
song | integer | The unique identifier for the song. |
|
Example Response [+]
POST
/api/songs
Store a new song.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
title | string | The title of the song. |
|
source | file|url | The source of the song, this could be the URL of the song, the file or the youtube video ID. |
|
cover | file|url | The cover image for the song. |
|
source_format | string | The format of the song source. |
|
artists | array | A list of artist IDs. |
|
genres | array | A list of genre IDs. |
|
prices | json | Pricing/licences information for the song. | |
duration | integer | The duration of the song in seconds. | |
uploaded_by | string | The role of the uploader who uploaded the song. |
|
user_id | integer | The ID of the user who uploaded the song. |
|
artist_id | integer | The ID of the artist. |
|
public | boolean | Whether the song is public or private. |
|
hls | boolean | Whether the song uses HLS streaming. | |
isProduct | boolean | Whether the song is a product. | |
isExclusive | boolean | Whether the song is exclusive. | |
isExplicit | boolean | Whether the song is explicit. | |
album_id | integer | The ID of the album. |
|
playSample | boolean | Whether to play a sample of the song. | |
saveFileFromURL | boolean | Whether to save the file from a URL. | |
sampleSeconds | integer | The number of seconds for the song sample. |
|
PUT
/api/songs/{song}
Update an existing song.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
song | integer | The unique identifier for the song. |
|
title | string | The title of the song. |
|
source | string | The source of the song. |
|
cover | file|url | The cover image for the song. | |
source_format | string | The format of the song source. |
|
artists | array | A list of artist IDs. |
|
genres | array | A list of genre IDs. |
|
prices | json | Pricing information for the song. | |
duration | integer | The duration of the song in seconds. | |
user_id | integer | The ID of the user who uploaded the song. |
|
artist_id | integer | The ID of the artist. |
|
public | boolean | Whether the song is public or private. |
|
hls | boolean | Whether the song uses HLS streaming. | |
isProduct | boolean | Whether the song is a product. | |
isExclusive | boolean | Whether the song is exclusive. | |
isExplicit | boolean | Whether the song is explicit. | |
album_id | integer | The ID of the album. |
|
playSample | boolean | Whether to play a sample of the song. | |
saveFileFromURL | boolean | Whether to save the file from a URL. | |
sampleSeconds | integer | The number of seconds for the song sample. |
|
DELETE
/api/songs/{song}
Delete a specific song.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
song | integer | The unique identifier for the song. |
|
GET
/api/download-song/{id}
Download a specific song.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the song. |
|
GET
/api/more-from-genre/{genre_id}
Get more songs from a genre.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
genre_id | integer | The unique identifier for the genre. |
|
GET
/api/match-songs
Match songs based on criteria.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
query | string | The query to match with. |
|
GET
/api/artist/match-songs/{keyword}
Match songs by artist and keyword.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
keyword | string | The keyword to search for matching songs. |
|
POST
/api/make-song-private/{id}
Make a song private.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the song. |
|
POST
/api/make-song-public/{id}
Make a song public.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the song. |
|
GET
/api/next-songs
Get the next songs in the queue.
Example Response [+]
GET
/api/user/songs
Get songs for the current user.
Example Response [+]
POST
/api/import-youtube-video
Import a YouTube video as a song.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
url | string | The URL of the YouTube video. |
|
POST
/api/delete-songs
Delete multiple songs.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
song_ids | array | An array of song IDs to delete. |
|
GET
/api/stream/{type}/{id}
Stream content by type and ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
type | string | The type of content to stream song or episode. |
|
id | integer | The unique identifier for the content. |
|
Example Response [+]
# Albums API
Admin endpoints
POST
/api/admin/albums
Create a new album.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
title | string | The title of the album. |
|
release_date | date | The release date of the album. |
|
cover | file|url | The cover image of the album. |
|
created_by | string | The creator of the album. |
|
isProduct | boolean | Whether the album is a product. | |
isExclusive | boolean | Whether the album is exclusive. | |
isExplicit | boolean | Whether the album is explicit. | |
spotify_link | string | The Spotify link of the album. | |
youtube_link | string | The YouTube link of the album. | |
soundcloud_link | string | The SoundCloud link of the album. | |
itunes_link | string | The iTunes link of the album. | |
deezer_link | string | The Deezer link of the album. | |
songs | string | The songs array as string. | |
artists | string | The artists array as a string. |
GET
/api/admin/albums
Retrieve a list of albums.
Example Response [+]
GET
/api/admin/albums/{album}
Retrieve a specific album by its ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the album. |
|
Example Response [+]
PUT
/api/admin/albums/{album}
Update a specific album.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the album. |
|
title | string | The new title of the album. |
|
release_date | date | The new release date of the album. |
|
cover | file|url | The new cover image of the album. |
|
created_by | string | The new creator of the album. |
|
isProduct | boolean | The new product status of the album. | |
isExclusive | boolean | The new exclusive status of the album. | |
isExplicit | boolean | The new explicit status of the album. | |
spotify_link | string | The new Spotify link of the album. | |
youtube_link | string | The new YouTube link of the album. | |
soundcloud_link | string | The new SoundCloud link of the album. | |
itunes_link | string | The new iTunes link of the album. | |
deezer_link | string | The new Deezer link of the album. | |
songs | array | The new songs in the album. | |
artists | array | The new artists of the album. |
DELETE
/api/admin/albums/{album}
Delete a specific album.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the album. |
|
GET
/api/more-from-album/{id}
Get more songs from an album.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the album. |
|
origin | string | The origin source of the album. |
|
# Radio Stations API
Admin endpoints
Admin Radio Station Routes
POST
/api/admin/radio-stations
Store a new radio station.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
name | string | Name of the radio station. |
|
streamEndpoint | string | Stream endpoint of the radio station. |
|
serverType | string | Type of server. |
|
serverURL | string | Server URL. | |
serverID | string | Server ID. | |
serverMount | string | Server mount point. | |
serverUsername | string | Server username. | |
serverPassword | string | Server password. | |
statsEndpoint | string | Endpoint for statistics. | |
statsSource | string | Source of statistics. |
|
highlight | boolean | Highlight status. | |
proxy | boolean | To use your server as a proxy. | |
interval | integer | Interval for statistics update. |
|
cover | file|url | Cover image for the radio station. | |
genres | array | Genres associated with the radio station. |
PUT
/api/admin/radio-stations/{radio_station}
Update an existing radio station.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
radio_station | integer | ID of the radio station. |
|
name | string | Name of the radio station. |
|
streamEndpoint | string | Stream endpoint of the radio station. |
|
serverType | string | Type of server. |
|
serverURL | string | Server URL. | |
serverID | string | Server ID. | |
serverMount | string | Server mount point. | |
serverUsername | string | Server username. | |
serverPassword | string | Server password. | |
statsEndpoint | string | Endpoint for statistics. | |
statsSource | string | Source of statistics. |
|
highlight | boolean | Highlight status. | |
proxy | boolean | Proxy status. | |
interval | integer | Interval for statistics update. |
|
cover | file|url | Cover image for the radio station. | |
genres | array | Genres associated with the radio station. |
PUT
/api/admin/radio-stations/{radio_station}
Update an existing radio station.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
radio_station | integer | ID of the radio station. |
|
name | string | Name of the radio station. |
|
streamEndpoint | string | Stream endpoint of the radio station. |
|
serverType | string | Type of server. |
|
serverURL | string | Server URL. | |
serverID | string | Server ID. | |
serverMount | string | Server mount point. | |
serverUsername | string | Server username. | |
serverPassword | string | Server password. | |
statsEndpoint | string | Endpoint for statistics. | |
statsSource | string | Source of statistics. | |
highlight | boolean | Highlight status. | |
proxy | boolean | Proxy status. | |
interval | integer | Interval for statistics update. | |
cover | file|url | Cover image for the radio station. | |
genres | array | Genres associated with the radio station. |
GET
/api/admin/radio-stations
Get a list of radio stations.
Example Response [+]
DELETE
/api/admin/radio-stations/{radio_station}
Delete a radio station.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
radio_station | integer | ID of the radio station. |
|
User endpoints
User Radio Station Routes
GET
/api/get-stream-metadata-pr/{station_id}
Get stream metadata using proxy.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
station_id | integer | ID of the radio station. |
|
Example Response [+]
GET
/api/get-stream-metadata-sr/{station_id}
Get stream metadata from server.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
station_id | integer | ID of the radio station. |
|
Example Response [+]
GET
/api/highlights
Get highlighted radio stations.
Example Response [+]
GET
/api/match-radio-stations
Match radio stations.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
query | string | Search query. |
Example Response [+]
GET
/api/radio-station/{radioStation}
Get a specific radio station by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
radioStation | integer | ID of the radio station. |
|
Example Response [+]
# Podcasts API
Admin endpoints
POST
/api/podcasts
Store a new podcast.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
title | string | The title of the podcast. |
|
description | string | A brief description of the podcast. | |
genres | array | The genre IDs of the podcast. |
|
artist_id | integer | The artist ID of the podcast. | |
cover | file|url | The cover image of the podcast. |
|
PUT
/api/podcasts/{podcast}
Update an existing podcast.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
podcast | integer | The unique identifier for the podcast. |
|
title | string | The title of the podcast. |
|
description | string | A brief description of the podcast. | |
genres | array | The genre IDs of the podcast. | |
artist_id | integer | The artist ID of the podcast. | |
cover | file|url | The cover image of the podcast. |
GET
/api/podcasts/{podcast}
Get a specific podcast by its ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
podcast | integer | The unique identifier for the podcast. |
|
Example Response [+]
DELETE
/api/podcasts/{podcast}
Delete a specific podcast.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
podcast | integer | The unique identifier for the podcast. |
|
GET
/api/artist/podcasts
Get current artist's podcasts.
Example Response [+]
GET
/api/podcast-genre-podcasts/{podcastGenre}
Get podcasts by podcast genre.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
podcastGenre | integer | The unique identifier for the podcast genre. |
|
GET
/api/podcast-genre/{podcastGenre}
Show a specific podcast genre.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
podcastGenre | integer | The unique identifier for the podcast genre. |
|
Example Response [+]
GET
/api/podcast-genres
List all podcast genres.
Example Response [+]
GET
/api/match-podcasts
Match podcasts based on criteria.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
query | string | The search query to match podcasts against. |
Example Response [+]
Episode Routes
POST
/api/episodes
Store a new episode.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
title | string | The title of the episode. |
|
description | string | A brief description of the episode. | |
podcast_id | integer | The ID of the podcast the episode belongs to. |
|
duration | string | The duration of the episode. | |
source_format | string | The format of the episode source. |
|
uploaded_by | string | The uploader role, either admin or user. |
|
source | file|url | The source of the song, this could be the URL of the song or the file. |
|
GET
/api/episodes/{episode}
Get a specific episode by its ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
episode | integer | The unique identifier for the episode. |
|
Example Response [+]
PUT
/api/episodes/{episode}
Update an existing episode.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
episode | integer | The unique identifier for the episode. |
|
title | string | The title of the episode. |
|
description | string | A brief description of the episode. | |
podcast_id | integer | The ID of the podcast the episode belongs to. |
|
duration | string | The duration of the episode. | |
source_format | string | The format of the episode source. |
|
uploaded_by | string | The user who uploaded the episode. | |
source | string | The source of the episode. | |
file_size | integer | The size of the episode file. |
DELETE
/api/episodes/{episode}
Delete a specific episode.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
episode | integer | The unique identifier for the episode. |
|
GET
/api/download-episode/{id}
Download a specific episode by its ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the episode. |
|
GET
/api/artist/episodes
Get the current artist's episodes.
# Genres API
Admin endpoints
Admin Genre Routes
POST
/api/admin/genres
Store a new genre.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
name | string | Name of the genre. |
|
slug | string | Slug of the genre. |
|
cover | file|url | Cover image of the genre. | |
icon | file|url | Icon of the genre. |
GET
/api/admin/genres
Get a list of all genres.
Example Response [+]
GET
/api/admin/genres/{genre}
Get details of a specific genre by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
genre | integer | ID of the genre. |
|
Example Response [+]
PUT
/api/admin/genres/{genre}
Update an existing genre by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
genre | integer | ID of the genre. |
|
name | string | Name of the genre. |
|
slug | string | Slug of the genre. |
|
cover | file|url | Cover image of the genre. | |
icon | file | Icon of the genre. |
DELETE
/api/admin/genres/{genre}
Delete a specific genre by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
genre | integer | ID of the genre. |
|
User endpoints
GET
/api/genre/{id}
Get details of a specific genre by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | ID of the genre. |
|
Example Response [+]
GET
/api/genres
Get a list of all genres.
Example Response [+]
GET
/api/genre-content/{genre_id}
Get all content for a specific genre by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
genre_id | integer | ID of the genre. |
|
Example Response [+]
GET
/api/match-genres
Match genres based on a given keyword.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
query | string | Keyword to search for matching genres. |
|
Example Response [+]
Podcast Genre Routes
POST
/api/admin/podcast-genres
Store a new podcast genre.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
name | string | Name of the podcast genre. |
|
slug | string | Slug of the podcast genre. |
|
cover | file|url | Cover image of the podcast genre. |
GET
/api/admin/podcast-genres
Get a list of all podcast genres.
Example Response [+]
GET
/api/admin/podcast-genres/{podcast_genre}
Get details of a specific podcast genre by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
podcast_genre | integer | ID of the podcast genre. |
|
Example Response [+]
PUT
/api/admin/podcast-genres/{podcast_genre}
Update an existing podcast genre by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
podcast_genre | integer | ID of the podcast genre. |
|
name | string | Name of the podcast genre. |
|
slug | string | Slug of the podcast genre. |
|
cover | file|url | Cover image of the podcast genre. |
DELETE
/api/admin/podcast-genres/{podcast_genre}
Delete a specific podcast genre by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
podcast_genre | integer | ID of the podcast genre. |
|
GET
/api/podcast-genre-podcasts/{podcastGenre}
Get all podcasts for a specific podcast genre by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
podcastGenre | integer | ID of the podcast genre. |
|
Example Response [+]
GET
/api/podcast-genre/{podcastGenre}
Get details of a specific podcast genre by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
podcastGenre | integer | ID of the podcast genre. |
|
Example Response [+]
GET
/api/podcast-genres
Get a list of all podcast genres.
Example Response [+]
# Pages API
Admin endpoints
POST
/api/admin/pages
Store a new page.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
name | string | The name of the page. |
|
title | string | The title of the page. |
|
path | string | The path of the page. |
|
content | string | The content of the page. | |
showLinkOnTheRightSidebar | boolean | Whether to show a link to this page on the right sidebar. | |
blank | boolean | Whether the page is blank. | |
description | string | The description of the page. | |
icon | string | The icon for the page. A material design icon, like: home |
PUT
/api/admin/pages/{page}
Update an existing page.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
page | integer | The unique identifier for the page. |
|
name | string | The name of the page. |
|
title | string | The title of the page. |
|
path | string | The path of the page. |
|
content | string | The content of the page. | |
showLinkOnTheRightSidebar | boolean | Whether to show a link to this page on the right sidebar. | |
blank | boolean | Whether the page is blank. | |
description | string | The description of the page. | |
icon | string | The icon for the page. A material design icon, like: home |
GET
/api/admin/pages
Get a list of pages.
Example Response [+]
GET
/api/pages
Get a list of pages for the right sidebar.
Example Response [+]
GET
/api/admin/pages-infos
Get page information only.
Example Response [+]
GET
/api/admin/pages/{page}
Show a specific page by its ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
page | integer | The unique identifier for the page. |
|
Example Response [+]
GET
/api/page
Show a specific page by its path.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
path | string | The path of the page. |
|
Example Response [+]
DELETE
/api/admin/pages/{page}
Delete a specific page.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
page | integer | The unique identifier for the page. |
|
GET
/api/best-podcasts
Get the best podcasts.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
nb_items | integer | Number of items to retrieve. |
Example Response [+]
GET
/api/charts
Get the charts page data.
Example Response [+]
GET
/api/latest-podcasts
Get the latest released podcasts.
Example Response [+]
GET
/api/most-liked-albums
Get the most liked albums.
Example Response [+]
GET
/api/most-liked-songs
Get the most liked songs.
Example Response [+]
GET
/api/new-albums
Get the new albums.
Example Response [+]
GET
/api/new-releases
Get the new releases.
Example Response [+]
GET
/api/new-songs
Get the new songs.
Example Response [+]
GET
/api/popular-albums
Get the most popular albums.
Example Response [+]
GET
/api/popular-podcasts
Get the most popular podcasts.
Example Response [+]
GET
/api/popular-songs
Get the most popular songs.
Example Response [+]
GET
/api/section/content/{id}
Get the content of a specified section by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | ID of the section. |
|
Example Response [+]
# Artists API
Admin endpoints
POST
/api/admin/artists
Store a new artist.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
firstname | string | The first name of the artist. |
|
lastname | string | The last name of the artist. |
|
displayname | string | The display name of the artist. |
|
country | string | The country of the artist. | |
string | The email of the artist. |
| |
phone | string | The phone number of the artist. | |
address | string | The address of the artist. | |
avatar | file|url | The avatar image of the artist. | |
spotify_link | string | The Spotify link of the artist. | |
youtube_link | string | The YouTube link of the artist. | |
soundcloud_link | string | The SoundCloud link of the artist. | |
itunes_link | string | The iTunes link of the artist. | |
deezer_link | string | The Deezer link of the artist. |
GET
/api/admin/artists
Get a list of artists.
Example Response [+]
GET
/api/admin/artists/{artist}
Show a specific artist by their ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
artist | integer | The unique identifier for the artist. |
|
Example Response [+]
PUT
/api/admin/artists/{artist}
Update an existing artist.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
artist | integer | The unique identifier for the artist. |
|
firstname | string | The first name of the artist. |
|
lastname | string | The last name of the artist. |
|
displayname | string | The display name of the artist. |
|
country | string | The country of the artist. | |
string | The email of the artist. |
| |
phone | string | The phone number of the artist. | |
address | string | The address of the artist. | |
avatar | file|url | The avatar image of the artist. | |
spotify_link | string | The Spotify link of the artist. | |
youtube_link | string | The YouTube link of the artist. | |
soundcloud_link | string | The SoundCloud link of the artist. | |
itunes_link | string | The iTunes link of the artist. | |
deezer_link | string | The Deezer link of the artist. |
DELETE
/api/admin/artists/{artist}
Delete a specific artist.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
artist | integer | The unique identifier for the artist. |
|
GET
/api/artist
Get logged in artist account information.
GET
/api/artist/albums
Get logged in artist albums.
GET
/api/artist/analytics
Get logged in artist analytics.
POST
/api/artist/contact
Contact administration as an artist.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
message | string | The message to send to the admins. |
|
GET
/api/more-from-artist/{id}
Get more songs from an artist.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the artist. |
|
origin | string | The origin source of the artist. |
|
Example Response [+]
GET
/api/artist/match-songs/{keyword}
Match artist songs by keyword.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
keyword | string | The keyword to match songs. |
|
GET
/api/artist/notifications
Get logged in artist notifications.
GET
/api/artist/plays/{duration}
Get logged in artist plays by duration.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
duration | string | The duration for fetching plays. |
|
GET
/api/artist/podcasts
Get logged in artist podcasts.
POST
/api/artist/request-payout
Request artist payout.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
amount | number | The amount to request for payout. |
|
POST
/api/artist/save-personal-infos
Save logged in artist personal information.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
firstname | string | The first name of the artist. |
|
lastname | string | The last name of the artist. |
|
displayname | string | The display name of the artist. |
|
country | string | The country of the artist. | |
string | The email of the artist. |
| |
phone | string | The phone number of the artist. | |
address | string | The address of the artist. | |
avatar | file|url | The avatar image of the artist. | |
spotify_link | string | The Spotify link of the artist. | |
youtube_link | string | The YouTube link of the artist. | |
soundcloud_link | string | The SoundCloud link of the artist. | |
itunes_link | string | The iTunes link of the artist. | |
deezer_link | string | The Deezer link of the artist. |
GET
/api/artist/songs
Get logged in artist songs.
GET
/api/artist/{id}
Show artist details.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the artist. |
|
Example Response [+]
GET
/api/artist/{id}/songs
Get artist songs.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the artist. |
|
Example Response [+]
# Translations API
GET
/api/admin/languages
Get a list of all languages.
Example Response [+]
POST
/api/admin/languages
Store a new language.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
name | string | The name of the language. |
|
locale | string | The locale ID of the language. |
|
status | boolean | The status of the language (active or inactive). |
|
similar | string | The locale code of a similar language to copy translations from. | |
isDefault | boolean | Whether this language should be set as the default language. |
DELETE
/api/admin/languages/{id}
Delete a specific language.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the language. |
|
PUT
/api/admin/languages/{id}/update
Update an existing language.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
id | integer | The unique identifier for the language. |
|
name | string | The name of the language. |
|
status | boolean | The status of the language (active or inactive). |
|
isDefault | boolean | Whether this language should be set as the default language. |
POST
/api/admin/save-messages/{locale}
Save translations for a specific language.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
locale | string | The locale code of the language. |
|
messages | array | An array of translation messages to save. |
|
GET
/api/admin/{locale}/messages
Get translations for a specific language.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
locale | string | The locale code of the language. |
|
Example Response [+]
# Settings API
Admin endpoints
POST
/api/admin/reset-settings
Reset all settings to their default values.
POST
/api/admin/save-ad-settings
Save ad settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
rect_ad | string | The code for rectangular ads. | |
square_ad | string | The code for square ads. | |
enableAds | boolean | Enable or disable ads. |
|
POST
/api/admin/save-analytics-settings
Save analytics settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
ga4 | boolean | Enable or disable GA4 analytics. |
|
ga4MID | string | GA4 Measurement ID. | |
analytics_play_event | boolean | Track play events. | |
analytics_download_event | boolean | Track download events. | |
analytics_like_event | boolean | Track like events. | |
analytics_adClick_event | boolean | Track ad click events. | |
analytics_fileUpload_event | boolean | Track file upload events. | |
analytics_chat_event | boolean | Track chat events. | |
analytics_login_event | boolean | Track login events. | |
analytics_purchase_event | boolean | Track purchase events. | |
analytics_subscription_event | boolean | Track subscription events. |
POST
/api/admin/save-billing-settings
Save billing settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
enable_billing | boolean | Enable or disable billing. |
|
default_currency | string | Default currency for billing. | |
stripe_gateway | boolean | Enable or disable Stripe gateway. | |
stripe_client_id | string | Stripe client ID. | |
stripe_secret | string | Stripe secret key. | |
paypal_gateway | boolean | Enable or disable PayPal gateway. | |
paypal_client_id | string | PayPal client ID. | |
paypal_secret | string | PayPal secret key. | |
paypal_sandbox_mode | boolean | Enable or disable PayPal sandbox mode. |
POST
/api/admin/save-feed-settings
Save podcast feed settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
feedsLang | string | Language for the podcast feeds. |
|
feedsFormat | string | Format for the podcast feeds. |
|
podcastFeedsUrl | string | URL for the podcast feeds. |
|
podcastFeedsCount | integer | Number of podcasts in the feed. |
|
podcastFeedsDescription | string | Description of the podcast feed. |
|
podcastFeedsTitle | string | Title of the podcast feed. |
|
podcastFeedsImage | string | Image for the podcast feed. | |
podcastFeeds | boolean | Enable or disable podcast feeds. |
POST
/api/admin/save-appearance-settings
Save appearance settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
logo | file|string | The application logo, either as a file upload or a relative path. | |
favicon | file|string | The application favicon, either as a file upload or a relative path. | |
playerLanding | string | The path of the landing/home page of your app. |
|
hideRightSidebar | boolean | Hide or show the right sidebar. |
|
enableThemeSwitcher | boolean | Enable or disable the theme switcher. |
|
defaultThemeID | integer | The ID of the default theme. |
|
POST
/api/admin/save-mail-settings
Save mail settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
enable_mail | boolean | Enable or disable mail settings. |
|
mailMailer | string | Mail mailer type (smtp or mailgun). | |
host | string | Mail host for SMTP mailer. | |
port | integer | Mail port for SMTP mailer. | |
username | string | Mail username for SMTP mailer. | |
password | string | Mail password for SMTP mailer. | |
encryption | string | Mail encryption method for SMTP mailer. | |
mailgunAPIKey | string | Mailgun API key for Mailgun mailer. | |
mailgunURL | string | Mailgun URL for Mailgun mailer. | |
from_address | string | The from address for mails. |
|
from_name | string | The from name for mails. |
|
POST
/api/admin/save-player-settings
Save player settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
disableVideo | boolean | Disable video playback. |
|
hideDownloadButton | boolean | Hide the download button. |
|
playerVolume | integer | Default player volume (0-100). |
|
autoPlay | boolean | Enable or disable auto play. | |
crossfade | integer | Duration of crossfade in milliseconds. |
|
shuffleOrder | boolean | Enable or disable shuffle order. | |
enable_ffmpeg | boolean | Enable or disable FFMPEG. | |
ffmpeg_path | string | Path to FFMPEG. | |
ffprobe_path | string | Path to FFProbe. | |
enable_youtubedl | boolean | Enable or disable YouTube-DL. | |
youtubedl_path | string | Path to YouTube-DL. | |
enable_wave_form | boolean | Enable or disable waveforms. | |
enable_hls | boolean | Enable or disable HLS. | |
hls_chunk_duration | integer | Duration of HLS chunks in seconds. |
|
enable_hls_encryption | boolean | Enable or disable HLS encryption. |
POST
/api/admin/save-provider-settings
Save provider settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
provider_spotify | boolean | Enable or disable Spotify provider. | |
spotifyClientID | string | Spotify client ID. | |
spotifyClientSecret | string | Spotify client secret. | |
spotify_search | boolean | Enable or disable Spotify search. | |
show_external_link_spotify | boolean | Show or hide external link to Spotify. |
POST
/api/admin/save-search-settings
Save search settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
searchMethod | string | The method to use for search (e.g., tntsearch, algolia, mysql). |
|
algoliaAppID | string | Algolia App ID. | |
algoliaSecret | string | Algolia Secret Key. |
POST
/api/admin/save-storage-settings
Save storage settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
storageDisk | string | Storage disk to use (e.g., s3, ftp, b2, wasabi, digital_ocean). |
|
S3Key | string | S3 key for storage. | |
S3Secret | string | S3 secret for storage. | |
S3Region | string | S3 region for storage. | |
S3Bucket | string | S3 bucket for storage. | |
S3Endpoint | string | S3 endpoint for storage. | |
WasabiKey | string | Wasabi key for storage. | |
WasabiSecret | string | Wasabi secret for storage. | |
WasabiRegion | string | Wasabi region for storage. | |
WasabiBucket | string | Wasabi bucket for storage. | |
FTP_HOST | string | FTP host for storage. | |
FTP_USERNAME | string | FTP username for storage. | |
FTP_PASSWORD | string | FTP password for storage. | |
FTP_PORT | integer | FTP port for storage. | |
FTP_ROOT | string | FTP root for storage. | |
FTP_PASSIVE | boolean | Enable or disable FTP passive mode. | |
FTP_SSL | boolean | Enable or disable FTP SSL. | |
FTP_TIMEOUT | integer | FTP timeout in seconds. | |
blackblazeKeyID | string | Blackblaze key ID for storage. | |
blackblazeApplicationKey | string | Blackblaze application key for storage. | |
blackblazeBucketID | string | Blackblaze bucket ID for storage. | |
blackblazeBucketName | string | Blackblaze bucket name for storage. | |
blackblazeEndpoint | string | Blackblaze endpoint for storage. | |
digitalOceanKey | string | DigitalOcean key for storage. | |
digitalOceanSecret | string | DigitalOcean secret for storage. | |
digitalOceanRegion | string | DigitalOcean region for storage. | |
digitalOceanBucket | string | DigitalOcean bucket for storage. | |
maxImageSize | integer | Maximum image size for uploads. |
|
optimize_images | boolean | Enable or disable image optimization. |
|
image_dimensions | integer | Dimensions for image optimization. |
|
thumb_dimensions | integer | Thumbnail dimensions for image optimization. |
|
maxFileSize | integer | Maximum file size for uploads. |
|
availableUserDiskSpace | integer | Available disk space for users. |
|
availableArtistDiskSpace | integer | Available disk space for artists. |
|
POST
/api/admin/save-seo-settings
Save SEO settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
siteTitle | string | The site title for SEO purposes. |
|
siteDescription | string | The site description for SEO purposes. |
|
homePageTitle | string | The title for the home page. |
|
homePageDescription | string | The description for the home page. |
|
browsePageTitle | string | The title for the browse page. |
|
browsePageDescription | string | The description for the browse page. |
|
podcastsPageTitle | string | The title for the podcasts page. |
|
podcastsPageDescription | string | The description for the podcasts page. |
|
artistPageTitle | string | The title for the artist page. |
|
artistPageDescription | string | The description for the artist page. |
|
songPageTitle | string | The title for the song page. |
|
songPageDescription | string | The description for the song page. |
|
albumPageTitle | string | The title for the album page. |
|
albumPageDescription | string | The description for the album page. |
|
podcastPageTitle | string | The title for the podcast page. |
|
podcastPageDescription | string | The description for the podcast page. |
|
playlistPageTitle | string | The title for the playlist page. |
|
playlistPageDescription | string | The description for the playlist page. |
|
genrePageTitle | string | The title for the genre page. |
|
genrePageDescription | string | The description for the genre page. |
|
podcastGenrePageTitle | string | The title for the podcast genre page. |
|
podcastGenrePageDescription | string | The description for the podcast genre page. |
|
userProfilePageTitle | string | The title for the user profile page. |
|
userProfilePageDescription | string | The description for the user profile page. |
|
POST
/api/admin/save-general-settings
Save general settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
locale | string | The locale of the application. |
|
enableLangSwitcher | boolean | Enable or disable the language switcher. |
|
appName | string | The name of the application. |
|
appUrl | string | The URL of the application. |
|
enablePodcasts | boolean | Enable or disable podcasts. |
|
enableBrowse | boolean | Enable or disable the browse feature. |
|
enableUserUpload | boolean | Enable or disable user uploads. |
|
youtubePlugin | boolean | Enable or disable the YouTube plugin. |
|
enableEmbedPlayer | boolean | Enable or disable the embed player. |
|
allowGuestsToContact | boolean | Allow or disallow guests to contact. |
|
enableFriendshipSystem | boolean | Enable or disable the friendship system. |
|
disableCookieConsentPopup | boolean | Enable or disable the cookies consent popup that shows on the website. |
|
enableRealtime | boolean | Enable or disable realtime functionality. |
|
pusherAppId | string | Pusher App ID. Required if realtime is enabled. | |
pusherKey | string | Pusher key. Required if realtime is enabled. | |
pusherSecret | string | Pusher secret. Required if realtime is enabled. | |
pusherCluster | string | Pusher cluster. Required if realtime is enabled. | |
enableChat | boolean | Enable or disable chat functionality. |
|
enable_artist_account | boolean | Enable or disable artist accounts. |
|
allowArtistAccountRequests | boolean | Allow or disallow artist account requests. |
|
enable_royalties | boolean | Enable or disable royalties. |
|
artist_royalty | integer | The percentage of artist royalties. |
|
artist_sale_cut | integer | The percentage of artist sale cut. |
|
enable_share_facebook | boolean | Enable or disable sharing on Facebook. |
|
enable_share_twitter | boolean | Enable or disable sharing on Twitter. |
|
enable_share_whatsapp | boolean | Enable or disable sharing on WhatsApp. |
|
enable_share_telegram | boolean | Enable or disable sharing on Telegram. |
|
account_agreement | string | The account agreement text. | |
facebook_link | string | The link to the Facebook page. | |
youtube_link | string | The link to the YouTube channel. | |
twitter_link | string | The link to the Twitter profile. | |
soundcloud_link | string | The link to the SoundCloud profile. | |
spotify_link | string | The link to the Spotify profile. |
POST
/api/admin/save-auth-settings
Save authentication settings.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
disableRegistration | boolean | Disable user registration. |
|
requireAuth | boolean | Require authentication for accessing the application. |
|
requireEmailConfirmation | boolean | Require email confirmation for user registration. |
|
enableGoogleLogin | boolean | Enable Google login. | |
googleOAuthClientID | string | Google OAuth client ID. Required if Google login is enabled. | |
enableFacebookLogin | boolean | Enable Facebook login. |
|
facebookOAuthClientID | string | Facebook OAuth client ID. Required if Facebook login is enabled. |
POST
/api/admin/upload-section-background
Upload a section background image.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
background | file | The background image file. |
|
title | string | Title of the section. |
|
description | string | Description of the section. |
|
GET
/api/admin/settings
Get all settings.
Example Response [+]
# Themes API
Admin endpoints
Theme Routes
POST
/api/admin/themes
Store a new theme.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
name | string | The name of the theme. |
|
title | string | The title of the theme. |
|
colors | string | The color configuration of the theme. |
|
enable_light_dark_switcher | boolean | Enable or disable the light/dark mode switcher. |
|
GET
/api/admin/themes
Get a list of themes.
Example Response [+]
PUT
/api/admin/themes/{theme}
Update an existing theme.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
theme | integer | The unique identifier for the theme. |
|
name | string | The name of the theme. |
|
title | string | The title of the theme. |
|
colors | string | The color configuration of the theme. |
|
enable_light_dark_switcher | boolean | Enable or disable the light/dark mode switcher. |
|
DELETE
/api/admin/themes/{theme}
Delete a specific theme.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
theme | integer | The unique identifier for the theme. |
|
GET
/api/admin/reset-theme-colors/{theme}
Reset theme colors to default.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
theme | integer | The unique identifier for the theme. |
|
POST
/api/admin/themes/{theme}/reset-landing-page-settings
Reset landing page settings for a theme.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
theme | integer | The unique identifier for the theme. |
|
POST
/api/admin/themes/{theme}/save-landing-page-settings
Save landing page settings for a theme.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
theme | integer | The unique identifier for the theme. |
|
headerBackground | file | The header background image for the landing page. | |
footerBackground | file | The footer background image for the landing page. | |
enableLandingPage | boolean | Enable or disable the landing page. |
|
GET
/api/theme
Get the current theme.
Example Response [+]
GET
/api/theme/{themeName}
Get a theme by its name.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
themeName | string | The name of the theme. |
|
Example Response [+]
# Chat API
User endpoints
POST
/api/send/{session}
Send a message to a specific session.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
session | integer | The ID of the chat session. |
|
content | string | The content of the message. |
|
to_user | integer | The ID of the recipient user. |
|
POST
/api/sessions/create
Create a new chat session.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
user_id | integer | The ID of the user to create a session with. |
|
POST
/api/sessions/{session}/block
Block a user in a specific session.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
session | integer | The ID of the chat session. |
|
user_id | integer | The ID of the user to block. |
|
POST
/api/sessions/{session}/chats
Get chats in a specific session.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
session | integer | The ID of the chat session. |
|
Example Response [+]
POST
/api/sessions/{session}/clear
Clear chat in a specific session.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
session | integer | The ID of the chat session. |
|
POST
/api/sessions/{session}/read
Mark messages as read in a specific session.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
session | integer | The ID of the chat session. |
|
POST
/api/sessions/{session}/unblock
Unblock a user in a specific session.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
session | integer | The ID of the chat session. |
|
user_id | integer | The ID of the user to unblock. |
|
# Subscriptions API
Admin endpoints
POST
/api/admin/subscriptions
Store a new subscription.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
user_id | integer | ID of the user. |
|
plan_id | integer | ID of the plan. |
|
gateway | string | Payment gateway used. |
|
GET
/api/admin/subscriptions
Get a list of all subscriptions.
Example Response [+]
DELETE
/api/admin/subscriptions/{subscription}
Delete a specific subscription by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
subscription | integer | ID of the subscription. |
|
Plan Routes
POST
/api/admin/plans
Store a new plan.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
name | string | Name of the plan. |
|
currency | string | Currency of the plan. |
|
amount | float | Amount of the plan. |
|
interval | string | Interval of the plan (e.g., monthly, yearly). |
|
storage_space | integer | Storage space provided by the plan. | |
active | boolean | Whether the plan is active or not. |
|
recommended | boolean | Whether the plan is recommended or not. | |
upgradable | boolean | Whether the plan is upgradable or not. | |
position | integer | Position of the plan in the list. | |
badge | string | Badge for the plan. | |
displayed_features | array | Features displayed for the plan. | |
roles | array | Roles associated with the plan. |
|
permissions | array | Permissions associated with the plan. |
|
GET
/api/admin/plans
Get a list of all plans.
Example Response [+]
PUT
/api/admin/plans/{plan}
Update an existing plan by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
plan | integer | ID of the plan. |
|
name | string | Name of the plan. |
|
currency | string | Currency of the plan. | |
amount | float | Amount of the plan. | |
interval | string | Interval of the plan (e.g., monthly, yearly). | |
storage_space | integer | Storage space provided by the plan. | |
active | boolean | Whether the plan is active or not. |
|
recommended | boolean | Whether the plan is recommended or not. | |
upgradable | boolean | Whether the plan is upgradable or not. | |
position | integer | Position of the plan in the list. | |
badge | string | Badge for the plan. | |
displayed_features | array | Features displayed for the plan. | |
roles | array | Roles associated with the plan. |
|
permissions | array | Permissions associated with the plan. |
|
DELETE
/api/admin/plans/{plan}
Delete a specific plan by ID.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
plan | integer | ID of the plan. |
|
GET
/api/plans
Get a list of all active plans for users.
Example Response [+]
DELETE
/api/admin/payout-methods/{payout_method}
Delete a specific payout method.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
payout_method | integer | ID of the payout method. |
|
Example Response [+]
GET
/api/admin/payouts
Get a list of all payouts.
Example Response [+]
POST
/api/admin/payouts/{payout}
Updates the status of the payout.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
payout | integer | The unique identifier for the payout. |
|
status | string | The status of the payout. |
|
details | string | Additional details about the payout. |
Example Response [+]
# Payouts API
Admin endpoints
Admin Payout Routes
DELETE
/api/admin/payout-methods/{payout_method}
Delete a specific payout method.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
payout_method | integer | ID of the payout method. |
|
Example Response [+]
GET
/api/payout-options
Get available payout options.
Example Response [+]
POST
/api/admin/payouts
Store a new payout.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
user_id | integer | ID of the user. |
|
amount | decimal | Amount of the payout. |
|
status | string | Status of the payout. |
|
details | string | Details of the payout. |
Example Response [+]
GET
/api/admin/payouts
Get a list of all payouts.
Example Response [+]
GET
/api/admin/payouts/{payout}
Show a specific payout.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
payout | integer | ID of the payout. |
|
Example Response [+]
PUT
/api/admin/payouts/{payout}
Update an existing payout.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
payout | integer | ID of the payout. |
|
user_id | integer | ID of the user. |
|
amount | decimal | Amount of the payout. |
|
status | string | Status of the payout. |
|
details | string | Details of the payout. |
Example Response [+]
DELETE
/api/admin/payouts/{payout}
Delete a specific payout.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
payout | integer | ID of the payout. |
|
Example Response [+]
# Analytics API
Admin endpoints
Admin Analytics Routes
GET
/api/admin/analytics
Get the overall analytics data for the admin dashboard.
Example Response [+]
GET
/api/admin/plays/{duration}
Get the plays analytics data for a specified duration.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
duration | string | Duration for the analytics data. Possible values: lw (last week), lm (last month), ly (last year). |
|
Example Response [+]
GET
/api/admin/sales/{duration}
Get the sales analytics data for a specified duration.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
duration | string | Duration for the analytics data. Possible values: lw (last week), lm (last month), ly (last year). |
|
Example Response [+]
Artist Analytics
GET
/api/artist/analytics
Get the analytics data for the artist dashboard.
GET
/api/artist/plays/{duration}
Get the artist plays analytics data for a specified duration.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
duration | string | Duration for the analytics data. Possible values: lw (last week), lm (last month), ly (last year). |
|
# Search API
GET
/api/search/{keyword}
Search for various content types using a keyword.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
keyword | string | The keyword to search for. |
|
engines | array | Optional parameter to specify search engines. Possible values: local, spotify, * |
|
Example Response [+]
GET
/api/search/{keyword}/{type}
Search for a specific content type using a keyword.
Parameters
Name | Type | Description | Constraints |
---|---|---|---|
keyword | string | The keyword to search for. |
|
type | string | The type of content to search for. Possible values: songs, artists, albums, podcasts, playlists, radio-stations, profiles. |
|
engines | array | Optional parameter to specify search engines. Possible values: local, spotify, * |
|