Can I the shopify access token to access the GraphQL endpoint?

shopappbuider
Shopify Partner
1 0 0

I am trying to use the graphql endpoint here to debug some issues with my Remix store application:

https://shopify.dev/docs/apps/auth/admin-app-access-tokens

 

I used the following curl request:

curl -X POST \
https://{shop}.myshopify.com/admin/api/2023-04/graphql.json \
-H 'Content-Type: application/graphql' \
-H 'X-Shopify-Access-Token: {access_token}' \
-d '
{
products(first: 5) {
edges {
node {
id
handle
}
}
pageInfo {
hasNextPage
}
}
}
'

 

But got "Invalid API key or access token (unrecognized login or wrong password)". I have given full access to the token scope, so wondering, are there additional steps that I need to take enable the access token to be used for graphQL?

 

Replies 0 (0)