
JosmyJ.99907 (Customer) asked a question.
We are using Okta as an OAuth provider.But the Okta APIKey to create an OAuth profile in Okta expires if its not used within 30 days. Is there a way to avoid this 30 days expiry? can we use a random API call for example like listing all APPs in Okta to avoid this?

Hi Josmy,
I don't believe there is a way to avoid the 30 day expiration. Here is some more information:
https://help.okta.com/en/prod/Content/Topics/Security/API.htm#:~:text=API%20tokens%20are%20valid%20for,the%20token%20is%20also%20active.
In my own testing I did a basic list 25 users call with my token and that refreshed my token timer. You should be able to test this yourself as well by viewing your API token "Last Used" and "Expires" column after making a call with your token.
you can achieve this by making a GET request. schedule that HTTP GET request on a server which aotomatically makes that GET request as per the scheduled interval defined. it should not be difficult.
Thanks Van and Sandeep. This helps.