Get User
This endpoint gives information about the user account.
Responses
- application/json
- 400
Bad Request
Request Example for get/user/data
import Gumlet from '@gumlet/nodejs-sdk';
const client = new Gumlet({
apiKey: process.env['API_KEY'], // defaults to the API_KEY env var
});
const userData = await client.userData.fetch();
console.log(userData);
{
"id": "string",
"email": "hello@example.com",
"name": "string",
"creation_date": 1,
"last_login_date": 1,
"last_login_ip": "string",
"roles": [
"string"
],
"timezone": "string",
"metadata": {
"theme": "string"
}
}
