Opt in to Admin API token expiry in the Dev Dashboard
Shopify has added an optional Dev Dashboard setting that enforces expiring Admin API tokens for your app, so you can test migration before 1 April 2027.

- Published
- 1 Dec 2026
- Affects
- GraphQL Admin API, REST Admin API
What changed
The Dev Dashboard now has an optional **Admin API token expiry** setting on each app's **Settings** page. It lets you test your migration to expiring Admin API tokens before Shopify begins enforcement for existing public apps.
When you turn the setting on for an app, it applies across every store where that app is installed. GraphQL and REST Admin API requests then fail if they use either of the following:
A non-expiring offline access token
A delegate access token with more than 24 hours remaining before expiry
Enforcement can take up to 30 minutes to take effect. Turning the setting on does not migrate or revoke any existing tokens. You can turn the setting off again if you run into problems.
Who is affected
The Admin API token expiry setting is available for all app types in the Dev Dashboard. It affects an app only after you turn it on for that app.
The enforcement timeline applies to public apps. It does not apply to custom apps or apps that merchants create for their own stores. Those apps can still use the setting to test how they behave with expiring tokens. The migration guide also says the timeline does not apply to Payments Apps API requests.
For public apps that still use non-expiring offline access tokens, the migration guide lists these dates:
1 January 2027: the app is delisted from the Shopify App Store and blocked from new installs. Existing installs keep working.
15 January 2027: merchants using the app see a warning in the Shopify admin.
1 April 2027: enforcement begins for existing public apps.
What to do
You don't have to turn on Admin API token expiry. Public apps must still meet the migration deadlines in the migration guide, whether or not you use the setting.
Choose a migration path from the migration guide. There are three: gradual migration by adding
expiring=1to the token requests your app already makes; exchanging every stored non-expiring token for an expiring pair in one go; or using application-only access tokens.If you use both gradual and bulk migration, make the
expiring=1change first, then run the bulk exchange, so that tokens your app gets later also expire.Check for remaining non-expiring tokens. In your app's Logs in the Dev Dashboard, filter Type to GraphQL request and Token type to Offline, non-expiring. If your app also makes REST Admin API requests, repeat the check with Type set to REST request. Any results mean your app still sends non-expiring tokens. The Dev Dashboard also highlights potential token-expiry issues detected in the last 14 days, though detection can lag by a day.
Open your app in the Dev Dashboard, go to Settings, and select Turn on in the Admin API token expiry card. Confirm that you understand that requests that don't meet the token-expiry requirements will fail.
Wait up to 30 minutes for enforcement to take effect. Then check your app's workflows and logs for rejected requests, including those from background jobs, to confirm the app handles expiring tokens correctly.
Before and after: requesting an expiring token
The change to the request is one extra parameter. This example uses the authorization code grant. Token exchange takes the same expiring=1 parameter.
Before
curl -X POST \
https://{shop}.myshopify.com/admin/oauth/access_token \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'client_id={client_id}' \
-d 'client_secret={client_secret}' \
-d 'code={authorization_code}'After
curl -X POST \
https://{shop}.myshopify.com/admin/oauth/access_token \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'client_id={client_id}' \
-d 'client_secret={client_secret}' \
-d 'code={authorization_code}' \
-d 'expiring=1'Store the access_token and refresh_token from the response, along with expires_in and refresh_token_expires_in, so you know when each expires. Use the refresh token to get a new access token before expires_in seconds elapse. Then store the refresh token that comes back and use that one next time.
Deadline
The calendar deadline for existing public apps is 1 April 2027. From that date, Shopify rejects any GraphQL Admin API or REST Admin API request that presents a non-expiring offline access token, and returns 403 Forbidden. Merchants lose access to the app until they re-authenticate.
Turning the Admin API token expiry setting off does not move this date. The setting is a way to test early, not a way to defer.
The migration guide also states an earlier date: on 1 January 2027, public apps that still use non-expiring offline access tokens are delisted from the Shopify App Store and blocked from new installs. Existing installs keep working until the April date.
Custom apps and apps created by merchants are not subject to these dates.
Get the weekly digest
One email every Monday: what changed in Shopify, the deadlines coming up and what’s been announced, plus the week’s new guides. Free, and you can unsubscribe in one click.
Sources
- Opt in to Admin API token expiry in the Dev Dashboard · Shopify · accessed 16 Nov 2026
- Migrate to expiring offline access tokens · Shopify · accessed 16 Nov 2026
AI-assisted, reviewed by Scott. Every claim is checked against the sources above.