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

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

> [!WARNING]
>
> Only a team admin can create an Admin API key. Cursor makes the Admin, Analytics, AI Code Tracking and Bugbot APIs available to Enterprise teams.

## Create an Admin API key

An Admin API key gives access to one Cursor team, so create it while signed in to the team you want to connect.

**1. Create the key**

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

<ul>
  <li>Click **New API Key**.</li>
  <li>Give the key a descriptive name, such as `StackOne Integration`.</li>
  <li>Create the key as a team API key, not a personal user API key or an Organization API key.</li>
  <li>A key with the `read:*` scope reads team members, groups, audit logs, usage, spend and Bugbot review analytics.</li>
  <li>The Analytics API, the AI Code Tracking API, triggering Bugbot reviews and every change need the `admin:*` scope.</li>
  <li>Model access needs the `models:read` scope to read it and `models:*` to change it. A key with `admin:*` covers both, and a `read:*` key covers neither.</li>
</ul>

**2. Copy the key**

Copy the **Admin API Key** across. The key is shown once and cannot be retrieved later.

<ul>
  <li>Format: `crsr_` followed by a long string of letters and digits</li>
  <li>Example: `crsr_xxxxxxxxxxxxxxxx`</li>
  <li>The key is tied to your team and is unaffected by the account status of the admin who created it.</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/connect/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.