> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hailey HR - How do I link my account?

# Overview

To authenticate with Hailey HR, you need:

1. **Environment** - Whether you're connecting to production (`haileyhr.app`) or the demo/sandbox (`demo.haileyhr.app`).
2. **Personal Access Token** - A token that grants secure access to the Hailey HR API, carrying the same rights as the account that generated it.

This guide will walk you through selecting your environment and generating your **Personal Access Token** in Hailey HR.

### Prerequisites:

* You must have a Hailey HR account with the "View & edit - Integrations" right (administrators have this by default).

### Instructions:

#### Step 1: Selecting your environment

* To connect to your live Hailey HR account, use `haileyhr.app`.
* To connect to Hailey's demo/sandbox environment, use `demo.haileyhr.app`.

#### Step 2: Generating your personal access token

1. Log in to Hailey HR, click your profile picture/initials in the bottom left corner, then click **Access tokens**.
2. Click **Generate new key**, name the token, and generate it.
3. Copy the token immediately — Hailey HR only shows it once, and it can't be retrieved again after the window closes.

<Note>
  The token carries the same permissions as the account that generated it. To avoid depending on a specific employee's account, consider generating the token from a dedicated service account rather than a personal one. Tokens are valid for one year; Hailey HR emails a reminder to company admins one week and one day before expiration.
</Note>

#### Step 3: Enter credentials in the Connect UI

Once you have your **Personal Access Token**:

1. Open the form where you need to authenticate with Hailey HR.
2. Select your **Environment**.
3. Enter your **Personal Access Token** in the field provided.
4. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango/6H1-vAzdP80PFrYM/api-integrations/haileyhr/form.png?fit=max&auto=format&n=6H1-vAzdP80PFrYM&q=85&s=dc87fbfd2aef330ec6f1042929f34c7b" style={{maxWidth: "450px" }} width="988" height="1218" data-path="api-integrations/haileyhr/form.png" />

You are now connected to Hailey HR.
