This article provides a solution for an error that occurs when making Application Programming Interface (API) calls. The following error message is returned:
HTTP 401 Okta E0000011 Invalid Token provided
Application Programming Interface (API) tokens
To resolve this issue, reactivate the Okta account that was used to create the API token.
To identify the account that created the token:
- In the Okta Admin Console, go to Security > API.
- Click the Tokens tab. The creator's username is listed under the API token's name.
To reactivate the user's account:
- In the Okta Admin Console, go to Directory > People.
- Select the deactivated or suspended user and click Activate on the user's profile page.
If the user's account cannot be reactivated, a different user must create a new API token.
NOTE: Create API tokens using a service account instead of an individual administrator's account. This prevents API tokens from becoming invalid if the individual's account is suspended or deleted.
