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

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

<Warning>Admin privileges or a custom role with appropriate resource permissions are required to create API access tokens.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Creating an API Access Token</h2>

  <p>To connect LaunchDarkly with StackOne, you'll need to create an API access token from your LaunchDarkly account.</p>

  <Steps>
    <Step title="Access Authorization Settings">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://app.launchdarkly.com" target="_blank" rel="noopener noreferrer">LaunchDarkly account</a> and navigate to Authorization settings.</p>

        <ul>
          <li>Click the gear icon in the left sidebar at the bottom to view <strong>Organization settings</strong></li>
          <li>Click <strong>Authorization</strong> from sidebar to access the Access token page</li>
        </ul>
      </div>
    </Step>

    <Step title="Create a New Token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>In the Access tokens section, click <strong>Create token</strong> to generate a new API access token.</p>
      </div>
    </Step>

    <Step title="Configure Token Settings">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Enter the token configuration details.</p>

        <ul>
          <li><strong>Name</strong>: Enter a descriptive name (e.g., StackOne Integration)</li>
          <li><strong>Role</strong>: Select an appropriate role based on your needs (Reader for read-only access, Writer for modifications, Admin for full access (Recommended))</li>
          <li>Check <strong>This is a service token</strong> for long-term integrations</li>
          <li>Note: Service token permissions are permanently fixed after creation and cannot be edited</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy the Access Token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>After creating the token, copy the API access token immediately and store it securely for use later.</p>

        <ul>
          <li><strong>Important</strong>: The token is only displayed once. If you leave or refresh the page, it will be obscured and cannot be retrieved</li>
          <li>Format: `api-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`</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>Access Token</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>
