import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.userProfile.get();
console.log(result);
}
run();{
"data": {
"id": "user_BgrNj7anj4IxA7KExoK7SzYAEmE",
"type": "users",
"attributes": {
"first_name": "Ernest",
"last_name": "Moen",
"email": "[email protected]",
"created_at": "2025-06-26T00:00:00+00:00",
"updated_at": "2025-03-03T00:00:00+00:00",
"role": {
"id": "role_kpoKZwloZ9HN140lwRW3sVg20V9",
"name": "owner",
"created_at": "2025-06-18T00:00:00.000Z",
"updated_at": "2026-05-24T00:00:00.000Z"
}
}
},
"meta": {}
}Retrieve the current user profile
import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.userProfile.get();
console.log(result);
}
run();{
"data": {
"id": "user_BgrNj7anj4IxA7KExoK7SzYAEmE",
"type": "users",
"attributes": {
"first_name": "Ernest",
"last_name": "Moen",
"email": "[email protected]",
"created_at": "2025-06-26T00:00:00+00:00",
"updated_at": "2025-03-03T00:00:00+00:00",
"role": {
"id": "role_kpoKZwloZ9HN140lwRW3sVg20V9",
"name": "owner",
"created_at": "2025-06-18T00:00:00.000Z",
"updated_at": "2026-05-24T00:00:00.000Z"
}
}
},
"meta": {}
}Success
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?