Following the acquisition, Onfido is now known as Entrust.Read more
Onfido LogoOnfido Logo

Developers

Migrating to Workflow Studio from an API integration

Introduction

Workflow Studio is Entrust's comprehensive platform enabling you to design, orchestrate and implement identity journeys through an intuitive drag-and-drop interface, minimising the need for custom integration code. It provides a high level of configurability and adaptability and is our recommended method of integration.

This guide is designed for customers who are currently using our check-based and report-based products (also known as a Classic integration), but are looking to migrate to Workflow Studio. We recommend usage of our Identity Verification SDKs in conjunction with Workflow Studio for the best performance.

Here you will find guidance on the steps required to migrate from Classic to Workflow Studio, highlighting the key differences and similarities between the two integrations to help you identify the changes you need to make to start using Workflow Studio.

You will also learn about some of the benefits that come with integrating your indentity verfication flows using Workflow Studio.

Features unique to a Workflow Studio integration

Workflow Studio is a powerful and intuitive platform for building identity journeys. The no-code, drag-and-drop environment of the Workflow Builder enables you to efficiently create and deploy verification workflows, offering the flexibility to quickly tailor end-user journeys to cater for specific use cases, geographic regions and risk profiles. Whether your goal is to reduce fraud, meet regulatory compliance standards or improve the user experience and success of customer onboarding, Workflow Studio provides the tools to adapt quickly and effectively.

Functionalities exclusively available on Workflow Studio include:

  • Smart Capture Link: a low- to no-code frontend solution hosted by Entrust, enabling you to build and deploy identity verification workflows with minimal engineering effort

  • A wide range of workflow templates tailored to key use cases and regional compliance requirements, helping you accelerate deployment while staying aligned with local regulations

  • Workflows are dynamically linked to our SDKs, meaning that changes made in Workflow Studio are automatically reflected in your integrated applications, reducing maintenance overhead and improving agility

  • Workflow analytics offer visibility into how identity journeys are performing by identifying potential bottlenecks and drop-off points. This informs data-driven decisions to rapidly iterate on workflows in real time to improve conversion rates, enhance security and streamline the end-user experience

Additionally, a range of Entrust Identity Verification solutions are exclusively available through Workflow Studio, including our suite of ETSI-certified compliance solutions and biometric authentication

Migrating your account settings

When migrating to Workflow Studio, we recommend you keep using your existing Entrust account, as all of your historical verification data will still be available to take advantage of products such as Known Faces and Repeat Attempts. At the same time, all of your existing Applicant IDs will remain accessible for re-use.

Once Workflow Studio has been activated for your account, your Dashboard should then include both your Classic check-related pages (legacy), as well as Workflow Studio pages (see image below). You can reach out to Customer Support or your Customer Success Manager to set this up for you.

Please note: Studio Workflows and Classic checks are entirely separate and independent of one another. If required, you can continue to run API-based checks in the same account as you run Studio workflows, even using the same Applicant.

Studio and Classic on Dashboard

Classic checks and Studio workflows can be managed on your existing Dashboard account.

Moving from a Classic+SDK to Workflow Studio+SDK integration

Summary of changes

The table below offers a summary of the differences and similarities between Classic check-based integrations and Workflow-based integrations using Workflow Studio. Each of these integration steps is described in more detail in the paragraphs below.

