Managing user auth token when making view-based requets

HI,

I'm using a view to aggregate some data before calling it via an API. The data is quite sensitive, so it's protected by a login. I grabbed the initial authorisation token and used it to authenticate my request via a REST API call and the information that I needed was returned. However, the token expired after a couple of days (despite being called every hour):

Invalid token provided. Please reauthenticate.

My question is: how do I keep the token active only by using the REST API client calls? I'm using Qlik (which is similar to Power BI) and my options for complex commands is limited.

 

Thanks

Martyn