---
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`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/api/v1/dbt/cloud/connections/{connection_id}/test`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

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/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
