Get a user by ID
client.users.retrieve(stringid, RequestOptionsoptions?): User { id, created_at, email, 3 more }
/users/{id}
Retrieve detailed information about a specific user
Parameters
id: string
Returns
Get a user by ID
import Luminary from 'withluminary';
const client = new Luminary();
const user = await client.users.retrieve('id');
console.log(user.id);
{
"id": "user_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"created_at": "2024-01-15T09:30:00Z",
"email": "jane.doe@example.com",
"first_name": "Jane",
"last_name": "Doe",
"updated_at": "2024-01-20T14:45:00Z"
}
Returns Examples
{
"id": "user_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"created_at": "2024-01-15T09:30:00Z",
"email": "jane.doe@example.com",
"first_name": "Jane",
"last_name": "Doe",
"updated_at": "2024-01-20T14:45:00Z"
}