List Audit
What platform staff have done, newest first.
Two filters, because they are the two questions that follow "what happened": what was done to this customer, and every time this kind of thing was done. Filtering by actor is available in the library and not published here — the screen has no picker for it, and an endpoint nothing calls is an endpoint nothing checks.
Request
- Base URL: https://api.heymetra.com (the document declares no server; this is the origin it was published from)
- URL: https://api.heymetra.com/api/admin/audit
- Auth: none declared
Query parameters
What a superadmin did, as the audit trail names it (ZEISO-302).
A closed vocabulary rather than free text. An audit table whose action column is whatever the last caller typed cannot be filtered, cannot be counted, and cannot be read a year later by somebody who does not know which spellings were in use that month.
The rule for membership: an action belongs here when it changes what a customer gets or sees. That is why feedback triage is absent — moving a note from new to triaged changes nothing on the customer's side, and it is also the highest-volume thing staff do here, so logging it would bury the four actions that matter. tests/test_admin_audit.py enumerates the router and fails if a new writing endpoint is neither audited nor deliberately excluded.
The names are subject.verb so that filtering by prefix is filtering by subject, and they are persisted as strings: adding one is a code change, not a migration that rewrites a type.
Headers
Response
Successful Response
Changes
No recorded changes to this operation across all 3 revisions of this API.