Audit

1 endpoint

GET/api/auditauth required

Get audit log

Returns one project's paginated send audit: its entries plus the account-level ones (projectId null). Supports filtering by date range and send mode. Session-only, gated by analytics.view (matches the /p/[projectSlug]/send-audit page). 404 PROJECT_NOT_FOUND for a project the caller cannot open.

Parameters
NameInTypeRequiredDescription
projectIdquerystring (uuid)requiredThe project whose send audit to return.
limitqueryintegeroptionalMaximum entries to return (1-100). Defaults to 25.
offsetqueryintegeroptionalNumber of entries to skip. Defaults to 0.
startDatequerystring (date-time)optionalFilter entries after this date (ISO 8601).
endDatequerystring (date-time)optionalFilter entries before this date (ISO 8601).
sendModequerystringoptionalFilter by send mode: "test" or "production".
Responses
200Paginated audit log entries.
FieldTypeRequiredDescription
entriesobject[]required
totalnumberrequired
limitnumberrequired
offsetnumberrequired
400projectId missing, or an invalid date format
401Unauthorized
404PROJECT_NOT_FOUND: the caller cannot open this project
500Internal server error