Skip to main content
Musixmatch enterprise integrations use OAuth 2.0 for authentication and authorization. Two grant types are supported depending on your use case. The authorization server base URL is:

Client Registration

Before integrating, Musixmatch will issue you a Client ID and Client Secret during the client registration process. You will also need to provide your redirect_uri (required for the Authorization Code flow). Contact apisupport@musixmatch.com to begin registration.

Authorization Code Flow

Use this flow to authenticate end users (artists or rights holders) within your application. The result is an access_token bound to that user, which can be introspected to retrieve their Musixmatch user ID.

Step 1 — Initiate the authorization request

Redirect the user to the Musixmatch authorization endpoint:

Step 2 — User authorizes

The user logs in or registers on Musixmatch. On success, they are redirected to your redirect_uri with:
  • code — the authorization code
  • state — must match the value you sent in Step 1

Step 3 — Exchange the code for tokens

Response:

Step 4 — Refresh the access token

When the access_token expires, use the refresh_token to get a new one without requiring the user to log in again.
Following the OAuth specification and security best practices, the refresh_token used in a successful request will be invalidated — alongside all related access tokens — and a new one will be issued in the response. Always store and use the latest refresh_token returned.

Retrieving the Musixmatch User ID

Once you have a user access_token, introspect it to retrieve the Musixmatch user ID (sub). This ID is required when making API calls on behalf of a user.
Response (valid token):
Response (invalid token):

Client Credentials Flow

Use this flow for server-to-server API calls that do not require a user context — for example, submitting a release delivery or lyrics from your backend.
Response:
Pass the resulting access_token as a Bearer token in the Authorization header of API requests: