POST Send Chat
https://127.0.0.1:{port}/chat/v6/messages Send a message to the specified group
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
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
Body
type SendChatBody = {
/** The conversation ID of the group to send the message to */
cid: string;
message: string;
/** Use `chat` for whispers, `groupchat` for group messages, and `system` for system messages */
type: "groupchat" | "chat" | "system";
}; {
"cid": "angelus",
"message": "cohaero",
"type": "system"
} Response
type SendChatResponse = {
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": "speculum",
"cid": "facere",
"game_name": "canto",
"game_tag": "quod",
"id": "subiungo",
"mid": "denuncio",
"name": "Ms. Bernadette Deckow",
"pid": "teneo",
"puuid": "2b2CbfE2-1Aef-EAc4-105f-9ca9D1f593ed",
"read": true,
"region": "spiculum",
"time": null,
"type": "chat"
},
{
"body": "deleniti",
"cid": "teres",
"game_name": "cultellus",
"game_tag": "patior",
"id": "strenuus",
"mid": "calculus",
"name": "Chester Crist",
"pid": "inflammatio",
"puuid": "5F20bd54-f41d-0AaF-BcFc-98b88ef29D0f",
"read": false,
"region": "accusator",
"time": null,
"type": "groupchat"
}
]
}