Skip to main content

Configuring Apple Music

To integrate with Apple Music you need to have a Developer Account created at Apple.

Team ID can be found at developer.apple.com/account Example Apple Secrets

Key ID and Private Key has to be generated in Apple Certificates Portal. Please follow this tutorial to learn how to do so: How to Create a Media Identifier and Private Key

Similarly, the Client ID also needs to be generated in the Apple Certificates Portal. You can find instructions in the tutorial below How to Register a Services ID, after creating a Services ID, you can find your Client ID there. Example Apple Client ID

When creating Service ID with Apple login, make sure that:

  • Domains & Subdomains lists both : api.musicapi.com & app.musicapi.com
  • Return URL is: https://api.musicapi.com/callback/apple_sign_in

To open Apple Music authorization you can either redirect user to:

which will open Apple Music authentication flow.

Or you can just point your users to:

where they will be able to select which music service they want to login with.

Known problems

If you are getting an error:

    { "message": "Invalid token specified" }

please make sure that the Key in Apple Developer that you have configured have both Media Services and Sign in with Apple enabled like on the screenshot: Example Apple Music Key