English
Onfido (Entrust)
Verifies an identity with Onfido: creates the applicant, uploads the document received by email, starts a workflow and gives its link, reads the result, brings back the PDF report.
The Onfido node runs an identity check end to end: applicant, document received by email, workflow whose link is sent to the customer, result, PDF report attached to the run.
It works with a Onfido (Entrust) connection. See Onfido (Entrust).
At a glance
- Type:
onfido.api· version 1 - Category: Data
- Kind: Step — one stage of a run
- Effect: Writes outside (
external_write) — writes outside Loop & Roll; described instead of performed during a test run - Needs a carrier email: No
- Connection: Onfido (Entrust)
- Inputs:
main - Outputs:
main
Connection
This node needs a Onfido (Entrust) connection.
Parameters
connection
Onfido connection — The Onfido connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
action
Action
- Type: One choice (
options) - Required: Yes
- Default:
createApplicant - Options:
createApplicant— Create an applicantuploadDocument— Upload an ID documentcreateWorkflowRun— Start a verification workflowgetWorkflowRun— Get a workflow run resultcreateCheck— Start a checkgetCheck— Get a checkdownloadCheck— Bring back the PDF report
firstName
First name
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 200 characters at most
- Shown when:
actioniscreateApplicant - Expressions:
{{ }}accepted
lastName
Last name
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 200 characters at most
- Shown when:
actioniscreateApplicant - Expressions:
{{ }}accepted
email
Email address
- Type: Text (
string) - Required: No
- Default:
""(empty) - 320 characters at most
- Example:
{{ email.from.email }} - Shown when:
actioniscreateApplicant - Expressions:
{{ }}accepted
dob
Date of birth (YYYY-MM-DD)
- Type: Text (
string) - Required: No
- Default:
""(empty) - 10 characters at most
- Shown when:
actioniscreateApplicant - Expressions:
{{ }}accepted
applicantId
Applicant — The Onfido applicant identifier.
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 80 characters at most
- Example:
{{ data.<step>.applicantId }} - Shown when:
actionis one ofuploadDocument,createWorkflowRun,createCheck - Expressions:
{{ }}accepted
documentType
Document type
- Type: One choice (
options) - Required: No
- Default:
national_identity_card - Options:
national_identity_card— National ID cardpassport— Passportdriving_licence— Driving licencework_permit— Work permitunknown— Other or unknown
- Shown when:
actionisuploadDocument
side
Side — Required for a two-sided document (card, licence).
- Type: One choice (
options) - Required: No
- Default:
front - Options:
none— Not specifiedfront— Frontback— Back
- Shown when:
actionisuploadDocument
selection
Attachments to use
- Type: One choice (
options) - Required: Yes
- Default:
all - Options:
all— All attachments: Those of the triggering email, then the files added by earlier steps (a fetched deed, a signed PDF), in that order.first— The first one only: The first attachment, when only one matters.byMime— By file type: By MIME type:application/pdf, or a whole family withimage/*.byName— By file name: By name pattern:*.pdf,invoice-*.
- Shown when:
actionisuploadDocument
mime
File type — Exact MIME type (application/pdf) or a whole family (image/*). Left empty, no attachment is kept.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Example:
application/pdf - Shown when:
actionisuploadDocument - Expressions:
{{ }}accepted
namePattern
File name — Simple pattern: * matches anything, ? one character (*.pdf, invoice-*). Case is ignored.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Example:
*.pdf - Shown when:
actionisuploadDocument - Expressions:
{{ }}accepted
workflowId
Workflow (Workflow ID) — The workflow identifier, in Onfido Studio.
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 80 characters at most
- Shown when:
actioniscreateWorkflowRun - Expressions:
{{ }}accepted
workflowRunId
Workflow run
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 80 characters at most
- Example:
{{ data.onfido.workflowRunId }} - Shown when:
actionisgetWorkflowRun - Expressions:
{{ }}accepted
reportNames
Reports — Comma-separated, as Onfido names them (document, facial_similarity_photo, watchlist_standard…).
- Type: Text (
string) - Required: No
- Default:
document - 500 characters at most
- Shown when:
actioniscreateCheck - Expressions:
{{ }}accepted
checkId
Check
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 80 characters at most
- Shown when:
actionis one ofgetCheck,downloadCheck - Expressions:
{{ }}accepted
Outputs
main— Taken once the call to Onfido (Entrust) succeeds. An error response from Onfido (Entrust) fails the step instead.
Data produced
What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).
{{ data.<step>.applicantId }}—string. Create an applicant: its identifier.{{ data.<step>.link }}—string. Start a workflow: the link to send to the customer.{{ data.<step>.status }}—string. Workflow or check: the status (approved, declined, review…).{{ data.<step>.attachmentPosition }}—number. PDF report: the attachment to cite in an email.{{ data.<step>.simulated }}—boolean. true when the write was described instead of performed (test run).{{ data.<step>.summary }}—string. The one-line summary in the member’s language.