v4
latestOpenAPI 3.1.02026-08-01207318738.7 KBConnections
Create connection
Create a new database connection. The request body varies by dialect - see dialect-specific documentation for required fields.
post/api/v1/connections
Request body
Example request
{
"acceptsLicense": true,
"alwaysScopeViewNames": true,
"authenticationType": "snowflake-password",
"awsRoleArn": "arn:aws:iam::123456789012:role/OmniAthenaRole",
"baseRole": "QUERIER",
"database": "analytics_db",
"defaultSchema": "public",
"dialect": "snowflake",
"externalOauthAuthorizationUrl": "https://oauth.example.com/authorize",
"externalOauthTokenUrl": "https://oauth.example.com/token",
"host": "myaccount",
"hostOverride": "myaccount.snowflakecomputing.com",
"includeOtherCatalogs": "other_project1,other_project2",
"includeSchemas": "public,analytics",
"inferRelationshipsFromColumnNames": true,
"maxBillingBytes": "1000000000",
"name": "Production Warehouse",
"port": 5432,
"queryTimeoutSeconds": 900,
"queryTimezone": "NONE",
"region": "us-east-1",
"scratchSchema": "omni_scratch",
"systemTimezone": "UTC",
"username": "analytics_user",
"warehouse": "COMPUTE_WH",
"wifAudience": "//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider",
"wifServiceAccountEmail": "omni@my-project.iam.gserviceaccount.com"
}Response
Connection created successfully
Example response
{
"data": "550e8400-e29b-41d4-a716-446655440000",
"success": true
}