# Paylocity

> Source: https://truto.one/docs/integration-guides/paylocity/

Paylocity connects with OAuth 2.0 client credentials that Paylocity issues to you, plus the company ID of the Paylocity company you're connecting.

## Install the Paylocity integration

Install Paylocity from [Available integrations](https://app.truto.one/integrations/available/a272d610-88a4-405e-a9ad-9cb617801314) in each environment you connect accounts from.

## Get API credentials

Paylocity doesn't let you create API credentials yourself. Request API access through Paylocity's [integration program](https://developer.paylocity.com/integrations/docs/getting-started#building-an-integration-with-paylocity-overview). Once Paylocity approves the request, it sends you OAuth credentials and access to a sandbox account.

To find the **Company ID**, sign in to Paylocity and go to **Help** → **About/Copyright**.

## Connect a Paylocity account

1. Click **Connect Account**.
   ![Click Connect Account](https://docs-assets.truto.one/truto-connect-account.png)
2. Enter a Tenant ID. This can be any ID you choose. Click **Get connection link**.
   ![Get connection link](https://docs-assets.truto.one/truto-connect-account-modal.png)
3. Open the generated link. You can also share it with your customer so they connect their own Paylocity account.
   ![Share connection link](https://docs-assets.truto.one/truto-connect-account-link.png)
4. Select **Paylocity**.
5. Fill in the form and click **Connect**:

   | Field | Required | What to enter |
   |---|---|---|
   | **Client ID** | Yes | The Client ID Paylocity issued. |
   | **Client Secret** | Yes | The Client Secret Paylocity issued. |
   | **Company ID** | Yes | Your Paylocity company ID. Sign in to Paylocity and go to **Help** → **About/Copyright**. |
   | **Environment** | Yes | Pick **Testing** for Paylocity's sandbox, **Production** for live companies. |
6. Close the tab when you see the connection successful message. The new account appears under **Integrated Accounts**. Click its Account ID to see its details and make API calls.
