跳转到主要内容
GET
/
admin
/
audit-logs
cURL
curl --request GET \
  --url http://127.0.0.1:3000/api/admin/audit-logs \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "<string>",
      "userId": "<string>",
      "action": "<string>",
      "origin": {
        "ip": "<string>",
        "byApi": true,
        "userAgent": "<string>",
        "referer": "<string>"
      },
      "payloadVersion": "<string>",
      "createdTime": "<string>",
      "resourceId": "<string>",
      "payload": "<unknown>"
    }
  ]
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

userId
string
action
string
resourceId
string
startTime
string
endTime
string
skip
integer
默认值:0
必填范围: x >= 0
take
integer
默认值:20
必填范围: 1 <= x <= 500

响应

200 - application/json

Returns paginated audit logs.

items
object[]
必填
Last modified on December 10, 2025