# Access token expiration

By default, access tokens expire after 11520 minutes (8 days). If you call the Fides API with an expired token, Fides will respond with a `401` unauthorized response.

To specify a different expiration time (in minutes), set the `OAUTH_ACCESS_TOKEN_EXPIRE_MINUTES` environment variable, or the `oauth_access_token_expire_minutes` value in your `fides.toml`. Read the [Configuration Guide](/content/docs/platform/configuration/configuration/index.html) to learn more.

[Generating Tokens](/content/docs/platform/authentication/oauth/generating-tokens "Generating Tokens"/index.html) [Calling the API](/content/docs/platform/authentication/oauth/calling-api "Calling the API"/index.html)
