curl --request POST \
--url https://{api_endpoint}/api/v1/connections/applications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"appid": "my-app-id",
"connection_type": "basic_auth",
"credentials": {
"username": "my-username",
"password": "my-password"
},
"shared": true
}
'{
"status": "success",
"message": "Connection created successfully.",
"connection_id": "123e4567-e89b-12d3-a456-426614174000"
}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
curl --request POST \
--url https://{api_endpoint}/api/v1/connections/applications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"appid": "my-app-id",
"connection_type": "basic_auth",
"credentials": {
"username": "my-username",
"password": "my-password"
},
"shared": true
}
'{
"status": "success",
"message": "Connection created successfully.",
"connection_id": "123e4567-e89b-12d3-a456-426614174000"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Application ID for the connection.
Type of connection. Must match one of the supported authentication methods.
basic_auth, bearer_token, api_key_auth, oauth2_auth_code, oauth2_implicit, oauth2_password, oauth2_client_creds, key_value_creds Authentication credentials for the connection.
Show child attributes
Whether the connection is shared. Defaults to true.