GET Get Player Session

https://glz-{region}-1.{shard}.a.pvp.net/session/v1/sessions/{puuid}

Get the current session state of a player. loopState indicates what the player is currently doing — MENUS means they are in the main menu, PREGAME means they are in agent select, INGAME means they are in a match. When loopState is PREGAME or INGAME, loopStateMetadata contains the match ID that can be used with the GET Pre-Game Match or GET Current Game Match endpoints.

Headers

URL Parameters

Other Variables

Response

type GetPlayerSessionResponse = {
    /** Player UUID */
    subject: string;
    /** Connection state, e.g. "CONNECTED" */
    cxnState: string;
    cxnCloseReason: string;
    /** UUID */
    clientID: string;
    clientVersion: string;
    /** Current state of the player */
    loopState: "MENUS" | "PREGAME" | "INGAME";
    /** Match ID when loopState is PREGAME or INGAME, empty string otherwise */
    loopStateMetadata: string;
    version: number;
    lastHeartbeatTime: string;
    expiredTime: string;
    heartbeatIntervalMillis: number;
    playtimeNotification: string;
    playtimeMinutes: number;
    isRestricted: boolean;
    userinfoValidTime: string;
    restrictionType: string;
    clientPlatformInfo: {
        platformType: string;
        platformOS: string;
        platformOSVersion: string;
        platformChipset: string;
        platformDevice: string;
    };
    connectionTime: string;
    shouldForceInvalidate: boolean;
};