For an Alexa Skill user that has completed account linking - is a way to get their account linking accessToken
outside of the skill session?
For example I know that as part of the out of session Skill Messaging API - you can do this to get the skillMessagingToken
:
SKILL_CLIENT_ID='YOUR_SKILL_CLIENT_ID'
SKILL_CLIENT_SECRET='YOUR_SKILL_CLIENT_SECRET'
API_URL='https://api.amazon.com/auth/O2/token'
curl -k -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&scope=alexa:skill_messaging&client_id=$SKILL_CLIENT_ID&client_secret=$SKILL_CLIENT_SECRET" \
$API_URL
Rather than using the scope alexa:skill_messaging
maybe there’s another scope value that returns the user's account linking accessToken
?