Get main profile

The GET /api/users API endpoint retrieves the main profile information of the currently authenticated user in a banking or financial application. This allows the user to access their profile details securely.

Functionality:

  • This endpoint provides essential user profile details such as name, email, phone number, and account status.
  • A valid bearer token must be included in the request header for authentication.
  • On successful authentication, the API returns the user's profile information in a structured response.
  • If the token is missing, invalid, or expired, appropriate error messages are returned.

Key Features:

  • Secure Access: Requires a valid authentication token, ensuring the profile information is only accessible to the authenticated user.
  • Comprehensive User Data: Returns essential profile details such as name, email, phone number, and account status, useful for user account management and review.
  • Error Handling: Provides clear error messages for expired or invalid tokens, helping maintain secure and accurate access to user data.

📘

This API is crucial for providing users access to their personal profile data securely, allowing them to manage and review their account status and contact information

Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!