Python (SDK)
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.user_profile.list_teams()
# 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.UserProfile.ListTeams(ctx)
if err != nil {
log.Fatal(err)
}
if res.UserTeams != 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.userProfile.listTeams();
console.log(result);
}
run();curl --request GET \
--url https://api.latitude.sh/user/teams \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.latitude.sh/user/teams', 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/user/teams",
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/user/teams")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/user/teams")
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_NYGwel1RnbC44GX83lamhRe8Jjw",
"type": "teams",
"attributes": {
"name": "687 Team",
"slug": "687-team",
"address": "595 Schmitt Mountains, West Frances, NJ 39049-3937",
"currency": "BRL",
"created_at": "2026-01-09T15:57:13+00:00",
"updated_at": "2026-01-14T15:57:13+00:00",
"status": "verified",
"enforce_mfa": false,
"users": [
{
"id": "user_Mzw8rQR7yyS9p5pyWrzBfyxrMV4",
"first_name": "Jaime",
"last_name": "Ziemann",
"email": "codi_hand@miller.test",
"created_at": "2026-01-08T00:00:00.000Z",
"updated_at": "2025-01-27T00:00:00.000Z",
"role": {
"id": "role_V1aYWNZmvlhrk9eoK58JSrY0MX4",
"name": "owner",
"created_at": "2025-05-01T00:00:00.000Z",
"updated_at": "2026-11-05T00:00:00.000Z"
}
}
],
"projects": [],
"owner": {
"id": "user_Mzw8rQR7yyS9p5pyWrzBfyxrMV4",
"first_name": "Jaime",
"last_name": "Ziemann",
"email": "codi_hand@miller.test",
"created_at": "2026-01-08T00:00:00.000Z",
"updated_at": "2025-01-27T00:00:00.000Z",
"role": {
"id": "role_V1aYWNZmvlhrk9eoK58JSrY0MX4",
"name": "owner",
"created_at": "2025-05-01T00:00:00.000Z",
"updated_at": "2026-11-05T00:00:00.000Z"
}
},
"billing": {
"id": "bill_mw49QDB5qagKb",
"customer_billing_id": "cus_dluxyhyhjii4qk"
},
"feature_flags": [],
"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": {}
}User profile
List user teams
Returns a list of all teams the user belongs to
GET
/
user
/
teams
Python (SDK)
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.user_profile.list_teams()
# 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.UserProfile.ListTeams(ctx)
if err != nil {
log.Fatal(err)
}
if res.UserTeams != 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.userProfile.listTeams();
console.log(result);
}
run();curl --request GET \
--url https://api.latitude.sh/user/teams \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.latitude.sh/user/teams', 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/user/teams",
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/user/teams")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/user/teams")
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_NYGwel1RnbC44GX83lamhRe8Jjw",
"type": "teams",
"attributes": {
"name": "687 Team",
"slug": "687-team",
"address": "595 Schmitt Mountains, West Frances, NJ 39049-3937",
"currency": "BRL",
"created_at": "2026-01-09T15:57:13+00:00",
"updated_at": "2026-01-14T15:57:13+00:00",
"status": "verified",
"enforce_mfa": false,
"users": [
{
"id": "user_Mzw8rQR7yyS9p5pyWrzBfyxrMV4",
"first_name": "Jaime",
"last_name": "Ziemann",
"email": "codi_hand@miller.test",
"created_at": "2026-01-08T00:00:00.000Z",
"updated_at": "2025-01-27T00:00:00.000Z",
"role": {
"id": "role_V1aYWNZmvlhrk9eoK58JSrY0MX4",
"name": "owner",
"created_at": "2025-05-01T00:00:00.000Z",
"updated_at": "2026-11-05T00:00:00.000Z"
}
}
],
"projects": [],
"owner": {
"id": "user_Mzw8rQR7yyS9p5pyWrzBfyxrMV4",
"first_name": "Jaime",
"last_name": "Ziemann",
"email": "codi_hand@miller.test",
"created_at": "2026-01-08T00:00:00.000Z",
"updated_at": "2025-01-27T00:00:00.000Z",
"role": {
"id": "role_V1aYWNZmvlhrk9eoK58JSrY0MX4",
"name": "owner",
"created_at": "2025-05-01T00:00:00.000Z",
"updated_at": "2026-11-05T00:00:00.000Z"
}
},
"billing": {
"id": "bill_mw49QDB5qagKb",
"customer_billing_id": "cus_dluxyhyhjii4qk"
},
"feature_flags": [],
"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