Endpoint
Description
Retrieves a specific user profile based on the provided user ID. Users can access their own profile, while administrators can access any profile. See implementation inserver/src/modules/profiles/profiles.controller.ts:26-40.
Authentication
This endpoint requires Bearer token authentication. Include your access token in the
Authorization header.Path Parameters
The unique identifier of the user whose profile you want to retrieve.Example:
abc123Response
Unique identifier for the user
User’s email address
User’s full name
User role:
USER or ADMINWhether the user account is active
User’s date of birth in ISO 8601 format (YYYY-MM-DD)
Whether the user has completed their profile setup
Timestamp when the profile was created
Success Response (200)
Error Responses
401 Unauthorized
404 Not Found
Code Examples
Use Cases
- Display user profile information in dashboard
- Verify user details before processing reservations
- Show patient information to professionals
- Check profile completion status
- Retrieve user role for permission checks
Profile Completion
Theis_profile_complete field indicates whether the user has finished setting up their profile. This is useful for:
- Prompting users to complete required fields
- Restricting access to certain features until profile is complete
- Tracking onboarding progress
Related Endpoints
Get All Profiles
Retrieve all profiles (admin only)
Update Profile
Update profile information
Authentication
Learn about API authentication