Endpoint
Authentication
This endpoint requires authentication. Include a valid JWT token in the Authorization header:Response
Success response
Returns the user’s profile data, including store information if the user is a store employee.Indicates if the request was successful
User profile data
User’s unique identifier
User’s full name
User’s email address
User’s role. One of:
student, faculty, or store_employeeStudent or faculty registration number (null if not applicable)
Employee ID for store employees (null if not applicable)
User’s phone number (null if not provided)
Whether the user’s email has been verified
Number of times the user failed to pick up orders
User’s trust level based on order history. One of:
good, watch, or restrictedISO 8601 date when ordering restrictions will be lifted (null if not restricted)
ISO 8601 date of the last no-show incident (null if none)
ISO 8601 date when the account was created
ISO 8601 date when the profile was last updated
Store information (only present if user role is
store_employee and owns a store)Error responses
Always
false for errorsError description
Examples
Success response example
Error response example
Sensitive fields like
password, email_verification_token, and password_reset_token are automatically removed from the response.