Create a Client Session

Create a new client session

Creates a new client session.

/client_sessions/create

post

Creates a new client session.

Authorizations
seam-publishable-keystringRequired
Body
customer_idstringOptional

Customer ID that you want to associate with the new client session.

customer_keystring Β· min: 1Optional

Customer key that you want to associate with the new client session.

user_identifier_keystring Β· min: 1Optional

Your user ID for the user for whom you want to create a client session.

connect_webview_idsstring[]Optional

IDs of the Connect Webviews for which you want to create a client session.

connected_account_idsstring[]Optional

IDs of the connected accounts for which you want to create a client session.

user_identity_idsstring Β· uuid[] Β· min: 1 Β· max: 1OptionalDeprecated

IDs of the user identities that you want to associate with the client session.

user_identity_idstring Β· uuidOptional

ID of the user identity for which you want to create a client session.

expires_atstring Β· date-timeOptional

Date and time at which the client session should expire, in ISO 8601 format.

Responses
post
/client_sessions/create

Request

Specify the user ID and, optionally, connected accounts associated with the user by including the corresponding parameters in the request body.

Request Body Parameters

Parameter
Type
Description

user_identifier_key

String Required

Your own internal user ID for the user

connected_account_ids

Array of strings Optional

Array of IDs of the connected accounts associated with this user

Sample Request

Response

Returns a client_session containing the following properties:

Property
Description

token

Client session token associated with the client session

workspace_id

ID of the workspace that contains the client session

user_identifier_key

Your own internal user ID for the user

client_session_id

ID of the client session

created_at

Date and time at which the client session was created

This response also includes a Boolean ok status indicator.

Sample Response

Last updated

Was this helpful?