import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.me.get();
console.log(result);
}
run();{
"id": "<string>",
"object": "<string>",
"name": {},
"email": {},
"roles": "<array>"
}Returns the authenticated user’s profile data including their roles in the current account
import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.me.get();
console.log(result);
}
run();{
"id": "<string>",
"object": "<string>",
"name": {},
"email": {},
"roles": "<array>"
}Was this page helpful?