Skip to main content

How to generate a Shopify Admin API Access Token

Dan Macarie avatar
Written by Dan Macarie
Updated over a week ago

The most common and simplest way to retrieve additional information is to get a permanent Shopify Admin API access token for your workflow tools (like n8n or Zapier's Webhooks/Code steps) is by creating a Custom App directly within your Shopify Admin.

This process grants you a single, permanent Admin API Access Token that you will use in the X-Shopify-Access-Token header.

Here are the step-by-step instructions:

How to Create the Shopify Admin API Access Token

Step 1: Enable Custom App Development

  1. Log in to your Shopify Admin Panel (your-store-name.myshopify.com/admin).

  2. Go to Settings (bottom left corner).

  3. Click on Apps and sales channels.

  4. Click on Develop apps.

  5. If this is your first time, you may need to click Allow custom app development to confirm.

Step 2: Create the Custom App

  1. Click the Create an app button.

  2. App Name: Give it a descriptive name for your automation (e.g., "n8n Integration," "Zapier Sync," "CMS Bridge").

  3. App Developer: Enter your email address.

  4. Click Create app.

Step 3: Configure API Scopes (Permissions)

This step is critical as it defines what data your automation can read and write.

  1. On the app details page, click the Configuration tab.

  2. In the Admin API integration section, click Configure.

  3. Under Admin API access scopes, check the necessary permissions:

    • To read/get articles: Check the box next to read_content.

  4. Scroll down and click Save.

Step 4: Install the App and Get the Token

  1. Go back to the API credentials tab.

  2. In the Admin API access token section, click Install app.

  3. A warning will pop up; click Install again to confirm.

  4. Once installed, the token is generated. Click Reveal token once.

Important: The token will be shown only once. Copy this token immediately and save it in a secure location (like a password manager or your n8n/Zapier credentials manager). This is the value you use for the X-Shopify-Access-Token header.

Did this answer your question?