Skip to Content

Get Current User

Retrieve the current authenticated user’s profile information.

GET /api/user/me

Response

{ "data": [ { "userId": "user-123", "email": "user@example.com", "roles": ["ROLE_USER"], "profile": { "fullName": "John Doe", "phone": "+1234567890", "address": "123 Main St, City, Country" }, "CreatedAt": { "$date": 1719859200000 }, "LastUpdatedAt": { "$date": 1719859200000 } } ], "status": "OK", "code": 200, "timestamp": 1234567890, "meta": {} }

This endpoint requires authentication. The response includes the user’s profile data and metadata.

Bsh Engine uses a specific format for the dates. The date is presented as a object with a $date the date value.
For more information, you can check the Bsh Dates page.