links explains how to get API tokens. I was wondering if there was a way to get API token using an API endpoint ?
I believe this beta will go to early access (EA) state in Q3 where you can then ask for that feature flag to be enabled on your Org:
Beta - OAuth 2.0 for Okta APIs
Most Okta API endpoints require that you include an API token with your request. Currently, this API token takes the form of an SSWS token that you generate in the Admin Console. With OAuth for Okta APIs , you are able to interact with Okta APIs using scoped OAuth 2.0 access tokens.
Scoped access tokens have a number of advantages, including more granularity for permissions, shorter token lifespans, downscoping of permissions and can also be generated and retrieved via an API.
Note : Over the next year we will progressively enable ALL Okta APIs to use OAuth 2.0. It is highly recommended that customers using or planning to use Okta APIs participate in the beta. Feedback from Beta customers around their current needs and future use cases will greatly influence the development of OAuth 2.0 for all Okta endpoints.
Example Use Cases : Delegated Administration, AD Agent, Profile Editor & Account Dashboard for Me, SaaS Org Chart App, User On-boarding/Off-boarding Automation Script, Custom HR / API as a Master, Export/Migration App, Dev Console, User Picker.