Users

User management operations

Get current user

get
/users/current

Retrieves the currently authenticated user's information.

Authorizations
accessTokenstringRequired
Responses
200

Current user's information.

application/json
get
/users/current

Update current user

put
/users/current

Updates the currently authenticated user's information.

Authorizations
accessTokenstringRequired
Body
emailstring · emailOptional

User's new email address.

passwordstring · passwordOptional

User's new password (at least 6 characters).

Responses
200

User updated successfully.

No content

put
/users/current

No content

Delete current user

delete
/users/current

Deletes the currently authenticated user's account.

Authorizations
accessTokenstringRequired
Responses
200

User deleted successfully.

No content

delete
/users/current

No content

Get all users

get
/users

Retrieves a list of all users (admin only).

Authorizations
accessTokenstringRequired
Query parameters
limitintegerOptional

The number of users to return.

Default: 10
offsetintegerOptional

The number of users to skip.

Default: 0
Responses
200

A list of users.

application/json
get
/users

Get user by ID

get
/users/{userId}

Retrieves a user by their ID (admin only).

Authorizations
accessTokenstringRequired
Path parameters
userIdstringRequired

The ID of the user to retrieve.

Responses
200

The user's information.

application/json
get
/users/{userId}

Delete user by ID

delete
/users/{userId}

Deletes a user by their ID (admin only).

Authorizations
accessTokenstringRequired
Path parameters
userIdstringRequired

The ID of the user to delete.

Responses
200

User deleted successfully.

No content

delete
/users/{userId}

No content