> ## 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 Harvest with OAuth 2.0 – StackOne Hub

> Link a Harvest account in the StackOne Hub using OAuth 2.0. End-user guide to authorize the integration and start using Harvest actions.

<section data-guide-section data-guide-scopes="">
  <h2>Find your Harvest Account ID</h2>

  <p>Each Harvest account has a numeric Account ID that must be sent on every API request.</p>

  <Steps>
    <Step title="Locate the Account ID">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://id.getharvest.com/" target="_blank" rel="noopener noreferrer">Harvest account</a> and locate the Account ID.</p>

        <ul>
          <li>Open the <strong>Harvest Developers</strong> page at <a href="https://id.getharvest.com/developers" target="_blank" rel="noopener noreferrer">[https://id.getharvest.com/developers](https://id.getharvest.com/developers)</a>.</li>
          <li>In the <strong>Personal access tokens</strong> section, create or open a token — the <strong>Account ID</strong> is displayed alongside the token on the post-creation page (a number such as `1234567`).</li>
          <li>Alternatively, programmatically fetch the Account ID via `GET https://id.getharvest.com/api/v2/accounts` using your OAuth access token.</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 ID</strong></li>
        <li><strong>User-Agent</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>
