<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

"HTTP 401 Okta E0000011 Invalid Token provided" Error When Calling APIs

Administration
Okta Identity Engine

Overview

API calls fail with the following error when the API token is no longer valid because the account that created it is inactive.

 

HTTP 401 Okta E0000011 Invalid Token provided

 

After reactivating the account that created the API token, API calls succeed again.

Applies To

  • Okta Identity Engine (OIE)
  • Okta Classic Engine
  • Application Programming Interface (API) tokens

Cause

The account that created the API token is inactive, so Okta rejects API calls that use that token and returns the invalid token error.

Solution

How is the invalid API token error resolved?

Identify the account that created the API token and reactivate that account to restore API access.

  1. In the Okta Admin Console, go to Security > API.
  2. Select the Tokens tab.
  3. Identify the creator's username under the API token name.
  4. In the Okta Admin Console, go to Directory > People.
  5. Select the deactivated or suspended user.
  6. Select Activate on the user's profile page.

API

How is API access restored if the creator account cannot be reactivated?

 

Create a new API token from a different active account to restore API access.

 

How are invalid API tokens prevented in Okta?

 

Create API tokens by using a service account instead of an individual administrator account to prevent token invalidation when an individual account becomes suspended or deleted.

 

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.

 

Related References

Loading
Okta Support - "HTTP 401 Okta E0000011 Invalid Token provided" Error When Calling APIs