> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Gainsight with OAuth 2.0 (Client Credentials) – StackOne Hub

> Link a Gainsight account in the StackOne Hub using OAuth 2.0 (Client Credentials). End-user guide to authorize the integration and start using Gainsight actions.

> [!WARNING]
>
> Only Super Admins can create and manage M2M OAuth credentials. Each Gainsight org can have up to 15.

## Find your Gainsight domain

Your domain is the host in your browser's address bar when you are signed in to Gainsight.

<ul>
  <li>Format: `{company}.gainsightcloud.com`, or your custom domain</li>
  <li>Example: if your address bar shows `https://acme.gainsightcloud.com/v1/ui/home`, your **Domain** is `acme.gainsightcloud.com`</li>
</ul>

## Generate OAuth credentials

The OAuth API Key and OAuth API Secret belong to a Gainsight API connection in Connectors 2.0.

**1. Create the connection**

Sign in to Gainsight at `https://{domain}` as a Super Admin, then navigate to **Administration > Connectors 2.0**.

<ul>
  <li>Click **Create Connection**.</li>
  <li>**Connector**: **Gainsight API**</li>
  <li>**Name of the connection**: `StackOne Integration`</li>
  <li>**Authentication Type**: **OAuth**</li>
  <li>Click **Generate OAuth Credentials**.</li>
</ul>

**2. Copy the credentials**

Copy the **OAuth API Key** and **OAuth API Secret** across.

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.