A Shopify access token is essential for developers and merchants who want to integrate with Shopify's API, build custom apps, or automate store operations. Whether you're developing a private app, a public app, or setting up automated workflows, understanding how to generate and manage access tokens is critical for secure and efficient API interactions.
In 2026, Shopify continues to refine its authentication methods and security protocols. This comprehensive guide walks you through obtaining a Shopify access token, understanding the different types available, and implementing them safely in your projects.
API scopes define what permissions your access token has. Only request the scopes your application actually needs. Here are common scopes used in 2026:
| Scope | What It Allows |
|---|---|
read_products |
Read product information including titles, descriptions, prices, and inventory levels |
write_products |
Create, update, and delete products in your store |
read_orders |
View all order details including customer information, line items, and fulfillment status |
write_orders |
Create and modify orders, including marking them as paid or refunding |
read_customers |
Access customer data including names, emails, phone numbers, and purchase history |
Step 1: Log Into Your Shopify Admin Dashboard
Navigate to your Shopify store's admin panel by visiting https://admin.shopify.com or directly through your store URL. Log in using your merchant or staff account credentials. Ensure you have admin-level access to create apps and tokens.
Step 2: Navigate to the Apps and Integrations Section
In the Shopify admin dashboard (2026 version), locate the "Apps and integrations" menu on the left sidebar. Click on it to expand the options. You'll see several choices including "Develop apps," "All apps," and other integration-related options.
Step 3: Create a New App
Click on "Develop apps" (or "Create an app" if you're setting up for the first time). You may be asked to enable app development mode if this is your first time. Follow the prompts to confirm. Then click "Create an app" button and provide your app a meaningful name that reflects its purpose (e.g., "Inventory Sync Tool" or "Custom Analytics Dashboard").
Step 4: Select Your App Type and Configure Admin API Scopes
Choose whether you're building a custom app or a public app. For most use cases, "Custom app" is appropriate. Next, you'll need to set your Admin API scopes. Click on "Admin API scopes" and select only the scopes your application needs. For example, if you're building an inventory management tool, select read_products, write_products, and read_inventory. Remember: request only what you need for security best practices.
Step 5: Generate Your Access Token
After configuring scopes, click "Save" and then "Install app." Shopify will generate your access token automatically. You'll see it displayed on the configuration page. Copy this token immediately and store it securely—you won't be able to view it again without regenerating it.
Step 6: Test Your Access Token
Verify that your token works by making a test API call. Here's an example using cURL:
curl -X GET "https://mystore.myshopify.com/admin/api/2024-01/products.json" \
-H "X-Shopify-Access-Token: shpat_1a2b3c4d5e6f7g8h9i0j" \
-H "Content-Type: application/json"
Replace mystore with your actual store name and shpat_1a2b3c4d5e6f7g8h9i0j with your generated token. If successful, you'll receive a JSON response with product data from your store.
Step 7: Store Your Token Securely
Never hardcode your access token directly in your source code or commit it to version control. Instead, store it in environment variables using a .env file (for local development) or secure configuration management systems (for production). For Node.js applications, you might structure it like this:
// .env file
SHOPIFY_ACCESS_TOKEN=shpat_1a2b3c4d5e6f7g8h9i0j
SHOPIFY_STORE_NAME=mystore
// In your application
require('dotenv').config();
const token = process.env.SHOPIFY_ACCESS_TOKEN;
const storeName = process.env.SHOPIFY_STORE_NAME;
While the manual process above works perfectly, many developers find it time-consuming to navigate multiple menu screens and manually configure API scopes. That's where https://getshopifytoken.com comes in. GetShopifyToken is a specialized service that streamlines the entire token generation process, allowing you to create and obtain access tokens in minutes rather than navigating through Shopify's admin interface step-by-step.
GetShopifyToken handles scope selection, token generation, and secure storage recommendations all through an intuitive interface. Whether you're a developer building your first integration or managing multiple Shopify stores, using GetShopifyToken significantly reduces friction and minimizes setup errors. Visit https://getshopifytoken.com to explore how this tool can accelerate your development workflow.
No. Each Shopify store generates its own unique access tokens. If you manage multiple stores, you'll need to create separate tokens for each store and manage them independently. Many developers use environment variables or secure vaults to manage multiple tokens across their applications.
Shopify access tokens don't expire automatically, but you should regenerate them if you suspect a compromise or as part of regular security audits (annually or semi-annually). Additionally, regenerate tokens when changing API scopes or when transitioning between development and production environments.
Private (or custom) apps generate a single static access token that you control directly. Public apps use OAuth 2.0 flow where merchants grant permissions and Shopify issues tokens. Public apps are for distribution on the Shopify App Store, while private apps are for internal use or specific merchant integrations. The token generation and management process differs significantly between the two.
It's better to avoid sharing tokens directly. Instead, store tokens in secure, shared systems like environment variable management tools, password managers, or CI/CD secret vaults that your team can access without seeing the actual token value. This way, you maintain audit trails and can revoke access quickly if needed.
Immediately go to your app settings in the Shopify admin and delete the compromised token. Generate a new one and update all applications using the old token. Shopify doesn't provide a way to "invalidate without delete," so replacement is the standard approach. Consider reviewing API logs to see what actions were taken with the compromised token.
Skip the manual OAuth flow. GetShopifyToken automates the entire process — just paste your credentials and get your token instantly.
Generate Token Now →