Click on your avatar top right, then click on Settings.
Click on Personal API Key.
Click on Create Key
Choose a key expiration time and click on Create.
This is the only time you see the Personal API Key, so make sure to Copy it!
Paste the Personal API Key into the field in the Garmin Connect box.