Overview
Connectors module for managing OAuth tokens for external services. This module allows you to retrieve OAuth access tokens for external services that the app has connected to. Connectors are app-scoped. When an app builder connects an integration like Google Calendar, Slack, or GitHub, all users of the app share that same connection. Unlike the integrations module that provides pre-built functions, connectors give you raw OAuth tokens so you can call external service APIs directly with full control over the API calls you make. This is useful when you need custom API interactions that aren’t covered by Base44’s pre-built integrations.Available connectors
All connectors work throughgetConnection(). Pass the integration type string and use the returned OAuth token to call the external service’s API directly.
| Service | Type identifier |
|---|---|
| Airtable | airtable |
| Box | box |
| ClickUp | clickup |
| Discord | discord |
| Dropbox | dropbox |
| GitHub | github |
| Gmail | gmail |
| Google Analytics | google_analytics |
| Google BigQuery | googlebigquery |
| Google Calendar | googlecalendar |
| Google Classroom | google_classroom |
| Google Docs | googledocs |
| Google Drive | googledrive |
| Google Search Console | google_search_console |
| Google Sheets | googlesheets |
| Google Slides | googleslides |
| HubSpot | hubspot |
| Linear | linear |
linkedin | |
| Microsoft Teams | microsoft_teams |
| Notion | notion |
| Outlook | outlook |
| Salesforce | salesforce |
| SharePoint | share_point |
| Slack User | slack |
| Slack Bot | slackbot |
| Splitwise | splitwise |
| TikTok | tiktok |
| Wix | wix |
| Wrike | wrike |
- Scopes and permissions: Gmail, LinkedIn, Slack, GitHub
- Slack connector types: About the Slack connectors explains the difference between
slackandslackbot
Authentication Modes
This module is only available to use with a client in service role authentication mode, which means it can only be used in backend environments.Dynamic Types
If you’re working in a TypeScript project, you can generate types from your app’s connector configurations to get autocomplete on integration type names when callinggetConnection(). See the Dynamic Types guide to get started.
Methods
⚠️ getAccessToken()
Deprecated: Use getConnection instead.
getAccessToken(Retrieves an OAuth access token for a specific external integration type.integrationType):Promise<string>
Parameters
The type of integration, such as
'googlecalendar', 'slack', 'slackbot', 'github', or 'discord'. See Available connectors for the full list.Returns
Promise<string>
Promise resolving to the access token string.
Examples
getConnection()
getConnection(Retrieves the OAuth access token and connection configuration for a specific external integration type. Some connectors require connection-specific parameters to build API calls. In such cases, the returnedintegrationType):Promise<ConnectorConnectionResponse>
connectionConfig is an object with the additional parameters. If there are no extra parameters needed for the connection, the connectionConfig is null.
For example, a service might need a subdomain to construct the API URL in
the form of {subdomain}.example.com. In such a case the subdomain will be available as a property of the connectionConfig object.
Parameters
The type of integration, such as
'googlecalendar', 'slack', 'slackbot', 'github', or 'discord'. See Available connectors for the full list.Returns
ConnectorConnectionResponse
Connection details.
Properties
Properties
Examples
Type Definitions
ConnectorIntegrationType
ConnectorIntegrationType = keyofUnion of all connector integration type names from theConnectorIntegrationTypeRegistryextendsnever?string: keyofConnectorIntegrationTypeRegistry
ConnectorIntegrationTypeRegistry. Defaults to string when no types have been generated.
Example
ConnectorIntegrationTypeRegistry
Registry of connector integration type names. The
types generate command fills this registry, then ConnectorIntegrationType resolves to a union of the keys.
