question

kris avatar image
kris asked

Scope doesn't seem to work for Amazon Music

I'm trying to get an access token for use with the Amazon Music API, and following the documentation here: https://developer.amazon.com/docs/music/API_browse_LWA.html#calling-lwa-for-use-with-amazon-music it states that I need to pass through a scope of "amazon_music:access". However, when I do this I get back the following response.

{
    "error_description": "The request has an invalid parameter : scope",
    "error": "invalid_scope"
}

EDIT: I forgot to mention that our account manager has assured us we do have access to the Amazon Music API after spending a few months going through the process of getting access.

amazon musicscope.token
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sam@amazon avatar image
sam@amazon answered

There are two diffrent APIs. You likely were granted access to the Web API. that API is still in beta and the scopes are still evolving. For now use the scope 'profile' as described here https://developer.amazon.com/docs/music/API_web_overview.html

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

PIAS Technical Team avatar image
PIAS Technical Team answered

Hi @sam@amazon , the scope 'profile' doesn't work for me. It gives error as invalid scope.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.