Audit Logs

Query the panel audit log. Every API call, including failed authentication and permission checks, is recorded here.

Scope: read:audit (admin only)

List Audit Logs

GET /api/v1/audit-logs

Query Parameters

Parameter Type Description
page integer Page number. See Pagination
limit integer Items per page. See Pagination
action string Filter by action: read, create, update, delete, or reject
resource string Filter by resource type: website, service, cron, dns, account, api_auth, etc.
username string Filter by actor. Substring match on the username field
search string Substring match on detail and resource_id

All filter parameters are optional. Combine them to narrow results.

Response

{
    "data": [
        {
            "id": 73,
            "user_id": 2,
            "username": "api:test@nxp_1961c24f2a37",
            "full_name": "Test",
            "action": "reject",
            "resource": "api_auth",
            "resource_id": "/api/v1/audit-logs",
            "detail": "GET /api/v1/audit-logs - missing scope: read:audit",
            "ip_address": "192.168.122.1",
            "created_at": "2026-10-18T20:03:17+05:00"
        }
    ],
    "pagination": {
        "page": 1,
        "limit": 25,
        "total": 1,
        "total_pages": 1
    }
}
Field Type Description
id integer Log entry ID
user_id integer Panel user ID. 0 for unauthenticated requests
username string Actor. api:<username>@<token-prefix> for API calls
full_name string Actor's display name, may be empty
action string read, create, update, delete, or reject
resource string Resource type the action targeted
resource_id string Identifier of the resource. For API calls, the request path
detail string Human readable description of the action
ip_address string Source IP address
created_at string (RFC 3339) When the entry was created

Examples

All rejected requests:

curl -H "Authorization: Bearer $TOKEN" \
  "https://panel.example.com/api/v1/audit-logs?action=reject"

All API activity from a specific token:

curl -H "Authorization: Bearer $TOKEN" \
  "https://panel.example.com/api/v1/audit-logs?search=nxp_a1b2c3d4e5f6"

All website changes:

curl -H "Authorization: Bearer $TOKEN" \
  "https://panel.example.com/api/v1/audit-logs?resource=website&action=update"
Last updated: October 19, 2026