ActionClassicWorkflow Studio
Create an ApplicantCreate an Applicant using the Create Applicant endpointCreate an Applicant using the Create Applicant endpoint
Generate SDK TokenGenerate an SDK Token using the SDK Token endpointWorkflow Studio exposes the SDK token in the workflow run payload returned by the API when a workflow run is created or retrieved
Initialise SDKEach of our SDKs (iOS, Android, Web) have their own methods for configuration and initialisation in a Classic integration (specific details can be found in the SDK initialisation section below)In Workflow Studio, iOS, Android and Web maintain their own method of configuration, the key difference being a Workflow Run ID is passed in when the SDK is initialised
SDK callbacksOur iOS, Android and Web SDKs have their own methods for configuring callbacksCallbacks and error handling are handled similarly. There are some differences highlighted in the paragraphs below (iOS, Android, Web)
Customising the SDKEach of our SDKs (iOS, Android, Web) have their own methods for customisation (specific details can be found in the SDK customisation section below)There are some differences in customisations available in Workflow Studio (specific details can be found in the SDK customisation section below)
Create a verificationInitiate an identity journey using the Create Check endpointIn Workflow Studio, identity journeys are managed through workflows, initiated using the Create Workflow Run endpoint. Do not create checks as these are not applicable or relevant in Workflow Studio
Receive webhookEntrust offers a number of Check and Report webhook events for Classic integrationsCreate a new webhook in the Dashboard and use the workflow_run.completed event. Other Workflow and Task webhook events are also available
Retrieving verification resultsThe results of a verification check are obtained by using the Retrieve Check endpoint and are returned in the result attributeWe recommend you use the workflow_run.completed webhook event, which contains the Workflow Run object, including the Workflow result.
If you are unable to use webhooks, then use the Retrieve Workflow Run endpoint, results are returned in the status attribute
Retrieving report results and properties (such as result, sub-Result and breakdowns)Use the Retrieve Report endpoint, results are found in the result, sub-result and breakdown attributesThe recommended guidance is dependent on the use case of Report results and properties. Find more details in the paragraphs below
Downloading media (such as Document photo, Live photos or Live videos)Document: Make a call to the List Documents endpoint to obtain the Document IDs associated with an Applicant, then use the Document ID in a call to the Download Document endpoint.

The same pattern applies for the other media types: Live Photos, Live Videos and Motion Captures
Document: In Workflow Studio the Workflow Output feature can be used to obtain the Document IDs associated with an Application from a given Workflow. This can then be used in a call to the Download Document endpoint.

The same pattern applies for the other media types: Live Photos, Live Videos and Motion Captures

The two flow charts below outline the main differences when creating identity verfication checks in Classic and Workflow Studio.

Classic

Verification steps in a Classic integration

Workflow Studio

Verification steps in a Studio integration

API and SDK versioning

API versioning
In order to use Workflow Studio, you must be using v3.4 or later of the Entrust Identity Verification API. We recommend you switch to the most recent available version when making integration changes.

SDK versioning
The minimum required SDK version for Workflow Studio depends on the specific workflows you create. This is because different Workflow Studio capture tasks have different minimum supported SDK versions. When creating a workflow in the Workflow Builder, the minimum supported SDK versions are displayed in the right-hand configuration panel.

Entrust always recommends being on the latest version of the SDK to allow you to take full advantage of Workflow Studio's capabilities, as well as benefit from the best SDK user experience and performance.

Create an Applicant

Creating an identity journey begins by creating an API token and an Applicant ID. The process for doing this is identical for both Classic and Studio integrations, and documentation can be found on our API reference.

Changes to the SDK in Workflow Studio

Obtaining an SDK Token

Workflow Studio generates and exposes SDK tokens in the workflow run payload returned by the API when a workflow run is created.

Initialising the SDK

Under a Classic integration, each SDK has its own method of initialisation. Once initialised, the SDK can then capture the end-user's (Applicant) document, live photos or videos, as well as run any of the reports defined in the steps of the flow configuration. Documentation for initialising the SDK using a Classic integration can be found here: iOS, Android, Web, React Native and Flutter.

With Workflow Studio, the key difference when initialising each SDK is that you must pass the Workflow Run ID into the initialisation code, together with the SDK token. The SDK communicates directly and dynamically with any active Studio workflows you have built for your verification flows, displaying the relevant screens to ensure the correct capture and upload of end-user information (such as identity documents, live photos and videos). This removes the need to configure any flow steps directly in the SDK as these will be included when the workflowRunId attribute is passed into the SDK initialisation code. Once the SDK steps are complete, the captured media will then be automatically passed to the relevant reports as specified by the tasks in the workflow. Documentation for initialising the SDK using a Workflow Studio integration can be found here: iOS, Android, Web, React Native and Flutter.

Please note: You must never include both the Classic steps attribute and the Workflow Studio workflowRunId attribute in the same initialisation code. Classic will override Workflow Studio, resulting in an abandoned workflow status, with any captured documents and images ending up in the Classic environment.

SDK callbacks

SDK callbacks and error types are handled in largely the same way in Classic and Workflow Studio, however there are some minor differences.

You can access SDK callbacks documentation for the Classic integration here: iOS, Android and Web, and likewise for the Studio integration here: iOS, Android and Web.

Please note: In a Classic integration, the complete or success callback can be used to help trigger the creation of a check. In Workflow Studio, this action is no longer relevant as the workflow will automatically handle the creation of the appropriate reports, based on the report tasks configured in a workflow.

