---
title: "Get Agent History"
method: GET
path: "/cabinet/admin/ban-system/agents/{node_name}/history"
tags: ["Cabinet Admin Ban System"]
---

# Get Agent History

`GET /cabinet/admin/ban-system/agents/{node_name}/history`

## Request

- The document declares no server URL.
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/docs/cabinet/admin/ban-system/agents/:node_name/history/get.ts> (a function with typed inputs; its response is checked against the schema)

Get agent statistics history.

## Path parameters

- `node_name` string, required

## Query parameters

- `hours` integer

## Response `200`

Successful Response

- BanAgentHistoryResponse: Agent history response.
  - `node` string, required
  - `hours` integer
  - `records` integer
  - `delta` object, nullable
  - `first` object, nullable
  - `last` object, nullable
  - `history` BanAgentHistoryItem[]
    - `timestamp` string, date-time, required
    - `sent_total` integer
    - `dropped_total` integer
    - `queue_size` integer
    - `batches_total` integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api.md) - [All operations](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/revisions/2360876ff9c5?raw)
