Invalid API key or access token (unrecognized login or wrong password)

Shopify Partner
2 0 0

Hello everyone, I've read through the previous issues on this topic and couldn't find anything of value in them, or a solution. So here is what I am doing.

Inside a test store, I installed my app. I am trying to read the shop data, via the `/api/2024-01/shop.json` endpoint.

But I keep getting 

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

I am using the access token that I get from the 


const app = useAppBridge();
useEffect(() => {
app.idToken().then((token) => {
console.log("Token is", token)
setFields({ accessToken: token })
}).catch((err) => {
setFields({ accessToken: null })
console.log("Erorr getting session token", err)
}, [])


Token is eyJhbxxxxxxxxxXVCJ9.eyJpc3MiOiJodHRwcxxxxxxxxxxxxxxkuY29tXC9hZG1pbiIsImRlc3QiOiJodHRwczpcL1wvcXVpY2tzdGFydC04YmM0MTU4NS5teXNob3BpZnkuY29tIiwiYXVkIjoiZDM1M2FhNTQwOGYzYxxxxxxxxxxxxxxxxxxxxDcxYTY0MzAxxxxxxxxxcifQ.TXpIkZXAGKAh2HoRs96F5uZuOZvWG5Twjp17_z-EvBo

And if I try to use it

> curl -X GET "" -H "X-Shopify-Access-Token: eyJhbxxxxxxxxxXVCJ9.eyJpc3MiOiJodHRwcxxxxxxxxxxxxxxkuY29tXC9hZG1pbiIsImRlc3QiOiJodHRwczpcL1wvcXVpY2tzdGFydC04YmM0MTU4NS5teXNob3BpZnkuY29tIiwiYXVkIjoiZDM1M2FhNTQwOGYzYxxxxxxxxxxxxxxxxxxxxDcxYTY0MzAxxxxxxxxxcifQ.TXpIkZXAGKAh2HoRs96F5uZuOZvWG5Twjp17_z-EvBo" --http1.1

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

Any way to debug this? Same error is occurring in both my Golang application and via cURL
Reply 1 (1)

Shopify Partner
200 22 29

This is a session token, not an access token. You use access token to connect to Shopify API. Please these docs for more info: Online access tokens (

Founder @ JsRates: Custom Shipping Rates
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more about JsRates visit the JsRates home page or JsRates documentation
- Find JsRates on Shopify app store