Get Current User
Authentication
Get Current User
Retrieve information about the authenticated user
GET
Get Current User
Description
Returns information about the currently authenticated user based on the provided JWT access token.Authentication
Requires valid JWT access token in the Authorization header. Header:Authorization: Bearer <access_token>
Request
No request body or parameters required. User identity is extracted from the JWT token.Response
Unique identifier for the user.
The user’s username.
The user’s email address.
ISO 8601 timestamp indicating when the account was created.
Status Codes
- 200 OK: Successfully retrieved user information
- 401 Unauthorized: Missing, invalid, or expired access token
Example Request
cURL
Example Response
200 OK
401 Unauthorized
Usage Notes
- This endpoint is useful for verifying token validity and retrieving current user context
- The user ID is extracted from the JWT token’s
NameIdentifierorsubclaim - No sensitive information like password hashes is returned