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_url` to 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
x-api-keystring
API Key authentication via header
Request
This endpoint expects an object.
short_namestringRequired
Source type identifier (e.g., ‘slack’, ‘github’, ‘notion’)
readable_collection_idstringRequired
The readable ID of the collection to add this connection to
namestring or nullOptional4-42 characters
Display name for the connection. If not provided, defaults to ‘{Source Name} Connection’.
descriptionstring or nullOptional<=255 characters
Optional description of what this connection is used for