---
title: "Test warehouse connection"
method: POST
path: "/warehouse-connections/{id}/test"
tags: ["Warehouse Sync"]
---

# Test warehouse connection

`POST /warehouse-connections/{id}/test`

## Request

- Base URL: `https://api.sequenzy.com/api/v1`
- URL: `https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test`
- Auth: HTTP bearer

Runs a test query with the stored credentials and records the result on the connection.

## Path parameters

- `id` string, required

## Response `200`

The test query succeeded

- object
  - `success` boolean
  - `connection` WarehouseConnection
    - `id` string
    - `name` string
    - `provider` 'snowflake' | 'bigquery' | 'redshift' | 'postgres'
    - `config` object: Non-secret settings. BigQuery also includes serviceAccountEmail.
    - `status` 'connected' | 'error'
    - `lastTestedAt` string, date-time, nullable
    - `lastError` string, nullable
    - `syncCount` integer
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400`: The test failed (code connection_failed); the reason is also saved as lastError
- `401`: Unauthorized
- `403`: Missing scope, or the member role cannot manage workspace settings
- `404`: Not found

## Changes

- **2026-10-16** `db3873ca3d4d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sequenzy/apis/sequenzy-api/changes/warehouse-connections/:id/test/post.md)

---

[API](https://skmtc.dev/sequenzy/apis/sequenzy-api.md) - [All operations](https://skmtc.dev/sequenzy/apis/sequenzy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sequenzy/apis/sequenzy-api/revisions/3d816357b738?raw)
