dbt · Capability

dbt Cloud Administrative API — Environments

dbt Cloud Administrative API — Environments. 1 operations. Lead operation: List environments. Self-contained Naftiko capability covering one Dbt business surface.

Run with Naftiko DbtEnvironments

What You Can Do

GET
Listenvironments — List environments
/v1/accounts/{accountid}/environments

MCP Tools

list-environments

List environments

read-only idempotent

Capability Spec

cloud-administrative-environments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: dbt Cloud Administrative API — Environments
  description: 'dbt Cloud Administrative API — Environments. 1 operations. Lead operation: List environments. Self-contained
    Naftiko capability covering one Dbt business surface.'
  tags:
  - Dbt
  - Environments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DBT_API_KEY: DBT_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloud-administrative-environments
    baseUri: https://cloud.getdbt.com/api/v3
    description: dbt Cloud Administrative API — Environments business capability. Self-contained, no shared references.
    resources:
    - name: accounts-accountId-environments
      path: /accounts/{accountId}/environments/
      operations:
      - name: listenvironments
        method: GET
        description: List environments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: path
          type: integer
          required: true
    authentication:
      type: bearer
      token: '{{env.DBT_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloud-administrative-environments-rest
    port: 8080
    description: REST adapter for dbt Cloud Administrative API — Environments. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/accounts/{accountid}/environments
      name: accounts-accountid-environments
      description: REST surface for accounts-accountId-environments.
      operations:
      - method: GET
        name: listenvironments
        description: List environments
        call: cloud-administrative-environments.listenvironments
        with:
          accountId: rest.accountId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloud-administrative-environments-mcp
    port: 9090
    transport: http
    description: MCP adapter for dbt Cloud Administrative API — Environments. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-environments
      description: List environments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-administrative-environments.listenvironments
      with:
        accountId: tools.accountId
      outputParameters:
      - type: object
        mapping: $.