connectors.getAccessToken() method to make authenticated API calls to external services.
Supported services:
- Gmail
- Google Calendar
- Google Drive
- Google Sheets
- Google Docs
- Google Slides
- Slack
- Notion
- Salesforce
- HubSpot
- TikTok
Create and deploy connectors
Define connectors as JSONC configuration files in your project’s connectors directory and deploy them withconnectors push or deploy. By default the connectors directory is base44/connectors/, but you can customize the path in your project configuration.
When you push connector configurations, the CLI prompts you to authorize each connector one by one. The CLI suggests opening your browser automatically, and if you accept, it iterates through each integration’s authorization page sequentially. After authorization completes, your OAuth tokens are stored securely and you can retrieve them using the SDK.
Each connector requires a single JSONC file:
connectors
googlecalendar.jsonc
slack.jsonc
notion.jsonc
Configuration format
Connector files use JSONC format. Each file defines the integration type and the OAuth scopes required for your use case.Example
This example configures a Google Calendar connector with read and event management scopes:Field reference
The integration type identifier. Must be one of:
googlecalendar, slack, notion, gmail, googledrive, googlesheets, googledocs, googleslides, salesforce, hubspot, linkedin, or tiktok.Each connector type can only be defined once in your project.Array of OAuth scopes required for your integration. The specific scopes depend on the external service and what operations your app needs to perform. See the connector permissions and scopes documentation for available scopes for each service.
Use a connector
Once you’ve pushed your connector configurations and completed OAuth authorization, you can retrieve access tokens in your backend functions usingconnectors.getAccessToken(). Use these tokens to make authenticated API calls to external services.

