A Shopify access token is essential for connecting third-party applications, automation tools, and custom integrations to your Shopify store. Whether you're building a custom app, integrating with inventory management software, or automating order processing, understanding how to find and generate your Shopify store API key is the first critical step.
In 2026, Shopify continues to refine its developer experience, making it easier than ever to securely generate and manage access tokens. This comprehensive guide will walk you through the entire process, from initial setup through implementation, ensuring your integrations are secure and properly configured.
Before generating your access token, you need to determine which API scopes your integration requires. Scopes define what permissions your token has and what data it can access. Following the principle of least privilege, only request the scopes you actually need.
| Scope | What It Allows |
|---|---|
| read_products | Read product data including titles, prices, images, and variants without modification permissions |
| write_products | Create, update, and delete products and their variants in your store |
| read_orders | Access order information including customer details, order status, line items, and payment information |
| write_orders | Create and modify orders, including fulfillment updates and order cancellations |
| read_inventory | View inventory levels and stock information across locations |
| write_inventory | Modify inventory quantities and transfer inventory between locations |
| read_customers | Access customer data including contact information and purchase history |
| write_customers | Create new customers and update existing customer information |
Follow these detailed steps to generate your Shopify access token and find your store API key:
Log in to your Shopify admin account using your store URL and credentials. Navigate to your store's admin panel by visiting https://admin.shopify.com or https://your-store-name.myshopify.com/admin. Make sure you're logged in with an account that has full admin permissions, as restricted accounts may not have access to app development features.
In the left sidebar menu, locate and click on "Apps and sales channels" (or "Apps" in older Shopify versions). This section contains all your installed apps and the tools needed to create custom integrations. You should see options for both installed apps and app development settings.
Look for a "Develop apps" link or button, typically found at the top of the Apps section. If you don't see this option, you may need to enable app development in your store settings. Click "Create an app" to begin the process of setting up your custom integration.
In the app creation dialog, enter a descriptive name for your custom app. Use a clear name that indicates its purpose, such as "Inventory Sync Tool" or "Order Automation Integration". You may also be asked to provide information about the app's purpose and functionality. Fill in these details accurately, as they help Shopify understand your use case and provide relevant security recommendations.
After creating your app, navigate to the "Configuration" or "Admin API" section. Here you'll see a list of available scopes. Select only the scopes your integration requires. For example:
read_orderswrite_inventory and read_inventoryread_products and optionally write_productsSave your scope selections before proceeding to the next step.
Shopify will display important information about your app's permissions and access. Review this carefully to ensure you understand what data your token can access. Accept the terms and conditions to proceed with generating your access token.
Look for a button labeled "Install app" or "Generate token". Click this button, and Shopify will generate your access token. This token typically appears as a long string of characters that looks similar to this format:
shpat_abcdef123456789ghijklmnop
Important: Copy this token immediately and store it in a secure location. Shopify only displays it once, and you cannot retrieve it again after closing this page. If you lose your token, you'll need to regenerate a new one.
Your store's API key (also called the API credential) can be found in the same configuration section. It typically appears as a shorter alphanumeric string and is used in conjunction with your access token for API authentication. Make note of both your API key and API password (if applicable) from this screen.
Before implementing your token in production, test it by making a simple API call. Use the following curl example to verify your token works correctly:
curl -X GET "https://your-store-name.myshopify.com/admin/api/2024-01/products.json" \
-H "X-Shopify-Access-Token: shpat_your_token_here"
Replace your-store-name with your actual store name and shpat_your_token_here with your generated access token. If successful, you should receive a JSON response containing your store's product data.
Never hardcode your access token directly in your application code or commit it to version control. Instead, use environment variables or a secure secrets management system. For example, in a Node.js application:
const accessToken = process.env.SHOPIFY_ACCESS_TOKEN;
const shopName = process.env.SHOPIFY_SHOP_NAME;
const apiUrl = `https://${shopName}.myshopify.com/admin/api/2024-01/products.json`;
fetch(apiUrl, {
headers: {
'X-Shopify-Access-Token': accessToken
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
While the manual process works well, if you need to quickly set up multiple stores or integrate with various third-party platforms, GetShopifyToken at https://getshopifytoken.com automates the entire process. This service streamlines token generation, making it ideal for agencies managing multiple client stores or developers handling numerous integrations simultaneously.
GetShopifyToken handles the configuration complexity and allows you to generate tokens with appropriate scopes in just a few clicks, significantly reducing setup time and potential configuration errors. This is particularly valuable in 2026 when you're managing multiple integrations across different platforms.
While technically possible, it's not recommended from a security standpoint. Best practice is to create separate custom apps with their own access tokens for each integration or application. This allows you to revoke access to one app without affecting others, and it makes it easier to track which applications are accessing your store data.
Shopify access tokens don't expire automatically unless you revoke them manually. However, security best practices recommend rotating tokens periodically (annually or when team members leave). You should definitely rotate tokens if you suspect they've been compromised or if you need to restrict an application's access.
Custom apps are designed for your specific store and cannot be shared with other merchants. Public apps are built for the Shopify App Store and can be installed by multiple stores. For most integrations, custom apps are the appropriate choice. Public apps require additional security reviews and compliance with Shopify's requirements.
Yes. In your app's configuration settings, you should find a "Regenerate" or "Reset token" option. This will invalidate the old token and create a new one. However, note that this will temporarily interrupt any integrations using the old token, so coordinate the change with your implementation.
Shopify doesn't impose a hard limit on the number of custom apps you can create per store. However, best practice is to consolidate related functionality into fewer apps rather than creating numerous single-purpose apps, as this simplifies management and reduces administrative overhead.
Skip the manual OAuth flow. GetShopifyToken automates the entire process — just paste your credentials and get your token instantly.
Generate Token Now →