workflow.requiredDocument.event.list

Retrieve a list of all events for Required Documents within a Workflow.

POST http://api.kompliant.com/workflow.requiredDocument.events.list (OpenAPI specification)

Usage Info

This method returns a comprehensive event log of all activities related to required documents within a specific workflow. The system tracks changes to fulfillments, document status updates, and other document-related actions, and this method provides a complete audit trail of workflow document processing. Each event includes detailed metadata about what changed, who made the change, and when it occurred.

The optional fulfillment_id filter allows you to retrieve events specific to a single fulfillment, making it easy to track the complete lifecycle of a particular document submission.

Use this method when auditing document review activities and decisions, tracking the complete history of a fulfillment from submission to acceptance or rejection, monitoring workflow progress through document-related events, debugging document processing issues by reviewing event sequences, or generating reports on document processing timelines and reviewer activities.

Request

Authentication: KSig1-HMAC-SHA256

Parameters

ParameterTypeRequiredDescription
workflow_idstringYesThe identifier for the Workflow.
filtersobjectNoOptional filters to apply to the events list. See filters below.

Filters Parameters

ParameterTypeRequiredDescription
fulfillment_idstringNoThe identifier for the Fulfillment used to filter events.

Examples

Example 1: List All Workflow Events

{
  "workflow_id": "w_1rQYvnUQdcatd4TcZQu0l8"
}

Example 2: Filter Events by Fulfillment

{
  "workflow_id": "w_1rQYvnUQdcatd4TcZQu0l8",
  "filters": {
    "fulfillment_id": "f_3bOToGJOGlIBSq6KjNUVo8"
  }
}

Response

Data

ParameterTypeDescription
eventsarrayAn array of event objects that contain information about required document activities within the workflow.

The array will be empty if the workflow has no events or if applied filters match no results.

Event Parameters

PropertyTypeDescription
event_idstringThe unique identifier for the event.
workflow_idstringThe workflow identifier associated with the event.
subject_record_idstringThe subject record identifier associated with the event.
event_namestringThe name of the event. Must be one of the DOCUMENT_EVENT_NAMES.
created_byobjectInformation about who created the event. The created by parameters are defined below.
metadataarrayEvent-specific metadata containing details about what changed. Structure varies by event type.
event_timestampstringISO 8601 timestamp when the event occurred.
created_atstringISO 8601 timestamp when the event record was created.
updated_atstringISO 8601 timestamp when the event record was last updated.

Created By Parameters

PropertyTypeDescription
user_idstringThe unique identifier for the user in the system or SYSTEM to indicate the system.
typestringIndicates the type of entity that created the event. USER indicates a person initiated the event. SYSTEM indicates the event was generated by system activity. Must be one of SYSTEM or USER.

Example

{
  "meta": {
    "status": "SUCCESS",
    "trace_id": "trc_6OI5blm21ZoSlq0PC3RqJV",
    "version": "2025-03-24"
  },
  "data": {
    "events": [
      {
        "event_id": "de_44NxVNmSMKAg4cvWgp362Q",
        "version": "v1",
        "workflow_id": "w_1rQYvnUQdcatd4TcZQu0l8",
        "subject_record_id": "sr_7KmNpQrStUvWxYz123456",
        "event_name": "FULFILLMENT_STATUS_CHANGED",
        "created_by": {
          "user_id": "user_123456789",
          "type": "USER"
        },
        "metadata": [
          {
            "fulfillment_id": "f_3bOToGJOGlIBSq6KjNUVo8",
            "old_fulfillment_status": "NEEDS_REVIEW",
            "new_fulfillment_status": "ACCEPTED"
          }
        ],
        "event_timestamp": "2025-01-01T12:00:00Z",
        "created_at": "2025-01-01T12:00:00Z",
        "updated_at": "2025-01-01T12:00:00Z"
      }
    ]
  }
}

Errors

Error CodeHTTP CodePossible Cause
BAD_REQUEST400Required parameters not provided.
ENTITY_NOT_FOUND400The workflow_id or optional fulfillment_id provided does not exist.