Overview
This endpoint retrieves the profile information of the currently authenticated user. It requires a valid JWT token in the Authorization header.This endpoint requires authentication. Include a valid JWT token in the Authorization header.
Endpoint
Authentication
This endpoint requires authentication using a JWT Bearer token.Request
No request body or query parameters are required.Response
Indicates whether the request was successful
A message describing the result (localized based on Accept-Language header)
Example Request
Example Response
200 - Success
401 - Unauthorized
500 - Server Error
Implementation Details
This endpoint is implemented inUserController.php:29 and uses the following:
- Controller Method:
UserController::profile() - Resource Transformation:
UserResource - Authentication Guard:
auth('api') - Route Name:
user.profile
Related Endpoints
- Update User Profile - Update user’s basic information
- Update Password - Change user’s password