My MusicKit developer token returns 401 (empty body) on every Apple Music API catalog endpoint. I've tried two different keys — both fail identically.
Setup:
Team ID: K79RSBVM9G
Key ID: URNQV5UDGB (MusicKit enabled, associated with Media ID media.audio.explore.musickit)
Apple Developer Program License Agreement accepted April 14, 2026
Token format (matches docs exactly):
Header: {"alg":"ES256","kid":"URNQV5UDGB"}
Payload: {"iss":"K79RSBVM9G","iat":,"exp":<now+15777000>}
What works: /v1/storefronts/us returns 200 What fails: Every catalog endpoint returns 401 with empty body:
/v1/catalog/us/search?types=artists&term=test
/v1/catalog/us/artists/5920832
/v1/catalog/us/genres
/v1/test
The token self-verifies (signature is valid). I've tried with and without typ:"JWT", with the origin claim, and with a manually signed JWT bypassing the jsonwebtoken library. Same 401 every time.
What am I missing?
0
0
22