Перейти к основному содержанию
GET
/
api
/
adminlog
Get audit log
curl --request GET \
  --url http://localhost:8080/api/adminlog \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 123,
    "chat_id": 123,
    "bot_id": 123,
    "action": "<string>",
    "actor_id": 123,
    "actor_username": "<string>",
    "target_id": 123,
    "target_username": "<string>",
    "details": "<string>",
    "date": 123
  }
]

Авторизации

Authorization
string
header
обязательно

API key with bmx_ prefix. Obtain via /api/auth/api-keys.

Параметры запроса

chat_id
integer
обязательно

Chat ID

limit
integer
по умолчанию:50
Требуемый диапазон: x <= 200
offset
integer
по умолчанию:0

Ответ

Audit log entries

id
integer
chat_id
integer
bot_id
integer
action
string

Action performed (e.g., ban, unban, promote, demote, pin, delete)

actor_id
integer

User who performed the action

actor_username
string
target_id
integer

User/message that was acted upon

target_username
string
details
string

Additional action details

date
integer

Unix timestamp