Get Audit Run History Route
Last N run snapshots for a brand + non-SEO audit type, newest first.
Reads the append-only brand_audit_runs history (Audits R12) — the
BrandAudit snapshot is clobbered per re-run by design — so the report
UI can diff a re-run against the previous one and plot a score trend
instead of showing a single replaced result.
SEO is deliberately NOT served here: it has its own richer Phase-2 history
at /free-audits/seo-history/{brand_id}, and answering for it from this
(never-written) table would report “no history” for the one audit that has
the most.
Gated on AUDIT_LONGITUDINAL_ENABLED (404 when off — the table is not
being written) + brand ownership, like the sibling SEO history route.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
50501 <= x <= 20