Hi Support, I am getting this issue. Unable to resolve this issue. Please help me.
HI @nomi_no
Under what circumstances does this issue occur and is VPN enabled?
Hey @nomi_no - thanks for sharing that screenshot there, I think your authorization configuration may be set up incorrectly there. I can see you’re using Postman there though, which helps out a lot!
Can you try importing this cURL directly into Postman using this method here?
curl -X POST \
https://your-development-store.myshopify.com/admin/api/2025-04/graphql.json \
-H 'Content-Type: application/json' \
-H 'X-Shopify-Access-Token: {access_token}' \
-d '{
"query": "mutation { productCreate(product: {title: \"Cool socks\", productOptions: [{name: \"Color\", values: [{name: \"Red\"}, {name: \"Blue\"}]}, {name: \"Size\", values: [{name: \"Small\"}, {name: \"Large\"}]}]}) { product { id title options { id name position optionValues { id name hasVariants } } } userErrors { field message } } }"
}'
When you import this, it should automatically format the API Call. I’m sharing the GraphQL version of our API, since REST is currently considered a legacy API and we don’t recommend using it for new API integrations.
You shouldn’t need to input anything in the Authorization tab in Postman (where you’re currently seeingf that green dot - without an input that green dot should disappear). You would just want to make sure your Access Token is input in the X-Shopify-Access-Token
header and modify the query to create your product as needed (as well as updating the myshopify.com URL there. There’s a bit more about getting an Authorization Token in the admin here or through the API here.
Hope this helps!
I think the REST API is no longer available for products.
I dont understand .this is a restful api,. but your body is a graphql syntax.
Hey folks - just following up here for clarity in case it’s helpful! @Eric_Han and @DavidT are on point here. The REST API for Products is now deprecated (more info here), so it can’t be used for creating products going forward.
Like Eric mentioned as well, it looks like in Postman, the query type is set to a GraphQL body type, but it’s hitting the deprecated REST endpoint, which is likely what’s causing that HTML error output.
The example cURL I shared there should work if it’s imported into Postman directly, but if you kept your Postman settings the same, a correct call should look something like this: