v4

latestOpenAPI 3.1.02026-08-01166346466.7 KB
data_sources

Authorize a data source

Start OAuth2 authorization flow for a data source.

Initiates the OAuth2 authorization process by redirecting the user to the external service's authorization page. After authorization, the user will be redirected back to the oauth2_callback endpoint.

Args: data_source_id: The ID of the data source to authorize

Returns: Redirect to the OAuth2 provider's authorization page

Raises: DataSourceNotFoundError: When data source doesn't exist DataSourceAuthTypeNotSupportedError: When OAuth2 is not supported for this data source type

get/v1/data_sources/{data_source_id}/oauth2/authorize

Path parameters

data_source_idstring uuid required

The ID of the data source to authorize

The ID of the data source to authorize

Response

The authorization URL

{"stackTrail":"paths:/v1/data_sources/{data_source_id}/oauth2/authorize:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}