Audit
1 endpoint
GET
/api/auditauth requiredGet 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| projectId | query | string (uuid) | required | The project whose send audit to return. |
| limit | query | integer | optional | Maximum entries to return (1-100). Defaults to 25. |
| offset | query | integer | optional | Number of entries to skip. Defaults to 0. |
| startDate | query | string (date-time) | optional | Filter entries after this date (ISO 8601). |
| endDate | query | string (date-time) | optional | Filter entries before this date (ISO 8601). |
| sendMode | query | string | optional | Filter by send mode: "test" or "production". |
Responses
200Paginated audit log entries.
| Field | Type | Required | Description |
|---|---|---|---|
| entries | object[] | required | |
| total | number | required | |
| limit | number | required | |
| offset | number | required |
400projectId missing, or an invalid date format
401Unauthorized
404PROJECT_NOT_FOUND: the caller cannot open this project
500Internal server error