---
title: "List audit log entries with the selected filter"
method: GET
path: "/v2/console/audit/log"
tags: ["Console"]
---

# List audit log entries with the selected filter

`GET /v2/console/audit/log`

## Request

- Base URL: `http://127.0.0.1:7351`
- URL: `http://127.0.0.1:7351/v2/console/audit/log`
- Auth: API key in header `Authorization`

## Query parameters

- `limit` integer
- `username` string
- `resource` integer
- `action` 'UNKNOWN' | 'CREATE' | 'UPDATE' | 'DELETE' | 'INVOKE' | 'IMPORT' | 'EXPORT'
- `after` string, date-time
- `before` string, date-time
- `cursor` string

## Response `200`

A successful response.

- AuditLogList: Audit log entries.
  - `entries` AuditLog[]: A list of audit log entries.
    - `id` string: Id of the entry.
    - `timestamp` string, date-time: The time the action occurred.
    - `user_id` string: The console user id that performed the action.
    - `username` string: The console user username that performed the action.
    - `email` string: The console user email that performed the action.
    - `resource` 'ACCOUNT' | 'ACCOUNT_WALLET' | 'ACCOUNT_EXPORT' | 'ACCOUNT_FRIENDS' | 'ACCOUNT_GROUPS' | 'ACCOUNT_NOTES' | 'ACL_TEMPLATE' | 'ALL_ACCOUNTS' | 'ALL_DATA' | 'ALL_STORAGE' | 'API_EXPLORER' | 'AUDIT_LOG' | 'CONFIGURATION' | 'CHANNEL_MESSAGE' | 'USER' | 'GROUP' | 'IN_APP_PURCHASE' | 'LEADERBOARD' | 'LEADERBOARD_RECORD' | 'MATCH' | 'NOTIFICATION' | 'SATORI_MESSAGE' | 'SETTINGS' | 'STORAGE_DATA' | 'STORAGE_DATA_IMPORT' | 'HIRO_INVENTORY' | 'HIRO_PROGRESSION' | 'HIRO_ECONOMY' | 'HIRO_STATS' | 'HIRO_ENERGY': ATTENTION: Do not modify the order of this enum. New resources should always be appended.
    - `action` 'UNKNOWN' | 'CREATE' | 'UPDATE' | 'DELETE' | 'INVOKE' | 'IMPORT' | 'EXPORT'
    - `message` string: Log message.
    - `metadata` string: Additional details about the action.
  - `next_cursor` string: Cursor to fetch next page of results.
  - `prev_cursor` string: Cursor to fetch prev page of results.

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/heroiclabs/apis/nakama-console-api-v2.md) - [All operations](https://skmtc.dev/heroiclabs/apis/nakama-console-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/heroiclabs/apis/nakama-console-api-v2/revisions/fbde2e3c5ead?raw)
