User Management API

Endpoints for managing user profiles, preferences, and account data.

Get Current User

GET/api/users/me

Requires authentication.

Response (200 OK)

json

Update User Profile

PATCH/api/users/me

Requires authentication.

Request Body

json

Response (200 OK)

json

Change Password

POST/api/users/me/password

Requires authentication.

Request Body

json

Response (200 OK)

json

Get Active Devices

GET/api/users/me/devices

List all active sessions/devices. Requires authentication.

Response (200 OK)

json

Revoke Device Session

DELETE/api/users/me/devices/:deviceId

Revoke a specific device session. Requires authentication.

Response (200 OK)

json

Get Audit Log

GET/api/users/me/audit

Retrieve user activity history. Requires authentication.

Query Parameters

bash

Response (200 OK)

json

Delete Account

DELETE/api/users/me

Permanently delete user account. Requires authentication and password confirmation.

Request Body

json

Response (200 OK)

json

⚠️ 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

bash

Response (200 OK)

json

Related