from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.user_profile.get()
# Handle response
print(res){
"data": {
"id": "user_L9B4LNaW0xiLXYQoaoPyt5oL9EN0",
"type": "users",
"attributes": {
"first_name": "Jefferey",
"last_name": "Boyer",
"email": "[email protected]",
"created_at": "2025-06-06T00:00:00+00:00",
"updated_at": "2025-08-26T00:00:00+00:00",
"role": {
"id": "role_B48kwVxyWkuxNJ2ZjpoJcx1Bnlo",
"name": "owner",
"created_at": "2025-05-05T00:00:00.000Z",
"updated_at": "2026-11-10T00:00:00.000Z"
}
}
},
"meta": {}
}Retrieve the current user profile
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.user_profile.get()
# Handle response
print(res){
"data": {
"id": "user_L9B4LNaW0xiLXYQoaoPyt5oL9EN0",
"type": "users",
"attributes": {
"first_name": "Jefferey",
"last_name": "Boyer",
"email": "[email protected]",
"created_at": "2025-06-06T00:00:00+00:00",
"updated_at": "2025-08-26T00:00:00+00:00",
"role": {
"id": "role_B48kwVxyWkuxNJ2ZjpoJcx1Bnlo",
"name": "owner",
"created_at": "2025-05-05T00:00:00.000Z",
"updated_at": "2026-11-10T00:00:00.000Z"
}
}
},
"meta": {}
}Was this page helpful?