Cloud Integration API

The Cloud Integration API allows you to connect to various cloud storage providers, test connections, and manage OAuth authentication flows.

List Cloud Providers

List all supported cloud providers with OAuth support status.

GET /api/data-ingestion/cloud-providers

Response

Returns a list of supported cloud storage providers and their OAuth support status.

Test Cloud Connection

Test connection to a cloud provider without downloading files.

POST /api/data-ingestion/test-cloud-connection

Request Body

ParameterTypeDescriptionDefault
providerstringCloud provider (gdrive, dropbox, onedrive, s3, azure, gdocs, web, excel)Required
access_tokenstringAccess token for the cloud providerRequired
refresh_tokenstringRefresh token (if applicable)null
token_expirystringToken expiry timestampnull
folder_pathstringPath to folder in cloud storagenull

Response

Returns a status object with information about the cloud connection test.

Connect Cloud OAuth

Connect to a cloud provider using OAuth tokens obtained from the OAuth flow.

POST /api/data-ingestion/connect-cloud-oauth

Request Body

A JSON object containing connection data including tokens and provider information.

Response

Returns a status object with information about the cloud connection.

OAuth Authorization

Start OAuth authorization process for a cloud provider.

GET /api/data-ingestion/oauth/authorize/{provider}

Path Parameters

ParameterTypeDescription
providerstringCloud provider to authorize

Response

Returns authorization URL or initiates the OAuth flow.

OAuth Callback

Handle OAuth callback from cloud provider.

GET /api/data-ingestion/oauth/callback

Query Parameters

ParameterTypeDescription
codestringAuthorization code from provider
statestringState parameter for security verification
errorstringError message (if any)
error_descriptionstringError description (if any)

Response

Returns OAuth tokens or error information.

Serve OAuth Demo

Serve the OAuth demo page for testing cloud provider connections.

GET /api/data-ingestion/oauth-demo

Response

Returns an HTML page for testing OAuth connections.

Serve OAuth Callback Page

Serve the OAuth callback page used in the authentication flow.

GET /api/data-ingestion/oauth/callback-page

Response

Returns an HTML page for handling OAuth callbacks.