getCurrentUser abstract method

  1. @GET.new('/users/@me')
Future<UserPrivateResponse> getCurrentUser()

Get current user profile.

Retrieves the current authenticated user's profile information, including account details and settings. OAuth2 bearer tokens require identify scope, and email is returned only when the email scope is also present. Bearer tokens receive a reduced response: sensitive fields such as phone, MFA status, authenticator types, ACLs, traits, premium billing details, and password metadata are omitted. Session and bot tokens return the full user object with all private fields.

Implementation

@GET('/users/@me')
Future<UserPrivateResponse> getCurrentUser();