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

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

<Warning>Admin access to your Traffit account is required to create API credentials.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Find your Traffit subdomain</h2>

  <p>Your Traffit subdomain is part of the URL you use to access your account.</p>

  <Steps>
    <Step title="Identify your subdomain">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your Traffit account and look at the URL in your browser.</p>

        <ul>
          <li>For example, if your URL is `https://mycompany.traffit.com`, your subdomain is `mycompany`</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Create an API client</h2>

  <p>Create an API client in your Traffit account to obtain OAuth 2.0 credentials.</p>

  <Steps>
    <Step title="Navigate to API settings">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://traffit.com" target="_blank" rel="noopener noreferrer">Traffit account</a>.</p>

        <ul>
          <li>Go to <strong>Settings</strong> in the navigation menu</li>
          <li>Select <strong>Integrations</strong> → <strong>API</strong></li>
          <li>Click <strong>Add new API client</strong></li>
        </ul>
      </div>
    </Step>

    <Step title="Configure the client and select scopes">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Enter a name for your API client (e.g., "StackOne") and select the required permission scopes.</p>

        <ul>
          <li><strong>employee</strong> — candidate/employee data management</li>
          <li><strong>recruitment</strong> — job opening and pipeline management</li>
          <li><strong>webhook</strong> — webhook registration and management</li>
          <li><strong>client</strong> — client company management</li>
          <li><strong>user</strong> — user account management</li>
          <li><strong>crm</strong> — CRM person and activity access</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy your credentials">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>After creating the client, Traffit will display your credentials.</p>

        <ul>
          <li>Copy the <strong>Client ID</strong> (this is the name you gave the client)</li>
          <li>Copy the <strong>Client Secret</strong> (shown only once — store it securely)</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>Subdomain</strong></li>
        <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="/guides/accounts-section">Accounts</a> page.</p>
</div>
