Skip to main content
Version: v3

Get Current User

GET 

http://localhost:3000/api/whoami

Retrieve information about the current user session.

Responses

Current user information retrieved successfully.

Schema
    idstring

    The unique identifier of the session.

    profile object

    The profile information of the user.

    namestring

    The name of the member.

    is_adminboolean

    Indicates if the member is an admin.

    can_loginboolean

    Indicates if the member can log in.

    can_connectboolean

    Indicates if the member can connect.

    can_watchboolean

    Indicates if the member can watch.

    can_hostboolean

    Indicates if the member can host.

    can_share_mediaboolean

    Indicates if the member can share media.

    can_access_clipboardboolean

    Indicates if the member can access the clipboard.

    sends_inactive_cursorboolean

    Indicates if the member sends inactive cursor.

    can_see_inactive_cursorsboolean

    Indicates if the member can see inactive cursors.

    plugins object

    Additional plugin settings.

    property name*any

    Additional plugin settings.

    state object

    The current state of the session.

    is_connectedboolean

    Indicates if the user is connected.

    is_watchingboolean

    Indicates if the user is watching.

Authorization: http

name: BearerAuthtype: httpscheme: bearerdescription: Authentication using a Bearer token.
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost:3000/api/whoami");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
http://localhost:3000
Auth
ResponseClear

Click the Send API Request button above and see the response here!