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

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

<Warning>Generating a SourceWhale API key requires <strong>Admin</strong> permissions in your SourceWhale instance. If you do not see the Admin panel, ask an administrator to generate the key for you.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Generate a SourceWhale API key</h2>

  <p>SourceWhale authenticates API access with a single API key generated from the Admin panel. Create the key in SourceWhale, then paste it into StackOne Hub.</p>

  <Steps>
    <Step title="Open the Admin panel">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://sourcewhale.app" target="_blank" rel="noopener noreferrer">SourceWhale account</a>, then click your <strong>profile icon</strong> in the bottom-left corner and select <strong>Admin</strong>.</p>

        <ul>
          <li>You must have <strong>Admin</strong> permissions in SourceWhale to access this panel and generate a key.</li>
        </ul>
      </div>
    </Step>

    <Step title="Open Settings">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>In the Admin panel, open <strong>Settings</strong>.</p>
      </div>
    </Step>

    <Step title="Generate the API key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Click <strong>Generate API Key</strong>. SourceWhale generates a new key for your instance.</p>

        <ul>
          <li>Copy the key and store it somewhere safe as soon as it is shown.</li>
        </ul>
      </div>
    </Step>

    <Step title="Paste the key into StackOne">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Paste the copied value into the <strong>API Key</strong> field in StackOne Hub to connect your account.</p>

        <ul>
          <li><strong>API Key</strong> — the key you generated in SourceWhale under <strong>Admin → Settings → Generate API Key</strong>. It is sent on every request in the `api-key` header.</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="/connect/managing-connectors/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>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="/gateway/concepts/linked-accounts">Accounts</a> page.</p>
</div>
