Need help? Get answers from the docs with Omni's in-app AI! Log in to your Omni instance and open the Omni Agent in the sidebar.
curl --request POST \
--url https://{instance}.omniapp.co/api/v1/connections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dialect": "bigquery",
"name": "My BigQuery Connection",
"region": "us",
"passwordUnencrypted": "<SERVICE_ACCOUNT_JSON_FILE>",
"defaultSchema": "my_dataset",
"includeSchemas": "dataset1,dataset2",
"includeOtherCatalogs": "other_project1,other_project2",
"maxBillingBytes": "1000000000"
}
'{
"success": true,
"data": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Creates a new database connection. See the Parameters
curl --request POST \
--url https://{instance}.omniapp.co/api/v1/connections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dialect": "bigquery",
"name": "My BigQuery Connection",
"region": "us",
"passwordUnencrypted": "<SERVICE_ACCOUNT_JSON_FILE>",
"defaultSchema": "my_dataset",
"includeSchemas": "dataset1,dataset2",
"includeOtherCatalogs": "other_project1,other_project2",
"maxBillingBytes": "1000000000"
}
'{
"success": true,
"data": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Documentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
The database dialect.
athena, bigquery, clickhouse, databricks, databricks_lakebase, exasol, mariadb, motherduck, mssql, mysql, oracle, postgres, redshift, sap_hana, snowflake, starrocks, trino A descriptive name for the connection
The password to authenticate with.
The hostname or IP address of the database server.
myaccount not myaccount.snowflakecomputing.com)The port number for the database connection.
Not required for Snowflake, MotherDuck, BigQuery, Databricks, and Athena.
The default database/catalog to connect to.
The username to authenticate with.
The default role for users accessing the connection. Available roles include:
VIEWER - Can view the modelQUERIER - Can view and query the modelQUERY_TOPICS - Can query specific topics. Equivalent to Restricted Querier.MODELER - Can edit and model the dataCONNECTION_ADMIN - Full administrative access to the connectionNO_ACCESS - No access to the modelRequired for:
Comma-separated list of schemas to include. Leave empty to include all schemas.
Comma-separated list of other catalogs/databases to include. Only applicable for databases that support multi-catalog queries: BigQuery, Snowflake, MotherDuck, Databricks, Trino, Athena.
Required for MSSQL. The default schema to use.
The timeout in seconds for queries. Maximum value is 3600 (1 hour). Only applicable for databases that support query timeouts.
x <= 3600Required for BigQuery and Athena connections.
usus-east-1Applicable for BigQuery. Maximum bytes that can be billed for a BigQuery query.
Schema to use for data input (upload) tables. If not specified, a suitable default will be chosen.
The timezone to use for the system.
The timezone to use for queries.
Whether to allow users to specify their own timezones.
Applicable for MSSQL, Exasol, and ClickHouse. Whether to trust the server certificate.
Applicable for Snowflake only. An RSA key for keypair authentication. Omni will automatically add PEM headers if none are provided.
Applicable for Oracle. Whether to accept the license terms.
Applicable for BigQuery, MSSQL, Snowflake, Databricks, and Athena. The authentication method to use.
Applicable for Athena. The AWS role ARN to assume for the connection.
Whether to enable the database's semantic layer integration:
Applicable for Snowflake and Databricks. Whether to enable database semantic layer topics.
Applicable for Snowflake. The audience for external OAuth authentication.
Applicable for Snowflake. The authorization URL for external OAuth authentication.
Applicable for Snowflake. The token URL for external OAuth authentication.
Applicable for Snowflake. Override for the host value.
Applicable for Postgres and Snowflake. Whether to automatically infer relationships from foreign key constraints.
Applicable for Snowflake and Databricks. The unencrypted OAuth client secret for native OAuth.
Applicable for all dialects. Comma-separated list of schemas to offload. See Offloading schemas for more information.
Applicable for Athena and Databricks. Whether to use machine authentication.
Was this page helpful?