Create a session (via workflows)

URL

POST https://api.complycube.com/v1/flow/sessions

Creates a session.

circle-info

This enables you to create a session using workflows, which is the recommended integration approach.

Headers

Name
Type
Description

Content-Type*

string

The content-type must always be set to application/json.

Authorization*

string

The API live or test key

Body

Name
Type
Description

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:

  1. light (default)

  2. 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.

Example request

Example response