> ## 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 Alloy with OAuth 2.0 – StackOne Hub

> Link a Alloy account in the StackOne Hub using OAuth 2.0. End-user guide to authorize the integration and start using Alloy actions.

> [!WARNING]
>
> Your Alloy role needs the API Keys settings permissions to view or create API keys.

## Create an Alloy API key

The OAuth 2.0 client credentials grant uses your Alloy API token as the client ID and the API secret as the client secret.

**1. Open API key settings**

Sign in to the Alloy dashboard and go to **Settings > API Keys**.

**2. Create a key**

Select **Create New API Key**, enter a unique key name and save it.

**3. Copy the token and secret**

Copy the **Token** (client ID) and **Secret** (client secret). Only the most recent secret can be copied, so store it securely.

## 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.