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)
{
"data": [
{
"id": "team_yEMAp05jx2ule2aA1ZwVtp5GLZk4",
"type": "teams",
"attributes": {
"name": "625 Team",
"slug": "625-team",
"address": "75739 Parker Common, Murphyview, CT 54114",
"currency": "BRL",
"created_at": "2024-12-31T00:00:00+00:00",
"updated_at": "2025-04-02T00:00:00+00:00",
"status": "verified",
"enforce_mfa": false,
"users": [
{
"id": "user_X0j5j5Kbabhyex1g2N97HJ3p2wY",
"first_name": "Cara",
"last_name": "Gerlach",
"email": "waylon@oberbrunner.example",
"created_at": "2024-09-16T00:00:00.000Z",
"updated_at": "2024-08-01T00:00:00.000Z",
"role": {
"id": "role_4ANgaERK0yS4wQ8lA4pLH0bAw4JW",
"name": "owner",
"created_at": "2025-05-23T00:00:00.000Z",
"updated_at": "2026-04-24T00:00:00.000Z"
}
}
],
"projects": [],
"owner": {
"id": "user_X0j5j5Kbabhyex1g2N97HJ3p2wY",
"first_name": "Cara",
"last_name": "Gerlach",
"email": "waylon@oberbrunner.example",
"created_at": "2024-09-16T00:00:00.000Z",
"updated_at": "2024-08-01T00:00:00.000Z",
"role": {
"id": "role_4ANgaERK0yS4wQ8lA4pLH0bAw4JW",
"name": "owner",
"created_at": "2025-05-23T00:00:00.000Z",
"updated_at": "2026-04-24T00:00:00.000Z"
}
},
"billing": {
"id": "bill_mw49QDB5qagKb",
"customer_billing_id": "cus_oxro8kom3akzra"
},
"feature_flags": []
}
}
],
"meta": {}
}
Returns a list of all teams the user belongs to
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)
{
"data": [
{
"id": "team_yEMAp05jx2ule2aA1ZwVtp5GLZk4",
"type": "teams",
"attributes": {
"name": "625 Team",
"slug": "625-team",
"address": "75739 Parker Common, Murphyview, CT 54114",
"currency": "BRL",
"created_at": "2024-12-31T00:00:00+00:00",
"updated_at": "2025-04-02T00:00:00+00:00",
"status": "verified",
"enforce_mfa": false,
"users": [
{
"id": "user_X0j5j5Kbabhyex1g2N97HJ3p2wY",
"first_name": "Cara",
"last_name": "Gerlach",
"email": "waylon@oberbrunner.example",
"created_at": "2024-09-16T00:00:00.000Z",
"updated_at": "2024-08-01T00:00:00.000Z",
"role": {
"id": "role_4ANgaERK0yS4wQ8lA4pLH0bAw4JW",
"name": "owner",
"created_at": "2025-05-23T00:00:00.000Z",
"updated_at": "2026-04-24T00:00:00.000Z"
}
}
],
"projects": [],
"owner": {
"id": "user_X0j5j5Kbabhyex1g2N97HJ3p2wY",
"first_name": "Cara",
"last_name": "Gerlach",
"email": "waylon@oberbrunner.example",
"created_at": "2024-09-16T00:00:00.000Z",
"updated_at": "2024-08-01T00:00:00.000Z",
"role": {
"id": "role_4ANgaERK0yS4wQ8lA4pLH0bAw4JW",
"name": "owner",
"created_at": "2025-05-23T00:00:00.000Z",
"updated_at": "2026-04-24T00:00:00.000Z"
}
},
"billing": {
"id": "bill_mw49QDB5qagKb",
"customer_billing_id": "cus_oxro8kom3akzra"
},
"feature_flags": []
}
}
],
"meta": {}
}
Was this page helpful?