Skip to main content

delegateAccessTokenCreate mutation now returns expiresIn

We have introduced an expiresIn field to the DelegateAccessToken type, which is returned by the delegateAccessTokenCreate mutation. This addition allows app developers using delegate tokens to know precisely when their tokens will expire. The expiresIn field provides the number of seconds remaining until the token expires, aligning with the data available through the REST Admin API's delegate endpoint.

This feature is particularly beneficial when the expiresIn input is not specified, causing the delegate token to inherit the parent token's Time to Live (TTL). Previously, developers had no means to ascertain the expiration time of such tokens.

This update is available in GraphQL Admin API version 2026-04 and later.

Was this section helpful?