> ## 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 Folks HR with OAuth 2.0 (Client Credentials) – StackOne Hub

> Link a Folks HR account in the StackOne Hub using OAuth 2.0 (Client Credentials). End-user guide to authorize the integration and start using Folks HR actions.

<Warning>The Client Secret is shown only once when the API key is generated — copy it immediately. Only a company administrator can generate API keys, and an API key of version 'V2' is required for this connector. API keys grant direct admin-level access to your company data; treat them like admin credentials.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Generate a V2 API key in Folks HR</h2>

  <p>Create a Client ID and Client Secret from the API Keys Management page in Folks.</p>

  <Steps>
    <Step title="Sign in to Folks HR">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to Folks HR as a company administrator.</p>
      </div>
    </Step>

    <Step title="Open API Keys Management">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Navigate to <strong>Admin > Company > API Keys Management</strong>.</p>
      </div>
    </Step>

    <Step title="Generate a new API key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Click <strong>Generate new API key</strong> in the top-right corner of the page.</p>

        <ul>
          <li>Give your API key a descriptive name (e.g. StackOne) and optionally set an expiration date.</li>
          <li>Ensure the key version is <strong>V2</strong> — the connector requires a V2 key.</li>
          <li>Under <strong>Parameters</strong>, enable access to the data your integration needs (e.g. sensitive information such as SIN, salary and banking details, and personal information).</li>
          <li>Under <strong>Content of the API key</strong>, grant the required access levels (employees, custom fields, absences, overtime, vacation, balances, positions, departments, working sites, admin).</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy the credentials">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Copy the <strong>Client ID</strong> and <strong>Client Secret</strong> shown after generation.</p>

        <ul>
          <li>The <strong>Client Secret</strong> is displayed only once — save it securely before leaving the page.</li>
          <li>If the Client Secret is lost, delete the API key and generate a new one, then reconnect the account with the new values.</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>Client ID</strong></li>
        <li><strong>Client Secret</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>
