> ## Documentation Index
> Fetch the complete documentation index at: https://stackone-hub-docs-confluence-api-token-update.mintlify.site/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-docs-confluence-api-token-update/MGnlGQ2FDcYjia7O/images/openai/image1.png?fit=max&auto=format&n=MGnlGQ2FDcYjia7O&q=85&s=4eadf079240060557685f7659e0a87f4" 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-docs-confluence-api-token-update/MGnlGQ2FDcYjia7O/images/openai/image2.png?fit=max&auto=format&n=MGnlGQ2FDcYjia7O&q=85&s=5e80dc39aea55cf4f0312633d3eae97f" 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-docs-confluence-api-token-update/MGnlGQ2FDcYjia7O/images/openai/image3.png?fit=max&auto=format&n=MGnlGQ2FDcYjia7O&q=85&s=4b433c0d05aa7a34027c84896e222afc" 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-docs-confluence-api-token-update/MGnlGQ2FDcYjia7O/images/openai/image4.png?fit=max&auto=format&n=MGnlGQ2FDcYjia7O&q=85&s=ca7ebf2e227782d62d933414d07f2797" 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-docs-confluence-api-token-update/MGnlGQ2FDcYjia7O/images/openai/image5.png?fit=max&auto=format&n=MGnlGQ2FDcYjia7O&q=85&s=080d3b115c59c84a2cc3a016b10aab2f" 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-docs-confluence-api-token-update/MGnlGQ2FDcYjia7O/images/openai/image6.png?fit=max&auto=format&n=MGnlGQ2FDcYjia7O&q=85&s=2df4af8db4e899e1ab207c3c16f836ef" width="489" height="746" data-path="images/openai/image6.png" />
    </Frame>
  </Step>

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

<br />

Congratulations, you're all set! If you face any issues with the steps mentioned above,
please contact us by emailing [integrations@stackone.com](mailto:integrations@stackone.com). We're always here to assist you!

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