
00u4g3z04rrwGkVWa2p71.562550329560332E12 (Customer) asked a question.
We are going to be running system using the Okta API that need to be fully automated and run over a period of many months. Currently the manual created Okta API tokens issued are likely to expire a few times during this period.
To ensure our systems do not stop running when the manually issued API token expires can I would like to use the Okta API to request or refresh the Okta API token?
I would expect this would follow the process of OpenId+OAuth User Token being sent to obtain the new sever OAuth Token.
So far I haven't been able to find documentation describing how to do this with Okta.
Can anyone point me in the right direction?

Unfortunately there is no way to get a new API key via an api call. If you want to ensure it doesn't expire you can just script a call to keep it alive every 29 days. Not elegant and something we're running into as well.
They did just release Okta API for Oauth early access.
https://developer.okta.com/docs/guides/oauth-for-okta/overview/
Long term this is what you'll want to use.