Return the current user

This resource will return the username of the calling user. This can for example be used to validate user credentials, or get the username of the caller when using token authorization.

GET /whoami

Validates the currently used credentials and returns the calling users username.

Status Codes:
  • 200 OK – The credentials are correct.
  • 401 Unauthorized – The credentials are incorrect.
Produces:
  • text/plain – $USERNAME