Get User Refresh Token Expiration Time

GET /groups/{groupId}/apps/{appId}/security/refresh_token_expiration

Get the current expiration time in seconds for user session refresh tokens.

Path parameters

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • expiration_time_seconds number

      The time in seconds that a user session refresh token is valid for after it is issued. After this time, the token is expired and the user must re-authenticate.

      The expiration time must be between 30 minutes and 5 years, inclusive. The default expiration time is 60 days.

      Minimum value is 1800, maximum value is 15552000. Default value is 5184000.

  • 404

    Group or App Not Found

GET /groups/{groupId}/apps/{appId}/security/refresh_token_expiration
curl \
 --request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/security/refresh_token_expiration' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "expiration_time_seconds": 5184000
}