API Authentication Access Token Expiration Time

Options

After issuing a request for an access token, what measurement is the expires_in data expressed in? Minutes? Seconds?

Example Response:

{ "access_token": "whatever", "customer": "acmecompany", "expires_in": 3599, "jti": "81dece4c-df73-4569-853c-2d1a328897fd", "role": "Admin", "scope": "data user", "token_type": "bearer", "userId": 964382593}

Cannot seem to find a reference to this so any help is appreciated

Tagged:

Best Answer

  • ArborRose
    ArborRose Coach
    Answer ✓
    Options

    In most cases, the expires_in value is expressed in seconds. Therefore, in your example, the expires_in value of 3599 indicates that the access token is valid for approximately 3599 seconds, or about 59 minutes and 59 seconds.

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

Answers

  • ArborRose
    ArborRose Coach
    Answer ✓
    Options

    In most cases, the expires_in value is expressed in seconds. Therefore, in your example, the expires_in value of 3599 indicates that the access token is valid for approximately 3599 seconds, or about 59 minutes and 59 seconds.

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **