get_audit
Read the admin-scoped audit log with paging, then narrow entries by time, action, result, target, or principal to investigate changes and denials.
Instructions
Read the audit log (admin-scoped), bounded to limit entries per page.
Returns an ``AuditLogPage`` dict. Non-admin tokens get a structured
``forbidden`` (403) error.
All filters compose with AND, and all are applied in SQL — narrowing is
cheap, so prefer a filter over paging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max entries in one page, clamped to [1, 200] before the call (the daemon rejects anything outside that range); omit for 50. | |
| since | No | Keep only entries at or after this inclusive ISO-8601 UTC timestamp (``2026-08-07T10:00:00Z``); omit for no lower bound. | |
| until | No | Keep only entries at or before this inclusive ISO-8601 UTC timestamp (``2026-08-07T10:00:00Z``); omit for no upper bound. | |
| action | No | Keep only entries whose action equals this exactly (e.g. ``deploy.create``); omit for every action, or use ``action_prefix`` for a family. | |
| cursor | No | Opaque paging cursor from the previous page's response; omit for page 1. | |
| result | No | Keep only entries with this outcome — ``ok``, ``error``, ``denied`` or ``replay``; omit for all four. | |
| target | No | Keep only entries acting on this exact target id (e.g. a service name); omit for every target. | |
| target_type | No | Keep only entries whose target is of this type (e.g. ``service``, ``model``); omit for every type. | |
| principal_id | No | Keep only entries written by this token id — everything that caller did; omit for every principal. | |
| action_prefix | No | Keep only actions starting with this **literal** prefix, never a pattern (``deploy.`` matches deploy.create, deploy.git_create, deploy.plan). Grammar ``[a-z0-9._]``, 1-40 chars, else ``bad_request``; omit for every family. |