The storefront access token is generated when creating a private app. storefront_access_token is used to populate the X-Shopify-Storefront-Access-Token request header. This can be changed to an earlier or unstable version depending on your use case.ģ. api_version is the Storefront API version used for the API requests. base_url will be the Shopify store being connected to. For this tutorial, we’ll use three environment variables:ġ. Step 3: Configure your environment variablesĮnvironment variables are JSON key-value pairs that allow you to refer to values without having to write them out every time. To do this, open the Import/Export window in Insomnia: The Import/Export window in Insomnia.įrom the Data tab, select Import and choose the file you have downloaded.
#Insomnia api key download
You will need to download the walkthrough as a collection, and import it into Insomnia. Retrieving the Storefront access token from the private app page.
This is where you can set your permissions and copy the access token. Once you have created the private app, there is a Storefront API section found at the bottom of the app overview page. To get started, you will need to create a private app. If you’re not already familiar with GraphQL, please consult the Shopify GraphQL Learning Kit before proceeding. To download this collection, find the latest build here, click “raw” and save the file.
#Insomnia api key for free
Join for free and access educational resources, developer preview environments, and recurring revenue share opportunities. Whether you want to build apps for the Shopify App Store, offer custom app development services, or are looking for ways to grow your user base, the Shopify Partner Program will set you up for success. This means instead of the ID looking like gid://shopify/Collection/1 it will look like Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzE=. IDs: Unlike the Admin API, all resource IDs in the Storefront API are base64 encoded.
It is important to differentiate between the GraphQL Admin API and the GraphQL Storefront API.