v1

latestSwagger 2.02026-07-17172265595.1 KB
users

Get User details

Returns user details by specified user id.

get/auth/api/v1/user/{userId}

Path parameters

userIdstring required

User ID

Response

OK

blockedboolean

Is the user blocked or not

createdAtstring

Creation timestamp in UTC

emailstring

Email address of the user

email_verifiedboolean

Is email verified or not

idinteger

Unique identifier for the user

last_activitystring

Last activity timestamp in UTC

role_name'admin' | 'editor' | 'viewer'
usernamestring

Username

Example response

{
  "createdAt": "2023-03-31T09:36:09.855Z",
  "email": "johndoe@example.com",
  "email_verified": true,
  "id": 1,
  "last_activity": "2023-04-21T08:53:09.928Z",
  "username": "John Doe"
}