Can't find where to get a permanent shpat_ token anymore

Shopify recently changed their admin interface and now I’m super lost on how to get a permanent API token.
Here’s my situation:

  • I have a Python script that pulls product/inventory data from Shopify Admin REST API
  • I need a permanent shpat_ token for this
  • When I use CLI, I get a shpat_ but it expires after 24 hours
  • I can only see in the Shopify API the shpss

I already created a Custom App but I can’t find where the API credentials/token is after creating it. Before the interface change it was pretty straightforward but now the UI looks completely different.

Where exactly is the shpat_ token after installing a custom app? Did they move it somewhere?

Any help appreciated, been stuck on this for a while :sweat_smile:

Hey @mlnsmel :waving_hand: You’re looking in the right area, but there isn’t a permanent shpat_ token to reveal for new Dev Dashboard apps.

For these apps, Shopify no longer shows a static Admin API token in the UI after install. Open the app in the Dev Dashboard, go to Settings, copy the Client ID and Client secret, then exchange those for an Admin API access token. The Get API access tokens for Dev Dashboard apps guide has the full walkthrough.

You can use this request:

curl -X POST "https://{shop}.myshopify.com/admin/oauth/access_token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials" \
  -d "client_id={client_id}" \
  -d "client_secret={client_secret}"

That response includes a shpat_ access token, but it expires after about 24 hours. For your Python script, request a fresh token before it expires and use it in the X-Shopify-Access-Token header for Admin API calls.

If you’re building for a store outside your organization, use a Shopify app template or CLI-based app flow instead so authentication is handled through the standard app flow.

Hi @mlnsmel

According to the official documentation, an access token without an expiration date can be obtained.

1 Like

Check this topic – How to get Shopify Access token
Link to video has recipe for permanent token.

@mlnsmel, this is a guide to get the Admin API token: