---
title: "List dbt environments"
method: GET
path: "/v1/connections/{connectionId}/dbt/environments"
tags: ["dbt"]
---

# List dbt environments

`GET /v1/connections/{connectionId}/dbt/environments`

<Note>
  This endpoint requires **Connection Admin** permissions for the connection.
</Note>

Retrieves a list of all dbt environments configured for the specified connection.

## Path parameters

- `connectionId` string, uuid, required

## Response `200`

List of dbt environments retrieved successfully

- DbtEnvironment[]
  - `id` string, uuid — Unique identifier of the dbt environment
  - `name` string — The name of the dbt environment
  - `isDefaultEnvironment` boolean — Whether this is the default environment
  - `isDeferralEnabled` boolean — Whether deferral is enabled for this environment. Ignored (forced to `false`) for the default (production) environment.
  - `ownerId` string, uuid, nullable — The user ID of the owner of the dbt environment, or null
  - `targetDatabase` string, nullable — Target database override
  - `targetName` string, nullable — Target name override
  - `targetRole` string, nullable — Target role override
  - `targetSchema` string — Target schema for the environment
  - `variables` object[] — Environment variables
    - `id` string, uuid — Variable identifier
    - `name` string — Variable name
    - `value` string, nullable — Variable value. If `isSecret: true`, this value will be `null` in responses to protect sensitive information.
    - `isSecret` boolean — Whether the variable value is secret.

## Other responses

- `401` — Missing or invalid authentication
- `403` — Forbidden Possible causes: - Insufficient permissions
- `404` — Connection not found
- `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)
