---
title: "Test Connection"
method: POST
path: "/api/v1/dbt/cloud/connections/{connection_id}/test"
tags: ["DBT_CLOUD", "dbt_cloud"]
---

# Test Connection

`POST /api/v1/dbt/cloud/connections/{connection_id}/test`

Test an existing dbt Cloud connection using stored credentials.

Use this to verify that an existing connection's credentials are still valid.

## Path parameters

- `connection_id` integer, required

## Response `200`

Successful Response

- DbtCloudValidationResponse — Response after validating API token.
  - `valid` boolean, required
  - `account_id` string, nullable
  - `account_name` string, nullable
  - `message` string, nullable
  - `projects_discovered` integer, nullable
  - `environments_discovered` integer, nullable
  - `projects` DbtCloudDiscoveredProject[], nullable
    - `id` string, required
    - `name` string, nullable
    - `environments` DbtCloudDiscoveredEnvironment[]
      - `id` string, required
      - `name` string, nullable
      - `environment_type` string, nullable

## Other responses

- `400` — Bad request
- `403` — Forbidden
- `404` — Not found
- `422` — Validation Error

---

[API](https://skmtc.dev/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.dev/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/myaltimate/fastapi/revisions/82206441f16e/schema)
