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

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

<Warning>Ensure you have <strong>Admin</strong> or <strong>Super Admin</strong> access to the LastPass Admin Console.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Find your Account Number (CID)</h2>

  <p>Your Account Number (CID) identifies your LastPass Business organization.</p>

  <Steps>
    <Step title="Sign in to LastPass Admin Console">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://admin.lastpass.com" target="_blank" rel="noopener noreferrer">LastPass Admin Console</a>.</p>
      </div>
    </Step>

    <Step title="Locate the Account Number">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Open the profile menu in the top-right corner to view your account details.</p>

        <ul>
          <li>Click your profile icon in the top-right corner of the Admin Console.</li>
          <li>Your Account Number is shown in the dropdown as <strong>Account number</strong>.</li>
          <li>Example: `1234567`</li>
          <li>Copy the number and store it for use later.</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Generate a Provisioning Hash</h2>

  <p>The Provisioning Hash is your API secret key used to authenticate API requests.</p>

  <Steps>
    <Step title="Navigate to the Enterprise API page">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>From the LastPass Admin Console, navigate to <strong>Advanced</strong> > <strong>Enterprise API</strong>.</p>
      </div>
    </Step>

    <Step title="Create the Provisioning Hash">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>If you have not previously created a provisioning hash, click <strong>Create provisioning hash</strong> > <strong>OK</strong>. Your provisioning hash will be displayed at the top of the page.</p>

        <ul>
          <li>Copy the hash and store it securely — it is only displayed once.</li>
          <li>Note: If you need to regenerate the hash, click <strong>Reset your provisioning hash</strong> > <strong>OK</strong>. This will invalidate the previous hash and require updating all existing integrations.</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>Account Number (CID)</strong></li>
        <li><strong>Provisioning Hash</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>
