Skip to main content
GET
/
team
Go (SDK)
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
    }
}
{
"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": "[email protected]",
"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,
"database": null,
"filesystem": null,
"block_storage": null
}
}
}
],
"meta": {}
}

Authorizations

Authorization
string
header
required

Response

200 - application/vnd.api+json

Success

data
object[]
meta
object