You use both OAuth apps and API tokens to interact with the VMware Cloud services APIs.

API tokens are issued by users in an organization and are associated with the user’s account and the organization from which they generated the API token. Once created by a user in an organization, OAuth apps act as entities in Server to server interactions and can be used in multiple organizations. Only the users who created the API tokens can manage them. The owner of the OAuth app is the organization in which it was created, and can be managed by users who are organization owners or organization members with a Developer role.

You can use both OAuth apps and API tokens to automate processes that interact with the VMware Cloud services APIs. The difference is that API tokens incorporate the user account in the access token while OAuth apps perform authorization without a user account. When you make a choice of using an API token or an OAuth app to make an API call, you must consider the specific requirements of the API service involved in the interaction. Some APIs require a user account to be the authenticated entity while others don’t. For example, if you call an API to fetch Billing and Subscription information for your organization in VMware Cloud services, you can use either an OAuth app of the Server to server type or an API token to make calls to the API service as it does not require authentication through user credentials and accepts client credentials as well. If an API is used by the users of an organization to update their passwords, the API requires a user to act as the authenticating entity.

Important:

Before using OAuth apps of the Server to server type for automated calls to your cloud services, you must first consult the relevant API documentation.