modl.gg
Developer API

Submit Command Logs

Submit a batch of player command log entries.

POST /v1/minecraft/players/command-log

Submit a batch of command log entries from your server. Each entry records a command executed by a player.

Authentication

Requires the X-API-Key header with your server's API key.

X-API-Key: your-api-key-here

Request

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour server's API key.
Content-TypestringYesMust be application/json.

Body

FieldTypeRequiredDescription
entriesarrayYesArray of command log entries (max 500). Must not be empty.

Each entry in the entries array:

FieldTypeRequiredDescription
uuidstringYesThe player's Minecraft UUID.
usernamestringYesThe player's Minecraft username.
commandstringYesThe command that was executed.
timestamplongYesThe Unix timestamp of the command in milliseconds (min: 0).
serverstringNoThe server where the command was executed.
{
  "entries": [
    {
      "uuid": "550e8400-e29b-41d4-a716-446655440000",
      "username": "Notch",
      "command": "/gamemode creative",
      "timestamp": 1699000000000,
      "server": "survival-1"
    }
  ]
}

Response

200 OK

An empty response body indicates the command logs were submitted successfully.

Error Responses

Status CodeDescription
400Invalid request body or missing required fields.
401Missing or invalid API key.
429Rate limit exceeded.
500Internal server error.

On this page