Process Instance in TrustX API

Introduction

This guide will describe how activities in a Process Definition can be navigated programatically using the API. Requests and responses are provided for each activity that can be interacted with.

Create a Process Token

Example Request:

HTTP
Copy

Example Response:

JSON
Copy

Create Process Instance

Example Request:

HTTP
Copy

Example Response:

JSON
Copy

Start a Process Instance

Example Request:

HTTP
Copy

Example Response:

JSON
Copy

Introduction Screen

Introduction activity in Process Designer

Introduction activity in Process Designer

Screen in Trust Web Flow:

Example Request:

HTTP
Copy

Example Response:

JSON
Copy
Capture Consent activity in the Process Designer

Capture Consent activity in the Process Designer

Screen in Trust Web Flow:

Example Request:

HTTP
Copy

Example Response:

JSON
Copy

Capture Face Image Screen

Capture Face Image activity in Process Designer

Capture Face Image activity in Process Designer

Screen in Trust Web Flow:

Example Request:

HTTP
Copy

Example Response:

JSON
Copy

Continue After Face Upload

Example Request:

HTTP
Copy

Example Response:

Success
Quality Failure (748)
Quality Failure (802)
Liveness Failure
Copy

Confirm Face Image

Confirm Face Image activity in the Process Designer

Confirm Face Image activity in the Process Designer

Example Request:

HTTP
Copy

Example Response:

Confirm Image Response
Recapture Image Response
Copy

Select Document Type Screen

Select Document Type activity in the Process Designer

Select Document Type activity in the Process Designer

Screen in Trust Web Flow:

Example Request:

HTTP
Copy

Accepted document types include:

  • "DRIVERS_LICENSE"
  • "ID_CARD"
  • "PASSPORT"
  • "OTHER"

countryCode is the 2 digit ISO country code: https://www.iso.org/obp/ui/#search

Example Response:

JSON
Copy

Capture Document Image (Front-Side)

Capture Document Image activity in the Process Designer

Capture Document Image activity in the Process Designer

Screen in Trust Web Flow:

Example Request:

HTTP
Copy

Example Response:

JSON
Copy

Capture Document Image (Back-side)

Capture Document Image activity in the Process Designer

Capture Document Image activity in the Process Designer

Example Request:

HTTP
Copy

Example Response:

JSON
Copy

Confirm Document Image

Select Additional Document Type

Example Request:

HTTP
Copy

Example Response:

JSON
Copy

Custom Data Form

Example Request:

HTTP
Copy

Example Response:

JSON
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard