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

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

> [!WARNING]
>
> You need admin access to your Chargebee site to generate API keys.

## Generate an API Key

An API key authenticates requests to the Chargebee API. Create a Full-Access key in your Chargebee site settings, then paste it into StackOne Hub. API keys are environment-specific — use your test site's key for the Test environment and your live site's key for Production.

**1. Open API Keys and Events**

Sign in to your [Chargebee site](https://app.chargebee.com/), then in the left sidebar click **Settings** and choose **Configure Chargebee**.

<ul>
  <li>On the **Configure Chargebee** page, scroll down to the **API Keys and Events** section — it sits below **Revenue Recovery** and **Approvals**, so it is not visible at the top of the page.</li>
  <li>Click **API Keys and Events**.</li>
</ul>

![The Configure Chargebee page scrolled to the API Keys and Events section](https://mintcdn.com/stackone-60/oG8Uy_hOFWfKtPO9/connectors/chargebee/images/api_key-config-api-keys-and-events.png?fit=max\&auto=format\&n=oG8Uy_hOFWfKtPO9\&q=85\&s=db22c2893f74c124baeb44a3400d3b39)

**2. Open the API keys list**

In the **API Keys and Events** panel, click **API keys** (this row also shows how many keys already exist, e.g. **1 key(s)**).

![The API keys row inside the API Keys and Events panel](https://mintcdn.com/stackone-60/oG8Uy_hOFWfKtPO9/connectors/chargebee/images/api_key-config-api-keys-tab.png?fit=max\&auto=format\&n=oG8Uy_hOFWfKtPO9\&q=85\&s=0164dce1fc5a6f8343013563cb68231a)

**3. Add a new API key**

On the **API Keys** tab, click **+ Add API Key** to open the **Create an API Key** panel.

![The API Keys tab with the Add API Key button](https://mintcdn.com/stackone-60/oG8Uy_hOFWfKtPO9/connectors/chargebee/images/api_key-config-add-api-key.png?fit=max\&auto=format\&n=oG8Uy_hOFWfKtPO9\&q=85\&s=167ecf57540261ed45f7f9c59ee29bda)

**4. Configure the key**

In **Create an API Key**, under **Choose the API key type you want to create** select **Full-Access Key**, then choose the **All** access level.

<ul>
  <li>**All** — *Allows full access to your Chargebee site. Recommended if you're using the API key with your own application server.*</li>
  <li>Enter a name in the **Name the API Key** field (e.g., `StackOne Integration`).</li>
  <li>Click **Create Key** to generate the key.</li>
</ul>

![The Create an API Key panel with Full-Access Key, the All access level, and the Name the API Key field](https://mintcdn.com/stackone-60/oG8Uy_hOFWfKtPO9/connectors/chargebee/images/api_key-config-create-key.png?fit=max\&auto=format\&n=oG8Uy_hOFWfKtPO9\&q=85\&s=66fc2a3b329173c599c2275ecd686e4a)

**5. Copy the key**

Your new key appears in the **API Keys** list. Click its value to copy it, then paste it into the **API Key** field in StackOne Hub.

<ul>
  <li>Keys start with `live_` on a production site or `test_` on a test site.</li>
  <li>Like a password, keep the key secret — anyone with it can call the Chargebee API on your behalf.</li>
</ul>

![The API Keys list showing the newly created Full-Access key](https://mintcdn.com/stackone-60/oG8Uy_hOFWfKtPO9/connectors/chargebee/images/api_key-config-copy-key.png?fit=max\&auto=format\&n=oG8Uy_hOFWfKtPO9\&q=85\&s=fa8cf0d37f28b4889fc26bf211beaa3e)

## Find Your Site Name

Your site name is the subdomain of your Chargebee URL. StackOne uses it to build the API address, so it must match the site whose API key you copied above. Enter it in the **Site Name** field in StackOne Hub.

**1. Locate your site name**

When signed in to Chargebee, the site indicator in the top-left corner (and your browser's address bar) shows your site's URL. The subdomain is your site name.

<ul>
  <li>Format: `https://{site-name}.chargebee.com`</li>
  <li>Example: for `https://acme-test.chargebee.com`, the **Site Name** is `acme-test`.</li>
  <li>Test sites usually end in `-test` (e.g. `acme-test`); live sites use your chosen name (e.g. `acme`).</li>
</ul>

![The Chargebee site indicator showing the site URL in the top-left corner](https://mintcdn.com/stackone-60/oG8Uy_hOFWfKtPO9/connectors/chargebee/images/api_key-config-site-name.png?fit=max\&auto=format\&n=oG8Uy_hOFWfKtPO9\&q=85\&s=82f227e1b4554018f5931a942698d2ba)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</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>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/chargebee/guides/webhook-setup.md)
>
> Configure receiving Events for Chargebee into StackOne.


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