Create Source Connection
Create a new source connection.
This endpoint creates:
- An integration credential with the provided auth fields
- A collection if not provided
- The source connection
- A sync configuration and DAG
- A sync job if immediate execution is requested
Args: db: The database session source_connection_in: The source connection to create auth_context: The current authentication context background_tasks: Background tasks for async operations
Returns: The created source connection
Headers
X-API-Key
X-Organization-ID
Request
This endpoint expects an object.
name
Name of the source connection
short_name
description
config_fields
Config values model.
Implements "flat dictionary" semantics, where no values are dictionaries.
white_label_id
collection
cron_schedule
auth_fields
Config values model.
Implements "flat dictionary" semantics, where no values are dictionaries.
credential_id
sync_immediately
Response
Successful Response
name
Name of the source connection
short_name
id
organization_id
created_at
modified_at
collection
description
config_fields
Config values model.
Implements "flat dictionary" semantics, where no values are dictionaries.
white_label_id
sync_id
connection_id
created_by_email
modified_by_email
auth_fields
status
Source connection status enum.
Allowed values:
latest_sync_job_status
Sync job status enum.
latest_sync_job_id
latest_sync_job_started_at
latest_sync_job_completed_at
latest_sync_job_error
cron_schedule
next_scheduled_run