How to call Data Connection webhooks from a Python Transform (OAuth2 REST API source)?

I have a REST API source in Data Connection that uses OAuth2 authentication. The source has webhooks configured (e.g. WebhookLightspeedAPISeasonQuery) that work correctly when tested in Data Connection.

I’m trying to call these webhooks from a Python transforms repository using @external_systems, but:

  • source.get_https_connection() fails with “Only single connection sources are supported” because OAuth2 sources internally create multiple connections (API domain + token endpoint)
  • source._https_connections is empty ({})
  • source.get_session_credentials() returns “Resolved source credentials are not present on the Source”
  • The source does provide secrets and source_configuration (with the domain and oauth2_client_rid), but no usable HTTP client or OAuth token

Is there a supported way to execute a Data Connection webhook by API name from a Python transform? Or is there a recommended pattern for batch-syncing data from an OAuth2 REST API source in a Python transforms code repository?

Environment: transforms-external-systems 0.1174.0, external-systems 0.110.0, foundry-platform-sdk 1.69.0

The way to do this would be do write the code to get the short lived access token and use that to make your API calls with code. I assume you‘ll need to do a client credentials call when you have a client_id and client_secret.

There is no first class integration to re-use the webhook definition or even get one of the two defined hostnames in code.