v5

latestOpenAPI 3.1.02026-08-04166362486.5 KB
data_sources

OAuth2 callback for data source authorization

OAuth2 callback endpoint for completing data source authorization.

This endpoint is called by OAuth2 providers after user authorization. It exchanges the authorization code for access tokens and stores them securely for the data source.

Args: state: OAuth2 state parameter used for CSRF protection code: Authorization code from the OAuth2 provider error: OAuth2 error code if authorization was denied or failed error_description: Human-readable description of the error

Returns: Redirect to the data source details page on success

Raises: OAuth2TokenExchangeError: When OAuth2 provider returns an error InvalidStateError: When state parameter is invalid or expired

get/v1/data_sources/oauth2/callback

Query parameters

statestring required

OAuth2 state parameter for CSRF protection

OAuth2 state parameter for CSRF protection

codestring required

Authorization code from OAuth2 provider

Authorization code from OAuth2 provider

errorstring nullable

OAuth2 error code if authorization failed

OAuth2 error code if authorization failed

error_descriptionstring nullable

Human-readable error description

Human-readable error description