Reply to 401-Unauthorized developer token in Apple Music API This might only apply to the python users, but if you decode using utf-8, that should produce a usable curl command. ex. token = jwt.encode(payload, secret, algorithm=alg, headers=headers).decode("utf-8") Media Technologies General Oct ’20