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
-
cidoptionalA chat conversation ID. The IDs of all active conversations can be found from the All Chat Info endpoint.
Other Variables
-
lockfile passwordThe 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";
}[];
}; {
"messages": [
{
"body": "ea",
"cid": "conscendo",
"game_name": "tergiversatio",
"game_tag": "suffoco",
"id": "considero",
"mid": "totam",
"name": "Camille Kuhn",
"pid": "campana",
"puuid": "5581A2be-bDA3-4Ec5-dcBb-c69cF0DaFD2F",
"read": true,
"region": "degero",
"time": null,
"type": "groupchat"
},
{
"body": "non",
"cid": "spes",
"game_name": "est",
"game_tag": "dolorem",
"id": "creptio",
"mid": "deleo",
"name": "Leah Wunsch III",
"pid": "tenus",
"puuid": "EfeDFfc0-8094-1e9c-9Ddb-92643b8CafB8",
"read": true,
"region": "derideo",
"time": null,
"type": "groupchat"
},
{
"body": "vulgo",
"cid": "arx",
"game_name": "thalassinus",
"game_tag": "saepe",
"id": "adeo",
"mid": "varietas",
"name": "Roderick Witting PhD",
"pid": "condico",
"puuid": "E5Cc19b1-5FDA-04DA-A007-3c16c2Ccb53d",
"read": true,
"region": "subseco",
"time": null,
"type": "chat"
}
]
}