Managing OAuth 2.0 API Keys
OAuth 2.0 Application Programming Interface (API) Keys are opaque tokens used to authenticate requests to access resources. OAuth 2.0 API Keys are long-lived access tokens that can be used to integrate with external third-party applications. In contrast to client credentials, where the Client ID and Secret are used to generate a bearer token, the OAuth 2.0 API Key is an opaque token itself, which means that it does not contain any information within the token. Therefore, it can be directly passed in the Authorization header with a bearer schema to access the resource.
For more information on including this API key in third-party applications, see To use OAuth 2.0 API Keys to make calls for external system integrations.
A maximum of 500 OAuth 2.0 API keys can be created per account.
Using API Keys
You can create and manage API keys that utilize the OAuth 2.0 authorization framework using the API Keys tab of the Client credentials screen in Global Settings. When creating API keys, you must be mindful of the organization in which you are creating them given that API keys are assigned to the organization in which they are created. This means that APIs called using the API keys will only be able to return objects accessible by the organizational group in which the API keys were created.
API keys that appear on the API Keys tab of the Client credentials screen also depend on the organization in which you are currently logged in. For example, say your organizational hierarchy contains a root organization named Global and two child organizations named North America and Europe. If you are currently within the Global organization, you will be able to see all API keys created within the Global, North America, and Europe organizations. However, if you navigate to the North America organization, you will only be able to see API keys created in the North America organization and will not have visibility into API keys created in the Europe organization or Global organization.
When viewing API keys within the root organization, there is currently no way to identify in which organization each API key was created on the API Keys tab of the Client credentials screen. However, you can navigate to other sub-organizations to locate specific API keys to determine in which organization it was created. Alternatively, you can incorporate the organization name within the name of the API key to help you identify those details in the future.
- Field
- Description
- Name
-
Name of the OAuth 2.0 API Key. Click the link in the Name field to access the API Key Details screen.
- Creation date
-
Date and time that the OAuth 2.0 API Key was created.
- Created by
-
Name of the user who created the OAuth 2.0 API Key.
- Description
-
Description for the OAuth 2.0 API Key.
To create an OAuth 2.0 API Key
To edit an OAuth 2.0 API Key
To delete an OAuth 2.0 API Key
Once an OAuth 2.0 API Key is deleted, the OAuth 2.0 API Key can no longer be used for authorization.
To use OAuth 2.0 API Keys to make calls for external system integrations
Once you've generated the API key, you can use this information to make a call for external system integrations that may communicate with OneTrust OneTrust APIs and integration webhooks. This is achieved in two ways:
These API keys are not for use in integrations to authenticate calls in OneTrust APIs. To make internal calls between OneTrust endpoints or webhooks between OneTrust products and data sources, please use the seeded actions available in the workflow builder. For more information, see Managing Custom Integrations.