Connections
Create Connection
Creates a new connection with validation, duplicate checking, and OAuth2 processing.
Args: current_user: Authenticated user profile session: Database session connection_data: Connection creation data
Returns: dict: Status message with connection ID or OAuth2 redirect URL
Raises: HTTPException: If connection already exists or validation fails
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
Connection created successfully.
The response is of type object
.