Skip to main content

Module users

Module users 

Source
Expand description

User Management API Endpoints

Handles user profile, password changes, and related user operations

Structs§

ChangePasswordRequest
Password change request.
SessionInfo
Summary of an active browser/device session.
UpdateProfileRequest
Profile update request. Only the supplied fields are modified.
UserProfile
Full user profile returned by the /users/profile and /users/:id endpoints.

Functions§

change_password
POST /users/change-password — change the authenticated user’s password.
get_profile
GET /users/profile — fetch the authenticated user’s own profile.
get_sessions
GET /users/sessions — list the authenticated user’s active sessions.
get_user_profile
GET /users/{user_id}/profile — fetch another user’s profile (admin only).
revoke_session
DELETE /users/sessions/{session_id} — revoke a specific session.
update_profile
PUT /users/profile — update the authenticated user’s profile fields.