GET
/
api
/
v1
/
users
/
{user_id}
{
  "email": "jsmith@example.com",
  "username": "<string>",
  "id": 123,
  "auth_id": "<string>",
  "is_active": true,
  "is_verified": true,
  "last_login": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "full_name": "<string>",
  "bio": "<string>",
  "avatar_url": "<string>",
  "roles": []
}

Retrieve a user’s information by their user ID.

  • Method: GET
  • Path: /api/v1/users/{user_id}

Path Parameter

  • user_id (integer, required): The ID of the user

Response

Returns a UserWithRoles object.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

user_id
integer
required

Response

200
application/json

Successful Response

The response is of type object.