# OAuth2 Client Credentials

OAuth2 Client Credentials are used by clients [to obtain an access token outside of the context of a user.](https://oauth.net/2/grant-types/client-credentials/) PixieBrix supports OAuth2 Client Credentials for Cloud Team Credentials. (See [integration-scenarios](https://docs.pixiebrix.com/integrations/integration-scenarios "mention") for more information.)

PixieBrix maintains a generic `@pixies/integrations/oauth2-client-credentials` integration for making API calls with OAuth2 Client Credentials.&#x20;

Configure the integration in the Admin Console. You'll need the following information:

* Client ID: the client (application) ID
* Client Secret: the client secret
* Token URL: the URL to generate an access token
* Scope: one or more scopes to request, separated by spaces

<figure><img src="https://2274778196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq123bF1HPQPV35s5vHa1%2Fuploads%2FPfCUjderpF8anyQHsOSt%2Fimage.png?alt=media&#x26;token=48453632-6612-4224-bc32-f84edad403cc" alt="" width="375"><figcaption><p>OAuth2 Client Credentials configuration in the Admin Console</p></figcaption></figure>

### Custom Integrations

{% hint style="info" %}
If your private API is served from multiple environments, defining a base URL property enables you to configure the environment during mod activation/deployment
{% endhint %}

To define a custom integration definition for your API, see [advanced-custom-integrations](https://docs.pixiebrix.com/integrations/advanced-custom-integrations "mention")
