curl --request GET \
--url https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection', 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.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection"
req, _ := http.NewRequest("GET", 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.get("https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connectable": true,
"ssh_host": "<string>",
"ssh_port": 123
}{
"errors": [
{
"param": "<string>",
"details": "<string>"
}
]
}Get Connection Info
SSH coordinates for one RUNNING Slurm cluster deployment.
Team-member gated like the roster reads; ownership follows the same
visibility boundary (assert_job_visible_to_team normalizes every
cross-team/wrong-type/missing probe to a generic 404, so probing
other teams’ job ids distinguishes nothing). The payload carries
only the connect flags and coordinates — no release names or
namespaces.
curl --request GET \
--url https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection', 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.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection"
req, _ := http.NewRequest("GET", 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.get("https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connectable": true,
"ssh_host": "<string>",
"ssh_port": 123
}{
"errors": [
{
"param": "<string>",
"details": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Team the cluster must belong to
Response
Successful Response
SSH coordinates for one Slurm cluster deployment.
Same audience and same data as the Model Factory web UI's connect
box (frontierCluster.ts listMyWorkloads): RUNNING deployments get
the login coordinates; non-RUNNING ones (the ssh-proxy pod isn't up
yet for a PENDING/DEPLOYING release) report connectable=False
with null fields. connectable requires BOTH a host and a port —
a half-configured cluster honestly reads not-connectable rather
than exposing a coordinate that cannot work.
Was this page helpful?