A Shopify access token is your gateway to programmatically managing your store's data, products, orders, and customers. Whether you're building a custom app, integrating with third-party tools, or automating business processes, understanding how to obtain and use a Shopify access token is essential. This comprehensive guide will walk you through everything you need to know in 2026.
API scopes define what permissions your access token has within your Shopify store. Selecting the correct scopes is crucial for security and functionality. Here are common scopes you might need:
| Scope | What It Allows |
|---|---|
| read_products | Read product data, titles, descriptions, pricing, and variants |
| write_products | Create, update, and delete products and their variants |
| read_orders | Access order information, customer details, and fulfillment status |
| write_orders | Create and modify orders, including fulfillments and refunds |
| read_customers | View customer profiles, contact information, and purchase history |
Log in to your Shopify store's admin panel using your credentials. Navigate to the URL in the format: mystore.myshopify.com/admin. Ensure you have admin-level access, as you'll need permission to create apps and access API credentials.
In your Shopify admin, look for the "Apps and integrations" or "Apps" section in the left sidebar. This location may vary depending on your Shopify plan and dashboard version. Click on it to proceed to the apps management area.
Click the "Create an app" or "Develop apps" button. You'll be prompted to enter a name for your app. Choose a descriptive name that reflects its purpose, such as "Inventory Sync Tool" or "Order Export Service". This name will help you identify the app later if you create multiple custom apps.
After creating your app, navigate to the "Configuration" or "Admin API scopes" section. Here's where you'll select the specific scopes your app needs. Only request the minimum scopes necessary for your use case—this follows the principle of least privilege and improves security. For example:
read_productsread_orders and potentially write_ordersread_customers and write_customersOnce you've selected your scopes, save the configuration.
Navigate to the "Admin API access tokens" section within your custom app settings. Click "Generate token" or a similar button. Shopify will create a unique access token for your app. This token is displayed only once, so you must copy it immediately and store it securely. Never share this token or commit it to public code repositories.
The token appears in a format like this:
shpat_abcdef123456789abcdef123456789ab
In addition to the access token, you'll need:
Copy and store these credentials in a secure location, such as environment variables or a secrets management system.
Now that you have your access token, test it by making a simple API call. Use curl or your preferred tool to verify the token works:
curl -X GET "https://mystore.myshopify.com/admin/api/2025-01/products.json" \
-H "X-Shopify-Access-Token: shpat_abcdef123456789abcdef123456789ab"
Replace mystore with your actual store name and shpat_abcdef123456789abcdef123456789ab with your real access token. If successful, you'll receive a JSON response containing your store's products.
Once you've verified your token works, integrate it into your application. Store it as an environment variable rather than hardcoding it:
// Example in Node.js
const accessToken = process.env.SHOPIFY_ACCESS_TOKEN;
const storeUrl = process.env.SHOPIFY_STORE_URL;
async function getProducts() {
const response = await fetch(`https://${storeUrl}/admin/api/2025-01/products.json`, {
headers: {
'X-Shopify-Access-Token': accessToken
}
});
return response.json();
}
If you find the manual process time-consuming or prefer a streamlined approach, getshopifytoken.com offers an automated solution. This service guides you through the process with an intuitive interface, handles the OAuth flow, and securely manages your credentials. Instead of navigating multiple dashboard screens, you can generate and manage your Shopify access tokens more efficiently through their platform at https://getshopifytoken.com. This is particularly useful if you're managing multiple stores or frequently creating new apps.
X-Shopify-Access-Token.store-name.myshopify.com, not custom domains, for API calls.A Shopify access token does not expire automatically. It remains valid indefinitely until you manually revoke it from your app settings or delete the custom app. However, if your store is inactive for 90 days or if you delete the app, the token becomes invalid. Always monitor your active apps and regenerate tokens if you suspect compromise.
Technically, yes—you can copy the same token into multiple applications. However, this is not recommended for security reasons. Best practice is to create a separate custom app and access token for each application or integration. This way, if one token is compromised, you only need to revoke that specific token rather than affecting all your integrations.
As of 2026, Shopify has deprecated private apps in favor of custom apps. Custom apps provide better security features, granular permission controls, and are the recommended approach for generating access tokens. If you still see "private apps" in older documentation, disregard it and use custom apps instead.
Yes. If you want to change your access token without creating a new app, you can regenerate it within your custom app's settings. The old token becomes invalid immediately, so ensure you update your applications before regenerating to avoid downtime.
Absolutely not. Access tokens should only be used in backend code or secure server environments. Never expose tokens in client-side JavaScript, mobile apps, or public repositories. Always use environment variables and secure vaults to store sensitive credentials.