Articles in this section

View and filter audit entries

Published:
Updated:

The audit trail can grow large, so MobilityManager lets you filter and page through entries to find the changes you care about. This article explains the available filters, how paging works, and how to open a single entry.

Required permission

Viewing audit entries requires the settings:view permission. All audit access is read-only and scoped to your current tenant.

Listing entries

Request the audit list from GET /api/audit. Results are returned newest first (by timestamp), together with the total number of matching entries so you can build paging controls.

Available filters

Combine any of these query parameters to narrow the results:

FilterPurpose
entityTypeOnly changes to a given record type, for example Vehicle or Booking.
entityIdOnly changes to a specific record, identified by its primary key.
actionOnly a given action: Insert, Update, or Delete.
userEmailOnly changes made by a specific user's email.
userIdOnly changes made by a specific user ID.
fromDate / toDateRestrict to a date-and-time range (inclusive).

Paging through results

Two parameters control the page:

  • skip — how many entries to skip; defaults to 0.
  • take — how many entries to return; defaults to 50 and is capped at 100.

To move through pages, increase skip by your page size on each request. Compare the running total you have retrieved against the reported total count to know when you have reached the end.

Note: Requesting a take larger than 100 does not return more than 100 entries — the page size is limited for performance.

Opening a single entry

When you have an entry's numeric ID, retrieve just that entry with GET /api/audit/{auditEntryId}. The response includes the full detail: old and new values, and the changed columns for updates. If the ID does not exist, the request returns "Audit entry not found".

Tip: To investigate one record's full timeline, filter by both entityType and entityId, or use the dedicated entity history view.

Related

  • The audit trail and what it captures
  • View the audit history of an entity
  • View a user's audit history
  • Why audit entries cannot be edited or deleted
AH
Written by Alexander Hagemann
Updated:
Access denied
Access denied