> ## 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 Gladly with API Token – StackOne Hub

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

## Retrieve Your Organization Slug

Your organization slug is the subdomain in your Gladly URL. For example, if your Gladly URL is `https://acme.gladly.com`, then your organization slug is `acme`.

**1. Find Your Organization Slug**

Open your Gladly instance in a browser and note the subdomain in your URL (e.g., `https://acme.gladly.com` — the slug is `acme`). Enter this value in the **Organization Slug** field in StackOne.

## Create a Dedicated API User

Gladly recommends creating a dedicated user account for API access.

**1. Enable API User Permission**

\- Log in to your Gladly instance.\
\- Open the menu in the top-left corner and navigate to **Settings > Users**.\
\- Search for and click the user profile you wish to use for API access.\
\- Enable the **API User** permission while keeping the Agent role intact.\
\- Click **Save**.

## Generate an API Token

Create an API token for the API user account.

**1. Open API Token Settings**

Log in as the API user and click **More settings** in the navigation menu.

**2. Create Token**

Click **API Tokens**, then click the **Create Token** button in the upper right. Copy the generated token immediately — it is shown only once. Store it securely.

**3. Enter Credentials in StackOne**

Enter the API user's email address in the **Agent Email** field and the copied token in the **API Token** field in StackOne.

## 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).


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