Create workspace connector
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Creates a workspace connector.
A workspace connector holds the workspace's own OAuth app for a connector, so the workspace's apps connect through it instead of through Base44's OAuth app. A connector can also run on Base44's OAuth app for the apps' users, when credential_source is base44.
With credential_source set to byo, send the client ID and secret of an OAuth app you registered in the provider's console, then register the redirect URIs from Get OAuth redirect URIs there too. With base44, send neither: the connector runs on Base44's OAuth app, which needs a plan that includes Base44-managed connectors and accepts only the scopes that app is approved for.
Names are unique in a workspace, so retrying a create that succeeded returns a 409.
This is limited to 30 requests per minute, shared by Create workspace connector, Update workspace connector, and Delete workspace connector. A signed-in session has its own limit, and every personal access token for the workspace shares one. Some workspaces have a different limit.
<Note>Call this as an owner or admin of the workspace, with a personal access token for that workspace sent as a Bearer token, or from a signed-in session. A read-only token is refused. Workspace API keys aren't accepted.</Note>
Request
- Base URL: https://app.base44.com
- URL: https://app.base44.com/api/workspace/{workspace_id}/connectors
- Auth: HTTP bearer
Path parameters
ID of the workspace. With a personal access token, use the token's workspace. Get it from organization_id in Get app.
Request body
Example request
{
"name": "Sales Google Calendar",
"credential_source": "byo",
"client_id": "1234567890-abc123def456.apps.googleusercontent.com",
"client_secret": "your-oauth-client-secret",
"scopes": [
"https://www.googleapis.com/auth/calendar.readonly"
],
"connection_config": {}
}Response
The new workspace connector.
Example response
{
"id": "6820f3a4e7b91d003c45a1f9",
"organization_id": "67e0b12c4d8a3f005b21c9e4",
"integration_type": "googlecalendar",
"name": "Sales Google Calendar",
"credential_source": "byo",
"client_id": "1234567890-abc123def456.apps.googleusercontent.com",
"scopes": [
"https://www.googleapis.com/auth/calendar.readonly"
],
"connection_config": {},
"uses_oauth_gateway": true
}Changes
- info
the endpoint scheme security
PersonalAccessTokenAuthwas added to the API
- info
- info
endpoint added
- info