All api requests return 404 errors

Topic summary

  • Admin API GET requests were consistently returning 404 Not Found across curl, Postman, and a browser, tried with/without X-Shopify-Access-Token and on multiple API versions.
  • Suggested steps: create a custom app via Settings > Apps and sales channels > Develop apps, grant needed Admin API scopes, install the app, and include the X-Shopify-Access-Token header in requests.
  • Key discovery: the original API URL redirected to a different myshopify.com subdomain; using that redirected myshopify domain made the API endpoints work.
  • Outcome: Resolved. Root cause appears to be using the wrong store hostname for Admin API requests rather than missing scopes or tokens.
Summarized with AI on January 18. AI used: gpt-5.

I think I have the same issue as this question, but the answer wasn’t public:

https://community.shopify.com/post/2209368

All get requests come back with 404 errors.

For example: myshopify.com/admin/api/2023-07/products.json

Returns:

{"errors":"Not Found"}

I’ve tried with and without the X-Shopify-Access-Token, using curl, postman, and a browser.

I’ve also tried on various API versions.

Thank you for your help

I can help you. Open your store and go to Settings. Then go to Apps and sales channels. Click Develop apps and create a test app with any name. Go to Admin API integration and select all the scopes you need (for your products). Then save and go to API credentials. Click on Install app and save this token.
Open postman and paste your store link from admin api into the url (https://“store_url”/admin/api/2023-07/products.json).
Go to headers and paste it there:

key: X-Shopify-Access-Token
value: "your_token"

I checked and everything works fine. Enjoy.

Hi Romartiny, thank you for the help!

That didn’t quite work but it got me most of the way.

https://“store_url”/admin/api/2023-07/products.json ended up doing a redirect to

https://"key I’ve never seen before".myshopify.com/admin/api/…

Once I switched to that url everything worked.