Download OpenAPI specification:Download
Web API endpoints enable application to access the Oud catalog and user data. The endpoints are arranged in a structure defined by an object model.
artistId required | string The ID for the artist. |
the response body contains an artist object in JSON format.
Invalid ID
Not Found - The requested resource could not be found.
{- "_id": "string",
- "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "images": [
- "string"
], - "displayName": "string",
- "bio": "string",
- "popularSongs": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "type": "string"
}
id required | string The ID of the genre. |
the response body contains a list of artist objects in JSON format.
Invalid ID
Not Found - The requested resource could not be found.
[- {
- "_id": "string",
- "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "images": [
- "string"
], - "displayName": "string",
- "bio": "string",
- "popularSongs": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "type": "string"
}
]
artistId required | string The ID for the artist. |
limit | integer Default: 20 The number of album objects to return. Minimum: 1. Maximum: 50. For example: |
offset | integer Default: 0 The index of the first album to return. (0 is the first album). Use with |
included_groups | string A comma-separated list of keywords that will be used to filter the response. If not supplied, all album types will be returned. Valid values are:
|
The response body contains an array of simplified album objects (wrapped in a paging object) in JSON format.
Invalid ID
Not Found - The requested resource could not be found.
{- "items": [
- {
- "_id": "string",
- "album_type": "string",
- "album_group": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
Get information about an artist’s top tracks by views.
artistId required | string The ID for the artist. |
the response body contains an object whose key is "tracks"
and whose value is an array of up to 10 track objects in JSON format.
Invalid ID
Not Found - The requested resource could not be found.
{- "tracks": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
]
}
Get information for several artists based on their IDs.
artistId required | string A comma-separated list of IDs for the artists. Maximum: 50 IDs. |
the response body contains an object whose key is "artists"
and whose value is an array of artist objects in JSON format. Objects are returned in the order requested. If an object is not found, a null
value is returned in the appropriate position. Duplicate ids in the query will result in duplicate objects in the response.
Invalid ID
{- "artists": [
- {
- "_id": "string",
- "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "images": [
- "string"
], - "displayName": "string",
- "bio": "string",
- "popularSongs": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "type": "string"
}
]
}
Get information for some artists without specifing anything about them.
the response body contains an array of artist objects in JSON format.
[- {
- "_id": "string",
- "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "images": [
- "string"
], - "displayName": "string",
- "bio": "string",
- "popularSongs": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "type": "string"
}
]
User/Guest requests to be an Artist if it's accepted they will be able to upload albums/tracks.
JSON object contains the needed information for the request.
genres required | Array of strings A list of the genre ID's of the genres of the artist. |
name required | string The name of the artist. |
displayName required | string The name that will be displayed on his/her profile |
bio | string a biography or short biographical profile of the artist. |
email required | string An email for contact |
country required | string The country of the artist |
successful operation
The request could not be understood by the server due to malformed syntax.
{- "genres": [
- "string"
], - "name": "string",
- "displayName": "string",
- "bio": "string",
- "email": "string",
- "country": "string"
}
{- "id": "string"
}
Uploads an official document that is attached to the request to be an artist.
id required | string <string> ID of the request |
image | string <binary> |
the resources are created and the response body is empty.
the server cannot or will not process the request due to something that is perceived to be a client error. and the artist request will be discarded and removed from the server and the user should resubmit.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Determine whether a request to be an artist should by accepted or refused and create an artist if accepted then send informing emails for the applicant.
id required | string |
accept required | boolean true for accepting and false for refusing the request |
successful operation and response body is empty
The request could not be understood by the server due to malformed syntax.
{- "accept": true
}
{- "status": "string",
- "message": "string"
}
Updates artist's bio
bio | string The bio of the artist |
successful operation
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Forbidden - The server understood the request, but is refusing to fulfill it.
{- "bio": "string"
}
{- "_id": "string",
- "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "images": [
- "string"
], - "displayName": "string",
- "bio": "string",
- "popularSongs": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "type": "string"
}
Updates the current artist's list of popular songs
tracks required | Array of strings ID's of the tracks sorted. (maximum 10 tracks) |
successful operation
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Forbidden - The server understood the request, but is refusing to fulfill it.
{- "tracks": [
- "string"
]
}
{- "_id": "string",
- "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "images": [
- "string"
], - "displayName": "string",
- "bio": "string",
- "popularSongs": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "type": "string"
}
Check to see if the current user is following one or more artists or other users.
type required | string The ID type: either |
ids required | string A comma-separated list of the artist or the user IDs to check. For example: |
the response body contains a JSON array of true
or false
values, in the same order in which the ids were specified.
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
[- true
]
Check to see if one or more users are following a specified playlist.
playlistId required | string The ID of the playlist. |
ids required | string A comma-separated list of User IDs; the ids of the users that you want to check to see if they follow the playlist. Maximum: 5 ids. |
the response body contains a JSON array of true
or false
values, in the same order in which the ids were specified.
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
[- true
]
Get a user’s followed artists/users.
userId required | string The user id requested to view his followings |
type required | string The ID type: |
limit | integer Default: 20 The maximum number of items to return. Minimum: 1. Maximum: 50. |
offset | integer The index of the first track to return. Default: 0 (the first object). Use with limit to get the next set of followings. |
the response body contains an artists object or user object wrapped in paging object.
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Not Found - The requested resource could not be found.
{- "items": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
Get a user’s followers
userId required | string The user id requested to view his followers |
limit | integer Default: 20 The maximum number of items to return. Minimum: 1. Maximum: 50. |
offset | integer The index of the first track to return. Default: 0 (the first object). Use with limit to get the next set of followers. |
the response body contains a user object wrapped in paging object.
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Not Found - The requested resource could not be found.
{- "items": [
- {
- "_id": "5a2539b41c574006c46f1a07",
- "displayName": "string",
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "type": "string"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
Get Current User’s followers
limit | integer Default: 20 The maximum number of items to return. Minimum: 1. Maximum: 50. |
offset | integer The index of the first track to return. Default: 0 (the first object). Use with limit to get the next set of followers. |
the response body contains a user object wrapped in paging object.
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Not Found - The requested resource could not be found.
{- "items": [
- {
- "_id": "5a2539b41c574006c46f1a07",
- "displayName": "string",
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "type": "string"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
Add the current user as a follower of one or more artists or other users.
type required | string The ID type: either |
ids | Array of strings A comma-separated list of the artist or the user IDs. For example: |
A JSON array of the artist or user IDs. For example: {ids:["74ASZWbe4lXaubB36ztrGX", "08td7MxkoHQkXnWAYD8d6Q"]}
. A maximum of 50 IDs can be sent in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored.
ids | Array of strings |
the resources are created and the response body is empty.
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Not Found - The requested resource could not be found.
{- "ids": [
- "string"
]
}
{- "status": "string",
- "message": "string"
}
Get the current user’s followed artists/users.
type required | string The ID type: |
limit | integer Default: 20 The maximum number of items to return. Minimum: 1. Maximum: 50. |
offset | integer The index of the first track to return. Default: 0 (the first object). Use with limit to get the next set of followings. |
the response body contains an artists object or user object wrapped in paging object.
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Not Found - The requested resource could not be found.
{- "items": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
Remove the current user as a follower of one or more artists or other users.
type required | Array of strings The ID type: |
ids | string A comma-separated list of the artist or the user IDs. For example: |
The resources are deleted and the response body is empty.
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Add the current user as a follower of a playlist.
playlistId required | string The ID of the playlist. Any playlist can be followed, regardless of its public/private status, as long as you know its playlist ID. |
If true
the playlist will be included in user’s public playlists, if false
it will remain private.
public | boolean Default: true |
the resources are created and the response body is empty.
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Not Found - The requested resource could not be found.
{- "public": true
}
{- "status": "string",
- "message": "string"
}
Remove the current user as a follower of a playlist.
playlistId required | string The ID of the playlist that is to be no longer followed. |
the resources are deleted and the response body is empty.
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Get detailed profile information about the current user (including the current user’s username).
the response body contains a user object in JSON format.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
Updates the current user image
images | string <binary> |
the response body contains a user object in JSON format.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
Profile data
email required | string <email> |
passwordConfirm required | string >= 8 characters |
gender required | string Enum: "M" "F" |
dateOfBirth required | string <date> The user`s birthdate, must be at least 10 years old |
country | string <ISO ALPHA 2> 2 characters |
displayName required | string |
the response body contains a user object in JSON format.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "email": "user@example.com",
- "passwordConfirm": "stringst",
- "gender": "M",
- "dateOfBirth": "2020-06-10",
- "country": "st",
- "displayName": "string"
}
{- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
The Value of Private Session to be set
privateSession required | boolean |
the response body contains a user object in JSON format after changing the value of privateSession.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "privateSession": true
}
{- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
Get public profile information about a user.
userId required | string |
the response body contains a user object in JSON format.
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Not Found - The requested resource could not be found.
{- "_id": "5a2539b41c574006c46f1a07",
- "displayName": "string",
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "type": "string"
}
update user password
User password and passwordConfirm
currentPassword required | string <password> >= 8 characters REQUIRED - The user’s current password |
password required | string <password> >= 8 characters REQUIRED - The user’s new password |
passwordConfirm required | string <password> >= 8 characters REQUIRED - The user’s new password confirm |
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "currentPassword": "pa$$word",
- "password": "pa$$word",
- "passwordConfirm": "pa$$word"
}
{- "token": "string",
- "user": {
- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
}
id required | string <string> id of album to add comment to |
comment | string |
comment added
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "comment": "string"
}
{- "status": "string",
- "message": "string"
}
id required | string <string> id of album to add comment to |
comments on the album
bad request
{- "comments": [
- {
- "userName": "string",
- "comment": "string"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
Returns information about the album with the given ID
id required | string <string> ID of album to return |
successful operation
Invalid ID
{- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "image": "string",
- "name": "string",
- "release_date": "2020-06-10",
- "tracks": {
- "items": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}, - "type": "string",
- "released": true
}
Deletes the album with the given ID
id required | string <string> ID of album to delete |
successful operation
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "image": "string",
- "name": "string",
- "release_date": "2020-06-10",
- "tracks": {
- "items": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}, - "type": "string",
- "released": true
}
Updates the album with the given ID
id required | string <string> ID of album to update |
name | string The name of the album |
artists | Array of strings The ID's of the artists of the album. |
genres | Array of strings A list of the genre ID's of the genres used to classify the album. |
album_type | string the type of the album: one of the following 'single', 'album' or 'compilation' |
release_date | string The date the album was first released |
successful operation
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "name": "string",
- "artists": [
- "string"
], - "genres": [
- "string"
], - "album_type": "string",
- "release_date": "string"
}
{- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "image": "string",
- "name": "string",
- "release_date": "2020-06-10",
- "tracks": {
- "items": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}, - "type": "string",
- "released": true
}
Retrieves the information of the albums specified by given ID's
ids required | string <string> list of ID's of albums to be retrieved (comma separated) |
successful operation
Invalid ID
{- "albums": [
- {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "image": "string",
- "name": "string",
- "release_date": "2020-06-10",
- "tracks": {
- "items": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}, - "type": "string",
- "released": true
}
]
}
Retrieves the tracks of the album with the given ID
id required | string <string> ID of the album containing the tracks |
limit | integer The maximum number of items to return |
offset | integer The index of the first track to return. Default: 0 (the first object). Use with limit to get the next set of tracks. |
successful operation
Invalid ID
Not Found - The requested resource could not be found.
{- "items": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
Creates a new album for an artist
name required | string The name of the album |
artists required | Array of strings The ID's of the artists of the album. |
genres required | Array of strings A list of the genre ID's of the genres used to classify the album. |
album_type required | string the type of the album: one of the following 'single', 'album' or 'compilation' |
release_date required | string The date the album was first released |
successful operation
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Forbidden - The server understood the request, but is refusing to fulfill it.
{- "name": "string",
- "artists": [
- "string"
], - "genres": [
- "string"
], - "album_type": "string",
- "release_date": "string"
}
{- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "image": "string",
- "name": "string",
- "release_date": "2020-06-10",
- "tracks": {
- "items": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}, - "type": "string",
- "released": true
}
Updates the image of the album with the given ID
id required | string <string> ID of album to update |
image | string <binary> |
successful operation
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
Releases an album and make it public
id required | string <string> ID of album to release |
released required | boolean |
successful operation
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Forbidden - The server understood the request, but is refusing to fulfill it.
{- "released": true
}
{- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "image": "string",
- "name": "string",
- "release_date": "2020-06-10",
- "tracks": {
- "items": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}, - "type": "string",
- "released": true
}
Adds a new track to an album for an artist
id required | string <string> ID of the album, if not given then the track will be single |
name required | string name of the track |
artists required | Array of strings The ID's of the track's artists |
successful operation
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "name": "string",
- "artists": [
- "string"
]
}
{- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "image": "string",
- "name": "string",
- "release_date": "2020-06-10",
- "tracks": {
- "items": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}, - "type": "string",
- "released": true
}
Download Track with the given id
premium
artist
) id required | string <string> ID of track to return |
No Content - The request has succeeded but returns no message body.
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Retrieves information about the track with the given ID
id required | string <string> ID of track to return |
successful operation
Invalid ID
Not Found - The requested resource could not be found.
{- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
Deletes the track with the given ID
id required | string <string> ID of track to delete |
successful operation
Invalid ID
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
Updates the track with the given ID
id required | string <string> ID of track to update |
name | string The name of the track |
artists | Array of strings The ID's of the artists of the album. |
successful operation
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "name": "string",
- "artists": [
- "string"
]
}
{- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
Uploads the file of the track
id required | string <string> ID of the track |
track | string <binary> |
successful operation
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
Retrieves information of the tracks specified by given ID's
ids | string <string> list of ID's of tracks to be retrieved (comma separated) |
successful operation
Invalid ID
{- "tracks": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
]
}
id required | string <string> id of playlist to add comment to |
comment | string |
comment added
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "comment": "string"
}
{- "status": "string",
- "message": "string"
}
id required | string <string> id of playlist to add comment to |
comments on the playlist
bad request
{- "comments": [
- {
- "userName": "string",
- "comment": "string"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
playlist_id required | string Id of the Playlist |
the response body contains Playlist object in JSON format.
Invalid ID
Unauthorized.
The specified resource was not found.
The specified resource was not found.
{- "_id": "string",
- "name": "string",
- "owner": "string",
- "tracks": [
- {
- "_id": "string",
- "name": "string",
- "album": "string",
- "artists": [
- "string"
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "collaborative": true,
- "description": "string",
- "public": true,
- "image": "string",
- "type": "string"
}
playlist_id required | string Id of the Playlist |
tracks to be added
name | string the new name for the playlist |
public | boolean If true the playlist will be public, if false it will be private. index. |
collaborative | boolean If true , the playlist will become collaborative and other users will be able to modify the playlist in their client. |
description | string Value for playlist description as displayed in Clients and in the Web API. |
image/png | string <binary> the image of the playlist |
Update completed
Invalid ID
Unauthorized.
forbidden
The specified resource was not found.
{- "name": "string",
- "public": true,
- "collaborative": true,
- "description": "string",
- "image/png": "string"
}
{- "_id": "string",
- "name": "string",
- "owner": "string",
- "tracks": [
- {
- "_id": "string",
- "name": "string",
- "album": "string",
- "artists": [
- "string"
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "collaborative": true,
- "description": "string",
- "public": true,
- "image": "string",
- "type": "string"
}
playlist_id required | string Id of the Playlist |
Tracks | object Tracks to be removed from playlist and should be sent in body api doesnot support that |
Tracks removed successfully and the response body is empty
Invalid ID
Unauthorized.
forbidden
The specified resource was not found.
{- "status": "string",
- "message": "string"
}
playlist_id required | string Id of the Playlist |
limit | integer [ 1 .. 100 ] Default: 100 The maximum number of tracks to return. |
offset | integer Default: 0 The index of the first track to return. |
the response body contains array of album objects in JSON format.
Invalid ID
Unauthorized.
forbidden
The specified resource was not found.
{- "items": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
playlist_id required | string Id of the Playlist |
position | integer The position to insert the tracks, a zero-based index. |
ids | Array of strings |
tracks has been added and the response body is empty
Invalid ID
Unauthorized.
forbidden
The specified resource was not found.
{- "ids": [
- "string"
]
}
{- "status": "string",
- "message": "string"
}
playlist_id required | string Id of the Playlist |
info about Reorder a Playlist's Tracks
rangeStart | integer The position of the first track to be reordered |
rangeLength | integer Default: 1 The amount of tracks to be reordered.The range of tracks to be reordered begins from the range_start position, and includes the range_length subsequent tracks |
insertBefore | integer The position where the tracks should be inserted.To reorder the tracks to the end of the playlist, simply set insert_before to the position after the last track. |
tracks has been ReOrdered
Invalid ID
Unauthorized.
forbidden
The specified resource was not found.
{- "rangeStart": 0,
- "rangeLength": 1,
- "insertBefore": 0
}
{- "status": "string",
- "message": "string"
}
isOwner required | boolean if true you will get the playlists created by current user if false you will get the playlists followed by current user |
limit | integer [ 1 .. 50 ] Default: 20 The maximum number of playlists to return. |
offset | integer <= 100000 Default: 0 The index of the first playlist to return. |
list of playlist of the user
bad request
Unauthorized.
{- "items": [
- {
- "_id": "string",
- "name": "string",
- "owner": "string",
- "tracks": [
- {
- "_id": "string",
- "name": "string",
- "album": "string",
- "artists": [
- "string"
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "collaborative": true,
- "description": "string",
- "public": true,
- "image": "string",
- "type": "string"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
playlist_id required | string Id of the playlist |
the cover image of the playlist
Invalid ID
Unauthorized.
forbidden
The specified resource was not found.
{- "image": "string"
}
playlist_id required | string Id of the playlist |
Accepted but not completed
successful and the response body is empty
Invalid ID
Unauthorized.
forbidden
The specified resource was not found.
{- "status": "string",
- "message": "string"
}
playlist_id required | string Id of the playlist |
info about Reorder a Playlist's Tracks
ids | Array of strings uris of the tracks |
Replaced track in playlist
Invalid ID
Unauthorized.
forbidden
The specified resource was not found.
{- "ids": [
- "string"
]
}
{- "status": "string",
- "message": "string"
}
user_id required | string Id of the user creating the playlist |
info of Playlist
name | string the new name for the playlist |
public | boolean Default: true If true the playlist will be public, if false it will be private. index. |
collaborative | boolean Default: false If true , the playlist will become collaborative and other users will be able to modify the playlist in their client. |
description | string Value for playlist description as displayed in Clients and in the Web API. |
image/png | string <binary> the image of the playlist |
playlist created
Invalid ID
Unauthorized.
{- "name": "string",
- "public": true,
- "collaborative": false,
- "description": "string",
- "image/png": "string"
}
{- "_id": "string",
- "name": "string",
- "owner": "string",
- "tracks": [
- {
- "_id": "string",
- "name": "string",
- "album": "string",
- "artists": [
- "string"
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "collaborative": true,
- "description": "string",
- "public": true,
- "image": "string",
- "type": "string"
}
user_id required | string Id of the user |
limit | integer [ 1 .. 50 ] Default: 20 The maximum number of playlists to return. |
offset | integer <= 100000 Default: 0 The index of the first playlist to return. |
list of playlist of the user
bad request
Unauthorized.
{- "items": [
- {
- "_id": "string",
- "name": "string",
- "owner": "string",
- "tracks": [
- {
- "_id": "string",
- "name": "string",
- "album": "string",
- "artists": [
- "string"
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "collaborative": true,
- "description": "string",
- "public": true,
- "image": "string",
- "type": "string"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
ids required | Array of strings comma separated ids of the Albums to be saved |
Album Saved
Invalid ID
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
ids required | Array of strings comma separated ids of the Albums to be deleted |
Albums removed successfully and the body of the response is empty
bad request
Unauthorized.
forbidden
The specified resource was not found.
{- "status": "string",
- "message": "string"
}
limit | integer [ 1 .. 50 ] Default: 20 The maximum number of albums to return. |
offset | integer Default: 0 The index of the first album to return. |
list of playlist of the user
bad request
Unauthorized.
{- "items": [
- {
- "added_at": "2020-06-10T23:50:50Z",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "image": "string",
- "name": "string",
- "release_date": "2020-06-10",
- "tracks": {
- "items": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}, - "type": "string",
- "released": true
}
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
Checks if the albums with the given ID's are saved
ids required | Array of strings A comma-separated list of the IDs for the albums |
true or false if found album saved
Invalid ID
Unauthorized.
[- true
]
Checks if the tracks with the given ID's are saved
ids required | Array of strings A comma-separated list of the IDs for the tracks |
true or false if found track saved
Invalid ID
Unauthorized.
[- true
]
ids required | Array of strings comma separated Ids of the Tracks to be saved |
Tracks Saved
Invalid ID
Unauthorized.
forbidden
The specified resource was not found.
{- "status": "string",
- "message": "string"
}
ids required | Array of strings the IDs of the Tracks to be removed |
Tracks removed successfully
bad request
Unauthorized.
forbidden
The specified resource was not found.
{- "status": "string",
- "message": "string"
}
limit | integer [ 1 .. 50 ] Default: 20 The maximum number of tracks to return. |
offset | integer Default: 0 The index of the first track to return. |
list of playlist of the user
bad request
Unauthorized.
{- "items": [
- {
- "added_at": "2020-06-10T23:50:50Z",
- "track": {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
store what the user used from rescent search
id | string the id of the used item |
type | string item can be 'track' or 'user' or 'Album' or 'Artist' |
successful operation
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
{- "id": "string",
- "type": "string"
}
{- "status": "string",
- "message": "string"
}
retrive what the user used from rescent search
limit | integer [ 1 .. 50 ] Default: 20 The maximum number of items to return. |
offset | integer <= 2000 Default: 0 The index of the first item to return. |
item the user used in recent search
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
{- "items": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
q required | string name of what you want to search for eg q = Top this will return items with name that includes Top. |
type | string A comma-separated list of item types to search across. Valid types are album ,User, Artist, playlist, and track. Search results include hits from all the specified item types.Its optional if not sent search will be on all types. |
limit | integer [ 1 .. 50 ] Default: 20 The maximum number of items to return. |
offset | integer <= 2000 Default: 0 The index of the first item to return. |
the response body contains array of objects in JSON format with the required type.
bad request
{- "tracks": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "albums": [
- {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}
], - "artists": [
- {
- "_id": "string",
- "genres": [
- {
- "_id": "string",
- "name": "string"
}
], - "images": [
- "string"
], - "displayName": "string",
- "bio": "string",
- "popularSongs": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "type": "string"
}
], - "users": [
- {
- "_id": "5a2539b41c574006c46f1a07",
- "displayName": "string",
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "type": "string"
}
], - "playlists": [
- {
- "_id": "string",
- "name": "string",
- "owner": "string",
- "collaborative": true,
- "description": "string",
- "tracks": [
- {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "image": "string",
- "public": true,
- "type": "string"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
Create new user account
Account Data
username required | string <string> [ 5 .. 30 ] characters REQUIRED - The user’s username, as entered by the user when creating their account. |
birthDate | string <date> Nullable OPTIONAL - The user`s birthdate, must be at least 10 years old |
email required | string <email> REQUIRED - The user’s email address, as entered by the user when creating their account. |
password required | string <password> >= 8 characters REQUIRED - The user’s password |
passwordConfirm required | string <password> >= 8 characters REQUIRED - The user’s password confirm |
displayName required | string <string> REQUIRED - User Display Name |
role required | string <string> Enum: "free" "premium" "artist" REQUIRED - User System Role |
country required | string <ISO Alpha 2> 2 characters User Country Name |
gender | string Enum: "F" "M" |
github_id | string |
google_id | string |
facebook_id | string |
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "username": "string",
- "birthDate": "2020-06-10",
- "email": "example@example.com",
- "password": "pa$$word",
- "passwordConfirm": "pa$$word",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "gender": "F",
- "github_id": "string",
- "google_id": "string",
- "facebook_id": "string"
}
{- "token": "string",
- "user": {
- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
}
Log in
Login with user’s email and password
email required | string <email> REQUIRED - The user’s email address, as entered by the user when creating their account. |
password required | string <password> >= 8 characters REQUIRED - The user’s password |
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Too Many Requests
{- "email": "example@example.com",
- "password": "pa$$word"
}
{- "token": "string",
- "user": {
- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
}
Request two way auth for signup, send email with token to user
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
{- "token": "string",
- "user": {
- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
}
Two way auth for signup - Change verified attribute is user account to true
token required | string >= 8 characters Authentication token to verify the user account |
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
{- "token": "string",
- "user": {
- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
}
Forgot user password
User email
string <email> |
OK - The token sent to email
Not Found - The requested resource could not be found.
{- "email": "example@example.com"
}
{- "status": "200",
- "message": "Token sent to email!"
}
reset user password
token required | string >= 8 characters Authentication token to verify the user account |
User password and passwordConfirm
password required | string <password> >= 8 characters REQUIRED - The user’s new password |
passwordConfirm required | string <password> >= 8 characters REQUIRED - The user’s new password confirm |
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
{- "password": "pa$$word",
- "passwordConfirm": "pa$$word"
}
{- "token": "string",
- "user": {
- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
}
Authentication with facebook
Facebook access token
access_token | string Facebook access token |
Facebook Auth response. send user account and x-auth-token if user is already exists. else send user data to signup
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "access_token": "string"
}
{- "token": "string",
- "user": {
- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
}
Connect or disconnect your user account with facebook.
Facebook access token
access_token | string Facebook access token, if passed connect with facebook else disconnect |
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "access_token": "string"
}
{- "token": "string",
- "user": {
- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
}
Authentication with google
Google access token
access_token | string Google access token |
Google Auth response. send user account and x-auth-token if user is already exists. else send user data to signup
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "access_token": "string"
}
{- "token": "string",
- "user": {
- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
}
Connect or disconnect your user account with google.
Google access token
access_token | string Google access token, if passed connect with google else disconnect |
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "access_token": "string"
}
{- "token": "string",
- "user": {
- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
}
Authentication with github
Github access token
access_token | string Github access token |
Github Auth response. send user account and x-auth-token if user is already exists. else send user data to signup
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "access_token": "string"
}
{- "token": "string",
- "user": {
- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
}
Connect or disconnect your user account with github.
Google access token
access_token | string Github access token, if passed connect with github else disconnect |
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "access_token": "string"
}
{- "token": "string",
- "user": {
- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
}
Refresh access token
refresh_token | string |
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "token": "string",
- "user": {
- "_id": "5a2539b41c574006c46f1a07",
- "username": "string",
- "birthDate": "2020-06-10",
- "privateSession": false,
- "gender": "F",
- "email": "example@example.com",
- "displayName": "string",
- "role": "free",
- "country": "EG",
- "credit": 0,
- "plan": null,
- "images": [
- "string"
], - "verified": false,
- "lastLogin": "2020-06-10",
- "facebook_id": "string",
- "google_id": "string",
- "type": "string"
}
}
Remove refresh token from the server
refresh_token | string |
No Content - The request has succeeded but returns no message body.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "status": "string",
- "message": "string"
}
Get Information About The User's Current Playback
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
No Content - The request has succeeded but returns no message body.
{- "device": {
- "id": "string",
- "isActive": true,
- "isPrivateSession": true,
- "name": "string",
- "type": "Unknown",
- "volumePercent": 0
}, - "progressMs": 0,
- "isPlaying": true,
- "shuffleState": true,
- "repeatState": "off",
- "currentlyPlayingType": "unknown",
- "item": {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0,
- "audioUrl": "string"
}, - "actions": {
- "interrupting_playback": true,
- "pausing": true,
- "resuming": true,
- "seeking": true,
- "skipping_next": true,
- "skipping_prev": true,
- "toggling_repeat_context": true,
- "toggling_shuffle": true,
- "toggling_repeat_track": true,
- "transferring_playback": true
}, - "context": {
- "type": "unknwon",
- "id": "string"
}
}
Transfer a User's Playback
DeviceIds and play
deviceIds required | Array of strings Required. A JSON array containing the ID of the device on which playback should be started/transferred. For example: |
play | boolean Optional. |
No Content - The request has succeeded but returns no message body.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "deviceIds": [
- "string"
], - "play": true
}
{- "status": "string",
- "message": "string"
}
Get the User's Currently Playing Track
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
No Content - The request has succeeded but returns no message body.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "track": {
- "_id": "string",
- "name": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "albumId": "string",
- "album": {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}, - "type": "string",
- "duartion": 0,
- "views": 0,
- "audioUrl": "string"
}, - "context": {
- "type": "unknwon",
- "id": "string"
}
}
Get Current User's Recently Played Tracks
limit | integer [ 1 .. 50 ] Default: 20 Optional. The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50. |
after | integer <Unix Millisecond> Optional. A Unix timestamp in milliseconds. Returns all items after (but not including) this cursor position. If after is specified, before must not be specified. |
before | integer <Unix Millisecond> Optional. A Unix timestamp in milliseconds. Returns all items before (but not including) this cursor position. If before is specified, after must not be specified. |
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
No Content - The request has succeeded but returns no message body.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "items": [
- {
- "playedAt": "2020-06-10T23:50:51Z",
- "context": {
- "type": "Album",
- "id": "string",
- "item": {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
}
}
], - "limit": 0
}
Get a User's Available Devices
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
[- {
- "id": "string",
- "isActive": true,
- "isPrivateSession": true,
- "name": "string",
- "type": "Unknown",
- "volumePercent": 0
}
]
Delete a track from Queue. If the deleted track was the playing track the queue will play the first track if found and if not it will play the last queue if found
queueIndex | integer [ 0 .. 1 ] Default: 0 Optional. The index of the queue Default 0 must be greater than 0 if |
trackIndex | integer >= 0 Optional, the track index to be deleted, must be positive. pass track Index or trackId if nothing passed thow |
trackId | string <uuid> Optional, the track id to be deleted, must be positive. pass trackIndex or trackId if nothing passed thow |
No Content - The request has succeeded but returns no message body.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Edit Track Position
queueIndex | integer [ 0 .. 1 ] Default: 0 Optional. The index of the queue Default 0 must be greater than 0 if |
trackIndex | integer >= 0 Optional, the track index to be moved, zero based, must be positive. pass trackIndex or trackId if nothing passed |
trackId | string <uuid> Optional, the track id to be moved, must be positive. pass trackIndex or trackId if nothing passed thow |
newIndex required | integer >= 0 Required, the new track index, zero based, must be positive. if index greater than the queue length |
No Content - The request has succeeded but returns no message body.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Add an Item to the User's Playback Current Queue
queueIndex | integer [ 0 .. 1 ] Default: 0 Optional. The index of the queue Default 0 must be greater than 0 if |
deviceId | integer Optional. The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
trackId required | string <uuid> Track ID to add to queue |
No Content - The request has succeeded but returns no message body.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Get User's Playback Queue
queueIndex | integer [ 0 .. 1 ] Default: 0 Optional. The index of the queue Default 0 must be greater than 0 if |
OK - The request has succeeded. The client can read the result of the request in the body and the headers of the response.
No Content - The request has succeeded but returns no message body.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "tracks": [
- "string"
], - "total": 0
}
Set Volume For User's Playback
deviceId | integer Optional. The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
volumePercent | integer [ 0 .. 100 ] Required. Integer. The volume to set. Must be a value from 0 to 100 inclusive. |
No Content - The request has succeeded but returns no message body.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Skip User’s Playback To Previous Track. If the repeat state in player is context
and the playing track is the first track it will go to the last track in the queue. If the repeat state in player is not context
and the playing track is the first track it will play will play the last queue if found.
deviceId | integer Optional. The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
No Content - The request has succeeded but returns no message body.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Skip User’s Playback To Next Track. If the repeat state in player is context
and the playing track is the last track it will go to the first track in the queue. If the repeat state in player is not context
and the playing track is the last track it will create a new queue similar to the playing queue.
deviceId | integer Optional. The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
No Content - The request has succeeded but returns no message body.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Pause a User's Playback
deviceId | integer Optional. The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
No Content - The request has succeeded but returns no message body.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Seek To Position In Currently Playing Track
positionMs required | integer Required. The position in milliseconds to seek to. Must be a positive number. Passing in a position that is greater than the length of the track will cause the player to start playing the next song. |
deviceId | integer Optional. The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
No Content - The request has succeeded but returns no message body.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Set Repeat Mode On User’s Playback
state required | string Enum: "track" "context" "off" Required. |
deviceId | integer Optional. The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
No Content - The request has succeeded but returns no message body.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Toggle Shuffle For User’s Playback
state required | boolean Required |
deviceId | integer Optional. The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
No Content - The request has succeeded but returns no message body.
Forbidden - The server understood the request, but is refusing to fulfill it.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
Start/Resume a User's Playback. if the user is a free user every 3 tracks 1 ad will be played
deviceId | integer Optional. The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
queueIndex | integer [ 0 .. 1 ] Default: 0 Optional. The index of the queue if |
contextUri | string <uri> Optional. Oud URI of the context to play. Valid contexts are album, artist, playlist. |
uris | Array of strings <uri> Optional. A JSON array of the Oud track URIs to play |
offset | object Optional. Indicates from where in the context playback should start. Only available when contextUri corresponds to an album or playlist object, or when the uris parameter is used. |
positionMs | integer Optional. Indicates from what position to start playback. Must be a positive number. Passing in a position that is greater than the length of the track will cause the player to start playing the next song. |
No Content - The request has succeeded but returns no message body.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Not Found - The requested resource could not be found.
{- "contextUri": "oud:album:4iV5W9uYEdYUVa79Axb7Rh",
- "uris": [
- "oud:track:4iV5W9uYEdYUVa79Axb7Rh",
- "oud:track:1301WleyT98MSxVHPZCA6M"
], - "offset": { },
- "positionMs": 0
}
{- "status": "string",
- "message": "string"
}
id required | string The ID for the genre. |
the response body contains a genre object in JSON format.
Invalid ID
Not Found - The requested resource could not be found.
{- "_id": "string",
- "name": "string"
}
Get all genres inside a paging object
limit | integer maximum number of genres to return (maximum 50, default 50) |
offset | integer number of genres to skip from beginning to return (starts from zero) |
list of genres inside a paging object
Invalid ID
{- "items": [
- {
- "_id": "string",
- "name": "string"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
Updates the registration token that is used to send nofications to the user via Firebase Cloud Messaging(FCM).
token | string The registration token of the user |
the resources are updated and the response body is empty.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "token": "string"
}
{- "status": "string",
- "message": "string"
}
gets the messages' threads of the user in paging object sorted from most frequent modified to least
limit | integer maximum number of threads to return (maximum 50, default 20) |
offset | integer number of threads to skip from beginning to return (starts from zero) |
list of threads inside a paging object
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
{- "items": [
- {
- "_id": "string",
- "from": {
- "_id": "string",
- "displayName": "string"
}, - "to": {
- "_id": "string",
- "displayName": "string"
}, - "read": true,
- "updatedAt": "string",
- "messages": [
- {
- "_id": "string",
- "author": "string",
- "message": "string",
- "sentAt": "string"
}
]
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
gets a specific thread of the user with its messages wrapped in paging object sorted from most frequent one to least.
id required | string ID of the thread |
limit | integer maximum number of messages to return (maximum 50, default 20) |
offset | integer number of messages to skip from beginning to return (starts from zero) |
A thread with messages paging object
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Not Found - The requested resource could not be found.
{- "_id": "string",
- "from": {
- "_id": "string",
- "displayName": "string"
}, - "to": {
- "_id": "string",
- "displayName": "string"
}, - "read": true,
- "updatedAt": "string",
- "createdAt": "string",
- "messages": {
- "items": [
- {
- "_id": "string",
- "author": "string",
- "message": "string",
- "sentAt": "string"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
}
sends a message to a specific thread of the user.
id required | string ID of the recipient |
message | string The contents of the message |
Created - The request has been fulfilled and resulted in a new resource being created.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Not Found - The requested resource could not be found.
{- "message": "string"
}
{- "status": "string",
- "message": "string"
}
Deletes a specific message from a thread
id required | string ID of the thread |
messageId required | string ID of the message to be deleted |
No Content - The request has succeeded but returns no message body.
Bad Request - The request could not be understood by the server due to malformed syntax. The message body will contain more information.
Unauthorized - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Not Found - The requested resource could not be found.
{- "status": "string",
- "message": "string"
}
categoryId required | string Id of the Category |
the response body contains category object in JSON format.
Invalid ID
Unauthorized.
The specified resource was not found.
{- "_id": "string",
- "name": "string",
- "icon": "string"
}
category_id required | string Id of the Category |
limit | integer [ 1 .. 50 ] Default: 20 The maximum number of items to return. |
offset | integer Default: 0 The index of the first item to return. |
the response body contains array of Simplified Playlist objects in JSON format.
Invalid ID
Unauthorized.
The specified resource was not found.
{- "items": [
- {
- "_id": "string",
- "name": "string",
- "owner": "string",
- "tracks": [
- {
- "_id": "string",
- "name": "string",
- "album": "string",
- "artists": [
- "string"
], - "type": "string",
- "duartion": 0,
- "views": 0
}
], - "collaborative": true,
- "description": "string",
- "public": true,
- "image": "string",
- "type": "string"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
offset | integer Default: 0 The index of the first item to return. |
limit | integer [ 1 .. 50 ] Default: 20 The maximum number of items to return. |
the response body contains array of Simplified Playlist objects in JSON format.
Invalid ID
The specified resource was not found.
{- "items": [
- {
- "_id": "string",
- "name": "string",
- "icon": "string"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
offset | integer Default: 0 The index of the first item to return. |
limit | integer [ 1 .. 50 ] Default: 20 The maximum number of items to return. |
the response body contains array of album objects in JSON format.
Invalid ID
The specified resource was not found.
{- "items": [
- {
- "_id": "string",
- "album_type": "string",
- "artists": [
- {
- "_id": "string",
- "displayName": "string",
- "type": "string",
- "images": [
- "string"
]
}
], - "image": "string",
- "name": "string",
- "type": "string",
- "released": true
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}