# activity.history

Source: https://docs.lightair.app/developers/remote-api/activity.history

> Gives the latest activity: paid messages, memberships, raids and follows.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Chat and voice. Script plugins need the `project.read` permission.

Each event has `id` (Lightair's number, in arrival order), `ts_ms`, `platform`, `channel`, `kind` (`type`: `message`, `paid`, `membership`, `raid`, `follow`, `deletion` or `notice`), and as they apply `user`, `text`, `fragments`, `native_id` (the platform's id), `reply_to`, `paid`, `headline` and `deleted`.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `limit` | `number` | no | How many. Default 100. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `items` | `object[]` | no | Activity items, oldest first. |

## From an AI agent

The MCP server's `activity (action: history)` reaches this method.

## Related

- [activity.replay](https://docs.lightair.app/developers/remote-api/activity.replay.md)
- [chat.history](https://docs.lightair.app/developers/remote-api/chat.history.md)
