provider external_data_sources GET
/api/environments/{environment_id}/external_data_sources/oauth_accounts/ @utdk/posthog
/api/environments/{environment_id}/external_data_sources/oauth_accounts/ environments_external_data_sources_oauth_accounts_retrieve
List the accounts/properties a connected OAuth integration exposes, in the shared
IntegrationAccount shape. The logic lives in each source (via OAuthMixin.get_oauth_accounts);
this endpoint just routes by source type and serializes the result.
- environment_id path required
- Deprecated. Use /api/projects/{project_id}/ instead.
- string
- integration_id query required
- The OAuth integration id whose accounts should be listed.
- integer
- source_type query required
- The data warehouse source type (e.g. 'BingAds', 'GoogleSearchConsole').
- 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.environmentsExternalDataSourcesOauthAccountsRetrieve()