Python (SDK)
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.teams.get()
# Handle response
print(res)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.Teams.Get(ctx)
if err != nil {
log.Fatal(err)
}
if res.Teams != nil {
// handle response
}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.teams.get();
console.log(result);
}
run();curl --request GET \
--url https://api.latitude.sh/team \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.latitude.sh/team', 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/team",
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/team")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/team")
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": "team_BbQ0gXk6P1uxW7rNvg5VCM2znK2R",
"type": "teams",
"attributes": {
"name": "641 Team",
"slug": "641-team",
"address": "8998 Murphy Fork, North Danahaven, CT 98631",
"currency": "1f7",
"created_at": "2026-01-09T15:57:10+00:00",
"updated_at": "2025-02-09T00:00:00+00:00",
"status": null,
"enforce_mfa": false,
"users": [
{
"id": "user_yxLxQ7mmJehljn3RK18aILyGP17",
"first_name": "Russell",
"last_name": "Wunsch",
"email": "hoyt@brakus.example",
"created_at": "2025-03-25T00:00:00.000Z",
"updated_at": "2025-03-30T00:00:00.000Z",
"role": {
"id": "role_332j3k5oxYIKGZGPpxZKCl7nrXP",
"name": "Steve",
"created_at": "2025-04-13T00:00:00.000Z",
"updated_at": "2026-01-23T00:00:00.000Z"
}
}
],
"projects": [],
"owner": {},
"billing": {},
"feature_flags": [
"feature_flag_1",
"feature_flag_2"
],
"limits": {
"bare_metal": 5,
"bare_metal_gpu": 1,
"virtual_machine": 5,
"virtual_machine_gpu": 3,
"elastic_ip": 5,
"virtual_network": 5,
"database": null,
"filesystem": null,
"block_storage": null
}
}
}
],
"meta": {}
}Teams
Retrieve team
GET
/
team
Python (SDK)
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.teams.get()
# Handle response
print(res)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.Teams.Get(ctx)
if err != nil {
log.Fatal(err)
}
if res.Teams != nil {
// handle response
}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.teams.get();
console.log(result);
}
run();curl --request GET \
--url https://api.latitude.sh/team \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.latitude.sh/team', 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/team",
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/team")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/team")
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": "team_BbQ0gXk6P1uxW7rNvg5VCM2znK2R",
"type": "teams",
"attributes": {
"name": "641 Team",
"slug": "641-team",
"address": "8998 Murphy Fork, North Danahaven, CT 98631",
"currency": "1f7",
"created_at": "2026-01-09T15:57:10+00:00",
"updated_at": "2025-02-09T00:00:00+00:00",
"status": null,
"enforce_mfa": false,
"users": [
{
"id": "user_yxLxQ7mmJehljn3RK18aILyGP17",
"first_name": "Russell",
"last_name": "Wunsch",
"email": "hoyt@brakus.example",
"created_at": "2025-03-25T00:00:00.000Z",
"updated_at": "2025-03-30T00:00:00.000Z",
"role": {
"id": "role_332j3k5oxYIKGZGPpxZKCl7nrXP",
"name": "Steve",
"created_at": "2025-04-13T00:00:00.000Z",
"updated_at": "2026-01-23T00:00:00.000Z"
}
}
],
"projects": [],
"owner": {},
"billing": {},
"feature_flags": [
"feature_flag_1",
"feature_flag_2"
],
"limits": {
"bare_metal": 5,
"bare_metal_gpu": 1,
"virtual_machine": 5,
"virtual_machine_gpu": 3,
"elastic_ip": 5,
"virtual_network": 5,
"database": null,
"filesystem": null,
"block_storage": null
}
}
}
],
"meta": {}
}Was this page helpful?
⌘I