Skip to main content
Integrations connect external services (Gmail, GitHub, Google Drive, etc.) to a workspace. Once connected, their data becomes available in the virtual filesystem through source views. The SDK supports two ways to connect integrations:
  1. OAuth flow — Redirect the user to authorize access, then poll for completion. Best for interactive setups.
  2. Direct credentials — Pass existing OAuth tokens or API keys directly. Best for backend automation where you already have credentials.

OAuth flow

This is the most common approach. You create a session, send the user to the authorization URL, and poll until they complete it.

Step 1: Create an OAuth session

Redirect the user to session.authorize_url in their browser. After they approve access, Airstore handles the callback and stores the credentials.

Step 2: Poll for completion

poll() checks the session status every 2 seconds (configurable) and resolves when the user completes or denies authorization. It throws if the session times out or errors.

Step 3: Verify the connection

Direct credentials

If you already have OAuth tokens or an API key, skip the redirect flow entirely:
This is useful when your backend already manages OAuth tokens for users and you want to pass them through to Airstore without a second authorization prompt.

Supported integrations

Remove a connection

Next steps

Create source views

Turn your connected data into browsable folders.

OAuth reference

Full method reference for client.oauth.