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

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

<Warning>Ensure that your Payfit account has Admin privileges.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Log in to Payfit</h2>

  <p>Sign in to your <a href="https://app.payfit.com" target="_blank" rel="noopener noreferrer">Payfit account</a> with your admin credentials.</p>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Create your Payfit API Key</h2>

  <p>Generate an API key from the Payfit integrations hub.</p>

  <Steps>
    <Step title="Navigate to API Keys">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Go to <strong>[https://app.payfit.com/integrations/hub/api](https://app.payfit.com/integrations/hub/api)</strong> and click on <strong>Create a key</strong>.</p>
      </div>
    </Step>

    <Step title="Select API Key Scopes">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Configure your key with an explicit label and the appropriate scopes.</p>

        <ul>
          <li>time:read</li>
          <li>health-insurance:read</li>
          <li>health-insurance:write</li>
          <li>collaborators:read</li>
          <li>collaborators:write</li>
          <li>contracts:read</li>
          <li>contracts:write</li>
          <li>collaborators:contracts:write</li>
          <li>contracts:payslips:read</li>
          <li>collaborators:meal-vouchers:read</li>
          <li>company:read</li>
          <li>payroll:read</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy your API Key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Copy your newly created key and store it securely for use later. You will not be able to access it again in the Payfit interface for security reasons.</p>
      </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>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="/guides/accounts-section">Accounts</a> page.</p>
</div>
