Skip to main content
The Users API provides endpoints to manage user accounts in the MayTravel platform. This includes creating, retrieving, updating, and deleting users, as well as managing user interests.

Available Endpoints

User Management

Get All Users

Retrieve a list of all users in the system

Get User by ID

Retrieve a specific user by their ID

Create User

Create a new user account

Update User

Update user information

Delete User

Delete a user account

User Interests

Get and manage user interests

User Object

The user object contains the following fields:
id
integer
Unique identifier for the user
username
string
The user’s username (stored in lowercase)
email
string
The user’s email address (stored in lowercase)
password
string
The user’s password (hashed)
role
string
The user’s role in the system (default: “user”)

Authentication

For authentication endpoints, see the Authentication API documentation.

Build docs developers (and LLMs) love