INVALID_MINI error when verifying user token via Shop Mini Admin GraphQL API

I’m encountering an INVALID_MINI error when trying to verify a user token using the Shop Mini Admin GraphQL API.

What I’m doing:

  • Sending the user token from the frontend as a Bearer token to my backend

  • Making a userTokenVerify mutation request to https://server.shop.app/minis/admin-api/alpha/graphql.json

  • The user token is confirmed to be identical on both frontend and backend

The problem: The GraphQL request returns:

json

{
  "code": "INVALID_MINI",
  "field": [],
  "message": "Invalid Mini"
}

What’s working:

  • I can successfully call other GraphQL APIs (like enabling Mini) with the same API credentials

  • This confirms my API token is valid and working for other operations

Question: Has anyone experienced this with userTokenVerify? Are there specific requirements or scopes needed for this mutation that differ from other Shop Mini API operations?

:waving_hand: Hey!

This error indicates a mismatch between the Mini your user token was created for and the Mini you’re using in the Minis Admin API request.

Could you please double-check the following?

  • How you’re generating the user token on the frontend side (and which Mini handle it’s associated with).
  • That the Mini handle in your frontend Mini matches the handle used in your Minis Admin API requests.
  • Whether you recently re-created your Mini and possibly changed its handle.
1 Like

Thanks Maria, I will check these points out and get back to you. I think you may be on to something with the handle change. I initially started the project with pro-gifter handle. Later I changed to gift-genie. I will try changing it back and see if the INVALID-MINI error goes away.

1 Like

Hi Maria,

I am no longer getting an INVALID_MINI error when I switch my handle back to the pro-gifter. I am going to resubmit my mini with the old handle. Thanks.

1 Like