Getting a Shopify access token is essential if you're building integrations, automating workflows, or connecting third-party applications to your Shopify store. Whether you're a developer, app creator, or store owner, understanding how to create a Shopify API key and generate the corresponding access token is crucial for secure API communication.
In 2026, Shopify's authentication system has evolved to prioritize security and ease of use. This comprehensive guide walks you through the entire process of obtaining your Shopify access token, covering both custom apps and OAuth applications.
API scopes define what permissions your access token has. Requesting only the scopes you need follows the principle of least privilege and enhances security. Here are common scopes you'll encounter:
| Scope | What It Allows |
|---|---|
| read_products | View product information, including titles, descriptions, prices, and inventory levels from your store |
| write_products | Create, edit, and delete products in your Shopify store |
| read_orders | Access order details, customer information, and transaction history |
| write_orders | Create orders, update order statuses, and manage order fulfillment |
| read_customers | View customer profiles, contact information, and purchase history |
Follow these steps to create a Shopify API key and obtain your access token:
Navigate to your Shopify store's admin panel by visiting yourstore.myshopify.com/admin. Log in with your admin credentials. You must have full admin access to create API credentials.
In the Shopify admin dashboard, look for the "Apps and integrations" section in the left sidebar. Click on it to expand the menu. This section has been streamlined in 2026 for easier navigation.
Within Apps and integrations, you'll find "Develop apps" option. Click on this to access Shopify's app development platform. If you haven't created a development store or app yet, you may need to enable app development first.
Click the "Create an app" button. You'll be prompted to choose between:
For most use cases, select "Custom app" and give it a descriptive name like "Inventory Sync" or "Order Automation."
Once you've created the app, navigate to the "Configuration" tab. Here, you'll define which API scopes your app needs. Select only the scopes required for your integration:
read_products and write_productsread_orders and write_ordersread_customersSave your scope configuration. Shopify will prompt you to confirm that you understand the permissions you're requesting.
After saving your scopes, navigate to the "API credentials" section. You'll see your:
Click "Reveal" next to the Access Token and copy it immediately. Store it in a secure location—never commit it to version control or share it publicly.
Verify your access token works by making a test API call. Here's an example using curl to fetch your store information:
curl -X GET "https://yourstore.myshopify.com/admin/api/2026-01/shop.json" \
-H "X-Shopify-Access-Token: your_access_token_here"
Replace yourstore with your actual store name and your_access_token_here with the token you just copied. If successful, you'll receive a JSON response containing your shop details.
Here's a more advanced example for creating a webhook:
curl -X POST "https://yourstore.myshopify.com/admin/api/2026-01/webhooks.json" \
-H "X-Shopify-Access-Token: your_access_token_here" \
-H "Content-Type: application/json" \
-d '{
"webhook": {
"topic": "orders/create",
"address": "https://example.com/webhooks/order_created",
"format": "json"
}
}'
When using your access token, remember that Shopify enforces rate limits (typically 2 requests per second for REST API). Implement exponential backoff in your code to handle rate limit responses gracefully. Additionally:
While the manual process above gives you full control, it requires multiple steps and careful configuration. If you're looking for a faster, more streamlined approach, consider using https://getshopifytoken.com. This service automates the Shopify API key and access token creation process, eliminating complexity and reducing setup time from minutes to seconds.
GetShopifyToken handles scope selection, credential generation, and validation automatically, making it ideal for developers who frequently work with multiple Shopify stores or need quick access token generation without the administrative overhead.
A Shopify access token remains valid indefinitely until you manually revoke it from your app's settings or delete the app entirely. However, best practices recommend rotating your tokens annually for security purposes. If you suspect your token has been compromised, immediately revoke it and generate a new one.
Technically yes, but it's not recommended. Instead, create separate custom apps for each integration so you can grant specific scopes and revoke access to individual integrations without affecting others. This principle of least privilege enhances security and makes troubleshooting easier.
The API Key is a public identifier that tells Shopify which app is making the request. The Access Token is a confidential credential that proves you have permission to use that app. Both are necessary for authentication. Never expose your access token publicly, but the API key can be visible in client-side code for certain operations.
Yes. Each Shopify store has its own independent admin API. If you're building an integration that works across multiple stores, you'll need to obtain separate access tokens for each store. Services like GetShopifyToken can help streamline this process.
Immediately revoke it from your app's API credentials section in the Shopify admin dashboard. Generate a new token and update all applications using the old token. Shopify's audit logs will show any API calls made with the exposed token, helping you identify any unauthorized access.