# 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](/integrations/integration-scenarios.md) 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="/files/r0UOagkWWo60EaV1KBSL" 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](/integrations/advanced-custom-integrations.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pixiebrix.com/integrations/oauth2-client-credentials.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
