Typescript (SDK)
import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.baselinesPreview.getBaselines();
console.log(result);
}
run();package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.BaselinesPreview.GetBaselines(ctx)
if err != nil {
log.Fatal(err)
}
if res.Baselines != nil {
// handle response
}
}curl --request GET \
--url https://api.latitude.sh/baselines \
--header 'Authorization: <api-key>'import requests
url = "https://api.latitude.sh/baselines"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.latitude.sh/baselines', 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.latitude.sh/baselines",
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: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://api.latitude.sh/baselines")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/baselines")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "bl_pRMLydp0dQKr1",
"type": "baselines",
"attributes": {
"name": "baseline-5",
"description": "Standard build for the web tier",
"target_type": "platforms",
"platforms": [
{
"id": "plan_GnzRD5xAqM5yw",
"slug": "g3-h100-medium-74",
"name": "g3.h100.medium-74"
}
],
"ssh_keys": [],
"user_data": null,
"disk_layout": [
{
"role": "os",
"count": 2,
"raid_level": "raid-1"
}
],
"bios": {
"smt": true
},
"created_at": "2026-07-30T16:21:19.209Z"
}
}
]
}Baselines (Preview)
List baselines
Preview. Available to teams with the baselines_api feature flag. The shape of this
endpoint may change before general availability.
List all baselines in the team. A baseline records the configuration you expect your servers to be delivered with — plan, SSH keys, user data, disk layout and BIOS settings.
GET
/
baselines
Typescript (SDK)
import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.baselinesPreview.getBaselines();
console.log(result);
}
run();package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.BaselinesPreview.GetBaselines(ctx)
if err != nil {
log.Fatal(err)
}
if res.Baselines != nil {
// handle response
}
}curl --request GET \
--url https://api.latitude.sh/baselines \
--header 'Authorization: <api-key>'import requests
url = "https://api.latitude.sh/baselines"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.latitude.sh/baselines', 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.latitude.sh/baselines",
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: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://api.latitude.sh/baselines")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/baselines")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "bl_pRMLydp0dQKr1",
"type": "baselines",
"attributes": {
"name": "baseline-5",
"description": "Standard build for the web tier",
"target_type": "platforms",
"platforms": [
{
"id": "plan_GnzRD5xAqM5yw",
"slug": "g3-h100-medium-74",
"name": "g3.h100.medium-74"
}
],
"ssh_keys": [],
"user_data": null,
"disk_layout": [
{
"role": "os",
"count": 2,
"raid_level": "raid-1"
}
],
"bios": {
"smt": true
},
"created_at": "2026-07-30T16:21:19.209Z"
}
}
]
}Was this page helpful?
⌘I