Create user profile
Creates a new user profile with the provided information. This endpoint is typically called after user registration in the authentication service.Request body
The user’s full name. Must be between 1 and 120 characters.
The user’s email address. Must be a valid email format and at most 255 characters.
The user’s phone number. Must match the pattern
^[0-9+()\- ]{7,20}$ (7-20 characters including digits, +, (), -, and spaces).Response
The unique identifier for the created user profile
The user ID from the authentication system
The user’s full name
The user’s email address
The user’s phone number
ISO 8601 timestamp when the profile was created
ISO 8601 timestamp when the profile was last updated
List users
Retrieves a paginated list of all user profiles. This endpoint requires admin privileges.Query parameters
The page number to retrieve (0-indexed). Must be 0 or greater.
The number of items per page. Must be between 1 and 100.
The field to sort by. Common values:
createdAt, name, email, updatedAt.The sort direction. Valid values:
asc, desc.Response
Array of user profile objects
The current page number (0-indexed)
The number of items per page
The total number of user profiles
The total number of pages available
Whether this is the last page
Get user by ID
Retrieves a specific user profile by user ID. Users can only access their own profile unless they have admin privileges.Path parameters
The unique user ID to retrieve
Response
The unique identifier for the user profile
The user ID from the authentication system
The user’s full name
The user’s email address
The user’s phone number
ISO 8601 timestamp when the profile was created
ISO 8601 timestamp when the profile was last updated
Update user profile
Updates an existing user profile. Users can only update their own profile unless they have admin privileges.Path parameters
The unique user ID to update
Request body
The user’s full name. Must be between 1 and 120 characters.
The user’s email address. Must be a valid email format and at most 255 characters.
The user’s phone number. Must match the pattern
^[0-9+()\- ]{7,20}$.Response
The unique identifier for the user profile
The user ID from the authentication system
The updated user’s full name
The updated user’s email address
The updated user’s phone number
ISO 8601 timestamp when the profile was created
ISO 8601 timestamp when the profile was last updated
Delete user profile
Deletes a user profile. Users can only delete their own profile unless they have admin privileges.Path parameters
The unique user ID to delete
Response
A confirmation message indicating successful deletion