Create Source Connection
Create a new source connection to sync data into your collection.
This endpoint only works for sources that do not use OAuth2.0.
Sources that do use OAuth2.0 like Google Drive, Slack, or HubSpot must be
connected through the UI where you can complete the OAuth consent flow.
Credentials for a source have to be provided using the auth_fields
field.
Currently, it is not automatically checked if the provided credentials are valid.
If they are not valid, the data synchronization will fail.
Check the documentation of a specific source (for example Github) to see what kind of authentication is used.
Headers
Request
Human-readable name for the source connection. This helps you identify the connection in the UI and should clearly describe what data it connects to.
Source-specific configuration parameters required for data extraction. These vary by source type and control how data is retrieved (e.g., database queries, API filters, file paths). Check the documentation of a specific source (for example Github) to see what is required.
Cron expression for automatic data synchronization schedule. If not provided, data will only sync when manually triggered. Use standard cron format: minute hour day month weekday.
Authentication credentials required to access the data source. The required fields vary by source type. Check the documentation of a specific source (for example Github) to see what is required.
Unique readable ID of a connected auth provider to use for authentication instead of providing auth_fields directly. When specified, credentials for the source will be obtained and refreshed automatically by Airweave interaction with the auth provider. To see which auth providers are supported and learn more about how to use them, check this page.
Configuration for the auth provider when using auth_provider field. Required fields vary by auth provider. For Composio, use auth_config_id and account_id to specify which integration and account from Composio you want to use to connect to the source.
Response
Human-readable display name for the source connection. This helps you identify the connection in the UI and should clearly describe what data it connects to (e.g., ‘Production Stripe Account’, ‘Customer Support Database’).
Technical identifier of the source type (e.g., ‘github’, ‘stripe’, ‘postgresql’, ‘slack’). This determines which connector Airweave uses to sync data.
Timestamp when the source connection was created (ISO 8601 format).
Timestamp when the source connection was last modified (ISO 8601 format).
Source-specific configuration options that control data retrieval behavior. These vary by source type and control how data is retrieved (e.g., database queries, API filters, file paths). Check the documentation of a specific source (for example Github) to see what is required.
Authentication credentials for the data source. Returns ’********’ by default for security.
Current operational status of the source connection:
• active: Connection is healthy and ready for data synchronization
• in_progress: Currently syncing data from the source
• failing: Recent sync attempts have failed and require attention
Status of the most recent data synchronization job:
• completed: Last sync finished successfully
• failed: Last sync encountered errors
• in_progress: Currently running a sync job
• pending: Sync job is queued and waiting to start
Timestamp when the most recent sync job started (ISO 8601 format).
Timestamp when the most recent sync job completed (ISO 8601 format). Null if the job is still running or failed.
Timestamp when the next automatic sync is scheduled to run (ISO 8601 format). Null if no automatic schedule is configured.