Scripting against APIs with Okta integration

We have APIs that are integrated with Okta and using OAuth2 and we would like to script against our APIs. In order to do so, we would need to authenticate and authorize and also maintain access tokens to script with our APIs and pass in the right access tokens etc. Are there any libraries or existing scripts that we can use that helps out with this or its something that needs to be automated from our side.

What tech are you using to build your APIs?

We have libraries that can help you validate the access tokens in your APIs, which sounds like you want to do.