Warehouse Sync
Test Warehouse Connection
Run a test query with the stored credentials
POST
/
api
/
v1
/
warehouse-connections
/
{id}
/
test
Test Warehouse Connection
curl --request POST \
--url https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"connection": {
"id": "wconn_abc123",
"name": "Snowflake prod",
"provider": "snowflake",
"config": {
"account": "myorg-myaccount",
"username": "SEQUENZY_READER",
"warehouse": "ANALYTICS_WH",
"database": "PROD",
"schema": "PUBLIC",
"role": "SEQUENZY_READ"
},
"status": "connected",
"lastTestedAt": "2026-09-30T12:00:00.000Z",
"lastError": null,
"syncCount": 1,
"createdAt": "2026-09-30T12:00:00.000Z",
"updatedAt": "2026-09-30T12:00:00.000Z"
}
}
{
"success": false,
"code": "connection_failed",
"error": "Could not connect to the database. Check the host and port, and allow connections from Sequenzy in your firewall."
}
{
"success": false,
"code": "not_found",
"error": "Warehouse connection not found."
}
Runs
SELECT 1 with the stored credentials. The result is saved on the connection: status becomes connected, or error with lastError. Requires warehouse:write.
string
required
Connection ID.
curl -X POST "https://api.sequenzy.com/api/v1/warehouse-connections/wconn_abc123/test" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"connection": {
"id": "wconn_abc123",
"name": "Snowflake prod",
"provider": "snowflake",
"config": {
"account": "myorg-myaccount",
"username": "SEQUENZY_READER",
"warehouse": "ANALYTICS_WH",
"database": "PROD",
"schema": "PUBLIC",
"role": "SEQUENZY_READ"
},
"status": "connected",
"lastTestedAt": "2026-09-30T12:00:00.000Z",
"lastError": null,
"syncCount": 1,
"createdAt": "2026-09-30T12:00:00.000Z",
"updatedAt": "2026-09-30T12:00:00.000Z"
}
}
{
"success": false,
"code": "connection_failed",
"error": "Could not connect to the database. Check the host and port, and allow connections from Sequenzy in your firewall."
}
{
"success": false,
"code": "not_found",
"error": "Warehouse connection not found."
}
⌘I
Test Warehouse Connection
curl --request POST \
--url https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/warehouse-connections/{id}/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"connection": {
"id": "wconn_abc123",
"name": "Snowflake prod",
"provider": "snowflake",
"config": {
"account": "myorg-myaccount",
"username": "SEQUENZY_READER",
"warehouse": "ANALYTICS_WH",
"database": "PROD",
"schema": "PUBLIC",
"role": "SEQUENZY_READ"
},
"status": "connected",
"lastTestedAt": "2026-09-30T12:00:00.000Z",
"lastError": null,
"syncCount": 1,
"createdAt": "2026-09-30T12:00:00.000Z",
"updatedAt": "2026-09-30T12:00:00.000Z"
}
}
{
"success": false,
"code": "connection_failed",
"error": "Could not connect to the database. Check the host and port, and allow connections from Sequenzy in your firewall."
}
{
"success": false,
"code": "not_found",
"error": "Warehouse connection not found."
}