I get the error when I try to hit the access scopes endpoint. /admin/oauth/access_scopes.json
Since oauth is in the endpoint path, does it require a different token? I am calling shop with the same code no issues.
Thanks for sending an update with a bit more info. I see that the error being returned here is a 401 Unauthorized error, which is generally related to authentication credentials. To confirm, this endpoint is meant to return a list of scopes associated with a specific access token, that was generated for your app and used to send authenticated requests to a specific store. As with all API requests, once authenticated your app will need to use the x-shopify-access-token header when sending an API request to a shops endpoint.
If this is not working as expected, would you be able to provide an example x-request-id header from a request that this error was also returned? - Cheers.