Linking Harness as a source
This source is currently in beta. It works end to end, but you may still hit rough edges. Let us know if you do.
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.

Contents
The Harness connector syncs your CI/CD pipeline data – pipelines, executions, services, and environments – into the PostHog data warehouse, so you can analyze your deployment activity alongside your product data.
Prerequisites
You need a Harness account with API access. Each connection imports data from one account, organization, and project scope.
To create an API key token:
- In Harness, go to My Profile > My API Keys.
- Create an API key and add a token.
- Grant the token view permission for pipelines, executions, services, and environments in your project.
Adding a data source
- Go to the sources tab of the data pipeline section in PostHog.
- Click + New source and then click Link next to Harness.
- Enter your connection details:
- API key token – the token you created in Harness.
- Account ID – your Harness account ID.
- Organization ID – the organization containing your project (defaults to
default). - Project ID – the Harness project to import from.
- Region – select the host that matches your Harness account URL. Supported hosts are
app.harness.io,app3.harness.io,accounts.harness.io, andaccounts.eu.harness.io. Self-managed hosts aren't supported.
- Click Next.
- Select the tables you want to sync, set the sync frequency, then click Import.
Once the syncs are complete, you can start using Harness data in PostHog.
Available tables
| Table | Description | Sync method |
|---|---|---|
pipelines | Pipeline summaries in the selected Harness project | Full refresh |
executions | Pipeline executions, including status, timing, and stage counts | Full refresh |
services | Services configured for deployment in the selected Harness project | Full refresh |
environments | Deployment environments in the selected Harness project | Full refresh |
Full refresh tables reload all data on each sync.
Sync limitations
All Harness tables use full refresh only. Execution queue-time filters could miss later status changes on older executions, so incremental sync isn't supported.
Configuration
| Option | Description |
|---|---|
API key tokenType: password Required: True | |
Account IDType: text Required: True | |
Organization IDType: text Required: True | |
Project IDType: text Required: True | |
RegionType: select Required: True | Select the host shown in your Harness account URL. |
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
pipelines | Pipeline summaries in the selected Harness project. | Full refresh | — | — |
executions | Pipeline executions, including status, timing, and stage counts. | Full refresh | — | — |
services | Services configured for deployment in the selected Harness project. | Full refresh | — | — |
environments | Deployment environments in the selected Harness project. | Full refresh | — | — |
infrastructures | Infrastructure definitions for each environment in the selected Harness project. | Full refresh | — | — |
organizations | Organizations in the Harness account. | Full refresh | — | — |
projects | Projects in the Harness account that the API key's user is a member of. | Full refresh | — | — |











