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

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

<Warning>Only account admins can generate or delete the Freshchat API key. Freshchat allows one key at a time, so to get a new key, delete the old one first and then generate a new one.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Get your API key and API URL</h2>

  <p>Generate the API key, then note the host your Freshchat account uses.</p>

  <Steps>
    <Step title="Open the API settings">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>In Freshchat, go to <strong>Admin settings</strong> > <strong>APIs for chat</strong>. If your admin menu shows <strong>Admin</strong> > <strong>CONFIGURE</strong> > <strong>API Tokens</strong> instead, open that page. On Freshsales Suite, go to <strong>Settings</strong> > <strong>Admin Settings</strong> > <strong>Website Tracking and APIs</strong> > <strong>API Settings</strong> and use the <strong>API DETAILS FOR CHAT</strong> section.</p>
      </div>
    </Step>

    <Step title="Copy the API key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Click <strong>Generate Token</strong> if no key exists yet, then copy the key shown as <strong>API KEY</strong> (on Freshsales Suite, <strong>Your API Key</strong>).</p>
      </div>
    </Step>

    <Step title="Enter your Freshchat host">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>For a standalone Freshchat account, enter `<account-name>.freshchat.com` in <strong>Domain</strong>, for example `acme.freshchat.com`. On Freshsales Suite, copy the host shown in <strong>Your chat URL</strong> without the https\:// prefix, for example `acme-123456.myfreshworks.com`.</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="/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>Domain</strong></li>
        <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="/gateway/concepts/linked-accounts">Accounts</a> page.</p>
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.