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 GET \
--url https://{instance}.omniapp.co/api/v1/connections \
--header 'Authorization: Bearer <token>'{
"connections": [
{
"id": "c0f12353-4817-4398-bcc0-d501e6dd2f64",
"name": "Production Database",
"dialect": "postgres",
"database": "prod_db",
"baseRole": "NO_ACCESS",
"deletedAt": null,
"userAttributeNameForConnectionEnvironments": "environment",
"userAttributeValuesForDefaultEnvironment": "<string>",
"branchConnectionEnvironmentOverridesUserAttr": "false",
"environmentConnectionSwitchesSchemaModel": "false",
"defaultSchema": "public"
}
]
}Retrieves a list of database connections with optional filtering and sorting
curl --request GET \
--url https://{instance}.omniapp.co/api/v1/connections \
--header 'Authorization: Bearer <token>'{
"connections": [
{
"id": "c0f12353-4817-4398-bcc0-d501e6dd2f64",
"name": "Production Database",
"dialect": "postgres",
"database": "prod_db",
"baseRole": "NO_ACCESS",
"deletedAt": null,
"userAttributeNameForConnectionEnvironments": "environment",
"userAttributeValuesForDefaultEnvironment": "<string>",
"branchConnectionEnvironmentOverridesUserAttr": "false",
"environmentConnectionSwitchesSchemaModel": "false",
"defaultSchema": "public"
}
]
}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
Filter connections by name (case-insensitive, partial matching)
Filter connections by database name (case-insensitive, partial matching)
Filter connections by dialect(s). For multiple dialects, provide a comma-separated list (e.g., postgres,mysql).
The database dialect.
athena, bigquery, clickhouse, databricks, databricks_lakebase, exasol, mariadb, motherduck, mssql, mysql, oracle, postgres, redshift, sap_hana, snowflake, starrocks, trino Field to sort by
database, dialect, name Direction for sorting:
asc - Ascending order (A-Z, 0-9)desc - Descending order (Z-A, 9-0)asc, desc When true, the response includes deleted connections. Defaults to false.
Returns a list of connections objects
Show child attributes
Was this page helpful?