ReferenceREST API

Schemas

Shared request and response objects of the REST API.

View as Markdown

CreatedSession

FieldTypeRequiredNotes
idstringyes—
statuscreated | started | in_progress | processing | approved | declined | review | resubmission_requested | expired | cancelledyes—
urlstringyes—
client_tokenstringyes—
expires_atstringyes—

Error

FieldTypeRequiredNotes
errorobjectyes—
error.typestringyes—
error.codestringyes—
error.messagestringyes—
error.paramstring—
error.detailsany—
error.request_idstring—

CreateSession

FieldTypeRequiredNotes
workflow_idstringyes—
reference_idstringYour user's id — max length 128
countrystringApplicant's country; defaults to the workflow's — length 2
prefillobject—
prefill.phonestring—
prefill.emailstringformat email
prefill.full_namestring—
localestring—
redirect_urlstringformat uri
metadataobject (map)—
expires_inintegerSeconds — min 300, max 2592000

Session

FieldTypeRequiredNotes
idstringyes—
objectsessionyes—
modetest | liveyes—
typekyc | kybyes—
statuscreated | started | in_progress | processing | approved | declined | review | resubmission_requested | expired | cancelledyes—
countrystringyes—
workflow_idstringyes—
reference_idstring | nullyes—
parent_session_idstring | nullyes—
decisionstring | nullyes—
decision_sourcestring | nullyes—
stepsobject (map)yes—
metadataobject (map)yes—
expires_atstringyes—
created_atstringyes—
completed_atstring | nullyes—
checksCheck[]—
applicantobject | null—
businessobject | null—
related_sessionsobject[]—
related_sessions[].idstringyes—
related_sessions[].rolestring | nullyes—
related_sessions[].statusstringyes—
duplicatesobject[]yesEarlier sessions in this project that look like the same person or business
duplicates[].session_idstringyes—
duplicates[].signalsstring[]yes—

Check

FieldTypeRequiredNotes
idstringyes—
stepstring | nullyes—
capabilitystring | nullyes—
generic_keystringyes—
check_keystringyes—
providerstring | nullyes—
statusstringyes—
verified_bysource | reviewer | nullyessource: the issuing registry or a cryptographic check answered. reviewer: provider manual — a reviewer compared the uploaded document (no registry call). null: not decided yet.
scorenumber | nullyes—
error_codestring | nullyes—
from_cachebooleanyes—
resultobject | null—
created_atstringyes—
finished_atstring | nullyes—

Decision

FieldTypeRequiredNotes
outcomeapproved | declined | resubmission_requestedyes—
reason_codestringyesmax length 64
notestringmax length 2000
stepsstring[]For resubmission: steps the applicant must redo

DirectCheckInput

FieldTypeRequiredNotes
countrystringlength 2

WebhookEndpointCreate

FieldTypeRequiredNotes
urlstringyesformat uri
eventsstring[]default ["*"]

On this page