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

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

<Warning>Admin keys have elevated privileges. Handle with extra care and never expose them publicly.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Generate an Admin API Key</h2>

  <p>Admin API keys are required for organization and project management actions. Only organization owners and admins can create these keys. They are created from a separate Admin keys page (not the standard API keys page).</p>

  <Steps>
    <Step title="Verify Admin Permissions">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Ensure you have admin or owner role in your organization. You can check this in Organization settings → People (accessible via the bottom-left user menu — the section was previously called "Team").</p>
      </div>
    </Step>

    <Step title="Access Admin Keys Page">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>1. Log in to your OpenAI account at <a href="https://platform.openai.com" target="_blank" rel="noopener noreferrer">[https://platform.openai.com](https://platform.openai.com)</a><br />2. Click your profile icon in the bottom-left menu and choose "Organization settings" (or "Profile settings")<br />3. Click "Admin keys" in the left sidebar</p>
      </div>
    </Step>

    <Step title="Create Admin API Key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Click the "+ Create new Admin key" button. The dialog has fields: Name, Expiration, and Permissions (no Project dropdown).</p>

        <ul>
          <li>The key must be created by an organization admin or owner</li>
          <li>Enter an optional Name (e.g., "StackOne Admin Integration")</li>
          <li>Choose an Expiration (dropdown, default 'Never')</li>
          <li>Select Permissions: 'All', 'Restricted', or 'Read only' — include organization management permissions</li>
          <li>Click "Create admin key"</li>
        </ul>
      </div>
    </Step>

    <Step title="Save Your Admin API Key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>IMPORTANT: Copy the key immediately after creation. It will only be shown once and cannot be retrieved later.</p>

        <ul>
          <li>Store the key in a secure password manager</li>
          <li>This key has elevated privileges - handle with extra care</li>
          <li>Never expose it in client-side code or public repositories</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/guides/accounts-section#linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Fill out the fields">
      Fill out the following fields using details from your provider:

      <ul>
        <li><strong>Admin API Key</strong></li>
      </ul>
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></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>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/guides/accounts-section">Accounts</a> page.</p>
</div>
