Published April 25, 2026
Updated April 25, 2026
howto
```html
How to Get a Shopify Access Token for App Development and Store Integration
A Shopify access token is essential for developers and store owners who want to build custom applications, integrate third-party services, or automate workflows with their Shopify store. Whether you're developing a private app, creating a public Shopify app, or connecting external tools to your store, understanding how to find and manage Shopify app tokens is crucial. This comprehensive guide walks you through every step of the process in 2026.
What You Need
- Active Shopify store with admin access
- Admin account with app and channel management permissions
- Modern web browser (Chrome, Firefox, Safari, or Edge)
- Understanding of OAuth 2.0 and API basics (for public apps)
- Development environment ready to receive API credentials
- Access to your store's admin panel at [yourstore].myshopify.com/admin
Required API Scopes
API scopes determine what permissions your access token will have. Different use cases require different scopes. Here are the most common scopes you'll need:
| Scope |
What It Allows |
| write_products |
Create, update, and delete products in your store |
| read_orders |
View and retrieve order data and customer information |
| write_orders |
Modify orders, create fulfillments, and manage order fulfillment |
| read_inventory |
Access inventory levels and stock information |
| write_inventory |
Update inventory quantities and manage stock levels |
Step-by-Step Guide
Method 1: Creating a Private App Access Token (Recommended for Store Owners)
Private apps are the simplest way to get an access token if you're integrating with your own store or a single client's store.
- Log into your Shopify Admin: Navigate to https://[yourstore].myshopify.com/admin and sign in with your admin credentials.
- Access the Apps Section: From the left sidebar, click on "Apps and sales channels" to expand the menu.
- Find the App and Sales Channel Settings: Look for "App and sales channel settings" or "Develop apps for your store" link. This may appear as a button or link depending on your Shopify plan.
- Create a New App: Click the "Create an app" button. You'll be prompted to name your app—use something descriptive like "Inventory Sync" or "Order Automation."
- Select Your App Type: Choose "Custom app" if you're building specifically for your own store, or select "Public app" if you plan to list it in the Shopify App Store.
- Configure Admin API Scopes: Under the "Admin API" section, select the scopes your integration needs. Start with the minimum required permissions and add more only if necessary.
- Save and Reveal Your Token: Click "Save" then "Install app." You'll now see your access token displayed on the screen. This is the only time you'll see the complete token, so copy it immediately and store it securely.
- Store Your Credentials Securely: Save your access token in an environment variable or secure credential management system. Never commit tokens to version control systems like Git.
Method 2: Getting a Public App Access Token (OAuth Flow)
If you're building a public app for the Shopify App Store, you'll need to implement an OAuth flow:
- Register Your App: Create an app in the Shopify Partner Dashboard at https://partners.shopify.com/.
- Configure Your App URL: In your app settings, add your application's redirect URI and webhook endpoints.
- Implement the OAuth Authorization Code Flow: Direct store owners to authorize your app. They'll be redirected to the Shopify authorization page.
- Exchange Authorization Code for Access Token: After the store owner grants permission, you'll receive an authorization code. Exchange this code for an access token using your app's secret key.
- Use the Access Token in API Calls: Include the token in the Authorization header of your API requests.
Here's an example of how to exchange an authorization code for an access token:
curl -X POST "https://[yourstore].myshopify.com/admin/oauth/access_token" \
-H "Content-Type: application/json" \
-d '{
"client_id": "YOUR_APP_CLIENT_ID",
"client_secret": "YOUR_APP_CLIENT_SECRET",
"code": "AUTHORIZATION_CODE_FROM_REDIRECT"
}'
The response will include your access token:
{
"access_token": "shpat_1a2b3c4d5e6f7g8h9i0j",
"scope": "write_products,read_orders,write_inventory",
"expires_in": 86400
}
Method 3: Using the Shopify GraphQL Admin API
Once you have your access token, you can make API requests. Here's an example using GraphQL to retrieve product data:
curl -X POST "https://[yourstore].myshopify.com/admin/api/2025-01/graphql.json" \
-H "X-Shopify-Access-Token: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "{ products(first: 10) { edges { node { id title } } } }"
}'
Using GetShopifyToken (Faster Method)
If you find the manual process time-consuming or want an automated solution, GetShopifyToken provides a streamlined way to generate and manage Shopify access tokens. The platform simplifies the OAuth process and helps you manage multiple store credentials in one secure dashboard. Visit https://getshopifytoken.com to automate your token generation and save development time.
Common Issues
- Token Not Appearing: Ensure you have the "Manage apps and sales channels" permission in your admin account. Some user roles don't have this capability.
- "Insufficient Scopes" Error: Your token doesn't have permission for that API call. Return to your app settings and add the required scopes, then generate a new token.
- 401 Unauthorized Error: Double-check that your token is correct and hasn't expired. Token format should start with "shpat_" for private apps or "shpua_" for user tokens.
- Token Accidentally Shared: Immediately regenerate your token in the admin panel. Tokens cannot be revoked selectively—regenerating creates a new token and invalidates the old one.
- Rate Limiting: If you're making hundreds of API calls, you may hit rate limits. Implement exponential backoff in your retry logic.
- Expired Tokens (Public Apps): Access tokens from OAuth flows may expire. Implement refresh token logic or re-authenticate the store.
Related Guides
- How to Revoke and Regenerate Shopify Access Tokens
- Shopify REST API vs GraphQL: Which Should You Use?
- Building Custom Shopify Apps: A Developer's Complete Guide
Frequently Asked Questions
Q: How long does a Shopify access token last?
Private app tokens don't expire and remain valid until you regenerate them. However, OAuth tokens from public apps have a 24-hour expiration period by default. Always implement refresh token logic for production apps using OAuth authentication.
Q: Can I use the same access token across multiple stores?
No. Each Shopify store requires its own unique access token. If you're managing multiple stores or building a public app, you'll need separate tokens for each store. For public apps, each store owner authorizes your app individually, generating their own token.
Q: What should I do if my access token is compromised?
Immediately navigate to your app settings in the Shopify admin and click "Regenerate" to create a new token. This invalidates the old token and prevents unauthorized access. Update your application to use the new token right away. Consider implementing token rotation practices and using environment variables to store sensitive credentials.
Q: Do I need different tokens for REST API and GraphQL API?
No. The same access token works for both REST and GraphQL APIs. The token grants permissions based on the scopes you've configured, and both API types respect those same permissions.
Q: How do I know which scopes my app needs?
Start by identifying what data your app needs to access or modify. Check the Shopify API documentation for each endpoint to see which scopes are required. It's best practice to request only the minimum scopes necessary for your app's functionality, following the principle of least privilege.
Get Your Shopify Access Token in 60 Seconds
Skip the manual OAuth flow. GetShopifyToken automates the entire process — just paste your credentials and get your token instantly.
Generate Token Now →