MuzikHub Label API
The MuzikHub API allows you to programmatically manage artists, automate smart link creation, and retrieve detailed analytics. Integrate powerful label management directly into your existing tools and workflows.
Overview
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail. The API is RESTful, uses standard HTTP verbs, and returns JSON-encoded responses.
Authentication
Authenticate your requests by including your secret API key in the Authorization header. You can manage your API keys in the developer dashboard. Do not share your secret API keys in publicly accessible areas such as GitHub or client-side code.
Rate Limits
Label API keys currently have unlimited requests with no strict rate limiting. However, we monitor usage and recommend implementing exponential backoff in your applications to ensure fair usage and prevent abuse.
Artists Endpoints
List All Artists
GETRetrieve a paginated list of all artists managed by your label. The artists are sorted by creation date in descending order.
curl -X GET https://muzikhub.vercel.app/api/v1/artist \
-H "Authorization: Bearer mzh_your_api_key"{
"success": true,
"artists": [
{
"id": "art_12345",
"artistName": "The Midnight Echo",
"genre": "Synthwave",
"verificationStatus": "verified",
"createdAt": "2026-05-09T10:00:00Z"
}
],
"meta": {
"total": 1,
"page": 1
}
}Create Artist
POSTCreate a new artist account and automatically bind them to your label dashboard.
Request Body
The display name of the artist.
The URL-friendly slug for the artist.
The primary contact email for the artist account.
Initial password for the artist.
Primary genre of the artist.
Label revenue split percentage (0-100). Default is 50.
curl -X POST https://muzikhub.vercel.app/api/v1/artist \
-H "Authorization: Bearer mzh_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"artistName": "Neon Dreams",
"slug": "neon-dreams",
"email": "hello@neondreams.com",
"password": "securepassword123",
"genre": "Electronic",
"revenueSplitPercentage": 60
}'{
"success": true,
"artist": {
"id": "art_67890",
"artistName": "Neon Dreams",
"email": "hello@neondreams.com",
"genre": "Electronic",
"relationshipType": "managed",
"revenueSplitPercentage": 60,
"createdAt": "2026-05-09T10:15:00Z"
}
}Get Artist
GETRetrieve detailed profile information for a specific artist by their unique ID.
curl -X GET https://muzikhub.vercel.app/api/v1/artist/art_67890 \
-H "Authorization: Bearer mzh_your_api_key"{
"success": true,
"artist": {
"id": "art_67890",
"artistName": "Neon Dreams",
"bio": "Electronic duo from the future.",
"genre": "Electronic",
"socialLinks": {
"spotify": "https://spotify.com/...",
"instagram": "https://instagram.com/..."
}
}
}Update Artist
PATCHUpdate an existing artist's profile information. Only the fields provided in the request body will be updated.
Request Body
Update the display name.
Update the artist biography.
Update the primary genre.
curl -X PATCH https://muzikhub.vercel.app/api/v1/artist/art_67890 \
-H "Authorization: Bearer mzh_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"bio": "Award-winning electronic duo."
}'{
"success": true,
"artist": {
"id": "art_67890",
"artistName": "Neon Dreams",
"bio": "Award-winning electronic duo.",
"genre": "Electronic"
}
}Delete Artist
DELETEPermanently delete an artist and disconnect them from your label. This action cannot be undone.
curl -X DELETE https://muzikhub.vercel.app/api/v1/artist/art_67890 \
-H "Authorization: Bearer mzh_your_api_key"{
"success": true,
"message": "Artist successfully deleted."
}Smart Links Endpoints
List All Links
GETRetrieve a list of all smart links created for your label's artists.
curl -X GET https://muzikhub.vercel.app/api/v1/link \
-H "Authorization: Bearer mzh_your_api_key"{
"success": true,
"links": [
{
"id": "lnk_abc123",
"title": "Midnight Release",
"artist": "Faya",
"url": "https://muzikhub.vercel.app/faya/midnight-release",
"clicks": 1420
}
]
}Create Link
POSTCreate a new smart link for a release, automatically routing fans to their preferred streaming platform.
Request Body
The ID of the artist this link belongs to.
Title of the release or link.
The Apple Music URL of the release or link.
Key-value pairs of streaming platforms and their respective URLs.
curl -X POST https://muzikhub.vercel.app/api/v1/link \
-H "Authorization: Bearer mzh_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"artistId": "art_12345",
"title": "Summer Vibes EP",
"artist": "Faya",
"url": "https://music.apple.com/...",
"platformLinks": {
"spotify": "https://open.spotify.com/album/...",
"appleMusic": "https://music.apple.com/..."
}
}'{
"success": true,
"link": {
"id": "lnk_xyz987",
"artistId": "art_12345",
"title": "Summer Vibes EP",
"artist": "Faya",
"artworkUrl": "https://.../cover.jpg",
"url": "https://muzikhub.vercel.app/faya/summer-vibes-ep",
"createdAt": "2026-05-09T11:00:00Z"
}
}Get Link
GETRetrieve detailed analytics and routing information for a specific smart link.
curl -X GET https://muzikhub.vercel.app/api/v1/link/lnk_xyz987 \
-H "Authorization: Bearer mzh_your_api_key"{
"success": true,
"link": {
"id": "lnk_xyz987",
"title": "Summer Vibes EP",
"artist": "Faya",
"url": "https://muzikhub.vercel.app/faya/summer-vibes-ep",
"clicks": 450,
"artworkUrl": "https://.../cover.jpg",
"createdAt": "2026-05-09T11:00:00Z
}
}