AuditTrailEntries
Search AuditTrailEntries
Search and list AuditTrailEntry records with filtering, sorting, and pagination.
GET
Search AuditTrailEntries
Represents a read-only log of entity creations and modifications by users or the system. Useful for troubleshooting issues or finding out when an entity was created and what modifications were made to it.
Creation entries (
AuditType = 1) do not record the values for the individual fields. To infer the initial values, look at the first update entry for that entity and read the OldValue for each property.
Use AuditTrailEntry_EntityId to search by the integer ID of the audited record.
Not all entities are fully audited. These are the ones currently supported by the AuditTrailEntry_EntityShortName filter:
Charge, ContractSchedule, CoworkerBookingCredit, CoworkerContract, CoworkerExtraService, CoworkerInvoice, CoworkerLedgerEntry, CoworkerPaymentMethod, CoworkerProduct, FinancialAccount, CoworkerTask, CrmOpportunity, Booking, Checkin, Coworker, CoworkerIdentityCheck, Resource, Team, Visitor, Business, BusinessSetting, FloorPlanDesk, User.
The AuditType field uses the eAuditType enum: 1 = Create, 2 = Update, 3 = Delete.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the
Authorization header.
The authenticated user must be a full unrestricted administrator or have the AuditTrailEntry-List role.Enums
eAuditType — AuditType values
eAuditType — AuditType values
Query Parameters
Pagination & Sorting
integer
default:"1"
The page number to retrieve.
integer
default:"25"
The number of records per page.
string
The property name to sort results by (e.g.
Name, CreatedOn).integer
Sort direction.
0 for ascending, 1 for descending.Filters
integer
Filter by iD of the business linked to this record.
string
Filter by short name of the audited entity type (e.g. Coworker, Booking, Charge).
string
Filter by human-readable description of the audit trail entry.
string
Filter by name of the property that was changed.
integer
Filter by type of audit action: 1 = Create, 2 = Update, 3 = Delete.
string
Filter by previous value of the property before the change.
string
Filter by new value of the property after the change.
string
Filter by user or system account that performed the action.
integer
Filter by integer ID of the audited record.
Range Filters
integer
Filter by integer ID of the audited record greater than or equal to this value.
integer
Filter by integer ID of the audited record less than or equal to this value.
string
Filter records created on or after this date. Format:
YYYY-MM-DDTHH:mm.string
Filter records created on or before this date. Format:
YYYY-MM-DDTHH:mm.string
Filter records updated on or after this date. Format:
YYYY-MM-DDTHH:mm.string
Filter records updated on or before this date. Format:
YYYY-MM-DDTHH:mm.Code Examples
Simple listing
Filtering by EntityShortName
Range filters
Response
200
AuditTrailEntry[]
The list of AuditTrailEntry records matching the query. See the Get one AuditTrailEntry endpoint for the full list of properties returned for each record.
integer
Current page number.
integer
Number of records per page.
string
The field used for sorting.
integer
The sort direction (
0 = ascending, 1 = descending).integer
Index of the first item on the current page.
integer
Index of the last item on the current page.
integer
Total number of matching records across all pages.
integer
Total number of pages.
boolean
Whether there is a next page of results.
boolean
Whether there is a previous page of results.
Example Response
Search AuditTrailEntries