provider external_data_sources GET /api/projects/{project_id}/external_data_sources/connect_link/
@utdk/posthog /api/projects/{project_id}/external_data_sources/connect_link/
external_data_sources_connect_link_retrieve
Return a secure browser link for connecting a data warehouse source. The link opens a minimal connect page rendering the source's full connection form — OAuth options included — with no table selection and no source creation. The user authenticates in their browser, secrets never pass through the agent, and the agent finishes setup afterwards by passing the stored credential id to data-warehouse-source-setup.
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string
source_type query required
The source type to generate a connect link for (e.g. 'Stripe', 'Postgres', 'Hubspot').
string

Try it

Authentication
Configure credentials for PostHog API
externalDataSourcesConnectLinkRetrieve
GET/api/projects/{project_id}/external_data_sources/connect_link/
Return a secure browser link for connecting a data warehouse source. The link opens a minimal connect page rendering the source's full connection form — OAuth options included — with no table selection and no source creation. The user authenticates in their browser, secrets never pass through the agent, and the agent finishes setup afterwards by passing the stored credential id to data-warehouse-source-setup.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

required

The source type to generate a connect link for (e.g. 'Stripe', 'Postgres', 'Hubspot').

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.externalDataSourcesConnectLinkRetrieve()