Create Source Connection
Create a new source connection to sync data from an external source.
The authentication method determines the creation flow:
- Direct: Provide credentials (API key, token) directly. Connection is created immediately.
- OAuth Browser: Returns a connection with an
auth_urlto redirect users for authentication. - OAuth Token: Provide an existing OAuth token. Connection is created immediately.
- Auth Provider: Use a pre-configured auth provider (e.g., Composio, Pipedream).
After successful authentication, data sync can begin automatically or on-demand.
Authentication
Request
Source type identifier (e.g., 'slack', 'github', 'notion')
Display name for the connection. If not provided, defaults to '{Source Name} Connection'.
Source-specific configuration (e.g., repository name, filters)
Run initial sync after creation. Defaults to True for direct/token/auth_provider, False for OAuth browser/BYOC flows (which sync after authentication)
Authentication configuration. Type is auto-detected from provided fields.
URL to redirect to after OAuth flow completes (only used for OAuth flows)
Response
When the connection was created (ISO 8601)
When the connection was last modified (ISO 8601)
Source-specific configuration values
ID of the associated sync (internal use)
Error category when status is needs_reauth (e.g. oauth_credentials_expired)
Human-readable error message when status is needs_reauth
URL to the auth provider's settings dashboard (for auth_provider errors)
Auth provider short_name (e.g. 'composio', 'pipedream') for display
Whether this source uses federated (real-time) search instead of syncing