---
title: "Get connection"
method: GET
path: "/v1/connections/{connectionId}"
tags: ["Connections"]
---

# Get connection

`GET /v1/connections/{connectionId}`

<Note>
This endpoint requires **Restricted Querier** permissions or higher.
</Note>

Fetch a single connection by ID.

## Path parameters

- `connectionId` string, uuid, required

## Response `200`

Connection retrieved successfully

- object
  - `connection` Connection
    - `id` string, uuid — The connection's unique ID
    - `name` string — A descriptive name for the connection
    - `dialect` string — The type of database
    - `database` string — The default database/catalog to connect to.
    - `baseRole` string — The default role for users accessing the connection.
    - `createdAt` string, date-time — The time the connection was created.
    - `updatedAt` string, date-time — The time the connection was last updated.
    - `deletedAt` string, date-time — The time the database was deleted.
    - `userAttributeNameForConnectionEnvironments` string
    - `userAttributeValuesForDefaultEnvironment` string
    - `branchConnectionEnvironmentOverridesUserAttr` boolean
    - `environmentConnectionSwitchesSchemaModel` boolean
    - `defaultSchema` string — The default schema to use.

## Other responses

- `400` — Invalid connection ID format (not a valid UUID)
- `401` — Missing or invalid authentication
- `403` — Forbidden. Possible error messages: - `Caller lacks `READ` permission on the connection` - Requesting user has insufficient permissions for the connection
- `404` — Not Found - Resource does not exist
- `429` — Too Many Requests - Rate limit exceeded (60 requests/minute)

---

[API](https://skmtc.net/omni/apis/omni-api.md) · [All operations](https://skmtc.net/omni/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omni/omni-api/revisions/6b02f7349d0e/schema)