Customising the SDK

Flow Customisation: For both a Classic or Workflow Studio integration, you can customise the flow of an end-user's identity journey (skipping the welcome screen, for example). In Workflow Studio, flow customisation is handled by the design and configurations in the Workflow Builder. Flow customisations available in a Classic integration are detailed in our SDK documentation: iOS, Android, Web.

UI Customisation: Classic customers can customise the UI of an end-user's identity journey (such as colour and font). The customisations available are described in our documentation (iOS, Android, Web) and are also applicable for Workflow Studio integrations.

Language Localisation: Classic customers can localise the language used in the SDK experience. The customisations available are described in our documentation (iOS, Android, Web) and are also applicable for Workflow Studio integrations.

Creating a verification and retrieving verification results

Creating a verification

With a Classic integration, customers can implement identity journeys using the checks endpoint to Create Checks.

In Workflow Studio, checks must not be used and are not applicable. Instead, everything revolves around designing workflows and using the Workflow Runs endpoints. The process begins by making a call to Create Workflow Runs, providing the ID of the workflow in question, as well as an Applicant ID.

Retrieving verification results

Classic customers use the Retrieve Check endpoint to obtain the check result.

In Workflow Studio, this is replaced by the Retrieve Workflow Run endpoint, with results found in the status attribute. Many customers use webhooks to trigger the retrieval of results, and therefore in Workflow Studio we recommend you use the workflow_run.completed webhook event to retrieve the workflow result. In this webhook event, the resource attribute contains the Workflow Run object described above. More details on webhooks can be found in our documentation.

Obtaining report results and properties

In a Classic integration, the report results, breakdowns and properties of a verification check can be obtained using the Retrieve Report endpoint. In a Studio integration, how these results are retrieved depends on how you as a customer want to consume the data.

Building backend logic
Some customers may use the report results, breakdowns and/or properties to build logic and orchestrate their identity verification flows in their backend. In a Classic integration, this is done using the Retrieve Report endpoint. In Workflow Studio, however, this logic is now handled within the workflow. Therefore, it is recommended to stop consuming data from the Reports endpoint as it is no longer needed.

Retrieving report data
Some customers require attributes from the Reports endpoint in order to feed into their internal systems (such as passing the extracted Document properties and sub-results into a case management system). With Workflow Studio, this can be done in the Workflow Builder by configuring Workflow output (see image below). This allows you to define any required output properties and then retrieve data via the Output object returned by the Retrieve Workflow Run endpoint.

A workflow can be configured to output specific report attributes or all attributes from the full report in a single output property. Please refer to our Studio product guide for more detailed information.

Workflow output

Results of a Studio workflow can be defined as Workflow Output data.

Other uses
If the recommendations above do not satisfy your retrieval needs, please reach out to Customer Support or your Customer Success Manager.

Receiving webhooks

Entrust provides webhooks to alert you of changes in the status of your verifications.

With a Classic integration, this was done by configuring Check or Report webhook events (such as check.completed or report.completed).

In Workflow Studio, the workflow_run.completed webhook event should be created from the Dashboard and used (see image below). This webhook event also contains the Workflow Run object within it and can therefore be used to retrieve the results of the workflow.

The Webhook object is documented here, and the full list of webhook events is listed here.

Studio webhooks

Workflow Studio has its own set of webhook events that can be defined in your Dashboard.

Downloading media

For customers who need to download media (such as images of captured documents or selfie photos and videos), the Classic integration offers a range of API endpoints. Using a Document ID obtained via the List Documents endpoint, a call to the Download Document endpoint will return an image of a captured document. The same pattern applies for all other Media types: Live Photos, Live Videos and Motion Captures.

For Workflow Studio, the same process can also be utilised. However, in order to retrieve the Media ID (Document ID, for example) for a given Workflow Run ID, it is recommended to use the Workflow Output feature. In the image below, you can see how the document photo ID and selfie photo ID have been defined in the Workflow output. These properties will then be available to retrieve from the Retrieve Workflow Run endpoint in the output attribute. By doing so, you will be able to:

  • establish which media was uploaded for each specific flow for that applicant (each applicant may go through different flows)
  • differentiate between multiple media when you, for example, require different document types to be captured in the same flow (such as driving licence and passport)

Download media