API Token Connection Error with Box

I am currently using a Box trial account and have connected the API to another application. However, the connection only works for about 1 hour before being lost. I would like to ask if this is the way Box’s algorithm works or a limitation of the trial account. Thank you for your help.

Hi @user249

Welcome to the forum.

That is unrelated, however all access tokens have a life span of 60 minutes, independently of application type (OAuth, CCG, JWT).

If you are using one of our SDKs, they detect when the token is about to expire and automatically refresh it. The same works for our REST API if you use one of our postman collections.

The only exception is the developer token, that must be refreshed using the developer console.

Let us know if this helps.