> ## 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 Hailey HR with Personal Access Token – StackOne Hub

> Link a Hailey HR account in the StackOne Hub using Personal Access Token. End-user guide to authorize the integration and start using Hailey HR actions.

## Set up the API integration

Actions such as listing public employees need the **Hailey Company Id** that the API integration shows once it is enabled.

**1. Enable the API integration**

Sign in to your [Hailey HR account](https://signin.haileyhr.app/Account/LocalLogin).

<ul>
  <li>Click the **Settings** gear icon in the left sidebar, then navigate to **Integrations** > **All** tab.</li>
  <li>Find **API** integration and click the **Add Integration +** button.</li>
  <li>In the side panel that opens, toggle the integration to `Active`.</li>
  <li>If a list of sub-resources is displayed, check **Titles**, **Company Email**, **Work Phone**, **Department** and **Location**.</li>
  <li>Click **Save**.</li>
</ul>

![Hailey HR API integration page](https://mintcdn.com/stackone-60/BE-iarbAUVWugUJ5/connectors/haileyhr/images/haileyhr-api-integration.png?fit=max\&auto=format\&n=BE-iarbAUVWugUJ5\&q=85\&s=f1c55fbc7719b2455bc5101c2be0a54e)

**2. Copy the Company ID**

In Hailey HR, open the settings of the API integration.

<ul>
  <li>Click the **Settings** gear icon in the left sidebar, then navigate to **Integrations** > **Added** tab.</li>
  <li>Click the **API** integration or its **Edit** button.</li>
  <li>Copy the **Hailey Company Id** across.</li>
</ul>

![Hailey HR API integration company ID](https://mintcdn.com/stackone-60/Hl-slPeUEeOU5rjs/connectors/haileyhr/images/haileyhr-api-integration-company-id.png?fit=max\&auto=format\&n=Hl-slPeUEeOU5rjs\&q=85\&s=a3f04c699cd8643d9df7eaf24b369b59)

## Generate an Access Token

A personal access token is created from your Hailey dashboard.

**1. Create the token**

In your Hailey dashboard, click your avatar/profile in the corner and open **Access tokens**.

<ul>
  <li>**New access token**: `StackOne Integration`</li>
  <li>Click **Generate**.</li>
</ul>

![Hailey HR access token creation page](https://mintcdn.com/stackone-60/BE-iarbAUVWugUJ5/connectors/haileyhr/images/haileyhr-api-access-token-create.png?fit=max\&auto=format\&n=BE-iarbAUVWugUJ5\&q=85\&s=884e74cd787e78e2da09ffa491281706)

**2. Copy the token**

Copy the generated token across. It is only shown once.

![Hailey HR access token page copy](https://mintcdn.com/stackone-60/BE-iarbAUVWugUJ5/connectors/haileyhr/images/haileyhr-api-access-token-copy.png?fit=max\&auto=format\&n=BE-iarbAUVWugUJ5\&q=85\&s=a12a05fe04ca9251ce8979686251c0f4)

## 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/haileyhr/guides/webhook-setup.md)
>
> Configure receiving Events for Hailey HR into StackOne.


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