client.sessions. They manage hosted verification sessions. Request and response schemas are documented in full on the linked REST endpoints — this page covers the SDK signatures, types, and examples.
create(input)
| Parameter | Type | Required | Description |
|---|---|---|---|
input.firstName | string | Yes | Applicant’s first name |
input.lastName | string | Yes | Applicant’s last name |
input.email | string | Yes | Applicant’s email address |
input.phone | string | Yes | Applicant’s phone number (E.164) |
input.externalId | string | No | Your internal reference ID |
input.workflowId | string | No | Workflow to run |
input.redirectUrl | string | No | URL to redirect the user to after verification |
input.sendEmailInvite | boolean | No | Send an email invitation |
input.sendPhoneInvite | boolean | No | Send an SMS invitation |
SessionCreateResult:
ValidationError, AuthenticationError, RateLimitError, DeepIDVError.
retrieve(sessionId)
| Parameter | Type | Required | Description |
|---|---|---|---|
sessionId | string | Yes | Session ID from create() |
SessionRetrieveResult:
sessionRecord is the full Session object — it carries status, sessionProgress, and an analysisData block with the document OCR, face-match, and liveness results. See Navigating analysis data for the walkthrough.
Throws ValidationError, AuthenticationError, NotFoundError, DeepIDVError.
list(params?)
| Parameter | Type | Required | Description |
|---|---|---|---|
params.limit | number | No | Max results per page |
params.offset | number | No | Starting offset |
params.status | SessionStatus | No | Filter: PENDING, SUBMITTED, VERIFIED, REJECTED, VOIDED |
PaginatedResponse<Session>:
updateStatus(sessionId, status)
VERIFIED, REJECTED, and VOIDED are valid targets — PENDING and SUBMITTED are managed by the API.
| Parameter | Type | Required | Description |
|---|---|---|---|
sessionId | string | Yes | Session ID |
status | 'VERIFIED' | 'REJECTED' | 'VOIDED' | Yes | New status |
SessionRetrieveResult — the updated session details.
Throws ValidationError (invalid status), AuthenticationError, NotFoundError, DeepIDVError.