provider external_data_sources POST
/api/environments/{environment_id}/external_data_sources/setup/ @utdk/posthog
/api/environments/{environment_id}/external_data_sources/setup/ environments_external_data_sources_setup_create
One-shot data warehouse source setup.
Validate credentials, discover available tables, enable them all with sensible sync defaults
(incremental where supported, else append, else full refresh), and create the source in a single
call — the caller never has to assemble a `schemas` array. For sources that support webhooks
(e.g. Stripe), a webhook is auto-registered after creation: on success webhook-capable tables
switch to real-time webhook sync (unlocking webhook-only tables); on failure the polling
defaults stay in place. For fine-grained table/sync control, use the lower-level
`database_schema` + `create` flow instead.
- environment_id path required
- Deprecated. Use /api/projects/{project_id}/ instead.
- 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.environmentsExternalDataSourcesSetupCreate({
"direct_query_enabled": true
})