Skip to content

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
The ports of “Onfido (Entrust)”: what comes in on the left, what goes out on the rightInput: main. Outputs: main. An error output appears when its failure setting is “Follow the Error output”. It needs a Onfido (Entrust) connection.Onfido (Entrust)onfido.apimainmainerror · only with “Follow the Error output”Connection: Onfido (Entrust)
The ports of “Onfido (Entrust)”: what comes in on the left, what goes out on the right

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 applicant
    • uploadDocument — Upload an ID document
    • createWorkflowRun — Start a verification workflow
    • getWorkflowRun — Get a workflow run result
    • createCheck — Start a check
    • getCheck — Get a check
    • downloadCheck — Bring back the PDF report

firstName ​

First name

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 200 characters at most
  • Shown when: action is createApplicant
  • Expressions: {{ }} accepted

lastName ​

Last name

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 200 characters at most
  • Shown when: action is createApplicant
  • Expressions: {{ }} accepted

email ​

Email address

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 320 characters at most
  • Example: {{ email.from.email }}
  • Shown when: action is createApplicant
  • Expressions: {{ }} accepted

dob ​

Date of birth (YYYY-MM-DD)

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 10 characters at most
  • Shown when: action is createApplicant
  • 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: action is one of uploadDocument, createWorkflowRun, createCheck
  • Expressions: {{ }} accepted

documentType ​

Document type

  • Type: One choice (options)
  • Required: No
  • Default: national_identity_card
  • Options:
    • national_identity_card — National ID card
    • passport — Passport
    • driving_licence — Driving licence
    • work_permit — Work permit
    • unknown — Other or unknown
  • Shown when: action is uploadDocument

side ​

Side — Required for a two-sided document (card, licence).

  • Type: One choice (options)
  • Required: No
  • Default: front
  • Options:
    • none — Not specified
    • front — Front
    • back — Back
  • Shown when: action is uploadDocument

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 with image/*.
    • byName — By file name: By name pattern: *.pdf, invoice-*.
  • Shown when: action is uploadDocument

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: action is uploadDocument
  • 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: action is uploadDocument
  • 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: action is createWorkflowRun
  • Expressions: {{ }} accepted

workflowRunId ​

Workflow run

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 80 characters at most
  • Example: {{ data.onfido.workflowRunId }}
  • Shown when: action is getWorkflowRun
  • 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: action is createCheck
  • Expressions: {{ }} accepted

checkId ​

Check

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 80 characters at most
  • Shown when: action is one of getCheck, 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.

Loop & Roll — the workflow builder for email.