Overview
The User Management API provides endpoints for user authentication, registration, and profile management. All endpoints are prefixed with/kinconecta/api/user.
Authentication
Login User
Validates user credentials and returns authentication status.POST /kinconecta/api/user/login
User’s email address
User’s password
Returns
true if credentials are valid, false otherwiseUser Operations
Get All Users
Retrieve a list of all registered users in the system.GET /kinconecta/api/user
Array of user objects
Get User by ID
Retrieve a specific user by their ID.GET /kinconecta/api/user/{fullName}_{userId}
User’s full name (used in URL path)
User’s unique identifier
User object with all fields (see structure in Get All Users)
Create User
Register a new user in the system.POST /kinconecta/api/user
User role:
TOURIST, GUIDE, or ADMINUser’s full name
User’s date of birth (YYYY-MM-DD format)
User’s email address
User’s password
Country code for phone number (e.g., +1, +52)
User’s phone number
Phone number in E.164 international format
Preferred language code
Account status:
ONLINE or OFFLINEEmail verification timestamp
Last login timestamp
Account creation timestamp
Last update timestamp
Created user object with generated ID
Update User
Update an existing user’s information.PUT /kinconecta/api/user/{fullName}_{userId}
User’s full name (used in URL path)
User’s unique identifier
User object with fields to update (same structure as Create User)
Updated user object
Delete User
Delete a user from the system.DELETE /kinconecta/api/user/{fullName}_{userId}
User’s full name (used in URL path)
User’s unique identifier
Deleted user object
Notifications
Add Notification
Add a notification to a user’s account.POST /kinconecta/api/user/{userId}/add-notification
User’s unique identifier
Notification type (e.g., “booking”, “message”, “review”)
Notification title
Notification message body
Type of related entity (e.g., “BOOKING”, “MESSAGE”)
ID of the related entity
Whether the notification has been read
Notification creation timestamp
Timestamp when notification was read (null if unread)
Updated user object with the new notification added