Get Current User

Fetches the authenticated user's information.

Headers
  • Authorization
    Type: string
    required

    JWT Bearer token. Format: Bearer <JWT>

Responses
  • application/json
  • application/json
Request Example for get/api/user/getUser
curl https://demo.api.whispchat.com/api/user/getUser \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9...' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "username": "string",
  "email": "hello@example.com",
  "role": [
    "USER"
  ]
}