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_eP5489MvGWHNVrBngj35FEKVBgjp",
"type": "teams",
"attributes": {
"name": "610 Team",
"slug": "610-team",
"address": "11130 Scotty Ford, Dickiland, MT 09910",
"currency": "4m9",
"created_at": "2025-10-22T01:03:25+00:00",
"updated_at": "2024-11-10T00:00:00+00:00",
"status": null,
"enforce_mfa": false,
"users": [
{
"id": "user_4X8pzYpLPQuK83LeM4k1iaxRYmZ",
"first_name": "Zona",
"last_name": "Emmerich",
"email": "[email protected]",
"created_at": "2025-01-25T00:00:00.000Z",
"updated_at": "2024-12-30T00:00:00.000Z",
"role": {
"id": "role_NGeVRj32WGT8oMw3L042h19705A",
"name": "Julia",
"created_at": "2025-03-20T00:00:00.000Z",
"updated_at": "2026-06-24T00:00:00.000Z"
}
}
],
"projects": [],
"owner": {},
"billing": {},
"feature_flags": [
"feature_flag_1",
"feature_flag_2"
],
"limits": {
"bare_metal": 5,
"bare_metal_gpu": 1,
"virtual_machine": null,
"virtual_machine_gpu": 0,
"database": null,
"filesystem": null,
"block_storage": null
}
}
}
],
"meta": {}
}

Authorizations

Authorization
string
header
required

Response

200 - application/vnd.api+json

Success

data
object[]
meta
object