external_data_sources

List the accounts a source's typed-in credentials can reach, in the shared IntegrationAccount shape.

The OAuth twin takes an integration id because the token already lives on the server. Here the credentials are still in the form, so they arrive in the body — POST, not GET, to keep a private key out of the URL and out of anything that logs one. Nothing is cached for the same reason: the cache key would have to include the credentials.

post/api/projects/{project_id}/external_data_sources/credential_accounts/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/external_data_sources/credential_accounts/
  • Auth: HTTP bearer

Path parameters

project_idstring required

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

Request body

source_typestring required

The data warehouse source type whose picker is asking (e.g. 'AppleSearchAds').

credentialsobject required

Values of the sibling fields named by the picker's credentialFields. Any other key is rejected.

api_versionstring nullable

Vendor API version the source is pinned to. Defaults to the source's current default.

Response

Changes

No recorded changes to this operation across all 1 revision of this API.