curl --request GET \
--url https://api.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status', 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.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$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.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"bridge_id": "customer-bridge-1",
"connected": true
}Relay bridge status
Report whether a relay bridge of yours currently holds a live connection to Enkrypt.
This is the reachability check for a relay target. POST /rt/model-health and POST /rt/model/model-health are not supported for relay targets: they dial target.endpoint directly, and a relay targetβs endpoint is a placeholder for a URL inside your own network, so the probe always reports unhealthy no matter how healthy the bridge is. Use this endpoint instead. (Submitting a relay run is unaffected - the gateway knows not to health-probe a relay target.)
The answer is scoped to your own account. It deliberately does not scan across accounts, so a bridge someone else registered under the same name is reported as not connected rather than leaking that it exists.
curl --request GET \
--url https://api.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status', 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.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$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.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/redteam/relay/v1/relay/bridges/{bridge_id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"bridge_id": "customer-bridge-1",
"connected": true
}Authorizations
Path Parameters
The bridge identifier to look up - the same value the bridge registered with and that your runs name in target.metadata.relay.bridge_id.
"customer-bridge-1"
Response
Successful Response
The bridge id that was looked up, echoed back.
"customer-bridge-1"
Whether a bridge with this id, registered under your account, currently holds a live connection. false also covers "no such bridge" and "a bridge by that name exists but belongs to someone else" - the two are not distinguished on purpose.
true

