Skip to main content

Session start

The entry point of every flow, optionally declaring data blocks pre-supplied at session creation.​

Every flow must contain exactly one Start step with the fixed ID "START". It is the first step executed when a session is created. The Start step is not user-facing and does not render any Player UI.

Use the inputs option to declare which data blocks the calling system supplies at session creation time. Each input has an alias, a name you choose, so a flow can take several data blocks of the same type, for example an applicant and a guarantor identity.


Key features​

  • Single instance: Every flow must have exactly one Start step; its id must always be the literal string "START".
  • Pre-supplied data blocks: Declare in options.inputs the data blocks you provide when you create the session, each under its own alias.
  • Several inputs of one type: Two inputs can share a data block type under different aliases. Downstream steps choose which one to read in their input mapping.
  • Required or optional: Mark an input "required": false to let the caller omit it.
  • No Player UI: The Start step is not user-facing; it never renders a screen.
  • Exactly one outgoing transition: The Start step must have exactly one next transition leading to the first step of the flow.

Configuration​

OptionTypeRequiredDescription
inputs"basicIdentity" | "extendedIdentity" | "documentData" | "documentImages" | "documentVerification" | "pepAndSanctionsResults" | "outcomeStatus" | "comparisonResults" | "userReference" | "biometricSamples" | "authenticatorCredential" | "deviceSignals" | "authenticationResult" | "documentsToSign" | "signedDocumentsPackage" | "presentationResult" | "digitalSignals" | "deviceInfo" | "deviceContext" | "deviceRiskAssessment" | "amlScreeningResults" | "eIDMethodSelection" | "verification" | "userContact" | "fundingSource" | "residentialAddress" | "companyReference" | "company" | "messageTemplate"[] | objectNoData blocks the calling system supplies at session creation, as a map of input alias to { type, required }. The legacy form, a list of data block types, declares one required input per type, aliased by the type name.

Input declaration​

inputs maps each alias to the data block type and whether the caller must send it (required). These types can be supplied at session creation: basicIdentity, extendedIdentity, documentData, documentImages, documentVerification, pepAndSanctionsResults, biometricSamples, documentsToSign, eIDMethodSelection, userContact, companyReference. An input of any other type cannot be supplied: the session is rejected if that input is required or if you send it.

In Studio, edit the inputs in the Start step's JSON view. Studio adds and removes the type-named inputs the flow's steps need as you edit, and keeps the aliases you declared.

Alias rules:

  • An alias starts with a lowercase letter and contains only letters and digits, for example applicant or ibanDocument.
  • userReference cannot be an alias. It is always generated from metadata.subjectId (see Create a session).
  • An alias named after a data block type must have that type. basicIdentity must be a basicIdentity.
Legacy list form

Flows created before aliases declare inputs as a list of types, for example ["basicIdentity"]. This form keeps working: each type is one required input whose alias is the type name. Studio rewrites it to the map form the next time you edit the flow.

How downstream steps read an input​

An input whose alias is its type name (for example basicIdentity) is available to every downstream step, like a data block produced by a step. An input with any other alias (for example applicant) is read only by steps that select it in their input mapping:

  • If the Start step has only one input of that type, "START" is enough.
  • If it has several inputs of that type, name the one you want: { "step": "START", "alias": "guarantor" }.

Studio fills in the input mapping for you when the choice is unambiguous and lists every Start input of the right type in the step's source dropdown.

Example configuration — one input per type​

Most flows take one data block of each type. Alias each input by its type name, and every downstream step reads it without any input mapping:

{
"id": "START",
"type": "START",
"options": {
"inputs": {
"basicIdentity": { "type": "basicIdentity", "required": true }
}
},
"next": [
{
"port": "continue",
"id": "pep-check"
}
]
}

The session is created with "input": { "basicIdentity": { ... } }, the same payload as for the legacy ["basicIdentity"] form.

Example configuration — two inputs of the same type​

{
"id": "START",
"type": "START",
"options": {
"inputs": {
"applicant": { "type": "basicIdentity", "required": true },
"guarantor": { "type": "basicIdentity", "required": true }
}
},
"next": [
{
"port": "continue",
"id": "identity-comparison"
}
]
}

A downstream Identity data comparison (v2) step compares the two inputs:

"inputMapping": {
"leftOperand": { "step": "START", "alias": "applicant" },
"rightOperand": { "step": "START", "alias": "guarantor" }
}

When you create a session, the input object is keyed by alias:

"input": {
"applicant": { "givenName": "Erika", "familyName": "Mustermann", "birthDate": "1964-08-12" },
"guarantor": { "givenName": "Max", "familyName": "Mustermann", "birthDate": "1962-03-01" }
}

Input data blocks​

This step does not consume any input data blocks.


Routes​

RouteDescription
continueProceeds to the first step of the flow, carrying the inputs supplied at session creation.

Output data blocks​

RouteData blocks produced
continueInput data blocks declared in options.inputs