curl --request POST \
--url https://api.tryardent.com/v1/connectors/preflight \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"connection_details": {},
"service_name": "<string>",
"allow_high_rtt_placement": false,
"database": "<string>",
"environment_id": "<string>",
"org_id": "<string>",
"private_link_id": "<string>",
"selected_schemas": [
"<string>"
],
"use_environment": false
}
'import requests
url = "https://api.tryardent.com/v1/connectors/preflight"
payload = {
"connection_details": {},
"service_name": "<string>",
"allow_high_rtt_placement": False,
"database": "<string>",
"environment_id": "<string>",
"org_id": "<string>",
"private_link_id": "<string>",
"selected_schemas": ["<string>"],
"use_environment": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
connection_details: {},
service_name: '<string>',
allow_high_rtt_placement: false,
database: '<string>',
environment_id: '<string>',
org_id: '<string>',
private_link_id: '<string>',
selected_schemas: ['<string>'],
use_environment: false
})
};
fetch('https://api.tryardent.com/v1/connectors/preflight', 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.tryardent.com/v1/connectors/preflight",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'connection_details' => [
],
'service_name' => '<string>',
'allow_high_rtt_placement' => false,
'database' => '<string>',
'environment_id' => '<string>',
'org_id' => '<string>',
'private_link_id' => '<string>',
'selected_schemas' => [
'<string>'
],
'use_environment' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tryardent.com/v1/connectors/preflight"
payload := strings.NewReader("{\n \"connection_details\": {},\n \"service_name\": \"<string>\",\n \"allow_high_rtt_placement\": false,\n \"database\": \"<string>\",\n \"environment_id\": \"<string>\",\n \"org_id\": \"<string>\",\n \"private_link_id\": \"<string>\",\n \"selected_schemas\": [\n \"<string>\"\n ],\n \"use_environment\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.tryardent.com/v1/connectors/preflight")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"connection_details\": {},\n \"service_name\": \"<string>\",\n \"allow_high_rtt_placement\": false,\n \"database\": \"<string>\",\n \"environment_id\": \"<string>\",\n \"org_id\": \"<string>\",\n \"private_link_id\": \"<string>\",\n \"selected_schemas\": [\n \"<string>\"\n ],\n \"use_environment\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tryardent.com/v1/connectors/preflight")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"connection_details\": {},\n \"service_name\": \"<string>\",\n \"allow_high_rtt_placement\": false,\n \"database\": \"<string>\",\n \"environment_id\": \"<string>\",\n \"org_id\": \"<string>\",\n \"private_link_id\": \"<string>\",\n \"selected_schemas\": [\n \"<string>\"\n ],\n \"use_environment\": false\n}"
response = http.request(request)
puts response.read_body{
"branching_prerequisites_pass": true,
"checks": {},
"grant_script": "<string>",
"preflight_pass": true,
"source_metadata": {},
"source_placement": {},
"source_preflight": {},
"source_provider": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Preflight a source
Check a database before connecting it — creates nothing
curl --request POST \
--url https://api.tryardent.com/v1/connectors/preflight \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"connection_details": {},
"service_name": "<string>",
"allow_high_rtt_placement": false,
"database": "<string>",
"environment_id": "<string>",
"org_id": "<string>",
"private_link_id": "<string>",
"selected_schemas": [
"<string>"
],
"use_environment": false
}
'import requests
url = "https://api.tryardent.com/v1/connectors/preflight"
payload = {
"connection_details": {},
"service_name": "<string>",
"allow_high_rtt_placement": False,
"database": "<string>",
"environment_id": "<string>",
"org_id": "<string>",
"private_link_id": "<string>",
"selected_schemas": ["<string>"],
"use_environment": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
connection_details: {},
service_name: '<string>',
allow_high_rtt_placement: false,
database: '<string>',
environment_id: '<string>',
org_id: '<string>',
private_link_id: '<string>',
selected_schemas: ['<string>'],
use_environment: false
})
};
fetch('https://api.tryardent.com/v1/connectors/preflight', 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.tryardent.com/v1/connectors/preflight",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'connection_details' => [
],
'service_name' => '<string>',
'allow_high_rtt_placement' => false,
'database' => '<string>',
'environment_id' => '<string>',
'org_id' => '<string>',
'private_link_id' => '<string>',
'selected_schemas' => [
'<string>'
],
'use_environment' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tryardent.com/v1/connectors/preflight"
payload := strings.NewReader("{\n \"connection_details\": {},\n \"service_name\": \"<string>\",\n \"allow_high_rtt_placement\": false,\n \"database\": \"<string>\",\n \"environment_id\": \"<string>\",\n \"org_id\": \"<string>\",\n \"private_link_id\": \"<string>\",\n \"selected_schemas\": [\n \"<string>\"\n ],\n \"use_environment\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.tryardent.com/v1/connectors/preflight")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"connection_details\": {},\n \"service_name\": \"<string>\",\n \"allow_high_rtt_placement\": false,\n \"database\": \"<string>\",\n \"environment_id\": \"<string>\",\n \"org_id\": \"<string>\",\n \"private_link_id\": \"<string>\",\n \"selected_schemas\": [\n \"<string>\"\n ],\n \"use_environment\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tryardent.com/v1/connectors/preflight")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"connection_details\": {},\n \"service_name\": \"<string>\",\n \"allow_high_rtt_placement\": false,\n \"database\": \"<string>\",\n \"environment_id\": \"<string>\",\n \"org_id\": \"<string>\",\n \"private_link_id\": \"<string>\",\n \"selected_schemas\": [\n \"<string>\"\n ],\n \"use_environment\": false\n}"
response = http.request(request)
puts response.read_body{
"branching_prerequisites_pass": true,
"checks": {},
"grant_script": "<string>",
"preflight_pass": true,
"source_metadata": {},
"source_placement": {},
"source_preflight": {},
"source_provider": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}200 — read preflight_pass in the response. When grants are the problem, grant_script holds ready-to-run SQL that fixes them.Authorizations
Ardent API key (sk-ard_live_… / sk-ard_test_…) or a dashboard session token.
Body
Connection details for the source database. Nothing is stored.
Service type. postgresql is the only supported value today.
Allow customer-cloud placement far from the worker region.
Database to render in the grant script. Affects only grant_script.
Customer-cloud environment; required when your org has more than one.
Organization to preflight for. Inferred from your auth when omitted.
Private connection for the source database; needs use_environment.
Schemas to render in the grant script. Affects only grant_script.
Route preflight through a customer-cloud environment.
Response
The full preflight report. A failed gate is still a 200 — read preflight_pass.
True when the checks required for branching pass.
Individual check results, keyed by check name.
Ready-to-run SQL grant script for the source database.
True when every preflight check passes.
Metadata gathered from the source during preflight.
Detected source provider, for example supabase or vanilla.