workflow.list

Retrieve a comprehensive list of all Workflow entities within a Subject Record.

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

Usage Info

This method returns all Workflow entities associated with a specific Subject Record, providing a complete view of workflows linked to the Subject Record. Each Workflow details are included respective to the workflow type.

Request

Authentication: KSig1-HMAC-SHA256

Parameters

ParameterTypeRequiredDescription
subject_record_idstringYesThe identifier for the Subject Record from which to list all the Workflow objects.

Example

{
  "subject_record_id": "sr_57WfSCnafMnxDiWMKcy3EW"
}

Response

Data

ParameterTypeDescription
workflowsarrayAn array of workflow objects that contain information about Workflows within the Subject Record.

If the Subject Record has no Workflow objects, the array will be empty.

Workflow Parameters

ParameterTypeDescription
workflow_idstringThe ID for the Workflow.
typestringThe type of Workflow. Must be one of WORKFLOW_TYPES.
subject_record_idstringThe Subject Record to associate with the Workflow. If the value is not supplied then a new Subject Record of the appropriate type is created.
statestringThe state of the Workflow. Must be one of WORKFLOW_STATES.
detailsobjectOne of the Workflow Details object.
started_atstringThe date-time when the Worfkow was started.

The value will be in ISO 8601 date and time format (YYYY-MM-DDTHH:mm:ss.SSSZ).
ended_atstringThe date-time when the Workflow was ended.

The value will be in ISO 8601 date and time format (YYYY-MM-DDTHH:mm:ss.SSSZ).
created_atstringThe date-time when the Worfkow was created.

The value will be in ISO 8601 date and time format (YYYY-MM-DDTHH:mm:ss.SSSZ).
updated_atstringThe date-time when the Workflow was last updated. If there has been no update, the value will be the same as the created_at value.

The value will be in ISO 8601 date and time format (YYYY-MM-DDTHH:mm:ss.SSSZ).

Example

{
  "meta": {
    "status": "SUCCESS",
    "trace_id": "trc_6OI5blm21ZoSlq0PC3RqJV",
    "version": "2025-03-24"
  },
  "data": {
    "workflows": [
      {
        "workflow_id": "w_2dJFFW3HY8a3zOjqwUXhQc",
        "type": "BUSINESS_APPLICATION",
        "subject_record_id": "sr_163Gh1ONk6BCHF9iYVDHcv",
        "state": "STARTED",
        "details": {
          "business_application_details": {
            "applying_user": {
              "email": "[email protected]"
            },
            "referrer_value": "UAYACG123"
          }
        },
        "started_at": "2025-01-18T07:29:18.472Z",
        "ended_at": "2025-01-18T07:29:18.472Z",
        "created_at": "2025-01-18T07:29:18.472Z",
        "updated_at": "2025-01-18T07:29:18.472Z"
      }
    ]
  }
}

Errors

Error CodeHTTP CodeDescription
BAD_REQUEST400Required parameters not provided.
ENTITY_NOT_FOUND400The subject_record_idprovided does not exist.