GET /api/audit
Retrieve audit log entries with pagination and filtering support. All API requests proxied through Fishnet are logged with cryptographic integrity guarantees.Authentication
Requires session authentication via Bearer token in theAuthorization header.
Query Parameters
Start timestamp in milliseconds (Unix epoch). Filters entries with
timestamp >= from.End timestamp in milliseconds (Unix epoch). Filters entries with
timestamp <= to.Filter by service name (e.g.,
openai, anthropic, binance, custom.github).Filter by policy decision. Values:
approved, denied.Page number (1-indexed). Minimum value is 1.
Number of entries per page. Valid range: 1-200.
Response
Returns a JSON object with paginated audit entries:Array of audit log entries, ordered by ID descending (newest first).
Total number of entries matching the filter criteria.
Current page number.
Total number of pages available.
Examples
Example Response
Error Responses
Implementation Notes
- Entries are always returned in descending order by ID (newest first)
- The
page_sizeparameter is clamped to the range [1, 200] - The
pageparameter is automatically set to at least 1 - Timestamps are stored as 64-bit integers (milliseconds since Unix epoch)
- All hash fields are hex-encoded Keccak256 hashes (64 characters)
- The Merkle root enables cryptographic verification that the audit log has not been tampered with