Skip to main content

Get Current User Profile

GET 

/auth/me

Returns the complete profile information of the authenticated user. Typical Flow:

  1. The client sends a request with a JWT token in the Authorization header
  2. The server validates the token and extracts the user ID
  3. Queries the updated user data in the database
  4. Returns the complete profile information Usage Examples:
  • Load user information upon application startup
  • Display profile details on the interface
  • Validate current user's permissions and role
  • Synchronize data after updates Information Returned:
  • Personal data (name, last name, email)
  • Associated company information
  • User role and permissions
  • Active subscription type
  • Account creation date Important Notes:
  • Requires a valid JWT token in the header: Authorization: Bearer {token}
  • The token must not be expired (valid for 24 hours)
  • Returns the most current data from the database
  • Does not include password or sensitive information

Responses

User profile successfully retrieved