Create a session (via workflows)
URL
POST https://api.complycube.com/v1/flow/sessions
Creates a session.
Headers
Content-Type*
string
The content-type must always be set to application/json.
Authorization*
string
The API live or test key
Body
clientId*
string
The ID of the client.
workflowTemplateId*
string
The ID of the workflow template. This automatically invokes its active version. If no version is active, the request will fail.
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.
theme
string
The UI theme to apply. Valid values include:
light(default)dark
supportEmail
string
The support email address that appears on the UI for your clients. When not provided, no email address will be displayed.
shortUrl
boolean
Indicates whether the generated URL should be shortened. Short URLs are useful for specific use cases, such as sending links via SMS. When not provided, this defaults to false.
It is recommended to keep the default unless you have a specific need for a short URL.

