Skip to main content

Event types

Webhook payloads describe a process state transition. This page documents the payload schema and the full enumeration of lastEvent values.

Payload schema

FieldTypeDescription
processIdstring (UUID)ID of the transaction.
statestringCurrent state of the transaction. Currently: PROCESS_STATE_FINISHED.
resultstringOutcome of the finished process. Present when state=PROCESS_STATE_FINISHED. Possible values: ok, expired, invalid_identity.
flowstringFlow that was executed for this transaction (e.g., id, idtoken).
lastEventstringLast event of the transaction. Returned only when result=expired.
lastEventDescriptionstringHuman-readable description of lastEvent. Returned only when result=expired.
Status vocabulary

The state field in webhook payloads uses the PROCESS_STATE_* prefix. This is a distinct vocabulary from the result and status fields returned by the GetProcess endpoint, which use PROCESS_RESULT_*. Do not treat them as interchangeable.

Example payload

Finished — successful

{
"processId": "8263a268-5388-492a-bca2-28e1ff4a69f0",
"state": "PROCESS_STATE_FINISHED",
"flow": "id",
"result": "ok"
}

Finished — expired

{
"processId": "8263a268-5388-492a-bca2-28e1ff4a69f0",
"state": "PROCESS_STATE_FINISHED",
"flow": "id",
"result": "expired",
"lastEvent": "EVENT_TYPE_SESSION_ENDED",
"lastEventDescription": "Session ended by timeout or by new session created"
}

lastEvent enumeration

The full list of values that may appear in lastEvent:

EventDescription
EVENT_TYPE_PROCESS_CREATEDProcess created
EVENT_TYPE_QR_CODE_READQR code was read
EVENT_TYPE_PROCESS_STARTED_BY_USERProcess started by user
EVENT_TYPE_IDENTITY_VALIDATION_STEP_FINISHEDIdentity validation step finished
EVENT_TYPE_DOCUMENT_STEP_STARTEDDocument step has started
EVENT_TYPE_DOCUMENT_PHOTO_CAPTUREDPhoto of the document taken
EVENT_TYPE_DOCUMENT_UPLOADED_FROM_GALLERYDocument uploaded from gallery
EVENT_TYPE_DOCUMENT_STEP_FINISHEDDocument step finished
EVENT_TYPE_SESSION_ENDEDSession ended by timeout or by new session created
EVENT_TYPE_ERROR_ON_DOCUMENT_STEPError on document step
Configurable handling

The set of events may evolve. Treat the events your endpoint reacts to as configuration, not hard-coded constants — that way new events can be enabled without a deploy.

Reading the full process result

The webhook payload signals that a process finished and includes the high-level outcome in the result field. To retrieve the full details — capture data, biometric scores, document fields, etc. — call the appropriate GetProcess endpoint: