User Management API
Endpoints for managing user profiles, preferences, and account data.
Get Current User
GET
/api/users/me
Requires authentication.
Response (200 OK)
Update User Profile
PATCH
/api/users/me
Requires authentication.
Request Body
Response (200 OK)
Change Password
POST
/api/users/me/password
Requires authentication.
Request Body
Response (200 OK)
Get Active Devices
GET
/api/users/me/devices
List all active sessions/devices. Requires authentication.
Response (200 OK)
Revoke Device Session
DELETE
/api/users/me/devices/:deviceId
Revoke a specific device session. Requires authentication.
Response (200 OK)
Get Audit Log
GET
/api/users/me/audit
Retrieve user activity history. Requires authentication.
Query Parameters
Response (200 OK)
Delete Account
DELETE
/api/users/me
Permanently delete user account. Requires authentication and password confirmation.
Request Body
Response (200 OK)
⚠️ Warning: Account deletion is permanent and cannot be undone. All user data will be removed.
List Users (Admin)
GET
/api/admin/users
List all users in tenant. Requires admin authentication.
Query Parameters
Response (200 OK)