Custom App GraphQL Client - 401

I have an app that is install on a non-partner instance. I am calling the mutation webPixelCreate. I am getting 401 error. I tried doing a basic query to get shop name from GraphQL also 401. However! When using REST everything works fine. Yet, webPixelCreate is not available on REST.

To call the GraphQL endpoint I am simply using the npm package from @shopify.

Claude AI is telling me that Customer Distro apps don’t have access to GraphQL client. This can’t be true.

Hi @Levar_Berry

If you’re seeing a 401 error, I’m thinking that there is an permissions/ scope issue, or your app does not have auth or access tokens set up. Do you have write_pixels access scope? You’ll also need read_customer_events access scope and user access permission.

Also custom distributed apps do have the exact same access to the GraphQL Admin API as publicly distributed apps. If you’re using claude code you should also set up the Shopify Dev MCP: Meet Shopify Dev Assistant: Build Shopify Apps Faster Than Ever (2025) - Shopify Ireland