Skip to main content

The REST Admin API is a legacy API as of October 1, 2024. Starting April 1, 2025, all new public apps must be built exclusively with the GraphQL Admin API. For details and migration steps, visit our migration guide.

AccessScope

The AccessScope resource allows you to retrieve the permissions that a merchant has granted to an app, such as read_orders and write_products. These permissions allow apps to access data from a shop, and are granted when a merchant installs the app or updates an existing installation of the app.

The list of access scopes retrieved is based on the access token for the request. It returns only those access scopes that are associated with the token.

For more information about access scopes, see the access scopes API reference.

Note

If your app is already installed on a shop and you want the merchant to grant additional access scopes, you need to redirect the merchant to the app install page with the additional requested scopes. After a merchant installs the updated app, any subsequent calls made to the AccessScope resource will return the updated list of granted access scopes.

Was this section helpful?

Anchor to

The AccessScope resource

Anchor to

Properties


access_scopes

The list of access scopes associated with the access token.


Was this section helpful?
{}

The AccessScope resource

{
"access_scopes": [
{
"handle": "write_product_listings"
},
{
"handle": "read_shipping"
}
]
}

Retrieves a list of access scopes associated with the access token.


Was this section helpful?
Was this section helpful?
get

/admin/oauth/access_scopes.json

curl -X GET "https://your-development-store.myshopify.com/admin/oauth/access_scopes.json" \
-H "X-Shopify-Access-Token: {access_token}"

{}

Response

JSON
HTTP/1.1 200 OK
{
"access_scopes": [
{
"handle": "read_products"
},
{
"handle": "write_orders"
},
{
"handle": "read_orders"
}
]
}