User

Get current user information

Changed on

Returns authentication status and username. When no bearer token is provided the response indicates an unauthenticated session. This endpoint does not require authentication.

get/api/user/info

Request

  • The document declares no server URL.
  • Auth
    none declared

Response

User information.

auth_method'api' | 'session' | 'oauth'

Which credential kind authenticated the request.

authenticatedboolean required

Whether the user is authenticated.

errorstring

An error message if user lookup failed.

usernamestring

The username of the authenticated user. Absent when not authenticated, and empty for an API token, which carries no username.

Changes