How does an app access read the store configured App Proxy Url?

Topic summary

Core Issue:
Developers need to programmatically access the configured App Proxy URL (subpath prefix and subpath) for a Shopify store, but no API currently exists for this purpose.

Problem Context:

  • Merchants can customize app proxy paths (e.g., changing from /apps/blah to /tools/halb)
  • Theme extensions require the correct proxy path to communicate with app servers
  • When merchants modify the path, theme extensions break because they cannot detect the change

Current Status:

  • No API, webhook, or GraphQL query available to retrieve proxy settings
  • Shopify staff acknowledged the feedback and passed it to the app proxy team
  • Multiple developers have encountered this limitation over time

Workaround:
The only solution is to prompt merchants to manually enter their customized proxy URL in the app’s admin interface, then store it in an app metafield that theme extensions can read. This approach is cumbersome and requires merchants to remember updating the setting whenever they change the proxy configuration.

Summarized with AI on October 24. AI used: claude-sonnet-4-5-20250929.

The documentation at: https://shopify.dev/docs/apps/online-store/app-proxies mentions that “Merchants can change the sub path or sub path prefix of app proxies.”. How can an app determine the current setting of the app proxy for that store?

For example:
Given a theme extension needs to read data from the proxied app.
The App is configured with:
Subpath Prefix: apps

Subpath: blah

The merchant installs the app and changes the configuration to:

Subpath Prefix: {storeurl}/tools

Subpath: halb

How does the theme code find the {storeurl}/tools/halb path it would need to POST to or GET from?

Hey @minsko ,

I doesn’t look like there’s an API to determine which subpath a merchant selects. Changes would need to be done manually in your example.

Can an API be added to get this information? The only workaround I see would be for apps to add a new section to their administration pages asking the merchant to re-enter the customized path.

Hey @minsko

Happy to send the feedback to the app proxy team. Can you elaborate on your use case? Say a merchant changed the sub-path, how would you use the information? Would you update the theme? and in this case could you do this programatically, or would you need to manually update?

I am working on a theme extension that needs to contact the app server to get information to display to the user. My understanding is this is one of the main reasons to use an App Proxy. The theme extension needs to know the path that will get proxied to the app server. By default, the theme extension uses the path defined for the app (/apps/blah). If the merchant customizes the path (/tools/hlab), the theme extension will no longer be able to use the app proxy as it does not know the path that is proxied. If this information was available to the app and theme extension, it could be used to programmatically determine the proxied path.

Thanks @minsko . Passing this along.

1 Like

Any improvements for this scenario. I have been struggling quite a long time with this problem. The only workaround seems to prompt the merchant to add the proxy URL somewhere in my App so I can store/udate in an app metafield that can be read by my theme extension’s liquid.

Its a long path and not an ideal one to force the merchant to remember changing the proxy URL in the app config when it changes…

Any webhooks that fire when this config is changed? Any GrapQL API query/mutation to manage proxies?

Thanks a lot!

2 Likes

How is it guys?
I still can’t find the API to get the app proxy settings from the store.

You’re right—merchants can change the app proxy path, but Shopify doesn’t provide a way for apps to detect that change automatically. To work around this, you can store the updated proxy path (like /tools/halb) in a metafield or app setting. Your theme extension can then read that value to know where to send requests. It keeps things flexible and reliable