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

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

<Warning>Ensure that your Okta account has <strong>API Access Administrator</strong>, <strong>Organization Administrator</strong>, or <strong>Super Administrator</strong> privileges.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Getting Your Okta Credentials</h2>

  <p>To connect Okta with StackOne using an API Key, you'll need your Okta domain and an API token.</p>

  <Steps>
    <Step title="Log in to Okta">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Log in to your Okta account at <a href="https://login.okta.com/" target="_blank" rel="noopener noreferrer">[https://login.okta.com/](https://login.okta.com/)</a></p>
      </div>
    </Step>

    <Step title="Find Your Okta Domain">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Your Okta domain can be found in the URL when logged in to Okta.</p>

        <ul>
          <li>Given the URL `https://your-org.okta.com/app/UserHome`, your domain is `your-org.okta.com`</li>
          <li>For preview environments, the domain may be `your-org.oktapreview.com`</li>
        </ul>
      </div>
    </Step>

    <Step title="Navigate to Okta Admin Console">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>From your Okta homepage, click the <strong>Admin</strong> button in the top right corner.</p>
      </div>
    </Step>

    <Step title="Navigate to API Tokens">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Access the API tokens section in the Admin Console.</p>

        <ul>
          <li>In the left navigation menu, click <strong>Security > API</strong></li>
          <li>Click on the <strong>Tokens</strong> tab</li>
        </ul>
      </div>
    </Step>

    <Step title="Create a New API Token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Create a new API token for the StackOne integration.</p>

        <ul>
          <li>Click the <strong>Create token</strong> button</li>
          <li>Enter a name for the token (e.g., StackOne Integration)</li>
          <li>For the dropdown *API calls made with this token must originate from*, select <strong>Any IP</strong> unless your organization requires specific network zones</li>
          <li>Click <strong>Create token</strong></li>
        </ul>
      </div>
    </Step>

    <Step title="Copy Your API Token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Copy and securely store your API token.</p>

        <ul>
          <li>Copy the <strong>API Token</strong> value displayed</li>
          <li>Store it securely as it will not be shown again</li>
          <li>API tokens inherit the privilege level of the admin account used to create them</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>Okta Domain URL</strong></li>
        <li><strong>API Token</strong></li>
        <li><strong>Event Hook Name</strong> (Optional)</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>
