App proxyobject
App proxies take requests to Shopify links, and redirect them to external links.
The function validates requests made to app proxies, and returns a context to enable querying Shopify APIs.
If the store has not installed the app, store-related properties such as admin
or storefront
will be undefined
Authenticates requests coming to the app from Shopify app proxies.
Authenticate and fetch product information
/app/routes/**.ts
Anchor to examplesExamples
Anchor to example-interacting-with-the-admin-apiInteracting with the Admin API
Use the admin
object to interact with the admin GraphQL API.
Interacting with the Admin API
app/routes/**\/.ts
Anchor to example-liquidliquid
Anchor to example-rendering-liquid-contentRendering liquid content
Use the liquid
helper to render a Response
with Liquid content using the shop's theme. See the Liquid reference for all the features it enables.
Anchor to example-rendering-liquid-content-without-a-layoutRendering liquid content without a layout
Set the layout
option to false
to render the Liquid content without a theme.
Anchor to example-rendering-a-form-in-a-liquid-responseRendering a form in a Liquid response
Handle form submissions through an app proxy.
Rendering liquid content
/app/routes/**\/*.ts
Anchor to example-sessionsession
Anchor to example-using-the-session-objectUsing the session object
Get the session for the shop that initiated the request to the app proxy.
Using the session object
app/routes/**\/.ts
Anchor to example-storefrontstorefront
Anchor to example-interacting-with-the-storefront-apiInteracting with the Storefront API
Use the storefront
object to interact with the GraphQL API.