provider external_data_sources POST
/api/projects/{project_id}/external_data_sources/store_credentials/ @utdk/posthog
/api/projects/{project_id}/external_data_sources/store_credentials/ external_data_sources_store_credentials_create
Validate and store credentials for a data warehouse source without creating the source.
Backs the source connect page: the user enters credentials directly in PostHog, they are
checked against a live connection, then stashed encrypted in a temporary store. The returned
credential id can be passed to `setup` as {'credential_id': <id>} to create the source — so
secrets never travel through an agent conversation. The stash is single-use: it is deleted
as soon as `setup` consumes it, and expires after 24 hours if never consumed.
- 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
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.externalDataSourcesStoreCredentialsCreate()