> ## 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 xAI with Grok Team Admin API Key – StackOne Hub

> Link a xAI account in the StackOne Hub using Grok Team Admin API Key. End-user guide to authorize the integration and start using xAI actions.

> [!WARNING]
>
> Only a team admin can create the key, and one key reads one team. Cursor documents its Admin API for Enterprise teams, and its dashboard page says Team plans have it as well. Grok teams that have not switched to The X Subscription, xAI API console teams and Grok Enterprise organizations have no member list and cannot be connected this way.

## Create a team Admin API key

A Grok team that has switched to The X Subscription is managed as a Cursor team, so its admin key comes from the Cursor dashboard. Create the key while signed in to the team you want to connect.

**1. Create the key**

Sign in to the [Cursor dashboard](https://cursor.com/dashboard) as a team admin and open **API Keys**.

<ul>
  <li>Select **New API Key**.</li>
  <li>Choose a team API key.</li>
  <li>**Name**: `StackOne Integration`</li>
  <li>**Scope**: `admin:*`, the scope Cursor lists for Admin API keys.</li>
</ul>

**2. Copy the key**

The key is shown once and cannot be retrieved later.

<ul>
  <li>Copy the **Admin API Key** across.</li>
</ul>

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