
Gusto
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Connect Gusto to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Pull your Gusto payroll and people data into the PostHog Data warehouse.
Company data is only readable through an authorization-code OAuth grant, so you bring your own Gusto developer app: register it in the Gusto Developer Portal, authorize it against your company as a payroll admin, then enter the app's client ID and secret along with the resulting refresh token.
Gusto rotates refresh tokens, so the token you paste here is exchanged on every sync. If syncs start failing with an authorization error, generate a fresh refresh token and update this connection.
Configuration
| Option | Type | Required |
|---|---|---|
Environment | select | Yes |
Client ID | text | Yes |
Client secret | password | Yes |
Refresh token | password | Yes |
Linking Gusto to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Gusto
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
companies | A company the connected Gusto account administers, with its legal identity, entity type, and current onboarding status. | Full refresh | — | — |
locations | A work or mailing address belonging to a company. Employees are assigned to a work location, which drives their state and local tax jurisdiction. | Full refresh | — | — |
employees | An employee of a company, with their identity, work email, onboarding status, and current jobs. | Full refresh | — | — |
jobs | A job held by an employee: the title, hire date, work location, and whether it is the employee's primary job. | Full refresh | — | — |
contractors | A contractor engaged by a company, either an individual or a business, with their type and start date. | Full refresh | — | — |
pay_schedules | A pay schedule defining how often a company pays a group of employees, including the anchor pay period and check dates. | Full refresh | — | — |
payrolls | A payroll run for a company, covering one pay period: its check date, processing state, and per-employee compensation totals. | Incremental, Full refresh | check_date | — |
pay_periods | A pay period on one of a company's pay schedules, and whether a payroll has been run for it. | Incremental, Full refresh | end_date | — |
contractor_payments | A single payment to a contractor, flattened out of Gusto's per-contractor payment grouping. | Incremental, Full refresh | date | — |