Skip to main content
GET
/
team
/
members
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.Members.GetTeamMembers(ctx, latitudeshgosdk.Pointer[int64](20), latitudeshgosdk.Pointer[int64](1))
    if err != nil {
        log.Fatal(err)
    }
    if res.TeamMembers != nil {
        for {
            // handle items

            res, err = res.Next()

            if err != nil {
                // handle error
            }

            if res == nil {
                break
            }
        }
    }
}
{
  "data": [
    {
      "id": "user_7WJG0pvKZbHlX8reeJ2LTEo8mN7",
      "type": "users",
      "attributes": {
        "first_name": "Jefferson",
        "last_name": "Fadel",
        "email": "[email protected]",
        "mfa_enabled": false,
        "created_at": "2025-05-22T00:00:00+00:00",
        "updated_at": "2026-05-20T00:00:00+00:00",
        "last_login_at": null,
        "role": {
          "id": "role_wAE1EEyB3VuRvZWkAK0ZczbVyjG",
          "name": "owner"
        }
      }
    },
    {
      "id": "user_LXYNaEJnK1fL3YX1k63luNAQw4y",
      "type": "users",
      "attributes": {
        "first_name": "Marcell",
        "last_name": "Hayes",
        "email": "[email protected]",
        "mfa_enabled": false,
        "created_at": "2025-04-06T00:00:00+00:00",
        "updated_at": "2026-06-10T00:00:00+00:00",
        "last_login_at": null,
        "role": {
          "id": "role_wAE1EEyB3VuRvZWkAK0ZczbVyjG",
          "name": "owner"
        }
      }
    },
    {
      "id": "user_LVjjma4pvmULB9A0vK9Zf6kwb3L",
      "type": "users",
      "attributes": {
        "first_name": "Ted",
        "last_name": "Vandervort",
        "email": "[email protected]",
        "mfa_enabled": false,
        "created_at": "2024-11-27T00:00:00+00:00",
        "updated_at": "2026-07-15T00:00:00+00:00",
        "last_login_at": "2025-10-11T00:00:00+00:00",
        "role": {
          "id": "role_RYXj8v8JxaUAP3P20g5gFR80PgmZ",
          "name": "billing"
        }
      }
    }
  ],
  "meta": {}
}

Authorizations

Authorization
string
header
required

Query Parameters

page[size]
integer
default:20

Number of items to return per page

Required range: x >= 1
page[number]
integer
default:1

Page number to return (starts at 1)

Required range: x >= 1

Response

200 - application/vnd.api+json

Success

data
object[]