List Active Connection Credentials
curl --request GET \
--url https://use.hoop.dev/api/connection-credentialsimport requests
url = "https://use.hoop.dev/api/connection-credentials"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://use.hoop.dev/api/connection-credentials', 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://use.hoop.dev/api/connection-credentials",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://use.hoop.dev/api/connection-credentials"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://use.hoop.dev/api/connection-credentials")
.asString();require 'uri'
require 'net/http'
url = URI("https://use.hoop.dev/api/connection-credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"items": [
{
"connection_id": "5364ec99-653b-41ba-8165-67236e894990",
"connection_name": "pgdemo",
"connection_subtype": "postgres",
"connection_type": "database",
"created_at": "2025-08-25T12:00:00Z",
"expire_at": "2025-08-25T13:00:00Z",
"id": "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
"session_id": "2CBC8DB5-FBF8-4293-8E35-59A6EEA40207"
}
]
}{
"message": "the error description"
}Connections
List Active Connection Credentials
Returns the authenticated user’s active (non-revoked, non-expired) credentials, AT MOST ONE PER CONNECTION. Several rows can be live for the same connection — issuing reuses the existing credential while resuming an approved review mints a parallel one — so the list resolves them the same way the rest of the API does: the credential still attached to a session first, then the most recently created. Use GET /connections//credentials for the full set on a single connection. The response is secret-less: it never includes the connection_credentials payload (hostnames, usernames, passwords, proxy tokens).
GET
/
connection-credentials
List Active Connection Credentials
curl --request GET \
--url https://use.hoop.dev/api/connection-credentialsimport requests
url = "https://use.hoop.dev/api/connection-credentials"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://use.hoop.dev/api/connection-credentials', 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://use.hoop.dev/api/connection-credentials",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://use.hoop.dev/api/connection-credentials"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://use.hoop.dev/api/connection-credentials")
.asString();require 'uri'
require 'net/http'
url = URI("https://use.hoop.dev/api/connection-credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"items": [
{
"connection_id": "5364ec99-653b-41ba-8165-67236e894990",
"connection_name": "pgdemo",
"connection_subtype": "postgres",
"connection_type": "database",
"created_at": "2025-08-25T12:00:00Z",
"expire_at": "2025-08-25T13:00:00Z",
"id": "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
"session_id": "2CBC8DB5-FBF8-4293-8E35-59A6EEA40207"
}
]
}{
"message": "the error description"
}Response
OK
Show child attributes
Show child attributes
Was this page helpful?