Be sure that you are logged into Okta as an administrator that possesses the rights to perform your API call's actions
For example, if you plan to use the token for an API call that will add users to an administrator role, you must create the API token signed on as a Super Administrator.
Please refer to our Administrators guide for a list of admin roles and their rights.
In the Okta Admin Console, navigate to Security > API
Click Create Token
Enter a name for your token
Document the Token value from the screen that appears
Important: please be sure to document and store the API token value carefully, as it can not be retrieved later and can present a security risk if used in an unauthorized fashion
For more information about API Tokens, please refer to https://help.okta.com/en/prod/Content/Topics/Security/API.htm