Skip to main content
Record audits track record events such as when and how a record was created, moved, deleted, and more. Before making any of these calls you’ll need a bearer token — see Authentication, or pull the Risk Cloud Postman collection to get started.

Retrieve Record Audits endpoint

The Record Audits API offers a Retrieve Record Audits endpoint that returns an iterable page of all record audits in a given timeframe. It’s available to all users with a build entitlement.
This endpoint accepts the following optional query parameters for additional filtering: See Pagination for details on the page response envelope.

Use cases

Get a Workflow ID

To request all record audits in a workflow, use the workflow query parameter with that workflow’s ID. The Workflow ID can be obtained either from the Risk Cloud web app or from the API. Web app
  1. Navigate to Build > Applications.
  2. Search for and open the application containing the workflow.
  3. Open the edit gear icon (⚙) on the workflow to open the Workflow Editor.
  4. The Workflow ID is shown under the Workflow ID label in the editor window.
API The Workflow ID can also be retrieved via the Retrieve Workflows endpoint, in the id property of each workflow object returned in the response’s content array:
See View Applications, Workflows, and Steps for another way to look up Workflow IDs.

Retrieve record audits

Once you have the Workflow ID and a timeframe, request the workflow’s record audits:

Response

The response contains all matching record audits, along with contextual information for each audit such as the step, audit type, and user. The auditType property can be any of the following values:
  • CreatedAudit
  • CopiedAudit
  • LinkingAudit
  • LinkedAudit
  • UnlinkedAudit
  • DeletedAudit
  • MovedAudit
  • AssignedAudit
  • SecondaryAssignedAudit
  • SecondaryUnassignedAudit
  • PreservedAudit
  • UnassignedAudit
A sample response is shown below.