Retrieve the authenticated user’s profile information
cURL
curl --request GET \ --url https://api.example.com/api/users/profile
{ "success": true, "data": { "id": "<string>", "email": "<string>", "displayName": "<string>", "photoURL": "<string>", "role": "<string>", "favorites": [ {} ], "createdAt": "<string>", "updatedAt": "<string>" } }
Show properties
{ "success": false, "message": "User not found" }
{ "success": false, "message": "Failed to fetch profile" }
curl -X GET https://api.inmobiliaria.com/api/users/profile \ -H "Authorization: Bearer YOUR_TOKEN_HERE" \ -H "Content-Type: application/json"
{ "success": true, "data": { "id": "12345", "email": "[email protected]", "displayName": "John Doe", "photoURL": "https://example.com/photo.jpg", "role": "user", "favorites": [], "createdAt": "2024-01-15T10:30:00.000Z", "updatedAt": "2024-01-15T10:30:00.000Z" } }