I’m currently stuck in a process to obtain an API key and scope access. I’m working on Shopify Hydrogen and creating an API to write a draft order. This API requires an admin API key. However, I’ve reviewed all the documents, which show outdated methods for creating custom apps. In my Shopify settings under Apps and Sales, I see “Develop App” in the Dev Dashboard, but I’m unsure how to obtain an admin API key.
Hi @maurya
In the current Shopify system, go to Apps → Develop apps → Create an app, give it a name, then under Configuration, enable the needed Admin API scopes (e.g., write_draft_orders). After saving, go to API credentials to generate the Admin API access token — this token acts as your key for Hydrogen or any server-side requests.
this for the legacy version this steps are not showing to my store
ok but in the develop app i show only this button
Devlop app in dev dashboard
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 out of date. Shopify, please help.
Getting Shopify Access Token via Postman (Client Credentials Flow):
-
Create and install app in Shopify Admin (Settings → Apps and sales channels → Develop apps)
-
Configure required API scopes
-
Install the app in your store
-
Get Client ID and Client Secret from API credentials
-
-
Postman request:
POST https://yourshopname.myshopify.com/admin/oauth/access_token
Content-Type: application/x-www-form-urlencoded
Body (x-www-form-urlencoded):
grant_type: client_credentials
client_id: YOUR_CLIENT_ID
client_secret: YOUR_CLIENT_SECRET
- Response:
json
{
"access_token": "shpat_xyz",
"scope": "read_customers,write_draft_orders",
"expires_in": 86399
}
This unfortunately only works for stores that you own, and doesn’t work in a merchant’s store. Seems like you have to go through the full oauth flow for custom apps you own, if you’re a partner
I built this free tool you can use to get the token
No offence, but the last thing I’d want is to use the 3rd party website to obtain admin token to my store.
This is on par with giving admin login and password to a stranger on the internet…
very fair , you can just copy curl command from there and run it yourself too
. Thanks for the feedback