cURL
curl --request GET \ --url https://api.example.com/api/users/me
{ "success": true, "timestamp": "<string>", "data": { "id": 123, "email": "<string>", "firstName": "<string>", "lastName": "<string>", "roles": [ {} ] } }
Retrieve the authenticated user’s private profile
GET /api/users/me
Authorization: Bearer <access_token>
Show properties
curl -X GET http://localhost:8080/api/users/me \ -H "Authorization: Bearer <access_token>"
{ "success": true, "timestamp": "2026-03-03T10:30:00Z", "data": { "id": 1, "email": "[email protected]", "firstName": "John", "lastName": "Doe", "roles": ["MEMBER"] } }
401 Unauthorized
{ "success": false, "timestamp": "2026-03-03T10:30:00Z", "error": "Unauthorized" }
UserController.java:21-24