Send a message to the specified player
POST
/api/sendmessage
Application/Json
| Key | Value | Type | Required |
|---|---|---|---|
| Authorization | Basic [key] | string | For Basic authentication mode only |
| Authorization | [key] | string | For Key-Basic and Key-Advanced authentication modes only |
No parameters
{
"message": string,
"player": string // - Optionnal, if ommited, sends a message to everyone
}
| Authentication type | Key type | Allowed |
|---|---|---|
| Open | ![]() | |
| Basic | ![]() | |
| Key-Basic | ![]() | |
| Key-Advanced | Public key | ![]() |
| Key-Advanced | Protected key | ![]() |
| Key-Advanced | Admin key | ![]() |
{
"success": bool,
"code": int,
"message": string
}{
"success": bool,
"code": int,
"message": string
}| HTTP Code | Type |
|---|---|
| 200 | OK |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |