Create a new datasource connection to your data infrastructure. Supports multiple database types and cloud services.
application/json for all requests.snowflake - Snowflake data warehousepostgres - PostgreSQL databaseredshift - Amazon Redshiftmysql - MySQL databasemongodb - MongoDB databaseclickhouse - ClickHouse databasesinglestore - SingleStore databasebigquery - Google BigQuerydatabricks - Databrickselasticsearch - Elasticsearchopensearch - OpenSearchmssql - Microsoft SQL Serverawss3 - Amazon S3csv - CSV filesfirebolt - Fireboltathena - Amazon Athenatrino - Trinoname field.datasourceType. Below are examples for common datasource types:
Snowflake
your-account.snowflakecomputing.com)"username/password" or "Key-pair authentication""username/password")"Key-pair authentication")Postgres / Redshift
"enable" or "disable" (optional)BigQuery
"US", "EU")MySQL / MongoDB / ClickHouse
MSSQL
server not host for MSSQL.user not username for MSSQL.SingleStore
Databricks
Elasticsearch / OpenSearch
"elastic-cloud", "open-cloud", or "self-managed""elastic-cloud" or "open-cloud")"self-managed")Firebolt
Athena
Trino
"enable" or "disable" (optional)"enable")"enable")"enable")"enable")CSV
AWS S3
"us-east-1")"File" or "Folder" (optional)| Error Code | HTTP Status | Description |
|---|---|---|
INVALID_REQUEST_BODY | 400 | Missing required fields or invalid credential structure |
DATASOURCE_NAME_ERROR | 400 | Datasource name already exists |
CREDENTIAL_TEST_FAILED | 400 | Connection test failed |
AUTHENTICATION_ERROR | 401 | Invalid or missing service token |
SCHEMA_CACHE_FAILED | 500 | Schema caching failed |
CREATE_DATASOURCE_FAILED | 500 | Internal error during datasource creation |
INTERNAL_SERVER_ERROR | 500 | Server error occurred |