GET Chat History
https://127.0.0.1:{port}/chat/v6/messages?cid={cid}
Get chat history for all conversations or a specific conversation if the cid is provided
Headers:
-
Authorization: Basic {base64 encoded "riot:{lockfile password}"}
URL Parameters:
-
{port}
The port can be found from the lockfile (located at
%LocalAppData%\Riot Games\Riot Client\Config\lockfile
) when the game is running. The file has the formatname:pid:port:password:protocol
Query Parameters:
-
cid
(Optional)A chat conversation ID. The IDs of all active conversations can be found from the All Chat Info endpoint.
Other Variables:
-
lockfile password
The password can be found from the lockfile (located at
%LocalAppData%\Riot Games\Riot Client\Config\lockfile
) when the game is running. The file has the formatname:pid:port:password:protocol
Response:
type ChatHistoryResponse = {
messages: {
body: string;
cid: string;
game_name: string;
game_tag: string;
id: string;
mid: string;
name: string;
pid: string;
/** Player UUID */
puuid: string;
read: boolean;
region: string;
/** Time in milliseconds since epoch */
time: string;
type: "chat" | "groupchat";
}[];
};