> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.eraus.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Command logs

> Commands run by staff in game and through the API.

> [!NOTE]
>
> Works while the server is offline. Events are kept for 7 days, up to the newest 5,000.

**limit** `integer` (default: 50)

1 to 100.

**after** `integer`

Only events with a higher `id`, oldest first. Use this to follow new events.

**before** `integer`

Only events with a lower `id`, newest first. Use this to page back.

**data** `object[]`

**event**

**id** `integer`

Goes up by one per event on this server.

**type** `string`

`staff.command` or `api.command`.

**timestamp** `integer`

Unix seconds.

**data** `object`

`staff.command`: `player` and `command`. `api.command`: `id`, `command`, `key`, `ok` and `message`.

**nextCursor** `integer | null`

Pass as `before` to get older events. `null` when there are no more.

```json 200 theme={null}
{
  "data": [
    { "id": 4190, "type": "api.command", "timestamp": 1793875480, "data": { "id": "cmd_9qk3v0nfqg74ib8y", "command": ":announce Priority in effect", "key": "Sonoran CAD", "ok": true, "message": "Announcement posted." } },
    { "id": 4187, "type": "staff.command", "timestamp": 1793875475, "data": { "player": { "id": 77123, "name": "sam_rp" }, "command": ":bring reckless_ricky" } }
  ],
  "nextCursor": null
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.