I’m trying to get an Admin API key for personal use to send blog posts directly to my Shopify store.
According to the Shopify documentation, the Admin API key should be visible during app creation or in DevTools. However, in my experience (and as far as I can tell), we never actually see the Admin API key. All that’s available is:
API secret key
Access token
I just want to confirm:
Is it correct that Shopify no longer shows the Admin API key at all, and we should rely solely on the access token for authentication?
If that’s the case, can someone clarify the proper method for using it to publish blog posts programmatically?
It seems like the documentation might be outdated, and I want to make sure I’m following the supported approach.
FYI, answering this on the go, so excuse my formatting!
You’re right, the documentation can be a bit confusing there. For custom apps, what you’re seeing as the “Access token” is indeed the credential you need. Shopify doesn’t expose a separate “Admin API key” in the way you might expect from older docs or other platforms. The “API key” you see in the app settings is essentially the Client ID if you were doing an OAuth flow, but for direct server-to-server calls with a custom app, the permanent access token is what authenticates your requests.
To publish blog posts programmatically, you’ll use that access token in the X-Shopify-Access-Token header for all your API requests. The endpoint for creating blog posts looks something like POST https://{your-store-name}.myshopify.com/admin/api/{api-version}/blog_posts.json. You’ll need to include the necessary JSON payload in the request body, specifying the title, body_html, and blog_id (you’ll need to fetch the blog_id for your target blog first, e.g., using GET /admin/api/{api-version}/blogs.json).
If you need any help getting this implemented, feel free to shoot me a DM and I can help you get this setup for free once I’m back on my PC.
ACCESS_TOKEN = “shpss_****” this key that i get after made app in https://dev.shopify.com/ and this is the only api that you can generate in the whole store !!
I must have created and installed 100 apps in the last 2 days trying to get to the API key to show. Nothing its driving me crazy. All i’m getting is the key that starts with shpss… not getting shpat… anywhere.
Same problem here. I am trying to link up Zoho Flow, and it is asking for the Admin API Access Token. I can create the app by clicking “Devlop app” and going through the app setup in the dev dashboard. I can even “release” and ‘install’ my private app and see it listed in my admin panel. But nowhere is the Admin key to be found, and the docs are apparently out of date.
Set Version & Scopes: Under Versions, create a new version (e.g., v0.1). Select all required Admin API Scopes(permissions). Copy into notepad or something the text of the SCOPES.
Enable Legacy Flow: In the version settings, set “Use legacy install flow” to True.
Set Redirect URL: Add https://localhost/ to the Allowed redirection URL(s).
Release: Click Release to make this version active.
Get Credentials: Go to Settings and copy your Client ID and Client Secret.
Now to get the Admin API Token
Construct Link: Build the following URL by replacing {SHOP_NAME} and {CLIENT_ID}and {SCOPES} (from above) with your specific info: https://{SHOP_NAME}.myshopify.com/admin/oauth/authorize?client_id={CLIENT_ID}&scope={SCOPES}&redirect_uri=https://localhost/&response_type=code
Capture Code: A page with “install” should appear. Once you click install you will be sent to a broken localhost page. Copy the string after code= in the address bar. (Note: This code expires in 60 seconds).
Immediately run this command in your terminal to exchange the code for your permanent token: