Export audit log
stack_audit_exportExport the account's audit log as json, ndjson or csv, newest first, with each entry's hash. Never metered. With no limit it returns the newest 2,000 entries, which fits one answer; the json format then carries next_offset when more remain, and the next page is the same call with offset set to it (ndjson and csv: add the limit you got to the previous offset). A larger limit, up to 50,000, that does not fit one call is saved to the account's drive and the call answers with the file; narrow it with from and to to read it here. Reading the record is a controls feature: without controls the API answers 402 CONTROLS_REQUIRED.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stack_audit_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ISO 8601 datetime: last entry included | |
| from | No | ISO 8601 datetime: first entry included | |
| limit | No | Most entries to return, 1 to 50,000. Default 2,000 | |
| format | No | Default json | |
| offset | No | Entries to skip, for paging |