Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Blog Fetch with Access Token

Blog Fetch with Access Token

acorrea
Shopify Partner
5 0 1

hi folks, i am trying to make something very simple but i can not see the error. I want to fetch the blog entries for a store. I am calling the /admin/api/2023-10/blogs.json endpoint using the X-Shopify-Access-Token header with the token given
I keep getting:

 { "errors": "[API] Invalid API key or access token (unrecognized login or wrong password)" }



Any ideas on how to debug this one
? i would have thought that it was easier as do a fetch and done. However, i created a custom app in the store, gave permissions and created the token. But somehow this is not working :/

Replies 2 (2)

Liam
Community Manager
3108 344 910

Hi Acorrea,

 

Does your app have the `content` access scope?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

acorrea
Shopify Partner
5 0 1

hi Liam,

Do you mean the checkbox in the API Configuration?
Screenshot 2023-12-15 at 19.20.18.png

If so, yes. 
Any other idea? 🙂