Skip to main content
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
  }
]

Authorizations

Authorization
string
header
required

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

Query Parameters

chat_id
integer
required

Chat ID

limit
integer
default:50
Required range: x <= 200
offset
integer
default:0

Response

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