Create a session
Last updated
Last updated
POST https://api.complycube.com/v1/flow/sessions
Creates a session.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
checkTypes
attributeThe checkTypes
attribute represents the check types you would like to perform on your client. ComplyCube will generate the relevant UI capture screens based on the check types provided.
documentTypes
objectmessages
objectcontent
objectContent-Type
*
string
The content-type must always be set to application/json
.
Authorization
*
string
The API live
or test
key
clientId
*
string
The ID of the client.
checkTypes
*
string
An array of check types. Valid values include:
1. standard_screening_check
2. extensive_screening_check
3. document_check
4. identity_check
5. enhanced_identity_check
6. proof_of_address_check
7. face_authentication_check
8. age_estimation_check
successUrl
*
array
The URL to which ComplyCube should send clients when KYC and identity verification is complete.
cancelUrl
*
array
The URL the client will be directed to if they decide to cancel and return to your website.
enableMonitoring
boolean
Determines whether continuous monitoring is enabled for selected check types. When not provided, it defaults to false.
language
string
The UI language. Valid values include:
en
(default)
ar
de
es
fr
hi
hk
id
it
ja
ko
nl
no
pl
pt
sv
th
vi
zh
theme
string
The UI theme to apply. Valid values include:
light
(default)
dark
allowDocumentUpload
boolean
Indicates whether to force users to capture their documents using their phones. This removes the document upload option. When not provided, it defaults to true.
supportEmail
string
The support email address that appears on the UI for your clients. When not provided, no email address will be displayed.
messages
object
The custom messages to display on the UI for your users. Also, see the messages object below.
documentTypes
object
The list of ID document types the client can select. When not provided, your client can select any of the types we support.
Attribute
Type
Description
passport
boolean
Enable or disable passport selection. (Optional)
driving_license
boolean
Enable or disable driving license selection. (Optional)
residence_permit
boolean
Enable or disable residence permit selection. (Optional)
national_identity_card
boolean
Enable or disable national identity card selection. (Optional)
Attribute
Type
Description
intro
object
The intro screen message content. See the content object below. (Optional)
completion
object
The completion screen message content. See the content object below. (Optional)
Attribute
Type
Description
heading
string
The heading of the page. (Optional)
message
string
The message body of the page. (Optional)