Create a new source connection to sync data from an external source.
The authentication method determines the creation flow:
auth_url to redirect users for authentication.After successful authentication, data sync can begin automatically or on-demand.
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)
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