Apple Connect returning 401

Hi

I have an api which was downloading the apple sales report by using Apple Connect Api in short it used to generate the jwt and then was fetching the report. Some how it stopped working and same code now returns 401.

Question is the details which I use to generate the jwt for each request do I need to refresh / renew that ? Is there an expiry date associated with that which I use to generate the jwt or not ? Say you use the private key to create the jwt or ECParameters parameters to generate the key which is used to create the jwt do we need to renew that private key / ECP details or that remains alive / active until it is revoked ?

If that is the case how I can refresh that ? I know that the jwt which we need to send to apple connect to get the sale report has maximum 20 mins life.

Thanks Khurram