API Reference
Log inSign up
v.1.7.2
v.1.7.2
  • Introduction
  • Integration
  • Sandbox and Live
  • Authentication
  • Rate Limits
  • Service Quota
  • Errors
  • Pagination
  • Filtering
  • Versioning
  • Core resources
  • Clients
    • Create a client
    • Get a client
    • Update a client
    • Delete a client
    • List clients
    • Filtering clients
  • Addresses
    • Create an address
    • Get an address
    • Update an address
    • Delete an address
    • List addresses
    • Filtering addresses
  • Documents
    • Create a document
    • Get a document
    • Update a document
    • Upload image attachment
    • Download image attachment
    • Delete image attachment
    • Delete a document
    • List documents
    • Filtering documents
  • Live Photos
    • Upload a live photo
    • Get a live photo
    • Download live photo
    • Delete a live photo
    • List live photos
  • Checks
    • Create a check
    • Get a check
    • Update a check
    • Validate check outcome
    • List checks
    • Filtering checks
  • Risk Profile
    • Get a risk profile
  • Check types
    • AML Screening Check
    • Document Check
    • Identity Check
  • Other Resources
    • Webhooks
      • Create a webhook
      • Get a webhook
      • Update a webhook
      • Delete a webhook
      • List webhooks
      • Filtering webhooks
    • Reports
      • Generate a client report
      • Generate a check report
    • SDK Tokens
      • Generate a token
    • Team Members
      • Get a team member
      • List team members
      • Filtering team members
    • Audit Logs
      • Get an audit log
      • List audit logs
      • Filtering audit logs
Powered by GitBook
On this page
  • The Audit Log object
  • The diff object

Was this helpful?

  1. Other Resources

Audit Logs

Track all important actions using our rich audit logs.

An audit log object provides information about the action and user that initiated the changes and the old and new values, where applicable.

The API allows you to retrieve audit logs for a given client, action, resource, or trigger.

The Audit Log object

Attribute

Type

Description

id

string

The unique identifier for an audit log.

memberId

string

resourceType

string

The type of audited resource. Valid values include:

  1. client

  2. address

  3. document

  4. check

resourceId

string

The id of the audited resource.

clientId

string

The id of the client associated with the audited resource.

trigger

string

The event that triggered the audit log creation, e.g. updateClient.

action

string

The type of action. Possible values are:

  1. create

  2. update

  3. delete

diff

array[object]

createdAt

string

The date and time when the audit log was created.

{
    "id": "5f2acdcebbddb422f9b60e7b",
    "memberId": "VNARgK33nMASdJKdi",
    "resourceType": "client",
    "resourceId": "5f2aca5fbbddb422f9b60e79",
    "clientId": "5f2aca5fbbddb422f9b60e79",
    "trigger": "updateClient",
    "action": "update",
    "diff": [
        {
            "action": "update",
            "path": [
                "personDetails",
                "firstName"
            ],
            "old": "Joe",
            "new": "John"
        },
        {
            "action": "new",
            "path": [
                "personDetails",
                "dob"
            ],
            "new": "1969-09-23"
        },
        {
            "action": "new",
            "path": [
                "personDetails",
                "nationality"
            ],
            "new": "US"
        },
        {
            "action": "update",
            "path": [
                "updatedAt"
            ],
            "old": "2020-01-01T15:03:59.913Z",
            "new": "2020-01-01T15:18:38.273Z"
        },
        {
            "action": "new",
            "path": [
                "lastActionBy"
            ],
            "new": "VNARgK33nMASdJKdi"
        }
    ],
    "createdAt": "2020-01-01T15:18:38.347Z"
}

The diff object

Attribute

Type

Description

action

string

Indicates the kind of change. Possible values are:

  1. new - indicates a newly added attribute/element.

  2. delete - indicates an attribute/element was deleted.

  3. update - indicates an attribute/element was updated.

  4. add - indicates a change occurred within an array.

path

array[string]

The left-to-right path of the attribute in the audited resource e.g. ['personDetails', 'firstName'] indicates that firstName within the personDetails object is the attribute affected by the action.

old

string

The old value of the audited attribute.

new

string

The new value of the audited attribute. When action is new, the type of new is object rather than string

PreviousFiltering team membersNextGet an audit log

Last updated 4 years ago

Was this helpful?

The whose actions triggered the audit log creation.

The diff between the old and new values of the audited resource. Also, see the object below.

team member
diff