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

# OpenAI

> Follow these steps to connect OpenAI via the StackOne Hub successfully.

<Warning>
  Ensure you have Owner privileges within your OpenAI organization.
</Warning>

If you've been directed to StackOne to integrate with OpenAI, the following steps will help you understand the process and any necessary actions to configure successful integration.

## Get Admin key

<Steps>
  <Step title="Log in to OpenAI">
    Log in to your [OpenAI Account](https://platform.openai.com/login).

    <Frame>
      <img className="rounded-md" style={{ margin: '0 auto', border: '1px solid #efefef' }} alt="Login" src="https://mintcdn.com/stackone-hub/_vrnUI8B2K_JB09R/images/openai/image1.png?fit=max&auto=format&n=_vrnUI8B2K_JB09R&q=85&s=6d5e39ea71ca6ab139221a5aa710a2f8" width="988" height="702" data-path="images/openai/image1.png" />
    </Frame>
  </Step>

  <Step title="Go to Admin keys">
    Select `Organization overview` from the dropdown and then go to the [Admin Keys](https://platform.openai.com/organization/admin-keys) page.

    <Frame>
      <img className="rounded-md" style={{ margin: '0 auto', border: '1px solid #efefef' }} alt="Admin Keys Page" src="https://mintcdn.com/stackone-hub/_vrnUI8B2K_JB09R/images/openai/image2.png?fit=max&auto=format&n=_vrnUI8B2K_JB09R&q=85&s=894862400e3b4cd6d0f865b2862015f7" width="1898" height="565" data-path="images/openai/image2.png" />
    </Frame>
  </Step>

  <Step title="Create new Admin Key">
    Click the `Create new Admin key` button in the top right corner.\
    Enter the new Key Name and click the `Create admin key` button.

    <Frame>
      <img className="rounded-md" style={{ margin: '0 auto', border: '1px solid #efefef' }} alt="Create new Admin Key" src="https://mintcdn.com/stackone-hub/_vrnUI8B2K_JB09R/images/openai/image3.png?fit=max&auto=format&n=_vrnUI8B2K_JB09R&q=85&s=aa2e8f471ccf4dfa51a4bc137c37c784" width="1898" height="675" data-path="images/openai/image3.png" />
    </Frame>
  </Step>

  <Step title="Copy the Admin Key">
    Copy the Admin Key and store it in a secure place.

    <Frame>
      <img className="rounded-md" style={{ margin: '0 auto', border: '1px solid #efefef' }} alt="Copy the Admin Key" src="https://mintcdn.com/stackone-hub/_vrnUI8B2K_JB09R/images/openai/image4.png?fit=max&auto=format&n=_vrnUI8B2K_JB09R&q=85&s=54c7ee2578b07bbaea1012088709d3a0" width="1320" height="724" data-path="images/openai/image4.png" />
    </Frame>
  </Step>
</Steps>

## Get Project ID

<Steps>
  <Step title="Get Project ID">
    Each connection will be linked to a single OpenAI project within your organization.

    Visit the [Projects](https://platform.openai.com/organization/projects) page to locate the desired Project ID.

    <Frame>
      <img className="rounded-md" style={{ width: '400px', margin: '0 auto', border: '1px solid #efefef' }} alt="Project ID" src="https://mintcdn.com/stackone-hub/_vrnUI8B2K_JB09R/images/openai/image5.png?fit=max&auto=format&n=_vrnUI8B2K_JB09R&q=85&s=083742785e38606d036289d229f39338" width="1887" height="652" data-path="images/openai/image5.png" />
    </Frame>
  </Step>
</Steps>

## Connecting to StackOne

<Steps>
  <Step title="Enter Authentication Details">
    Upon reaching the Link Account page, enter the following authentication details from the previous steps:

    <ul>
      <li>Admin Key</li>
      <li>Project ID</li>
    </ul>

    <Frame>
      <img className="rounded-md" style={{ margin: '0 auto', border: '1px solid #efefef' }} alt="Link Account" src="https://mintcdn.com/stackone-hub/_vrnUI8B2K_JB09R/images/openai/image6.png?fit=max&auto=format&n=_vrnUI8B2K_JB09R&q=85&s=7a844b35189a6098b038bae4a4ec1e63" width="489" height="746" data-path="images/openai/image6.png" />
    </Frame>
  </Step>

  <Step title="Connect">
    Proceed by clicking the Connect button.
  </Step>
</Steps>

## Available data

This integration has the following [IAM Resources](https://docs.stackone.com/reference/iam_list_users) available from the provider:

<ul>
  <li>Users</li>
  <li>Roles</li>
</ul>

## Useful Links

<Card title="API Documentation" icon="link" href="https://platform.openai.com/docs/api-reference/administration">
  [https://platform.openai.com/docs/api-reference/administration](https://platform.openai.com/docs/api-reference/administration)
</Card>


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