# Audit logging

All API requests must be authenticated as described in the Getting Started section.

Use this endpoint to retrieve audit logs, which allow you to monitor and prevent suspicious employee activity.

GET /resources/auditTrailEvents

Request parameters

Name Type Required Description
subjectName String No Account name for which events will be retrieved. If not specified, events will be retrieved for all accounts.
activity String No If specified, only this type of events will be included in the response.
from String No Start time for events (format yyyy-MM-dd HH:mm:ss). If not specified, events from yesterday will be considered.
to String No End time for events (format yyyy-MM-dd HH:mm:ss). If not specified, events up to the current time will be considered.
limit Integer No Maximum number of events in one response. Cannot exceed 20000, default is 10.
offset Integer No Skips the specified number of events in the returned list. Default is 0.

Response

HTTP status 200 confirms API availability. The response body contains a JSON payload with the list of events.

Events are always sorted by the ts field in descending order (newest to oldest). The maximum number of events per request is 20,000.

Example

Event fields

Name Type Required Description
ts String Yes Event date/time.
clientId String Yes Unique identifier of your company in our system.
activity String Yes Type of event.
subjectName String Yes Account name for which events are retrieved.
ip String Yes IP address from which the event was recorded.
userAgent String No Device from which the event was recorded.
xClientId String No Event source: API / dashboard / SDK.
correlationId String Yes Unique identifier of the event on our side.
applicantId String No Unique identifier of the applicant in our system.
externalUserId String No External applicant identifier — the unique identifier of the user in your system.
imageId String No Image identifier.
description String No Additional information.

Event types:

Name Description
subject:loggedIn:dashboard:success Successful login to the system.
subject:loggedIn:dashboard:failure Login failure.
subject:loggedOut:dashboard Logout from the system.
subject:loaded:applicant Loading applicant information.
subject:loaded:applicantList Loading the list of applicants.
subject:exported:applicantCsvList Exporting the list of applicants in .CSV format.
subject:downloaded:docImage Downloading a user document.
subject:changed:applicant Modification of applicant data.