Source Plane

Begin connecting an account

For a connector that runs as a connected account: the provider’s consent URL (authorization code + PKCE, the connector’s scopes, a signed state) to open in a popup. The provider returns the browser to the public callback, which keeps the grant and posts { type: "brain-source-oauth", grantId, account } to the origin named here. Connected accounts (docs/source-plane.md § Connected accounts): the brain as an outbound OAuth 2.1 client for the cloud connectors (gdrive, onedrive, dropbox). Answers a bare 404 until SOURCE_PLANE_ENABLED=1 and SOURCE_OAUTH_CLIENT=1; needs SOURCE_CREDENTIAL_ENCRYPTION_KEY — tokens are never stored in the clear.

Required scope: brain:admin.

post/v1/admin/source-connections/oauth/start

Request

  • Base URL: https://brain.inite.ai
  • URL: https://brain.inite.ai/v1/admin/source-connections/oauth/start
  • Auth: HTTP bearer

Request body

connectorstring required
originstring uri
ownerUserIdstring
provider'google' | 'microsoft' | 'dropbox' | 'pipedrive' | 'hubspot' | 'salesforce' | 'bitrix24' | 'kommo' | 'notion' | 'atlassian' | 'slack' | 'github' | 'gitlab' required

Response

Where to send the browser.

authorizeUrlstring required
expiresAtstring required
statestring required

Changes

No recorded changes to this operation across all 1 revision of this API.