Create a data source
Creates a new data source connection for an organization. Requires admin access to the organization. Currently only direct database connections are supported.
Side effects
When a data source is successfully created:- Schema sync - A background job is triggered to connect to the database and sync its schema (tables, columns, etc.)
- Trial activation - If the organization has never been on a trial, a trial period is automatically started
Authorizations
API key authentication using Bearer token format: Bearer <basedash_api_key>
Path Parameters
Organization ID
Body
Connection type (currently only direct)
direct Database dialect/type
POSTGRES Display name for the data source
1Snowflake account ID
Snowflake warehouse
Snowflake role
Snowflake private key
Snowflake private key passphrase
Database name
Database username
Database host
Database port
0 <= x <= 65535Database password
BigQuery JSON key
BigQuery project ID
Spanner instance ID
Athena workgroup
Athena output location (s3://...)
Athena catalog
Enable SSL connection
Enable SSH tunnel
SSH tunnel host
SSH tunnel port
0 <= x <= 65535SSH tunnel username
SSH tunnel password
SSH private key
SSH private key passphrase
Maximum number of connections in the pool per container
1 <= x <= 100Response
Data source created successfully