Create a session

AI Tools

Please use our Yoti SDKs to automatically build the relevant request.

The Yoti SDKs are available via popular dependency management systems.

Javascript
PHP
Python
Java
Go
C#
Copy

Once you have added the Yoti SDK dependency to your project, you can use it to build and send your request. See the code snippets below for examples of how to construct the promise.

Javascript
PHP
Python
Java
Go
C#
Copy

Creating Session Object

Below is the full payload example of the request for creating the session.

You will need to specify the identity profile scheme you wish to use:

  • RTW/RTR
  • DBS
  • IDENTITY
  • CUSTOM

Payload Examples

RTW
DBS
IDENTITY
CUSTOM
Copy

Example Response

If the request is successful and a session is generated the API will send a response in the form:

JSON
Copy
ResponseDescription
client_session_token_ttlTime in seconds until the client session expires
client_session_tokenUsed to authenticate the session
session_idID of the session
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard