provider external_data_sources GET
/api/environments/{environment_id}/external_data_sources/connect_link/ @utdk/posthog
/api/environments/{environment_id}/external_data_sources/connect_link/ environments_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.
- environment_id path required
- Deprecated. Use /api/projects/{project_id}/ instead.
- 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
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.environmentsExternalDataSourcesConnectLinkRetrieve()